code stringlengths 3 6.57k |
|---|
start() |
GPIO.setmode(GPIO.BCM) |
GPIO.setwarnings(False) |
GPIO.setup(05,GPIO.OUT) |
print('press the button and speak') |
button.wait_for_press() |
print('eating pizza...') |
recognizer.recognize() |
print('please repeat...') |
print('You said "', text, '"') |
GPIO.output(05,GPIO.HIGH) |
GPIO.output(05,GPIO.LOW) |
main() |
print(genre_and_distances.group('Genre') |
np.allclose(genre_and_distances.column('Distance') |
sorted(fast_distances(test_my_features.row(0) |
main() |
pygion.Tunable.select(pygion.Tunable.GLOBAL_PYS) |
get() |
print("Number of Python processors: %s" % nprocs) |
main() |
if (not TYPE_CHECKING) |
setattr(XSimpleMailMessage, '__ooo_ns__', 'com.sun.star.system') |
setattr(XSimpleMailMessage, '__ooo_full_ns__', 'com.sun.star.system.XSimpleMailMessage') |
setattr(XSimpleMailMessage, '__ooo_type_name__', 'interface') |
pathlib.Path(__file__) |
parent.absolute() |
subprocess.check_output([sys.executable, "setup.py", "--name"], encoding="utf-8") |
nox.session(python=['3.6', '3.7', '3.8', '3.9']) |
unit(session) |
session.install('coverage', 'pytest', 'pytest-cov', 'asyncmock', 'pytest-asyncio') |
session.install('-e', '.') |
os.path.join('tests', 'unit', ''.join(session.posargs) |
nox.session(python='3.7') |
cover(session) |
runs (not system test runs) |
session.install("coverage", "pytest-cov") |
session.run("coverage", "report", "--show-missing", "--fail-under=100") |
session.run("coverage", "erase") |
nox.session(python=['3.6', '3.7']) |
mypy(session) |
session.install('mypy', 'types-pkg_resources') |
session.install('.') |
update_lower_bounds(session) |
session.install('google-cloud-testutils') |
session.install('.') |
str(LOWER_BOUND_CONSTRAINTS_FILE) |
check_lower_bounds(session) |
session.install('google-cloud-testutils') |
session.install('.') |
str(LOWER_BOUND_CONSTRAINTS_FILE) |
nox.session(python='3.6') |
docs(session) |
session.install("-e", ".") |
session.install("sphinx<3.0.0", "alabaster", "recommonmark") |
shutil.rmtree(os.path.join("docs", "_build") |
os.path.join("docs", "_build", "doctrees", "") |
os.path.join("docs", "") |
os.path.join("docs", "_build", "html", "") |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CongoCart.settings') |
get_asgi_application() |
of (pad_sprite, trophies, car[x,y]) |
PadSprite(pygame.sprite.Sprite) |
__init__(self, image, position) |
super(PadSprite, self) |
__init__() |
pygame.image.load(image) |
pygame.image.load('images/collision.png') |
pygame.Rect(self.normal.get_rect() |
update(self, hit_list) |
Trophy(pygame.sprite.Sprite) |
__init__(self, position) |
pygame.sprite.Sprite.__init__(self) |
pygame.image.load('images/trophy.png') |
self.image.get_rect() |
draw(self, screen) |
screen.blit(self.image, self.rect) |
level1() |
PadSprite('images/vertical_pads.png', (0, 100) |
PadSprite('images/vertical_pads.png', (0, 200) |
PadSprite('images/vertical_pads.png', (0, 400) |
PadSprite('images/vertical_pads.png', (1024, 100) |
PadSprite('images/vertical_pads.png', (1024, 550) |
PadSprite('images/vertical_pads.png', (824, 768) |
PadSprite('images/vertical_pads.png', (824, 368) |
PadSprite('images/vertical_pads.png', (210, 375) |
PadSprite('images/vertical_pads.png', (824, 368) |
PadSprite('images/race_pads.png', (900, 0) |
PadSprite('images/race_pads.png', (724, 0) |
PadSprite('images/race_pads.png', (524, 0) |
PadSprite('images/race_pads.png', (224, 0) |
PadSprite('images/race_pads.png', (1024, 768) |
PadSprite('images/race_pads.png', (624, 768) |
PadSprite('images/race_pads.png', (224, 768) |
PadSprite('images/race_pads.png', (450, 130) |
PadSprite('images/race_pads.png', (550, 130) |
PadSprite('images/small_horizontal.png', (600, 615) |
PadSprite('images/small_horizontal.png', (350, 615) |
PadSprite('images/small_horizontal.png', (470, 270) |
PadSprite('images/small_vertical.png', (600, 390) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.