messages
listlengths
2
2
[ { "role": "user", "content": "Write Python code that implements command_packer_benchmark.py from lamby/redis-py (path: benchmarks/command_packer_benchmark.py)." }, { "role": "assistant", "content": "# benchmarks/command_packer_benchmark.py (from lamby/redis-py, license: mit)\n\nimport socket\nim...
[ { "role": "user", "content": "Write Python code that implements login.py from sindhus/hasjob (path: hasjob/views/login.py)." }, { "role": "assistant", "content": "# hasjob/views/login.py (from sindhus/hasjob, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n\nfrom sqlalchemy.exc import IntegrityEr...
[ { "role": "user", "content": "Write Python code that implements test_hook.py from RockySteveJobs/python-for-android (path: python-modules/twisted/twisted/test/test_hook.py)." }, { "role": "assistant", "content": "# python-modules/twisted/twisted/test/test_hook.py (from RockySteveJobs/python-for-...
[ { "role": "user", "content": "Write Python code that implements test_http_request.py from devGregA/code (path: build/lib.linux-x86_64-2.7/scrapy/tests/test_http_request.py)." }, { "role": "assistant", "content": "# build/lib.linux-x86_64-2.7/scrapy/tests/test_http_request.py (from devGregA/code,...
[ { "role": "user", "content": "Write Python code that implements model_params.py from scottpurdy/nupic (path: examples/opf/simple_server/model_params.py)." }, { "role": "assistant", "content": "# examples/opf/simple_server/model_params.py (from scottpurdy/nupic, license: agpl-3.0)\n\n# ----------...
[ { "role": "user", "content": "Write Python code that implements elinos.py from mrjaydee82/SinLessKernel-4.4.4 (path: toolchains/linaro-arm-eabi-4.10-master/share/gdb/system-gdbinit/elinos.py)." }, { "role": "assistant", "content": "# toolchains/linaro-arm-eabi-4.10-master/share/gdb/system-gdbini...
[ { "role": "user", "content": "Write Python code that implements expclass.py from amnona/heatsequer (path: heatsequer/experiment/expclass.py)." }, { "role": "assistant", "content": "# heatsequer/experiment/expclass.py (from amnona/heatsequer, license: bsd-3-clause)\n\n#!/usr/bin/env python\n\n\"\...
[ { "role": "user", "content": "Write Python code that implements exceptions.py from j-carl/boto (path: boto/directconnect/exceptions.py)." }, { "role": "assistant", "content": "# boto/directconnect/exceptions.py (from j-carl/boto, license: mit)\n\n# Copyright (c) 2013 Amazon.com, Inc. or its affi...
[ { "role": "user", "content": "Write Python code that implements test_gitlab_deploy_key.py from maartenq/ansible (path: test/units/modules/source_control/test_gitlab_deploy_key.py)." }, { "role": "assistant", "content": "# test/units/modules/source_control/test_gitlab_deploy_key.py (from maartenq...
[ { "role": "user", "content": "Write Python code that implements helper.py from chainer/chainer (path: chainer/testing/helper.py)." }, { "role": "assistant", "content": "# chainer/testing/helper.py (from chainer/chainer, license: mit)\n\nimport contextlib\nimport sys\nimport unittest\nimport warn...
[ { "role": "user", "content": "Write Python code that implements tests.py from liavkoren/djangoDev (path: django/contrib/gis/geoip/tests.py)." }, { "role": "assistant", "content": "# django/contrib/gis/geoip/tests.py (from liavkoren/djangoDev, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\nfr...
[ { "role": "user", "content": "Write Python code that implements transmit.py from kumanna/Simple-OFDM-Modem (path: usrp/transmit.py)." }, { "role": "assistant", "content": "# usrp/transmit.py (from kumanna/Simple-OFDM-Modem, license: gpl-3.0)\n\n#!/usr/bin/env python\n\"\"\"\ntest\n\n\"\"\"\n\nIN...
[ { "role": "user", "content": "Write Python code that implements tests.py from Neamar/django (path: tests/deprecation/tests.py)." }, { "role": "assistant", "content": "# tests/deprecation/tests.py (from Neamar/django, license: bsd-3-clause)\n\nfrom __future__ import unicode_literals\n\nimport os\...
[ { "role": "user", "content": "Write Python code that implements base.py from twz915/django (path: django/db/backends/sqlite3/base.py)." }, { "role": "assistant", "content": "# django/db/backends/sqlite3/base.py (from twz915/django, license: bsd-3-clause)\n\n\"\"\"\nSQLite3 backend for the sqlite...
[ { "role": "user", "content": "Write Python code that implements credentials.py from laborautonomo/bitmask_client (path: src/leap/bitmask/util/credentials.py)." }, { "role": "assistant", "content": "# src/leap/bitmask/util/credentials.py (from laborautonomo/bitmask_client, license: gpl-3.0)\n\n# ...
[ { "role": "user", "content": "Write Python code that implements langhungarianmodel.py from JamisHoo/Cloud-Image-Migration-Tool (path: usr/lib/requests/packages/chardet/langhungarianmodel.py)." }, { "role": "assistant", "content": "# usr/lib/requests/packages/chardet/langhungarianmodel.py (from J...
[ { "role": "user", "content": "Write Python code that implements spreadCalculations.py from pico12/trading-with-python (path: sandbox/spreadCalculations.py)." }, { "role": "assistant", "content": "# sandbox/spreadCalculations.py (from pico12/trading-with-python, license: bsd-3-clause)\n\n'''\nCre...
[ { "role": "user", "content": "Write Python code that implements strip_unused_lib.py from chenjun0210/tensorflow (path: tensorflow/python/tools/strip_unused_lib.py)." }, { "role": "assistant", "content": "# tensorflow/python/tools/strip_unused_lib.py (from chenjun0210/tensorflow, license: apache-...
[ { "role": "user", "content": "Write Python code that implements views.py from monikasulik/django-oscar (path: sites/demo/apps/checkout/views.py)." }, { "role": "assistant", "content": "# sites/demo/apps/checkout/views.py (from monikasulik/django-oscar, license: bsd-3-clause)\n\nfrom django.contr...
[ { "role": "user", "content": "Write Python code that implements python_target.py from maxamillion/ansible (path: lib/ansible/executor/discovery/python_target.py)." }, { "role": "assistant", "content": "# lib/ansible/executor/discovery/python_target.py (from maxamillion/ansible, license: gpl-3.0)...
[ { "role": "user", "content": "Write Python code that implements test_selectdatewidget.py from wyc/django (path: tests/forms_tests/widget_tests/test_selectdatewidget.py)." }, { "role": "assistant", "content": "# tests/forms_tests/widget_tests/test_selectdatewidget.py (from wyc/django, license: bs...
[ { "role": "user", "content": "Write Python code that implements spider.py from mhnatiuk/phd_sociology_of_religion (path: scrapper/lib/python2.7/site-packages/scrapy/spider.py)." }, { "role": "assistant", "content": "# scrapper/lib/python2.7/site-packages/scrapy/spider.py (from mhnatiuk/phd_socio...
[ { "role": "user", "content": "Write Python code that implements STM32F103xB.py from DavidIngraham/ardupilot (path: libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F103xB.py)." }, { "role": "assistant", "content": "# libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F103xB.py (from DavidIngraham/ardupilot,...
[ { "role": "user", "content": "Write Python code that implements pure.py from pshen/ansible (path: lib/ansible/module_utils/pure.py)." }, { "role": "assistant", "content": "# lib/ansible/module_utils/pure.py (from pshen/ansible, license: gpl-3.0)\n\n# -*- coding: utf-8 -*-\n\n# This code is part ...
[ { "role": "user", "content": "Write Python code that implements account_invoice.py from CompassionCH/bank-payment (path: account_payment_partner/models/account_invoice.py)." }, { "role": "assistant", "content": "# account_payment_partner/models/account_invoice.py (from CompassionCH/bank-payment,...
[ { "role": "user", "content": "Write Python code that implements test_raw.py from dharmabumstead/ansible (path: test/units/plugins/action/test_raw.py)." }, { "role": "assistant", "content": "# test/units/plugins/action/test_raw.py (from dharmabumstead/ansible, license: gpl-3.0)\n\n# (c) 2016, Sar...
[ { "role": "user", "content": "Write Python code that implements engine.py from stevec7/ratking (path: ratking/engine.py)." }, { "role": "assistant", "content": "# ratking/engine.py (from stevec7/ratking, license: mit)\n\nimport ast\nimport ConfigParser\nimport glob\nimport grp\nimport importlib\...
[ { "role": "user", "content": "Write Python code that implements transfer.py from franek/weboob (path: modules/ing/pages/transfer.py)." }, { "role": "assistant", "content": "# modules/ing/pages/transfer.py (from franek/weboob, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n\n# Copyright(C) 2009-2...
[ { "role": "user", "content": "Write Python code that implements ssl_support.py from FlintHill/SUAS-Competition (path: env/lib/python2.7/site-packages/setuptools/ssl_support.py)." }, { "role": "assistant", "content": "# env/lib/python2.7/site-packages/setuptools/ssl_support.py (from FlintHill/SUA...
[ { "role": "user", "content": "Write Python code that implements 0013_auto__add_tagkeyphrase.py from daonb/Open-Knesset (path: auxiliary/migrations/0013_auto__add_tagkeyphrase.py)." }, { "role": "assistant", "content": "# auxiliary/migrations/0013_auto__add_tagkeyphrase.py (from daonb/Open-Knesse...
[ { "role": "user", "content": "Write Python code that implements test_helpers.py from larsbutler/coveragepy (path: coverage/test_helpers.py)." }, { "role": "assistant", "content": "# coverage/test_helpers.py (from larsbutler/coveragepy, license: apache-2.0)\n\n# Licensed under the Apache License:...
[ { "role": "user", "content": "Write Python code that implements faster_rcnn_inception_resnet_v2_feature_extractor.py from jiaphuan/models (path: research/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py)." }, { "role": "assistant", "content": "# research/object_detect...
[ { "role": "user", "content": "Write Python code that implements pong_str4.py from roninek/python101 (path: games_str/pong_str/pong_str4.py)." }, { "role": "assistant", "content": "# games_str/pong_str/pong_str4.py (from roninek/python101, license: mit)\n\n#! /usr/bin/env python\n# -*- coding: ut...
[ { "role": "user", "content": "Write Python code that implements test_task_result.py from Inspq/ansible (path: test/units/executor/test_task_result.py)." }, { "role": "assistant", "content": "# test/units/executor/test_task_result.py (from Inspq/ansible, license: gpl-3.0)\n\n# (c) 2016, James Cam...
[ { "role": "user", "content": "Write Python code that implements authorized_key.py from olsaki/ansible-modules-core (path: system/authorized_key.py)." }, { "role": "assistant", "content": "# system/authorized_key.py (from olsaki/ansible-modules-core, license: gpl-3.0)\n\n#!/usr/bin/python\n# -*- ...
[ { "role": "user", "content": "Write Python code that implements test_title.py from DuCorey/bokeh (path: tests/integration/annotations/test_title.py)." }, { "role": "assistant", "content": "# tests/integration/annotations/test_title.py (from DuCorey/bokeh, license: bsd-3-clause)\n\nfrom __future_...
[ { "role": "user", "content": "Write Python code that implements test_modules.py from mzdaniel/oh-mainline (path: vendor/packages/twisted/twisted/test/test_modules.py)." }, { "role": "assistant", "content": "# vendor/packages/twisted/twisted/test/test_modules.py (from mzdaniel/oh-mainline, licens...
[ { "role": "user", "content": "Write Python code that implements about_tuples.py from sjotterman/python_koans (path: python2/koans/about_tuples.py)." }, { "role": "assistant", "content": "# python2/koans/about_tuples.py (from sjotterman/python_koans, license: mit)\n\n#!/usr/bin/env python\n# -*- ...
[ { "role": "user", "content": "Write Python code that implements FtpCoord.py from paolinux79/FTCryPTUploader (path: FTCryPTUploader/FtpCoord.py)." }, { "role": "assistant", "content": "# FTCryPTUploader/FtpCoord.py (from paolinux79/FTCryPTUploader, license: bsd-2-clause)\n\nimport threading\nclas...
[ { "role": "user", "content": "Write Python code that implements test_mail_examples.py from fgesora/odoo (path: openerp/addons/base/tests/test_mail_examples.py)." }, { "role": "assistant", "content": "# openerp/addons/base/tests/test_mail_examples.py (from fgesora/odoo, license: agpl-3.0)\n\n#!/u...
[ { "role": "user", "content": "Write Python code that implements udm_user.py from jmighion/ansible (path: lib/ansible/modules/cloud/univention/udm_user.py)." }, { "role": "assistant", "content": "# lib/ansible/modules/cloud/univention/udm_user.py (from jmighion/ansible, license: gpl-3.0)\n\n#!/us...
[ { "role": "user", "content": "Write Python code that implements reestimate_radius.py from XiaoxiaoLiu/morphology_analysis (path: bigneuron/reestimate_radius.py)." }, { "role": "assistant", "content": "# bigneuron/reestimate_radius.py (from XiaoxiaoLiu/morphology_analysis, license: gpl-3.0)\n\n__...
[ { "role": "user", "content": "Write Python code that implements document_clustering.py from siutanwong/scikit-learn (path: examples/text/document_clustering.py)." }, { "role": "assistant", "content": "# examples/text/document_clustering.py (from siutanwong/scikit-learn, license: bsd-3-clause)\n\...
[ { "role": "user", "content": "Write Python code that implements xlsearch_train.py from COL-IU/XLSearch (path: xlsearch_train.py)." }, { "role": "assistant", "content": "# xlsearch_train.py (from COL-IU/XLSearch, license: mit)\n\nimport sys\nimport pickle\nimport os\nimport getopt\nfrom time impo...
[ { "role": "user", "content": "Write Python code that implements tough_texture_upload_cases.py from xin3liang/platform_external_chromium_org (path: tools/perf/page_sets/tough_texture_upload_cases.py)." }, { "role": "assistant", "content": "# tools/perf/page_sets/tough_texture_upload_cases.py (fro...
[ { "role": "user", "content": "Write Python code that implements fabconf.py from darvelo/chime (path: fabfile/fabconf.py)." }, { "role": "assistant", "content": "# fabfile/fabconf.py (from darvelo/chime, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n\n'''\n-----------------------------------...
[ { "role": "user", "content": "Write Python code that implements raw_payload.py from heia-fr/sirano (path: sirano/plugins/actions/raw_payload.py)." }, { "role": "assistant", "content": "# sirano/plugins/actions/raw_payload.py (from heia-fr/sirano, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n#\n...
[ { "role": "user", "content": "Write Python code that implements get_custom_targeting_values_by_statement.py from jdilallo/jdilallo-test (path: examples/dfp/v201311/custom_targeting_service/get_custom_targeting_values_by_statement.py)." }, { "role": "assistant", "content": "# examples/dfp/v201311...
[ { "role": "user", "content": "Write Python code that implements crm_phonecall_to_meeting.py from KousikaGanesh/purchaseandInventory (path: openerp/addons/crm/wizard/crm_phonecall_to_meeting.py)." }, { "role": "assistant", "content": "# openerp/addons/crm/wizard/crm_phonecall_to_meeting.py (from ...
[ { "role": "user", "content": "Write Python code that implements serializers.py from gengliangwang/spark (path: python/pyspark/serializers.py)." }, { "role": "assistant", "content": "# python/pyspark/serializers.py (from gengliangwang/spark, license: apache-2.0)\n\n#\n# Licensed to the Apache Sof...
[ { "role": "user", "content": "Write Python code that implements search_engines.py from hujiajie/pa-chromium (path: chrome/test/functional/search_engines.py)." }, { "role": "assistant", "content": "# chrome/test/functional/search_engines.py (from hujiajie/pa-chromium, license: bsd-3-clause)\n\n#!...
[ { "role": "user", "content": "Write Python code that implements findstatic.py from gchp/django (path: django/contrib/staticfiles/management/commands/findstatic.py)." }, { "role": "assistant", "content": "# django/contrib/staticfiles/management/commands/findstatic.py (from gchp/django, license: b...
[ { "role": "user", "content": "Write Python code that implements process_clues.py from PhilHarnish/forge (path: bin/process_clues.py)." }, { "role": "assistant", "content": "# bin/process_clues.py (from PhilHarnish/forge, license: mit)\n\n\"\"\"Process http://www.otsys.com/clue/ DB for use with p...
[ { "role": "user", "content": "Write Python code that implements _test_warnings.py from 40223108/w18 (path: static/Brython3.1.1-20150328-091302/Lib/unittest/test/_test_warnings.py)." }, { "role": "assistant", "content": "# static/Brython3.1.1-20150328-091302/Lib/unittest/test/_test_warnings.py (f...
[ { "role": "user", "content": "Write Python code that implements connection.py from 40223142/cda11 (path: static/Brython3.1.1-20150328-091302/Lib/multiprocessing/dummy/connection.py)." }, { "role": "assistant", "content": "# static/Brython3.1.1-20150328-091302/Lib/multiprocessing/dummy/connection...
[ { "role": "user", "content": "Write Python code that implements ElementPath.py from 40223137/2015abc (path: static/Brython3.1.0-20150301-090019/Lib/xml/etree/ElementPath.py)." }, { "role": "assistant", "content": "# static/Brython3.1.0-20150301-090019/Lib/xml/etree/ElementPath.py (from 40223137/...
[ { "role": "user", "content": "Write Python code that implements save_to_pocket.py from felipecorrea/python-pocket (path: examples/save_to_pocket.py)." }, { "role": "assistant", "content": "# examples/save_to_pocket.py (from felipecorrea/python-pocket, license: apache-2.0)\n\n#!/usr/bin/env pytho...
[ { "role": "user", "content": "Write Python code that implements barcode.py from eneldoserrata/marcos_openerp (path: addons/report_aeroo/barcode/barcode.py)." }, { "role": "assistant", "content": "# addons/report_aeroo/barcode/barcode.py (from eneldoserrata/marcos_openerp, license: agpl-3.0)\n\n#...
[ { "role": "user", "content": "Write Python code that implements netdev-times.py from lnfamous/Kernel_CyanogenMod11_Pico (path: tools/perf/scripts/python/netdev-times.py)." }, { "role": "assistant", "content": "# tools/perf/scripts/python/netdev-times.py (from lnfamous/Kernel_CyanogenMod11_Pico, ...
[ { "role": "user", "content": "Write Python code that implements creation.py from DanteOnline/free-art (path: venv/lib/python3.4/site-packages/django/db/backends/oracle/creation.py)." }, { "role": "assistant", "content": "# venv/lib/python3.4/site-packages/django/db/backends/oracle/creation.py (f...
[ { "role": "user", "content": "Write Python code that implements stresstest_bank.py from DavidLi2010/ramcloud (path: bindings/python/stresstest_bank.py)." }, { "role": "assistant", "content": "# bindings/python/stresstest_bank.py (from DavidLi2010/ramcloud, license: isc)\n\n#!/usr/bin/env python\...
[ { "role": "user", "content": "Write Python code that implements TSerialization.py from fengbaicanhe/intellij-community (path: python/helpers/profiler/thrift/TSerialization.py)." }, { "role": "assistant", "content": "# python/helpers/profiler/thrift/TSerialization.py (from fengbaicanhe/intellij-c...
[ { "role": "user", "content": "Write Python code that implements new_relic_license_driver.py from Tesora-Release/tesora-trove (path: trove/guestagent/module/drivers/new_relic_license_driver.py)." }, { "role": "assistant", "content": "# trove/guestagent/module/drivers/new_relic_license_driver.py (...
[ { "role": "user", "content": "Write Python code that implements provider_extensions.py from RomanHargrave/namebench (path: libnamebench/provider_extensions.py)." }, { "role": "assistant", "content": "# libnamebench/provider_extensions.py (from RomanHargrave/namebench, license: apache-2.0)\n\n# C...
[ { "role": "user", "content": "Write Python code that implements kdf_pbkdf2.py from DrMattChristian/btrbk (path: contrib/crypt/kdf_pbkdf2.py)." }, { "role": "assistant", "content": "# contrib/crypt/kdf_pbkdf2.py (from DrMattChristian/btrbk, license: gpl-3.0)\n\n#!/usr/bin/env python3\n#\n# kdf_pb...
[ { "role": "user", "content": "Write Python code that implements util.py from lindycoder/netman (path: netman/adapters/switches/util.py)." }, { "role": "assistant", "content": "# netman/adapters/switches/util.py (from lindycoder/netman, license: apache-2.0)\n\n# Copyright 2015 Internap.\n#\n# Lic...
[ { "role": "user", "content": "Write Python code that implements mail_mail.py from jiachenning/odoo (path: addons/portal/mail_mail.py)." }, { "role": "assistant", "content": "# addons/portal/mail_mail.py (from jiachenning/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n######################...
[ { "role": "user", "content": "Write Python code that implements gyptest-all.py from zhangqifan/findSomething (path: FindSomething/Pods/AVOSCloudCrashReporting/Breakpad/src/tools/gyp/test/actions/gyptest-all.py)." }, { "role": "assistant", "content": "# FindSomething/Pods/AVOSCloudCrashReporting/...
[ { "role": "user", "content": "Write Python code that implements log_notifier.py from openstack-ja/horizon (path: openstack_dashboard/openstack/common/notifier/log_notifier.py)." }, { "role": "assistant", "content": "# openstack_dashboard/openstack/common/notifier/log_notifier.py (from openstack-...
[ { "role": "user", "content": "Write Python code that implements brightcove.py from puckipedia/youtube-dl (path: youtube_dl/extractor/brightcove.py)." }, { "role": "assistant", "content": "# youtube_dl/extractor/brightcove.py (from puckipedia/youtube-dl, license: unlicense)\n\n# encoding: utf-8\n...
[ { "role": "user", "content": "Write Python code that implements fix_set_literal.py from vvv1559/intellij-community (path: python/helpers/pydev/third_party/pep8/lib2to3/lib2to3/fixes/fix_set_literal.py)." }, { "role": "assistant", "content": "# python/helpers/pydev/third_party/pep8/lib2to3/lib2to...
[ { "role": "user", "content": "Write Python code that implements key.py from AlexRobson/nilmtk (path: nilmtk/datastore/key.py)." }, { "role": "assistant", "content": "# nilmtk/datastore/key.py (from AlexRobson/nilmtk, license: apache-2.0)\n\nfrom __future__ import print_function, division\n\n# do...
[ { "role": "user", "content": "Write Python code that implements config.py from credativ/gofer (path: src/gofer/agent/config.py)." }, { "role": "assistant", "content": "# src/gofer/agent/config.py (from credativ/gofer, license: lgpl-2.1)\n\n#\n# Copyright (c) 2011 Red Hat, Inc.\n#\n# This softwar...
[ { "role": "user", "content": "Write Python code that implements project.py from damdam-s/project-service (path: service_desk/project.py)." }, { "role": "assistant", "content": "# service_desk/project.py (from damdam-s/project-service, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n##############...
[ { "role": "user", "content": "Write Python code that implements widgets.py from maciek263/django2 (path: myvenv/Lib/site-packages/django/contrib/gis/forms/widgets.py)." }, { "role": "assistant", "content": "# myvenv/Lib/site-packages/django/contrib/gis/forms/widgets.py (from maciek263/django2, l...
[ { "role": "user", "content": "Write Python code that implements test_cert_verification.py from harshilasu/LinkurApp (path: y/google-cloud-sdk/platform/gsutil/third_party/boto/tests/integration/s3/test_cert_verification.py)." }, { "role": "assistant", "content": "# y/google-cloud-sdk/platform/gsu...
[ { "role": "user", "content": "Write Python code that implements bench_wsh.py from VanirAOSP/external_chromium-trace (path: trace-viewer/third_party/pywebsocket/src/example/bench_wsh.py)." }, { "role": "assistant", "content": "# trace-viewer/third_party/pywebsocket/src/example/bench_wsh.py (from ...
[ { "role": "user", "content": "Write Python code that implements hypothesis_testlib_test.py from tensorflow/probability (path: tensorflow_probability/python/internal/hypothesis_testlib_test.py)." }, { "role": "assistant", "content": "# tensorflow_probability/python/internal/hypothesis_testlib_tes...
[ { "role": "user", "content": "Write Python code that implements bibtasklet.py from JohnGeorgiadis/invenio (path: invenio/legacy/bibsched/bibtasklet.py)." }, { "role": "assistant", "content": "# invenio/legacy/bibsched/bibtasklet.py (from JohnGeorgiadis/invenio, license: gpl-2.0)\n\n# -*- coding:...
[ { "role": "user", "content": "Write Python code that implements inventory.py from Fizzadar/pyinfra (path: pyinfra_cli/inventory.py)." }, { "role": "assistant", "content": "# pyinfra_cli/inventory.py (from Fizzadar/pyinfra, license: mit)\n\nfrom os import listdir, path\nfrom types import Generato...
[ { "role": "user", "content": "Write Python code that implements TuneTest.py from XTAv2/Enigma2 (path: lib/python/Components/TuneTest.py)." }, { "role": "assistant", "content": "# lib/python/Components/TuneTest.py (from XTAv2/Enigma2, license: gpl-2.0)\n\nfrom enigma import eDVBFrontendParameters...
[ { "role": "user", "content": "Write Python code that implements sessions.py from taiwanlennon/flask-master (path: flask/sessions.py)." }, { "role": "assistant", "content": "# flask/sessions.py (from taiwanlennon/flask-master, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n\"\"\"\n flask.s...
[ { "role": "user", "content": "Write Python code that implements sourceattribute.py from IsCoolEntertainment/debpkg_python-boto (path: boto/cloudsearch/sourceattribute.py)." }, { "role": "assistant", "content": "# boto/cloudsearch/sourceattribute.py (from IsCoolEntertainment/debpkg_python-boto, l...
[ { "role": "user", "content": "Write Python code that implements langcyrillicmodel.py from amisrs/one-eighty (path: angular_flask/lib/python2.7/site-packages/requests/packages/charade/langcyrillicmodel.py)." }, { "role": "assistant", "content": "# angular_flask/lib/python2.7/site-packages/request...
[ { "role": "user", "content": "Write Python code that implements test_cmd.py from joostvdg/jenkins-job-builder (path: tests/cmd/test_cmd.py)." }, { "role": "assistant", "content": "# tests/cmd/test_cmd.py (from joostvdg/jenkins-job-builder, license: apache-2.0)\n\nimport os\n\nimport testtools\nf...
[ { "role": "user", "content": "Write Python code that implements cc.py from Javier-Acosta/meran (path: dev-plugins/node64/lib/node/wafadmin/Tools/cc.py)." }, { "role": "assistant", "content": "# dev-plugins/node64/lib/node/wafadmin/Tools/cc.py (from Javier-Acosta/meran, license: gpl-3.0)\n\n#!/us...
[ { "role": "user", "content": "Write Python code that implements Enum.py from jtimberman/omnibus (path: source/otp_src_R14B02/lib/asn1/test/asn1_SUITE_data/Enum.py)." }, { "role": "assistant", "content": "# source/otp_src_R14B02/lib/asn1/test/asn1_SUITE_data/Enum.py (from jtimberman/omnibus, lice...
[ { "role": "user", "content": "Write Python code that implements test_knownhosts.py from mollstam/UnrealPy (path: UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Twisted-15.2.1/twisted/conch/test/test_knownhosts.py)." }, { "role": "assistant", "content": "...
[ { "role": "user", "content": "Write Python code that implements test_federation.py from openstack/magnum (path: magnum/tests/unit/api/controllers/v1/test_federation.py)." }, { "role": "assistant", "content": "# magnum/tests/unit/api/controllers/v1/test_federation.py (from openstack/magnum, licen...
[ { "role": "user", "content": "Write Python code that implements publisher.py from Llamatech/sis-fibo (path: model/queue_client/publisher.py)." }, { "role": "assistant", "content": "# model/queue_client/publisher.py (from Llamatech/sis-fibo, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n\nimport ...
[ { "role": "user", "content": "Write Python code that implements api.py from adaxi/couchpotato (path: libs/subliminal/api.py)." }, { "role": "assistant", "content": "# libs/subliminal/api.py (from adaxi/couchpotato, license: gpl-3.0)\n\n# -*- coding: utf-8 -*-\n# Copyright 2011-2012 Antoine Berti...
[ { "role": "user", "content": "Write Python code that implements video.py from dashmoment/facerecognition (path: py/apps/videofacerec/helper/video.py)." }, { "role": "assistant", "content": "# py/apps/videofacerec/helper/video.py (from dashmoment/facerecognition, license: bsd-3-clause)\n\n#!/usr/...
[ { "role": "user", "content": "Write Python code that implements path_lister.py from EntityFXCode/arsenalsuite (path: python/blur/examples/path_lister.py)." }, { "role": "assistant", "content": "# python/blur/examples/path_lister.py (from EntityFXCode/arsenalsuite, license: gpl-2.0)\n\n#!/usr/bin...
[ { "role": "user", "content": "Write Python code that implements lshforest_example.py from chubbymaggie/datasketch (path: examples/lshforest_example.py)." }, { "role": "assistant", "content": "# examples/lshforest_example.py (from chubbymaggie/datasketch, license: mit)\n\nfrom datasketch import M...
[ { "role": "user", "content": "Write Python code that implements colormaps.py from gauravmm/Remote-Temperature-Monitor (path: utilities/colormap/colormaps.py)." }, { "role": "assistant", "content": "# utilities/colormap/colormaps.py (from gauravmm/Remote-Temperature-Monitor, license: mit)\n\n# Ne...
[ { "role": "user", "content": "Write Python code that implements base.py from grow/grow (path: grow/translators/base.py)." }, { "role": "assistant", "content": "# grow/translators/base.py (from grow/grow, license: mit)\n\n\"\"\"Base translators for translating Grow content.\"\"\"\n\nimport copy\n...
[ { "role": "user", "content": "Write Python code that implements test_application_state.py from spottradingllc/zoom (path: test/entities/test_application_state.py)." }, { "role": "assistant", "content": "# test/entities/test_application_state.py (from spottradingllc/zoom, license: gpl-2.0)\n\nfro...
[ { "role": "user", "content": "Write Python code that implements gtest_shuffle_test.py from xliux/chess (path: third_party/gtest-1.7.0/test/gtest_shuffle_test.py)." }, { "role": "assistant", "content": "# third_party/gtest-1.7.0/test/gtest_shuffle_test.py (from xliux/chess, license: apache-2.0)\n...
[ { "role": "user", "content": "Write Python code that implements ReqManagerHandler.py from Andrew-McNab-UK/DIRAC (path: RequestManagementSystem/Service/ReqManagerHandler.py)." }, { "role": "assistant", "content": "# RequestManagementSystem/Service/ReqManagerHandler.py (from Andrew-McNab-UK/DIRAC,...
[ { "role": "user", "content": "Write Python code that implements test_vhdutils.py from felixma/nova (path: nova/tests/unit/virt/hyperv/test_vhdutils.py)." }, { "role": "assistant", "content": "# nova/tests/unit/virt/hyperv/test_vhdutils.py (from felixma/nova, license: apache-2.0)\n\n# Copyright ...