messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Write Python code that implements itsdangerous.py from barryHub20/ServerAss2 (path: lib/itsdangerous.py)."
},
{
"role": "assistant",
"content": "# lib/itsdangerous.py (from barryHub20/ServerAss2, license: apache-2.0)\n\n# -*- coding: utf-8 -*-\n\"\"\"\n itsdanger... |
[
{
"role": "user",
"content": "Write Python code that implements bigquery_test.py from felixbb/forseti-security (path: tests/common/gcp_api/bigquery_test.py)."
},
{
"role": "assistant",
"content": "# tests/common/gcp_api/bigquery_test.py (from felixbb/forseti-security, license: apache-2.0)\n\n# C... |
[
{
"role": "user",
"content": "Write Python code that implements setup.py from slohse/ansible (path: setup.py)."
},
{
"role": "assistant",
"content": "# setup.py (from slohse/ansible, license: gpl-3.0)\n\nfrom __future__ import print_function\n\nimport json\nimport os\nimport os.path\nimport re\n... |
[
{
"role": "user",
"content": "Write Python code that implements aws_athena_hook.py from sekikn/incubator-airflow (path: airflow/contrib/hooks/aws_athena_hook.py)."
},
{
"role": "assistant",
"content": "# airflow/contrib/hooks/aws_athena_hook.py (from sekikn/incubator-airflow, license: apache-2.0... |
[
{
"role": "user",
"content": "Write Python code that implements cp866.py from clumsy/intellij-community (path: python/lib/Lib/encodings/cp866.py)."
},
{
"role": "assistant",
"content": "# python/lib/Lib/encodings/cp866.py (from clumsy/intellij-community, license: apache-2.0)\n\n\"\"\" Python Cha... |
[
{
"role": "user",
"content": "Write Python code that implements test_attributes.py from BackupTheBerlios/espressopp (path: contrib/mpi4py/mpi4py-1.3/test/test_attributes.py)."
},
{
"role": "assistant",
"content": "# contrib/mpi4py/mpi4py-1.3/test/test_attributes.py (from BackupTheBerlios/espress... |
[
{
"role": "user",
"content": "Write Python code that implements numbers.py from Simran-B/arangodb (path: 3rdParty/V8-4.3.61/third_party/python_26/Lib/numbers.py)."
},
{
"role": "assistant",
"content": "# 3rdParty/V8-4.3.61/third_party/python_26/Lib/numbers.py (from Simran-B/arangodb, license: ap... |
[
{
"role": "user",
"content": "Write Python code that implements MsgTypes.py from mgracer48/panda3d (path: direct/src/distributed/MsgTypes.py)."
},
{
"role": "assistant",
"content": "# direct/src/distributed/MsgTypes.py (from mgracer48/panda3d, license: bsd-3-clause)\n\n\"\"\"MsgTypes module: con... |
[
{
"role": "user",
"content": "Write Python code that implements multinomial_test.py from Bulochkin/tensorflow_pack (path: tensorflow/python/kernel_tests/distributions/multinomial_test.py)."
},
{
"role": "assistant",
"content": "# tensorflow/python/kernel_tests/distributions/multinomial_test.py (... |
[
{
"role": "user",
"content": "Write Python code that implements gnu.py from sebmarchand/syzygy (path: third_party/numpy/files/numpy/distutils/fcompiler/gnu.py)."
},
{
"role": "assistant",
"content": "# third_party/numpy/files/numpy/distutils/fcompiler/gnu.py (from sebmarchand/syzygy, license: ap... |
[
{
"role": "user",
"content": "Write Python code that implements faster_rcnn_inception_resnet_v2_feature_extractor.py from KirtoXX/Security_Camera (path: ssd_mobilenet/object_detection/models/faster_rcnn_inception_resnet_v2_feature_extractor.py)."
},
{
"role": "assistant",
"content": "# ssd_mobil... |
[
{
"role": "user",
"content": "Write Python code that implements test_fit_to_pages01.py from jkyeung/XlsxWriter (path: xlsxwriter/test/comparison/test_fit_to_pages01.py)."
},
{
"role": "assistant",
"content": "# xlsxwriter/test/comparison/test_fit_to_pages01.py (from jkyeung/XlsxWriter, license: ... |
[
{
"role": "user",
"content": "Write Python code that implements extract.py from est31/godot (path: tools/translations/extract.py)."
},
{
"role": "assistant",
"content": "# tools/translations/extract.py (from est31/godot, license: mit)\n\n#!/bin/python\n\nimport fnmatch\nimport os\nimport shutil\... |
[
{
"role": "user",
"content": "Write Python code that implements conf.py from kerrpy/kerrpy (path: docs/source/conf.py)."
},
{
"role": "assistant",
"content": "# docs/source/conf.py (from kerrpy/kerrpy, license: gpl-3.0)\n\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# kerrpy documentatio... |
[
{
"role": "user",
"content": "Write Python code that implements exceptions.py from crazcalm/AngelHack_python34 (path: myenv/Lib/site-packages/pip/exceptions.py)."
},
{
"role": "assistant",
"content": "# myenv/Lib/site-packages/pip/exceptions.py (from crazcalm/AngelHack_python34, license: mit)\n\... |
[
{
"role": "user",
"content": "Write Python code that implements hstore.py from feroda/django (path: django/contrib/postgres/fields/hstore.py)."
},
{
"role": "assistant",
"content": "# django/contrib/postgres/fields/hstore.py (from feroda/django, license: bsd-3-clause)\n\nimport json\n\nfrom djan... |
[
{
"role": "user",
"content": "Write Python code that implements cache.py from pratikmallya/hue (path: desktop/core/ext-py/Django-1.6.10/django/views/decorators/cache.py)."
},
{
"role": "assistant",
"content": "# desktop/core/ext-py/Django-1.6.10/django/views/decorators/cache.py (from pratikmally... |
[
{
"role": "user",
"content": "Write Python code that implements pipeline_test.py from sf-wind/caffe2 (path: caffe2/python/pipeline_test.py)."
},
{
"role": "assistant",
"content": "# caffe2/python/pipeline_test.py (from sf-wind/caffe2, license: apache-2.0)\n\n# Copyright (c) 2016-present, Faceboo... |
[
{
"role": "user",
"content": "Write Python code that implements save_depth.py from tody411/ImageViewerFramework (path: ivf/cmds/save_depth.py)."
},
{
"role": "assistant",
"content": "# ivf/cmds/save_depth.py (from tody411/ImageViewerFramework, license: mit)\n\n# -*- coding: utf-8 -*-\n## @packag... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from David-Amaro/bank-payment (path: account_payment_blocking/__init__.py)."
},
{
"role": "assistant",
"content": "# account_payment_blocking/__init__.py (from David-Amaro/bank-payment, license: agpl-3.0)\n\n# -*- encodi... |
[
{
"role": "user",
"content": "Write Python code that implements interpreter.py from vschs007/buck (path: third-party/py/pex/pex/interpreter.py)."
},
{
"role": "assistant",
"content": "# third-party/py/pex/pex/interpreter.py (from vschs007/buck, license: apache-2.0)\n\n# Copyright 2014 Pants proj... |
[
{
"role": "user",
"content": "Write Python code that implements gethash_timer.py from AOKP/external_chromium_org (path: tools/python/google/gethash_timer.py)."
},
{
"role": "assistant",
"content": "# tools/python/google/gethash_timer.py (from AOKP/external_chromium_org, license: bsd-3-clause)\n\... |
[
{
"role": "user",
"content": "Write Python code that implements isocurve.py from srinathv/vispy (path: vispy/visuals/isocurve.py)."
},
{
"role": "assistant",
"content": "# vispy/visuals/isocurve.py (from srinathv/vispy, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vis... |
[
{
"role": "user",
"content": "Write Python code that implements SagaAlgorithmsTest.py from jef-n/QGIS (path: python/plugins/processing/tests/SagaAlgorithmsTest.py)."
},
{
"role": "assistant",
"content": "# python/plugins/processing/tests/SagaAlgorithmsTest.py (from jef-n/QGIS, license: gpl-2.0)\... |
[
{
"role": "user",
"content": "Write Python code that implements strings.py from cbare/Etudes (path: python/strings.py)."
},
{
"role": "assistant",
"content": "# python/strings.py (from cbare/Etudes, license: apache-2.0)\n\n\"\"\"\nString algorithms\n\"\"\"\n\ndef balanced_parens(s: str) -> bool:... |
[
{
"role": "user",
"content": "Write Python code that implements eog.py from lorenzo-desantis/mne-python (path: mne/preprocessing/eog.py)."
},
{
"role": "assistant",
"content": "# mne/preprocessing/eog.py (from lorenzo-desantis/mne-python, license: bsd-3-clause)\n\n# Authors: Alexandre Gramfort <... |
[
{
"role": "user",
"content": "Write Python code that implements launcher.py from ttrifonov/EventBrain (path: src/eventbrain/bin/launcher.py)."
},
{
"role": "assistant",
"content": "# src/eventbrain/bin/launcher.py (from ttrifonov/EventBrain, license: apache-2.0)\n\n#!/usr/bin/env python\n# file:... |
[
{
"role": "user",
"content": "Write Python code that implements exponential_test.py from dhalleine/tensorflow (path: tensorflow/contrib/distributions/python/kernel_tests/exponential_test.py)."
},
{
"role": "assistant",
"content": "# tensorflow/contrib/distributions/python/kernel_tests/exponentia... |
[
{
"role": "user",
"content": "Write Python code that implements test.py from BraveSirRobbo/steam-scraper (path: test.py)."
},
{
"role": "assistant",
"content": "# test.py (from BraveSirRobbo/steam-scraper, license: apache-2.0)\n\nimport unittest\nfrom bs4 import BeautifulSoup\nimport re\n\ndef j... |
[
{
"role": "user",
"content": "Write Python code that implements test_bet.py from felipeAraujo/Bet-Calculator (path: test_bet.py)."
},
{
"role": "assistant",
"content": "# test_bet.py (from felipeAraujo/Bet-Calculator, license: mit)\n\nimport unittest\nfrom bet_calculator.bet_calculator import Be... |
[
{
"role": "user",
"content": "Write Python code that implements test_templating.py from zoyanhui/flask (path: tests/test_templating.py)."
},
{
"role": "assistant",
"content": "# tests/test_templating.py (from zoyanhui/flask, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n\"\"\"\n tests.te... |
[
{
"role": "user",
"content": "Write Python code that implements test_dynamics.py from eljost/pysisyphus (path: deprecated/tests/test_dynamics/test_dynamics.py)."
},
{
"role": "assistant",
"content": "# deprecated/tests/test_dynamics/test_dynamics.py (from eljost/pysisyphus, license: gpl-3.0)\n\n... |
[
{
"role": "user",
"content": "Write Python code that implements euler.py from yashsharan/sympy (path: sympy/calculus/euler.py)."
},
{
"role": "assistant",
"content": "# sympy/calculus/euler.py (from yashsharan/sympy, license: bsd-3-clause)\n\n\"\"\"\nThis module implements a method to find\nEule... |
[
{
"role": "user",
"content": "Write Python code that implements account_test_report.py from Bachaco-ve/odoo (path: addons/account_test/report/account_test_report.py)."
},
{
"role": "assistant",
"content": "# addons/account_test/report/account_test_report.py (from Bachaco-ve/odoo, license: agpl-3... |
[
{
"role": "user",
"content": "Write Python code that implements imagenet_utils.py from adit-chandra/tensorflow (path: tensorflow/python/keras/applications/imagenet_utils.py)."
},
{
"role": "assistant",
"content": "# tensorflow/python/keras/applications/imagenet_utils.py (from adit-chandra/tensor... |
[
{
"role": "user",
"content": "Write Python code that implements dirac-wms-job-attributes.py from fibbo/DIRAC (path: Interfaces/scripts/dirac-wms-job-attributes.py)."
},
{
"role": "assistant",
"content": "# Interfaces/scripts/dirac-wms-job-attributes.py (from fibbo/DIRAC, license: gpl-3.0)\n\n#!/... |
[
{
"role": "user",
"content": "Write Python code that implements simple.py from nikhil93uf/Qemu (path: scripts/tracetool/backend/simple.py)."
},
{
"role": "assistant",
"content": "# scripts/tracetool/backend/simple.py (from nikhil93uf/Qemu, license: gpl-2.0)\n\n#!/usr/bin/env python\n# -*- coding... |
[
{
"role": "user",
"content": "Write Python code that implements RPNetBiz.py from tod31/pyload (path: module/plugins/hoster/RPNetBiz.py)."
},
{
"role": "assistant",
"content": "# module/plugins/hoster/RPNetBiz.py (from tod31/pyload, license: gpl-3.0)\n\n# -*- coding: utf-8 -*-\n\nimport re\n\nfro... |
[
{
"role": "user",
"content": "Write Python code that implements test_io.py from jeffery-do/Vizdoombot (path: doom/lib/python3.5/site-packages/theano/tensor/tests/test_io.py)."
},
{
"role": "assistant",
"content": "# doom/lib/python3.5/site-packages/theano/tensor/tests/test_io.py (from jeffery-do... |
[
{
"role": "user",
"content": "Write Python code that implements _ast_util.py from Hellowlol/HTPC-Manager (path: libs/mako/_ast_util.py)."
},
{
"role": "assistant",
"content": "# libs/mako/_ast_util.py (from Hellowlol/HTPC-Manager, license: mit)\n\n# mako/_ast_util.py\n# Copyright (C) 2006-2015 t... |
[
{
"role": "user",
"content": "Write Python code that implements test_int.py from 40223117cda/cda (path: static/Brython3.1.1-20150328-091302/Lib/test/test_int.py)."
},
{
"role": "assistant",
"content": "# static/Brython3.1.1-20150328-091302/Lib/test/test_int.py (from 40223117cda/cda, license: gpl... |
[
{
"role": "user",
"content": "Write Python code that implements hash.py from mzdaniel/oh-mainline (path: vendor/packages/python-otp/otp/hash.py)."
},
{
"role": "assistant",
"content": "# vendor/packages/python-otp/otp/hash.py (from mzdaniel/oh-mainline, license: agpl-3.0)\n\nimport struct\n\ncla... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from rdio/sentry (path: tests/sentry/udp/tests.py)."
},
{
"role": "assistant",
"content": "# tests/sentry/udp/tests.py (from rdio/sentry, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_... |
[
{
"role": "user",
"content": "Write Python code that implements test_http_parser.py from hoonkim/Lesser (path: parsers/tests/test_http_parser.py)."
},
{
"role": "assistant",
"content": "# parsers/tests/test_http_parser.py (from hoonkim/Lesser, license: mit)\n\nfrom unittest import TestCase\nfrom... |
[
{
"role": "user",
"content": "Write Python code that implements manage.py from kashev/kashev.rocks (path: manage.py)."
},
{
"role": "assistant",
"content": "# manage.py (from kashev/kashev.rocks, license: mit)\n\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n# kashev.rocks\n# Kashev Dalmia - ... |
[
{
"role": "user",
"content": "Write Python code that implements password_reset.html.py from brayden2544/Mystuff-final (path: account/cached_templates/templates/password_reset.html.py)."
},
{
"role": "assistant",
"content": "# account/cached_templates/templates/password_reset.html.py (from brayde... |
[
{
"role": "user",
"content": "Write Python code that implements models.py from nathanial/lettuce (path: tests/integration/lib/Django-1.3/tests/modeltests/model_inheritance/models.py)."
},
{
"role": "assistant",
"content": "# tests/integration/lib/Django-1.3/tests/modeltests/model_inheritance/mod... |
[
{
"role": "user",
"content": "Write Python code that implements eta3_spline_path.py from AtsushiSakai/PythonRobotics (path: PathPlanning/Eta3SplinePath/eta3_spline_path.py)."
},
{
"role": "assistant",
"content": "# PathPlanning/Eta3SplinePath/eta3_spline_path.py (from AtsushiSakai/PythonRobotics... |
[
{
"role": "user",
"content": "Write Python code that implements conf.py from steenzout/python-barcode (path: docs/conf.py)."
},
{
"role": "assistant",
"content": "# docs/conf.py (from steenzout/python-barcode, license: mit)\n\n# -*- coding: utf-8 -*-\n#\n# Copyright 2010-2013, Thorsten Weimann; ... |
[
{
"role": "user",
"content": "Write Python code that implements packer.py from SpredfastLegacy/JsBeautify (path: jsbeautifier/unpackers/packer.py)."
},
{
"role": "assistant",
"content": "# jsbeautifier/unpackers/packer.py (from SpredfastLegacy/JsBeautify, license: bsd-3-clause)\n\n#\n# Unpacker ... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from midma101/AndIWasJustGoingToBed (path: .venv/lib/python2.7/site-packages/markupsafe/__init__.py)."
},
{
"role": "assistant",
"content": "# .venv/lib/python2.7/site-packages/markupsafe/__init__.py (from midma101/AndIW... |
[
{
"role": "user",
"content": "Write Python code that implements helloform.py from denfromufa/pythonnet (path: demo/helloform.py)."
},
{
"role": "assistant",
"content": "# demo/helloform.py (from denfromufa/pythonnet, license: mit)\n\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport clr\n... |
[
{
"role": "user",
"content": "Write Python code that implements vcard2xml.py from SpOOnman/claws (path: tools/vcard2xml.py)."
},
{
"role": "assistant",
"content": "# tools/vcard2xml.py (from SpOOnman/claws, license: gpl-3.0)\n\n#!/usr/bin/env python\n# -*- coding: latin-1 -*-\n\"\"\"\n\nCopyrigh... |
[
{
"role": "user",
"content": "Write Python code that implements forms.py from overtherain/scriptfile (path: software/googleAppEngine/lib/django_1_4/django/contrib/localflavor/za/forms.py)."
},
{
"role": "assistant",
"content": "# software/googleAppEngine/lib/django_1_4/django/contrib/localflavor... |
[
{
"role": "user",
"content": "Write Python code that implements fetch_transform_save_app.py from linearregression/socorro (path: socorro/app/fetch_transform_save_app.py)."
},
{
"role": "assistant",
"content": "# socorro/app/fetch_transform_save_app.py (from linearregression/socorro, license: mpl... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from Weihonghao/ECM (path: Vpy34/lib/python3.5/site-packages/numpy/f2py/__init__.py)."
},
{
"role": "assistant",
"content": "# Vpy34/lib/python3.5/site-packages/numpy/f2py/__init__.py (from Weihonghao/ECM, license: agpl-... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from gomiero/PTVS (path: Python/Product/Pyvot/Pyvot/xl/__init__.py)."
},
{
"role": "assistant",
"content": "# Python/Product/Pyvot/Pyvot/xl/__init__.py (from gomiero/PTVS, license: apache-2.0)\n\n# Copyright (c) Microsof... |
[
{
"role": "user",
"content": "Write Python code that implements account_tax_chart.py from odootr/odoo (path: addons/account/wizard/account_tax_chart.py)."
},
{
"role": "assistant",
"content": "# addons/account/wizard/account_tax_chart.py (from odootr/odoo, license: agpl-3.0)\n\n# -*- coding: utf... |
[
{
"role": "user",
"content": "Write Python code that implements fighterAbility.py from blitzmann/Pyfa (path: eos/saveddata/fighterAbility.py)."
},
{
"role": "assistant",
"content": "# eos/saveddata/fighterAbility.py (from blitzmann/Pyfa, license: gpl-3.0)\n\n# ===================================... |
[
{
"role": "user",
"content": "Write Python code that implements test_inputs.py from davidwaroquiers/pymatgen (path: pymatgen/io/abinit/tests/test_inputs.py)."
},
{
"role": "assistant",
"content": "# pymatgen/io/abinit/tests/test_inputs.py (from davidwaroquiers/pymatgen, license: mit)\n\n# coding... |
[
{
"role": "user",
"content": "Write Python code that implements glide.py from yasoob/youtube-dl-GUI (path: youtube_dl/extractor/glide.py)."
},
{
"role": "assistant",
"content": "# youtube_dl/extractor/glide.py (from yasoob/youtube-dl-GUI, license: mit)\n\n# coding: utf-8\nfrom __future__ import ... |
[
{
"role": "user",
"content": "Write Python code that implements rubeus.py from acshi/osf.io (path: website/util/rubeus.py)."
},
{
"role": "assistant",
"content": "# website/util/rubeus.py (from acshi/osf.io, license: apache-2.0)\n\n# -*- coding: utf-8 -*-\n\"\"\"Contains helper functions for gen... |
[
{
"role": "user",
"content": "Write Python code that implements retrieve_statement.py from daafgo/Server_LRS (path: lrs/util/retrieve_statement.py)."
},
{
"role": "assistant",
"content": "# lrs/util/retrieve_statement.py (from daafgo/Server_LRS, license: apache-2.0)\n\nimport bencode\nimport has... |
[
{
"role": "user",
"content": "Write Python code that implements tvsubtitles.py from RAtechntukan/CouchPotatoServer (path: libs/subliminal/services/tvsubtitles.py)."
},
{
"role": "assistant",
"content": "# libs/subliminal/services/tvsubtitles.py (from RAtechntukan/CouchPotatoServer, license: gpl-... |
[
{
"role": "user",
"content": "Write Python code that implements zip2msi.py from ds-hwang/chromium-crosswalk (path: remoting/tools/zip2msi.py)."
},
{
"role": "assistant",
"content": "# remoting/tools/zip2msi.py (from ds-hwang/chromium-crosswalk, license: bsd-3-clause)\n\n#!/usr/bin/env python\n# ... |
[
{
"role": "user",
"content": "Write Python code that implements pg.py from rolobio/DictORM (path: dictorm/pg.py)."
},
{
"role": "assistant",
"content": "# dictorm/pg.py (from rolobio/DictORM, license: apache-2.0)\n\n\"\"\"\nThis module is used to build queries for Postgresql. You shouldn't real... |
[
{
"role": "user",
"content": "Write Python code that implements xpath.py from megraf/asuswrt-merlin (path: release/src/router/libxml2/python/tests/xpath.py)."
},
{
"role": "assistant",
"content": "# release/src/router/libxml2/python/tests/xpath.py (from megraf/asuswrt-merlin, license: gpl-2.0)\n... |
[
{
"role": "user",
"content": "Write Python code that implements misc_utils.py from mmatyas/skia (path: tools/misc_utils.py)."
},
{
"role": "assistant",
"content": "# tools/misc_utils.py (from mmatyas/skia, license: bsd-3-clause)\n\n# Copyright 2014 Google Inc.\n#\n# Use of this source code is go... |
[
{
"role": "user",
"content": "Write Python code that implements change_checks_to_not_null.py from mbauskar/helpdesk-frappe (path: frappe/patches/v5_2/change_checks_to_not_null.py)."
},
{
"role": "assistant",
"content": "# frappe/patches/v5_2/change_checks_to_not_null.py (from mbauskar/helpdesk-f... |
[
{
"role": "user",
"content": "Write Python code that implements lru_test.py from wiltonlazary/arangodb (path: 3rdParty/V8/V8-5.0.71.39/tools/swarming_client/tests/lru_test.py)."
},
{
"role": "assistant",
"content": "# 3rdParty/V8/V8-5.0.71.39/tools/swarming_client/tests/lru_test.py (from wiltonl... |
[
{
"role": "user",
"content": "Write Python code that implements views.py from kkampardi/Plinth (path: plinth/modules/matrixsynapse/views.py)."
},
{
"role": "assistant",
"content": "# plinth/modules/matrixsynapse/views.py (from kkampardi/Plinth, license: agpl-3.0)\n\n#\n# This file is part of Pli... |
[
{
"role": "user",
"content": "Write Python code that implements profiler.py from ZihengJiang/mxnet (path: python/mxnet/profiler.py)."
},
{
"role": "assistant",
"content": "# python/mxnet/profiler.py (from ZihengJiang/mxnet, license: apache-2.0)\n\n# Licensed to the Apache Software Foundation (AS... |
[
{
"role": "user",
"content": "Write Python code that implements options.py from critiqjo/key-mon (path: src/keymon/options.py)."
},
{
"role": "assistant",
"content": "# src/keymon/options.py (from critiqjo/key-mon, license: apache-2.0)\n\n#!/usr/bin/python\n#\n# Copyright 2010 Google Inc.\n#\n# ... |
[
{
"role": "user",
"content": "Write Python code that implements linalg_grad.py from maciekcc/tensorflow (path: tensorflow/python/ops/linalg_grad.py)."
},
{
"role": "assistant",
"content": "# tensorflow/python/ops/linalg_grad.py (from maciekcc/tensorflow, license: apache-2.0)\n\n# Copyright 2015 ... |
[
{
"role": "user",
"content": "Write Python code that implements test_moves.py from kirkbroadhurst/sudokupy (path: test_moves.py)."
},
{
"role": "assistant",
"content": "# test_moves.py (from kirkbroadhurst/sudokupy, license: mit)\n\nfrom moves import find_possible_moves, find_impossible_moves, r... |
[
{
"role": "user",
"content": "Write Python code that implements cyglog_to_orderfile.py from Fireblend/chromium-crosswalk (path: tools/cygprofile/cyglog_to_orderfile.py)."
},
{
"role": "assistant",
"content": "# tools/cygprofile/cyglog_to_orderfile.py (from Fireblend/chromium-crosswalk, license: ... |
[
{
"role": "user",
"content": "Write Python code that implements test_rel_fn.py from sqlalchemy/sqlalchemy (path: test/orm/test_rel_fn.py)."
},
{
"role": "assistant",
"content": "# test/orm/test_rel_fn.py (from sqlalchemy/sqlalchemy, license: mit)\n\nfrom sqlalchemy import and_\nfrom sqlalchemy i... |
[
{
"role": "user",
"content": "Write Python code that implements keys.py from igor-rangel7l/novoigorrangel.repository (path: plugin.video.SportsDevil/service/asn1crypto/keys.py)."
},
{
"role": "assistant",
"content": "# plugin.video.SportsDevil/service/asn1crypto/keys.py (from igor-rangel7l/novoi... |
[
{
"role": "user",
"content": "Write Python code that implements bazaar.py from bhansa/fireball (path: pyvenv/Lib/site-packages/pip/vcs/bazaar.py)."
},
{
"role": "assistant",
"content": "# pyvenv/Lib/site-packages/pip/vcs/bazaar.py (from bhansa/fireball, license: gpl-3.0)\n\nfrom __future__ impor... |
[
{
"role": "user",
"content": "Write Python code that implements test_flow_func.py from codingjoe/viewflow (path: tests/integration/tests/test_flow_func.py)."
},
{
"role": "assistant",
"content": "# tests/integration/tests/test_flow_func.py (from codingjoe/viewflow, license: agpl-3.0)\n\nfrom dja... |
[
{
"role": "user",
"content": "Write Python code that implements role_include.py from noroutine/ansible (path: lib/ansible/playbook/role_include.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/playbook/role_include.py (from noroutine/ansible, license: gpl-3.0)\n\n#\n# This file is part ... |
[
{
"role": "user",
"content": "Write Python code that implements pgutil.py from hnousiainen/pghoard (path: pghoard/pgutil.py)."
},
{
"role": "assistant",
"content": "# pghoard/pgutil.py (from hnousiainen/pghoard, license: apache-2.0)\n\n# Copied from https://github.com/ohmu/ohmu_common_py ohmu_co... |
[
{
"role": "user",
"content": "Write Python code that implements layout-analyzer.py from vgkholla/ambry (path: ambry-tools/scripts/layout-analyzer.py)."
},
{
"role": "assistant",
"content": "# ambry-tools/scripts/layout-analyzer.py (from vgkholla/ambry, license: apache-2.0)\n\n#!/usr/bin/python2.... |
[
{
"role": "user",
"content": "Write Python code that implements roi_align_python.py from mlperf/training_results_v0.7 (path: Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/tvm/topi/python/topi/testing/roi_align_python.py)."
},
{
"role": "assistant",
"content": "# Fu... |
[
{
"role": "user",
"content": "Write Python code that implements trainer_config.py from zhouxiao-coder/Paddle (path: demo/introduction/trainer_config.py)."
},
{
"role": "assistant",
"content": "# demo/introduction/trainer_config.py (from zhouxiao-coder/Paddle, license: apache-2.0)\n\n# Copyright ... |
[
{
"role": "user",
"content": "Write Python code that implements transformers.py from caesar2164/edx-platform (path: common/djangoapps/track/transformers.py)."
},
{
"role": "assistant",
"content": "# common/djangoapps/track/transformers.py (from caesar2164/edx-platform, license: agpl-3.0)\n\n\"\"... |
[
{
"role": "user",
"content": "Write Python code that implements session.py from Clemson-DPA/dpa-pipe (path: dpa/app/session.py)."
},
{
"role": "assistant",
"content": "# dpa/app/session.py (from Clemson-DPA/dpa-pipe, license: mit)\n\nfrom abc import ABCMeta, abstractmethod, abstractproperty\nimp... |
[
{
"role": "user",
"content": "Write Python code that implements wait.py from h2non/paco (path: paco/wait.py)."
},
{
"role": "assistant",
"content": "# paco/wait.py (from h2non/paco, license: mit)\n\n# -*- coding: utf-8 -*-\nimport asyncio\nfrom .assertions import isiter\nfrom .concurrent import ... |
[
{
"role": "user",
"content": "Write Python code that implements apps.py from BehavioralInsightsTeam/edx-platform (path: lms/djangoapps/grades/apps.py)."
},
{
"role": "assistant",
"content": "# lms/djangoapps/grades/apps.py (from BehavioralInsightsTeam/edx-platform, license: agpl-3.0)\n\n\"\"\"\n... |
[
{
"role": "user",
"content": "Write Python code that implements java_gateway.py from akopich/spark (path: python/pyspark/java_gateway.py)."
},
{
"role": "assistant",
"content": "# python/pyspark/java_gateway.py (from akopich/spark, license: apache-2.0)\n\n#\n# Licensed to the Apache Software Fou... |
[
{
"role": "user",
"content": "Write Python code that implements wjoomlacomponents.py from MatriX-Coder/wsploit (path: modules/wjoomlacomponents.py)."
},
{
"role": "assistant",
"content": "# modules/wjoomlacomponents.py (from MatriX-Coder/wsploit, license: artistic-2.0)\n\n#!/usr/bin/python\n# Ws... |
[
{
"role": "user",
"content": "Write Python code that implements availability_tests.py from anentropic/django-oscar (path: tests/integration/offer/availability_tests.py)."
},
{
"role": "assistant",
"content": "# tests/integration/offer/availability_tests.py (from anentropic/django-oscar, license:... |
[
{
"role": "user",
"content": "Write Python code that implements 20130910232450_53ef72c8a867_remove_old_audit_tab.py from uskudnik/ggrc-core (path: src/ggrc/migrations/versions/20130910232450_53ef72c8a867_remove_old_audit_tab.py)."
},
{
"role": "assistant",
"content": "# src/ggrc/migrations/versi... |
[
{
"role": "user",
"content": "Write Python code that implements xmlifApi.py from ryokochang/Slab-GCS (path: ExtLibs/Mavlink/pymavlink/generator/lib/genxmlif/xmlifApi.py)."
},
{
"role": "assistant",
"content": "# ExtLibs/Mavlink/pymavlink/generator/lib/genxmlif/xmlifApi.py (from ryokochang/Slab-G... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from shaistaansari/django (path: tests/admin_widgets/tests.py)."
},
{
"role": "assistant",
"content": "# tests/admin_widgets/tests.py (from shaistaansari/django, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\nfrom __fut... |
[
{
"role": "user",
"content": "Write Python code that implements api_views.py from stefelisabeth/dplace (path: dplace_app/api_views.py)."
},
{
"role": "assistant",
"content": "# dplace_app/api_views.py (from stefelisabeth/dplace, license: mit)\n\nimport json\nimport re\nimport datetime\nfrom iter... |
[
{
"role": "user",
"content": "Write Python code that implements aparat.py from vjmac15/Lyilis (path: lib/youtube_dl/extractor/aparat.py)."
},
{
"role": "assistant",
"content": "# lib/youtube_dl/extractor/aparat.py (from vjmac15/Lyilis, license: gpl-3.0)\n\n# coding: utf-8\nfrom __future__ import... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from denys-duchier/django (path: tests/file_uploads/tests.py)."
},
{
"role": "assistant",
"content": "# tests/file_uploads/tests.py (from denys-duchier/django, license: bsd-3-clause)\n\nimport base64\nimport hashlib\nimport... |
[
{
"role": "user",
"content": "Write Python code that implements bar_chart.py from onyxfish/agate (path: agate/table/bar_chart.py)."
},
{
"role": "assistant",
"content": "# agate/table/bar_chart.py (from onyxfish/agate, license: mit)\n\n#!/usr/bin/env python\n# pylint: disable=W0212\n\nimport lea... |
[
{
"role": "user",
"content": "Write Python code that implements _setup_util.py from heiscsy/evolutus_ros_src (path: evolutus_filter/build/catkin_generated/installspace/_setup_util.py)."
},
{
"role": "assistant",
"content": "# evolutus_filter/build/catkin_generated/installspace/_setup_util.py (fr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.