messages
listlengths
2
2
[ { "role": "user", "content": "Write Python code that implements client_coroutines.py from ahmedbodi/AutobahnPython (path: examples/asyncio/websocket/echo/client_coroutines.py)." }, { "role": "assistant", "content": "# examples/asyncio/websocket/echo/client_coroutines.py (from ahmedbodi/AutobahnP...
[ { "role": "user", "content": "Write Python code that implements registry.py from ifduyue/django (path: django/core/checks/registry.py)." }, { "role": "assistant", "content": "# django/core/checks/registry.py (from ifduyue/django, license: bsd-3-clause)\n\nfrom itertools import chain\n\nfrom djan...
[ { "role": "user", "content": "Write Python code that implements __init__.py from kmike/scikit-learn (path: sklearn/utils/__init__.py)." }, { "role": "assistant", "content": "# sklearn/utils/__init__.py (from kmike/scikit-learn, license: bsd-3-clause)\n\n\"\"\"\nThe :mod:`sklearn.utils` module in...
[ { "role": "user", "content": "Write Python code that implements cp1250.py from houlixin/BBB-TISDK (path: linux-devkit/sysroots/i686-arago-linux/usr/lib/python2.7/encodings/cp1250.py)." }, { "role": "assistant", "content": "# linux-devkit/sysroots/i686-arago-linux/usr/lib/python2.7/encodings/cp12...
[ { "role": "user", "content": "Write Python code that implements kernel_blacklist.py from dataxu/ansible (path: lib/ansible/modules/system/kernel_blacklist.py)." }, { "role": "assistant", "content": "# lib/ansible/modules/system/kernel_blacklist.py (from dataxu/ansible, license: gpl-3.0)\n\n#!/us...
[ { "role": "user", "content": "Write Python code that implements cache.py from blackbliss/callme (path: flask/lib/python2.7/site-packages/werkzeug/contrib/cache.py)." }, { "role": "assistant", "content": "# flask/lib/python2.7/site-packages/werkzeug/contrib/cache.py (from blackbliss/callme, licen...
[ { "role": "user", "content": "Write Python code that implements tasks.py from pipet/pipet (path: pipet/sources/zendesk/tasks.py)." }, { "role": "assistant", "content": "# pipet/sources/zendesk/tasks.py (from pipet/pipet, license: apache-2.0)\n\nfrom contextlib import contextmanager\nfrom datetim...
[ { "role": "user", "content": "Write Python code that implements config.py from tomchristie/django (path: django/apps/config.py)." }, { "role": "assistant", "content": "# django/apps/config.py (from tomchristie/django, license: bsd-3-clause)\n\nimport os\nfrom importlib import import_module\n\nfr...
[ { "role": "user", "content": "Write Python code that implements test_bigip_gtm_datacenter.py from prutseltje/ansible (path: test/units/modules/network/f5/test_bigip_gtm_datacenter.py)." }, { "role": "assistant", "content": "# test/units/modules/network/f5/test_bigip_gtm_datacenter.py (from pruts...
[ { "role": "user", "content": "Write Python code that implements test_errno.py from antb/TPT----My-old-mod (path: src/python/stdlib/ctypes/test/test_errno.py)." }, { "role": "assistant", "content": "# src/python/stdlib/ctypes/test/test_errno.py (from antb/TPT----My-old-mod, license: gpl-2.0)\n\ni...
[ { "role": "user", "content": "Write Python code that implements creation.py from Sarah-Alsinan/muypicky (path: lib/python3.6/site-packages/django/db/backends/sqlite3/creation.py)." }, { "role": "assistant", "content": "# lib/python3.6/site-packages/django/db/backends/sqlite3/creation.py (from Sa...
[ { "role": "user", "content": "Write Python code that implements sysconfig.py from greenoaktree/MissionPlanner (path: Lib/sysconfig.py)." }, { "role": "assistant", "content": "# Lib/sysconfig.py (from greenoaktree/MissionPlanner, license: gpl-3.0)\n\n\"\"\"Provide access to Python's configuration...
[ { "role": "user", "content": "Write Python code that implements forms.py from marcoantoniooliveira/labweb (path: oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py)." }, { "role": "assistant", "content": "# oscar/lib/python2.7/site-packages/debug_toolbar/panels/sql/forms.py (fro...
[ { "role": "user", "content": "Write Python code that implements release.py from 2asoft/tdesktop (path: Telegram/build/release.py)." }, { "role": "assistant", "content": "# Telegram/build/release.py (from 2asoft/tdesktop, license: gpl-3.0)\n\nimport os, sys, requests, pprint, re, json\nfrom urite...
[ { "role": "user", "content": "Write Python code that implements hud.py from UASLab/ImageAnalysis (path: video/hud.py)." }, { "role": "assistant", "content": "# video/hud.py (from UASLab/ImageAnalysis, license: mit)\n\nimport datetime\nimport ephem # dnf install python3-pyephem...
[ { "role": "user", "content": "Write Python code that implements text.py from jdemel/gnuradio (path: gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py)." }, { "role": "assistant", "content": "# gr-utils/modtool/templates/gr-newmod/docs/doxygen/doxyxml/text.py (from jdemel/gnuradio...
[ { "role": "user", "content": "Write Python code that implements test_hhfit.py from dilawar/moose-full (path: moose-core/python/moose/neuroml2/test_hhfit.py)." }, { "role": "assistant", "content": "# moose-core/python/moose/neuroml2/test_hhfit.py (from dilawar/moose-full, license: gpl-2.0)\n\n# t...
[ { "role": "user", "content": "Write Python code that implements decomp_schur.py from 4rado/RepositoryForProject (path: Lib/site-packages/scipy/linalg/decomp_schur.py)." }, { "role": "assistant", "content": "# Lib/site-packages/scipy/linalg/decomp_schur.py (from 4rado/RepositoryForProject, licens...
[ { "role": "user", "content": "Write Python code that implements kvs.py from savi-dev/keystone (path: keystone/common/kvs.py)." }, { "role": "assistant", "content": "# keystone/common/kvs.py (from savi-dev/keystone, license: apache-2.0)\n\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyrigh...
[ { "role": "user", "content": "Write Python code that implements mnist_softmax_xla.py from zasdfgbnm/tensorflow (path: tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py)." }, { "role": "assistant", "content": "# tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py (from zasdfgbnm/tenso...
[ { "role": "user", "content": "Write Python code that implements network.py from alex/fabric (path: fabric/network.py)." }, { "role": "assistant", "content": "# fabric/network.py (from alex/fabric, license: bsd-2-clause)\n\n\"\"\"\nClasses and subroutines dealing with network connections and rela...
[ { "role": "user", "content": "Write Python code that implements widgets.py from adrianholovaty/django (path: django/contrib/gis/admin/widgets.py)." }, { "role": "assistant", "content": "# django/contrib/gis/admin/widgets.py (from adrianholovaty/django, license: bsd-3-clause)\n\nfrom django.forms...
[ { "role": "user", "content": "Write Python code that implements ansi.py from sankhesh/VTK (path: ThirdParty/Twisted/twisted/conch/ui/ansi.py)." }, { "role": "assistant", "content": "# ThirdParty/Twisted/twisted/conch/ui/ansi.py (from sankhesh/VTK, license: bsd-3-clause)\n\n# Copyright (c) Twiste...
[ { "role": "user", "content": "Write Python code that implements crwls.py from samcavallieri/weblogic_project_automation (path: crwls.py)." }, { "role": "assistant", "content": "# crwls.py (from samcavallieri/weblogic_project_automation, license: gpl-3.0)\n\n# encoding:UTF-8\n\nimport sys\nimport...
[ { "role": "user", "content": "Write Python code that implements test_formatparagraph.py from vikatory/kbengine (path: kbe/src/lib/python/Lib/idlelib/idle_test/test_formatparagraph.py)." }, { "role": "assistant", "content": "# kbe/src/lib/python/Lib/idlelib/idle_test/test_formatparagraph.py (from...
[ { "role": "user", "content": "Write Python code that implements cp863.py from vikatory/kbengine (path: kbe/src/lib/python/Lib/encodings/cp863.py)." }, { "role": "assistant", "content": "# kbe/src/lib/python/Lib/encodings/cp863.py (from vikatory/kbengine, license: lgpl-3.0)\n\n\"\"\" Python Chara...
[ { "role": "user", "content": "Write Python code that implements baidu (VJ Washington's conflicted copy 2017-08-29).py from vjmac15/Lyilis (path: lib/youtube_dl/extractor/baidu (VJ Washington's conflicted copy 2017-08-29).py)." }, { "role": "assistant", "content": "# lib/youtube_dl/extractor/baid...
[ { "role": "user", "content": "Write Python code that implements views.py from Solinea/horizon (path: openstack_dashboard/dashboards/admin/images/views.py)." }, { "role": "assistant", "content": "# openstack_dashboard/dashboards/admin/images/views.py (from Solinea/horizon, license: apache-2.0)\n\...
[ { "role": "user", "content": "Write Python code that implements account_move_line_reconcile_select.py from luiseduardohdbackup/odoo (path: addons/account/wizard/account_move_line_reconcile_select.py)." }, { "role": "assistant", "content": "# addons/account/wizard/account_move_line_reconcile_sele...
[ { "role": "user", "content": "Write Python code that implements __init__.py from SDX2000/scons (path: engine/SCons/compat/__init__.py)." }, { "role": "assistant", "content": "# engine/SCons/compat/__init__.py (from SDX2000/scons, license: mit)\n\n#\n# Copyright (c) 2001, 2002, 2003, 2004, 2005, ...
[ { "role": "user", "content": "Write Python code that implements Shader.py from ruschelp/cortex-vfx (path: test/IECore/Shader.py)." }, { "role": "assistant", "content": "# test/IECore/Shader.py (from ruschelp/cortex-vfx, license: bsd-3-clause)\n\n##################################################...
[ { "role": "user", "content": "Write Python code that implements warehouse.py from gangadharkadam/smrterp (path: erpnext/stock/doctype/warehouse/warehouse.py)." }, { "role": "assistant", "content": "# erpnext/stock/doctype/warehouse/warehouse.py (from gangadharkadam/smrterp, license: agpl-3.0)\n\...
[ { "role": "user", "content": "Write Python code that implements builder.py from ajose01/rethinkdb (path: scripts/VirtuaBuild/builder.py)." }, { "role": "assistant", "content": "# scripts/VirtuaBuild/builder.py (from ajose01/rethinkdb, license: agpl-3.0)\n\n#!/usr/bin/env python\n# Copyright 2010...
[ { "role": "user", "content": "Write Python code that implements target_stm32f103rc.py from c1728p9/pyOCD (path: pyOCD/target/target_stm32f103rc.py)." }, { "role": "assistant", "content": "# pyOCD/target/target_stm32f103rc.py (from c1728p9/pyOCD, license: apache-2.0)\n\n\"\"\"\n mbed CMSIS-DAP de...
[ { "role": "user", "content": "Write Python code that implements lock_tests.py from technologiescollege/s2a_fr (path: s2a/Python/Lib/test/lock_tests.py)." }, { "role": "assistant", "content": "# s2a/Python/Lib/test/lock_tests.py (from technologiescollege/s2a_fr, license: gpl-3.0)\n\n\"\"\"\nVario...
[ { "role": "user", "content": "Write Python code that implements test_timesince.py from krishna-pandey-git/django (path: tests/template_tests/filter_tests/test_timesince.py)." }, { "role": "assistant", "content": "# tests/template_tests/filter_tests/test_timesince.py (from krishna-pandey-git/djan...
[ { "role": "user", "content": "Write Python code that implements plot_decoding_csp_timefreq.py from mne-tools/mne-tools.github.io (path: 0.20/_downloads/76822bb92a8465181ec2a7ee96ca8cf4/plot_decoding_csp_timefreq.py)." }, { "role": "assistant", "content": "# 0.20/_downloads/76822bb92a8465181ec2a7...
[ { "role": "user", "content": "Write Python code that implements provider.py from pennersr/django-allauth (path: allauth/socialaccount/providers/orcid/provider.py)." }, { "role": "assistant", "content": "# allauth/socialaccount/providers/orcid/provider.py (from pennersr/django-allauth, license: m...
[ { "role": "user", "content": "Write Python code that implements views.py from binarydud/verse (path: verse/views.py)." }, { "role": "assistant", "content": "# verse/views.py (from binarydud/verse, license: apache-2.0)\n\nimport json\nimport re\nimport yaml\nimport base64\nimport velruse\nimport ...
[ { "role": "user", "content": "Write Python code that implements basehook.py from d40223223/2015cdbg6team0622 (path: static/Brython3.1.1-20150328-091302/Lib/importlib/basehook.py)." }, { "role": "assistant", "content": "# static/Brython3.1.1-20150328-091302/Lib/importlib/basehook.py (from d402232...
[ { "role": "user", "content": "Write Python code that implements composite_optimizer.py from fx2003/tensorflow-study (path: TensorFlow实战/models/syntaxnet/dragnn/python/composite_optimizer.py)." }, { "role": "assistant", "content": "# TensorFlow实战/models/syntaxnet/dragnn/python/composite_optimizer...
[ { "role": "user", "content": "Write Python code that implements __openerp__.py from dalegregory/odoo (path: addons/hr_timesheet_invoice/__openerp__.py)." }, { "role": "assistant", "content": "# addons/hr_timesheet_invoice/__openerp__.py (from dalegregory/odoo, license: agpl-3.0)\n\n# -*- coding:...
[ { "role": "user", "content": "Write Python code that implements jinja_test.py from stephane-martin/salt-debian-packaging (path: salt-2016.3.2/tests/unit/templates/jinja_test.py)." }, { "role": "assistant", "content": "# salt-2016.3.2/tests/unit/templates/jinja_test.py (from stephane-martin/salt-...
[ { "role": "user", "content": "Write Python code that implements urls.py from goksie/newfies-dialer (path: newfies/survey/urls.py)." }, { "role": "assistant", "content": "# newfies/survey/urls.py (from goksie/newfies-dialer, license: mpl-2.0)\n\n#\n# Newfies-Dialer License\n# http://www.newfies-d...
[ { "role": "user", "content": "Write Python code that implements exceptions.py from GyrosOfWar/servo (path: tests/wpt/css-tests/tools/webdriver/webdriver/exceptions.py)." }, { "role": "assistant", "content": "# tests/wpt/css-tests/tools/webdriver/webdriver/exceptions.py (from GyrosOfWar/servo, li...
[ { "role": "user", "content": "Write Python code that implements detail.py from mshafiq9/django (path: django/views/generic/detail.py)." }, { "role": "assistant", "content": "# django/views/generic/detail.py (from mshafiq9/django, license: bsd-3-clause)\n\nfrom __future__ import unicode_literals\...
[ { "role": "user", "content": "Write Python code that implements __init__.py from takeflight/wagtailmodelchooser (path: wagtailmodelchooser/__init__.py)." }, { "role": "assistant", "content": "# wagtailmodelchooser/__init__.py (from takeflight/wagtailmodelchooser, license: bsd-2-clause)\n\nfrom ....
[ { "role": "user", "content": "Write Python code that implements flash_file_naming.py from hsuchie4/TACTIC (path: src/pyasm/deprecated/flash/flash_file_naming.py)." }, { "role": "assistant", "content": "# src/pyasm/deprecated/flash/flash_file_naming.py (from hsuchie4/TACTIC, license: epl-1.0)\n\n...
[ { "role": "user", "content": "Write Python code that implements unix.py from dparlevliet/zelenka-report-storage (path: server-local/twisted/internet/unix.py)." }, { "role": "assistant", "content": "# server-local/twisted/internet/unix.py (from dparlevliet/zelenka-report-storage, license: lgpl-3....
[ { "role": "user", "content": "Write Python code that implements DSA.py from yongshengwang/hue (path: desktop/core/ext-py/pycrypto-2.6.1/build/lib.linux-x86_64-2.7/Crypto/PublicKey/DSA.py)." }, { "role": "assistant", "content": "# desktop/core/ext-py/pycrypto-2.6.1/build/lib.linux-x86_64-2.7/Cryp...
[ { "role": "user", "content": "Write Python code that implements setup.py from afandria/sky_engine (path: build/android/pylib/host_driven/setup.py)." }, { "role": "assistant", "content": "# build/android/pylib/host_driven/setup.py (from afandria/sky_engine, license: bsd-3-clause)\n\n# Copyright 2...
[ { "role": "user", "content": "Write Python code that implements pipeline_bamstats.py from CGATOxford/CGATPipelines (path: CGATPipelines/pipeline_bamstats.py)." }, { "role": "assistant", "content": "# CGATPipelines/pipeline_bamstats.py (from CGATOxford/CGATPipelines, license: mit)\n\n\"\"\"\n====...
[ { "role": "user", "content": "Write Python code that implements dom.py from FlaPer87/qpid-proton (path: proton-c/mllib/dom.py)." }, { "role": "assistant", "content": "# proton-c/mllib/dom.py (from FlaPer87/qpid-proton, license: apache-2.0)\n\n#\n# Licensed to the Apache Software Foundation (ASF)...
[ { "role": "user", "content": "Write Python code that implements myq.py from happyleavesaoc/home-assistant (path: homeassistant/components/cover/myq.py)." }, { "role": "assistant", "content": "# homeassistant/components/cover/myq.py (from happyleavesaoc/home-assistant, license: apache-2.0)\n\n\"\...
[ { "role": "user", "content": "Write Python code that implements key_utils.py from destijl/grr (path: grr/lib/key_utils.py)." }, { "role": "assistant", "content": "# grr/lib/key_utils.py (from destijl/grr, license: apache-2.0)\n\n#!/usr/bin/env python\n\"\"\"This file abstracts the loading of the...
[ { "role": "user", "content": "Write Python code that implements symbols.py from bbrezillon/linux-sunxi (path: scripts/gdb/linux/symbols.py)." }, { "role": "assistant", "content": "# scripts/gdb/linux/symbols.py (from bbrezillon/linux-sunxi, license: gpl-2.0)\n\n#\n# gdb helper commands and funct...
[ { "role": "user", "content": "Write Python code that implements command.py from dharmabumstead/ansible (path: lib/ansible/plugins/action/command.py)." }, { "role": "assistant", "content": "# lib/ansible/plugins/action/command.py (from dharmabumstead/ansible, license: gpl-3.0)\n\n# Copyright: (c)...
[ { "role": "user", "content": "Write Python code that implements metadata.py from TESScience/httm (path: httm/transformations/metadata.py)." }, { "role": "assistant", "content": "# httm/transformations/metadata.py (from TESScience/httm, license: gpl-3.0)\n\n# HTTM: A transformation library for RA...
[ { "role": "user", "content": "Write Python code that implements sap_client.py from aguedes/bluez (path: test/sap_client.py)." }, { "role": "assistant", "content": "# test/sap_client.py (from aguedes/bluez, license: gpl-2.0)\n\n\"\"\" Copyright (C) 2010-2011 ST-Ericsson SA \"\"\"\n\n\"\"\" Author...
[ { "role": "user", "content": "Write Python code that implements webpack.py from mvidalgarcia/indico (path: indico/core/webpack.py)." }, { "role": "assistant", "content": "# indico/core/webpack.py (from mvidalgarcia/indico, license: mit)\n\n# This file is part of Indico.\n# Copyright (C) 2002 - 2...
[ { "role": "user", "content": "Write Python code that implements static.py from seanwestfall/django (path: django/views/static.py)." }, { "role": "assistant", "content": "# django/views/static.py (from seanwestfall/django, license: bsd-3-clause)\n\n\"\"\"\nViews and functions for serving static f...
[ { "role": "user", "content": "Write Python code that implements tclib_unittest.py from lhopps/grit-i18n (path: grit/tclib_unittest.py)." }, { "role": "assistant", "content": "# grit/tclib_unittest.py (from lhopps/grit-i18n, license: bsd-2-clause)\n\n#!/usr/bin/env python\n# Copyright (c) 2012 Th...
[ { "role": "user", "content": "Write Python code that implements InfoContainer.py from dionbosschieter/NetworkMonitor (path: src/Client/InfoContainer.py)." }, { "role": "assistant", "content": "# src/Client/InfoContainer.py (from dionbosschieter/NetworkMonitor, license: mit)\n\nimport terminal\ni...
[ { "role": "user", "content": "Write Python code that implements nodeserver.py from eriol/circuits (path: examples/node/nodeserver.py)." }, { "role": "assistant", "content": "# examples/node/nodeserver.py (from eriol/circuits, license: mit)\n\n#!/usr/bin/env python\n\n\"\"\"Node Server Example\n\...
[ { "role": "user", "content": "Write Python code that implements mac.py from klickagent/phantomjs (path: src/qt/qtwebkit/Tools/Scripts/webkitpy/port/mac.py)." }, { "role": "assistant", "content": "# src/qt/qtwebkit/Tools/Scripts/webkitpy/port/mac.py (from klickagent/phantomjs, license: bsd-3-clau...
[ { "role": "user", "content": "Write Python code that implements build_server.py from krieger-od/nwjs_chromium.src (path: chrome/common/extensions/docs/server2/build_server.py)." }, { "role": "assistant", "content": "# chrome/common/extensions/docs/server2/build_server.py (from krieger-od/nwjs_ch...
[ { "role": "user", "content": "Write Python code that implements __init__.py from fossoult/odoo (path: addons/l10n_fr/__init__.py)." }, { "role": "assistant", "content": "# addons/l10n_fr/__init__.py (from fossoult/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n#############################...
[ { "role": "user", "content": "Write Python code that implements RMSE_MAPS_INGO.py from bijanfallah/OI_CCLM (path: src/RMSE_MAPS_INGO.py)." }, { "role": "assistant", "content": "# src/RMSE_MAPS_INGO.py (from bijanfallah/OI_CCLM, license: mit)\n\n# Program to show the maps of RMSE averaged over ti...
[ { "role": "user", "content": "Write Python code that implements appengine_config.py from steven-hadfield/dpxdt (path: deployment/appengine/appengine_config.py)." }, { "role": "assistant", "content": "# deployment/appengine/appengine_config.py (from steven-hadfield/dpxdt, license: apache-2.0)\n\n...
[ { "role": "user", "content": "Write Python code that implements project_wise_stock_tracking.py from gangadharkadam/contributionerp (path: erpnext/projects/report/project_wise_stock_tracking/project_wise_stock_tracking.py)." }, { "role": "assistant", "content": "# erpnext/projects/report/project_...
[ { "role": "user", "content": "Write Python code that implements __init__.py from imsparsh/python-for-android (path: python3-alpha/extra_modules/gdata/books/__init__.py)." }, { "role": "assistant", "content": "# python3-alpha/extra_modules/gdata/books/__init__.py (from imsparsh/python-for-android...
[ { "role": "user", "content": "Write Python code that implements models.py from jjmleiro/hue (path: desktop/core/ext-py/Django-1.6.10/tests/save_delete_hooks/models.py)." }, { "role": "assistant", "content": "# desktop/core/ext-py/Django-1.6.10/tests/save_delete_hooks/models.py (from jjmleiro/hue...
[ { "role": "user", "content": "Write Python code that implements test_templates.py from mcardillo55/django (path: tests/check_framework/test_templates.py)." }, { "role": "assistant", "content": "# tests/check_framework/test_templates.py (from mcardillo55/django, license: bsd-3-clause)\n\nfrom cop...
[ { "role": "user", "content": "Write Python code that implements views.py from kasioumis/invenio (path: invenio/modules/documentation/views.py)." }, { "role": "assistant", "content": "# invenio/modules/documentation/views.py (from kasioumis/invenio, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n#...
[ { "role": "user", "content": "Write Python code that implements concatenate_module_scripts.py from crosswalk-project/blink-crosswalk-efl (path: Source/devtools/scripts/concatenate_module_scripts.py)." }, { "role": "assistant", "content": "# Source/devtools/scripts/concatenate_module_scripts.py (...
[ { "role": "user", "content": "Write Python code that implements pelican_mathjax_markdown_extension.py from 40323155/2016springcd_aG6 (path: static/plugin/render_math/pelican_mathjax_markdown_extension.py)." }, { "role": "assistant", "content": "# static/plugin/render_math/pelican_mathjax_markdow...
[ { "role": "user", "content": "Write Python code that implements __init__.py from aman-iitj/scipy (path: scipy/ndimage/__init__.py)." }, { "role": "assistant", "content": "# scipy/ndimage/__init__.py (from aman-iitj/scipy, license: bsd-3-clause)\n\n\"\"\"\n========================================...
[ { "role": "user", "content": "Write Python code that implements guess_weak_episodes_rexps.py from JackDandy/SickGear (path: lib/guessit/transfo/guess_weak_episodes_rexps.py)." }, { "role": "assistant", "content": "# lib/guessit/transfo/guess_weak_episodes_rexps.py (from JackDandy/SickGear, licen...
[ { "role": "user", "content": "Write Python code that implements validationPlots_test_M113.py from hsu/chrono (path: src/demos/trackVehicle/validationPlots_test_M113.py)." }, { "role": "assistant", "content": "# src/demos/trackVehicle/validationPlots_test_M113.py (from hsu/chrono, license: bsd-3-...
[ { "role": "user", "content": "Write Python code that implements putstream.py from mrknow/filmkodi (path: plugin.video.fanfilm/resources/lib/resolvers/putstream.py)." }, { "role": "assistant", "content": "# plugin.video.fanfilm/resources/lib/resolvers/putstream.py (from mrknow/filmkodi, license: ...
[ { "role": "user", "content": "Write Python code that implements copy.py from joewashear007/ScrappyDoo (path: copy.py)." }, { "role": "assistant", "content": "# copy.py (from joewashear007/ScrappyDoo, license: mit)\n\nimport os\nimport shutil\nimport zipfile\nimport fnmatch\nimport uuid\n\ndef ma...
[ { "role": "user", "content": "Write Python code that implements resource_manager.py from sasukeh/neutron (path: neutron/api/rpc/callbacks/resource_manager.py)." }, { "role": "assistant", "content": "# neutron/api/rpc/callbacks/resource_manager.py (from sasukeh/neutron, license: apache-2.0)\n\n# ...
[ { "role": "user", "content": "Write Python code that implements moniker.py from listamilton/supermilton.repository (path: script.module.youtube.dl/lib/youtube_dl/extractor/moniker.py)." }, { "role": "assistant", "content": "# script.module.youtube.dl/lib/youtube_dl/extractor/moniker.py (from lis...
[ { "role": "user", "content": "Write Python code that implements createsuperuser.py from gohin/django (path: django/contrib/auth/management/commands/createsuperuser.py)." }, { "role": "assistant", "content": "# django/contrib/auth/management/commands/createsuperuser.py (from gohin/django, license...
[ { "role": "user", "content": "Write Python code that implements samples.py from wwright2/dcim3-angstrom1 (path: sources/openembedded-core/scripts/pybootchartgui/pybootchartgui/samples.py)." }, { "role": "assistant", "content": "# sources/openembedded-core/scripts/pybootchartgui/pybootchartgui/sa...
[ { "role": "user", "content": "Write Python code that implements ofc_manager.py from rickerc/neutron_audit (path: neutron/plugins/nec/ofc_manager.py)." }, { "role": "assistant", "content": "# neutron/plugins/nec/ofc_manager.py (from rickerc/neutron_audit, license: apache-2.0)\n\n# vim: tabstop=4 ...
[ { "role": "user", "content": "Write Python code that implements cxacru-cf.py from vmobi-gogh/android_kernel_samsung_gogh (path: Documentation/networking/cxacru-cf.py)." }, { "role": "assistant", "content": "# Documentation/networking/cxacru-cf.py (from vmobi-gogh/android_kernel_samsung_gogh, lic...
[ { "role": "user", "content": "Write Python code that implements run.py from slockit/DAO (path: tests/scenarios/fuel/run.py)." }, { "role": "assistant", "content": "# tests/scenarios/fuel/run.py (from slockit/DAO, license: lgpl-3.0)\n\nimport random\nfrom utils import constrained_sum_sample_pos, ...
[ { "role": "user", "content": "Write Python code that implements lru.py from tarzan0820/odoo (path: openerp/tools/lru.py)." }, { "role": "assistant", "content": "# openerp/tools/lru.py (from tarzan0820/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n# taken from http://code.activestate.com/r...
[ { "role": "user", "content": "Write Python code that implements 0085_auto_20190619_2023.py from Ircam-Web/mezzanine-organization (path: organization/projects/migrations/0085_auto_20190619_2023.py)." }, { "role": "assistant", "content": "# organization/projects/migrations/0085_auto_20190619_2023....
[ { "role": "user", "content": "Write Python code that implements test_bibauthority.py from PXke/invenio (path: invenio/testsuite/test_bibauthority.py)." }, { "role": "assistant", "content": "# invenio/testsuite/test_bibauthority.py (from PXke/invenio, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\...
[ { "role": "user", "content": "Write Python code that implements report_benchmark_results.py from caseyching/Impala (path: tests/benchmark/report_benchmark_results.py)." }, { "role": "assistant", "content": "# tests/benchmark/report_benchmark_results.py (from caseyching/Impala, license: apache-2....
[ { "role": "user", "content": "Write Python code that implements sensor.py from sdague/home-assistant (path: homeassistant/components/dyson/sensor.py)." }, { "role": "assistant", "content": "# homeassistant/components/dyson/sensor.py (from sdague/home-assistant, license: apache-2.0)\n\n\"\"\"Supp...
[ { "role": "user", "content": "Write Python code that implements qa_digital.py from douggeiger/gnuradio (path: gr-digital/python/digital/qa_digital.py)." }, { "role": "assistant", "content": "# gr-digital/python/digital/qa_digital.py (from douggeiger/gnuradio, license: gpl-3.0)\n\n#!/usr/bin/env ...
[ { "role": "user", "content": "Write Python code that implements extend_block.py from vegitron/django-template-preprocess (path: template_preprocess/test/extend_block.py)." }, { "role": "assistant", "content": "# template_preprocess/test/extend_block.py (from vegitron/django-template-preprocess, ...
[ { "role": "user", "content": "Write Python code that implements main.py from grocsvs/grocsvs (path: src/grocsvs/main.py)." }, { "role": "assistant", "content": "# src/grocsvs/main.py (from grocsvs/grocsvs, license: mit)\n\nfrom __future__ import print_function\n\nimport argparse\nimport collecti...
[ { "role": "user", "content": "Write Python code that implements vertica_facts.py from ColOfAbRiX/ansible (path: lib/ansible/modules/database/vertica/vertica_facts.py)." }, { "role": "assistant", "content": "# lib/ansible/modules/database/vertica/vertica_facts.py (from ColOfAbRiX/ansible, license...
[ { "role": "user", "content": "Write Python code that implements __init__.py from suninsky/ReceiptOCR (path: Python/server/lib/python2.7/site-packages/markupsafe/__init__.py)." }, { "role": "assistant", "content": "# Python/server/lib/python2.7/site-packages/markupsafe/__init__.py (from suninsky/...
[ { "role": "user", "content": "Write Python code that implements views.py from ahmadio/edx-platform (path: lms/djangoapps/mobile_api/social_facebook/groups/views.py)." }, { "role": "assistant", "content": "# lms/djangoapps/mobile_api/social_facebook/groups/views.py (from ahmadio/edx-platform, lic...
[ { "role": "user", "content": "Write Python code that implements uitest_registration_views.py from johnsonc/OTM2 (path: opentreemap/treemap/tests/ui/uitest_registration_views.py)." }, { "role": "assistant", "content": "# opentreemap/treemap/tests/ui/uitest_registration_views.py (from johnsonc/OTM...