code
stringlengths
3
6.57k
VideoFileClip("solidWhiteRight.mp4")
clip1.fl_image(process_image)
white_clip.write_videofile(white_output, audio=False)
format(white_output)
VideoFileClip('solidYellowLeft.mp4')
clip2.fl_image(process_image)
yellow_clip.write_videofile(yellow_output, audio=False)
format(yellow_output)
VideoFileClip('challenge.mp4')
clip2.fl_image(process_image)
challenge_clip.write_videofile(challenge_output, audio=False)
format(challenge_output)
int(input('Qual sua escolha? ')
random.randint(0,2)
print('JO')
sleep(1)
print('KEN')
sleep(1)
print('PO!!!')
print('-='*20)
print('O computador escolheu {}'.format(itens[computador])
print('Você escolheu PEDRA')
print('Você perdeu')
print('EMPATE')
print('Você ganhou!!!')
print('Você escolheu PAPEL')
print('Você perdeu')
print('EMPATE')
print('Você ganhou!!!')
print('Você escolheu TESOURA')
print('Você perdeu')
print('EMPATE')
print('Você ganhou!!!')
print('=-'*20)
TestFail(Exception)
cg.esphome_ns.namespace('json')
coroutine_with_priority(1.0)
to_code(config)
cg.add_library('ArduinoJson-esphomelib', '5.13.3')
cg.add_define('USE_JSON')
cg.add_global(json_ns.using)
nox.session(name="keep-codebase-clean")
keep_codebase_clean(session)
session.install("-r", "test-requirements.txt")
session.run("isort", *files)
session.run("black", *files)
nox.session(name="check-quality")
check_quality(session)
session.install("-r", "test-requirements.txt")
session.run("flake8", *files, "--max-line-length=127")
session.run("isort", "--check-only", *files)
session.run("black", "--check", *files)
Copyright (c)
fake (in-memory)
logging.getLogger(__name__)
set_nodes(nodes)
get_available_nodes()
get_host_stats()
restore_nodes()
restore_nodes()
set_nodes()
tearDown()
FakeInstance(object)
__init__(self, name, state)
__getitem__(self, key)
getattr(self, key)
FakeDriver(driver.ComputeDriver)
__init__(self, virtapi, read_only=False)
super(FakeDriver, self)
__init__(virtapi)
init_host(self, host)
list_instances(self)
self.instances.keys()
plug_vifs(self, instance, network_info)
unplug_vifs(self, instance, network_info)
FakeInstance(name, state)
snapshot(self, context, instance, name, update_task_state)
exception.InstanceNotRunning(instance_id=instance['uuid'])
update_task_state(task_state=task_states.IMAGE_UPLOADING)
get_host_ip_addr()
set_admin_password(self, instance, new_pass)
inject_file(self, instance, b64_path, b64_contents)
unrescue(self, instance, network_info)
poll_rebooting_instances(self, timeout, instances)
power_off(self, instance)
power_on(self, instance)
soft_delete(self, instance)
restore(self, instance)
pause(self, instance)
unpause(self, instance)
suspend(self, instance)
resume(self, instance, network_info, block_device_info=None)
LOG.warning(_("Key '%(key)
attach_volume(self, connection_info, instance, mountpoint)
detach_volume(self, connection_info, instance, mountpoint)
get_info(self, instance)
exception.InstanceNotFound(instance_id=instance['name'])
get_diagnostics(self, instance_name)
get_all_bw_counters(self, instances)
block_stats(self, instance_name, disk_id)