code
stringlengths
3
6.57k
middleware.XRealIPMiddleware(get_response)
test_switches_out_x_real_ip_if_available()
object()
object()
unittest.mock.MagicMock()
middleware.XRealIPMiddleware(get_response)
GPIO.setmode(GPIO.BCM)
GPIO.setup(21, GPIO.OUT)
GPIO.output(21, GPIO.LOW)
time.sleep(3.00)
GPIO.output(21, GPIO.HIGH)
GPIO.cleanup()
__init__(self, name)
directNotify.newCategory(name)
train_ml_squarer()
print("Training!")
square()
np.random.randint(1, 100)
train_ml_squarer()
MyGame(arcade.Window)
__init__(self)
super()
__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
arcade.load_sound(":resources:sounds/coin1.wav")
arcade.load_sound(":resources:sounds/jump1.wav")
arcade.set_background_color(arcade.csscolor.CORNFLOWER_BLUE)
setup(self)
arcade.Camera(self.width, self.height)
arcade.Camera(self.width, self.height)
arcade.load_tilemap(map_name, TILE_SCALING, layer_options)
arcade.Scene.from_tilemap(self.tile_map)
arcade.Sprite(image_source, CHARACTER_SCALING)
self.scene.add_sprite("Player", self.player_sprite)
arcade.set_background_color(self.tile_map.background_color)
on_draw(self)
arcade.start_render()
self.camera.use()
self.scene.draw()
self.gui_camera.use()
on_key_press(self, key, modifiers)
self.physics_engine.can_jump()
arcade.play_sound(self.jump_sound)
on_key_release(self, key, modifiers)
center_camera_to_player(self)
self.camera.move_to(player_centered)
on_update(self, delta_time)
self.physics_engine.update()
hit (if any)
coin.remove_from_sprite_lists()
arcade.play_sound(self.collect_coin_sound)
self.center_camera_to_player()
main()
MyGame()
window.setup()
arcade.run()
main()
logging.getLogger('sublime-ycmd.' + __name__)
StartupParameters(object)
ycmd_root_directory(self)
logger.warning('no ycmd root directory has been set')
ycmd_root_directory(self, ycmd_root_directory)
isinstance(ycmd_root_directory, str)
TypeError(ycmd_root_directory,)
ycmd_settings_path(self)
get_default_settings_path(self._ycmd_root_directory)
logger.warning('no ycmd root directory has been set')
ycmd_settings_path(self, ycmd_settings_path)
isinstance(ycmd_settings_path, str)
TypeError(ycmd_settings_path,)
working_directory(self)
os.getcwd()
working_directory(self, working_directory)
isinstance(working_directory, str)
TypeError(working_directory,)
python_binary_path(self)
default_python_binary_path()
python_binary_path(self, python_binary_path)
isinstance(python_binary_path, str)
TypeError(python_binary_path,)
server_idle_suicide_seconds(self)
server_idle_suicide_seconds(self, server_idle_suicide_seconds)
isinstance(server_idle_suicide_seconds, int)
TypeError(server_idle_suicide_seconds,)
server_check_interval_seconds(self)
server_check_interval_seconds(self, server_check_interval_seconds)
isinstance(server_check_interval_seconds, int)
TypeError(server_check_interval_seconds,)
log_level(self)
log_level(self, log_level)
isinstance(log_level, str)
TypeError('log level must be a str: %r' % (log_level)
_is_valid_log_level(log_level)
logger.warning('log level unrecognized: %r', log_level)
stdout_log_path(self)
stdout_log_path(self, stdout_log_path)
isinstance(stdout_log_path, str)
stderr_log_path(self)
stderr_log_path(self, stderr_log_path)
isinstance(stderr_log_path, str)
keep_logs(self)