messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Write Python code that implements test_mail_gateway.py from mihailignatenko/erp (path: addons/mail/tests/test_mail_gateway.py)."
},
{
"role": "assistant",
"content": "# addons/mail/tests/test_mail_gateway.py (from mihailignatenko/erp, license: agpl-3.0)\n\n# -*- cod... |
[
{
"role": "user",
"content": "Write Python code that implements x097.py from DxCx/nzbToMedia (path: libs/unidecode/x097.py)."
},
{
"role": "assistant",
"content": "# libs/unidecode/x097.py (from DxCx/nzbToMedia, license: gpl-3.0)\n\ndata = (\n'Xu ', # 0x00\n'Ji ', # 0x01\n'Mu ', # 0x02\... |
[
{
"role": "user",
"content": "Write Python code that implements convert_to_south.py from cubicova17/annet (path: venv/lib/python2.7/site-packages/south/management/commands/convert_to_south.py)."
},
{
"role": "assistant",
"content": "# venv/lib/python2.7/site-packages/south/management/commands/co... |
[
{
"role": "user",
"content": "Write Python code that implements template.py from sdague/home-assistant (path: homeassistant/helpers/template.py)."
},
{
"role": "assistant",
"content": "# homeassistant/helpers/template.py (from sdague/home-assistant, license: apache-2.0)\n\n\"\"\"Template helper ... |
[
{
"role": "user",
"content": "Write Python code that implements check_mnemonics.py from vathpela/anaconda (path: tests/glade/check_mnemonics.py)."
},
{
"role": "assistant",
"content": "# tests/glade/check_mnemonics.py (from vathpela/anaconda, license: gpl-2.0)\n\n#\n# Copyright (C) 2015 Red Hat... |
[
{
"role": "user",
"content": "Write Python code that implements setup.py from altaf-ali/luigi (path: setup.py)."
},
{
"role": "assistant",
"content": "# setup.py (from altaf-ali/luigi, license: apache-2.0)\n\n# Copyright (c) 2012 Spotify AB\n#\n# Licensed under the Apache License, Version 2.0 (t... |
[
{
"role": "user",
"content": "Write Python code that implements choicelists.py from lino-framework/xl (path: lino_xl/lib/humanlinks/choicelists.py)."
},
{
"role": "assistant",
"content": "# lino_xl/lib/humanlinks/choicelists.py (from lino-framework/xl, license: bsd-2-clause)\n\n# -*- coding: UTF... |
[
{
"role": "user",
"content": "Write Python code that implements kafka.py from disqus/pgshovel (path: tests/pgshovel/replication/streams/kafka.py)."
},
{
"role": "assistant",
"content": "# tests/pgshovel/replication/streams/kafka.py (from disqus/pgshovel, license: apache-2.0)\n\nfrom __future__ i... |
[
{
"role": "user",
"content": "Write Python code that implements forms.py from neilpelow/wmap-django (path: venv/lib/python3.5/site-packages/django/contrib/flatpages/forms.py)."
},
{
"role": "assistant",
"content": "# venv/lib/python3.5/site-packages/django/contrib/flatpages/forms.py (from neilpe... |
[
{
"role": "user",
"content": "Write Python code that implements tower_job_cancel.py from Inspq/ansible (path: lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_cancel.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_cancel.... |
[
{
"role": "user",
"content": "Write Python code that implements bibindex_engine_stemmer_unit_tests.py from jmacmahon/invenio (path: modules/bibindex/lib/bibindex_engine_stemmer_unit_tests.py)."
},
{
"role": "assistant",
"content": "# modules/bibindex/lib/bibindex_engine_stemmer_unit_tests.py (fr... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from kingmotley/SickRage (path: lib/backports/ssl_match_hostname/__init__.py)."
},
{
"role": "assistant",
"content": "# lib/backports/ssl_match_hostname/__init__.py (from kingmotley/SickRage, license: gpl-3.0)\n\n\"\"\"T... |
[
{
"role": "user",
"content": "Write Python code that implements 300_test_urllib2net.py from mancoast/CPythonPyc_test (path: fail/300_test_urllib2net.py)."
},
{
"role": "assistant",
"content": "# fail/300_test_urllib2net.py (from mancoast/CPythonPyc_test, license: gpl-3.0)\n\n#!/usr/bin/env pytho... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from kalahbrown/HueBigSQL (path: desktop/core/ext-py/Django-1.6.10/tests/requests/tests.py)."
},
{
"role": "assistant",
"content": "# desktop/core/ext-py/Django-1.6.10/tests/requests/tests.py (from kalahbrown/HueBigSQL, lic... |
[
{
"role": "user",
"content": "Write Python code that implements slot_creator.py from jjas0nn/solvem (path: tensorflow/lib/python2.7/site-packages/tensorflow/python/training/slot_creator.py)."
},
{
"role": "assistant",
"content": "# tensorflow/lib/python2.7/site-packages/tensorflow/python/trainin... |
[
{
"role": "user",
"content": "Write Python code that implements RasterCalculator.py from luofei98/qgis (path: python/plugins/processing/algs/saga/RasterCalculator.py)."
},
{
"role": "assistant",
"content": "# python/plugins/processing/algs/saga/RasterCalculator.py (from luofei98/qgis, license: g... |
[
{
"role": "user",
"content": "Write Python code that implements _compat.py from luofei98/qgis (path: python/ext-libs/jinja2/_compat.py)."
},
{
"role": "assistant",
"content": "# python/ext-libs/jinja2/_compat.py (from luofei98/qgis, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n\"\"\"\n jinja... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from bbaltz505/iotkit-libpy (path: iotkitclient/__init__.py)."
},
{
"role": "assistant",
"content": "# iotkitclient/__init__.py (from bbaltz505/iotkit-libpy, license: bsd-3-clause)\n\n# Copyright (c) 2015, Intel Corporat... |
[
{
"role": "user",
"content": "Write Python code that implements filter.py from Tudorvr/metagoofil (path: hachoir_metadata/filter.py)."
},
{
"role": "assistant",
"content": "# hachoir_metadata/filter.py (from Tudorvr/metagoofil, license: gpl-2.0)\n\nfrom hachoir_metadata.timezone import UTC\nfrom... |
[
{
"role": "user",
"content": "Write Python code that implements conf.py from Xiangua/symphony (path: vendor/doctrine/orm/docs/en/conf.py)."
},
{
"role": "assistant",
"content": "# vendor/doctrine/orm/docs/en/conf.py (from Xiangua/symphony, license: mit)\n\n# -*- coding: utf-8 -*-\n#\n# Doctrine ... |
[
{
"role": "user",
"content": "Write Python code that implements exceptions.py from landscapeio/astroid (path: exceptions.py)."
},
{
"role": "assistant",
"content": "# exceptions.py (from landscapeio/astroid, license: gpl-2.0)\n\n# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights rese... |
[
{
"role": "user",
"content": "Write Python code that implements sftp_client.py from rukku/inasafe (path: realtime/sftp_client.py)."
},
{
"role": "assistant",
"content": "# realtime/sftp_client.py (from rukku/inasafe, license: gpl-3.0)\n\n\"\"\"\nInaSAFE Disaster risk assessment tool developed by... |
[
{
"role": "user",
"content": "Write Python code that implements test_custompkmodel.py from Alexander-M-Waldman/local_currency_site (path: lib/python2.7/site-packages/guardian/testapp/tests/test_custompkmodel.py)."
},
{
"role": "assistant",
"content": "# lib/python2.7/site-packages/guardian/testa... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from glogiotatidis/mozillians-new (path: vendor-local/lib/python/dateutil/zoneinfo/__init__.py)."
},
{
"role": "assistant",
"content": "# vendor-local/lib/python/dateutil/zoneinfo/__init__.py (from glogiotatidis/mozillia... |
[
{
"role": "user",
"content": "Write Python code that implements wkhtmltoimage.py from Pavel-Durov/pynetwork (path: pynetwork/wkhtmltoimage.py)."
},
{
"role": "assistant",
"content": "# pynetwork/wkhtmltoimage.py (from Pavel-Durov/pynetwork, license: mit)\n\n\"\"\" Python wrapper for wkhtmltopdf ... |
[
{
"role": "user",
"content": "Write Python code that implements elb_application_lb.py from wilvk/ansible (path: lib/ansible/modules/cloud/amazon/elb_application_lb.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/cloud/amazon/elb_application_lb.py (from wilvk/ansible, license: g... |
[
{
"role": "user",
"content": "Write Python code that implements html5.py from ncdesouza/bookworm (path: env/lib/python2.7/site-packages/wtforms/widgets/html5.py)."
},
{
"role": "assistant",
"content": "# env/lib/python2.7/site-packages/wtforms/widgets/html5.py (from ncdesouza/bookworm, license: ... |
[
{
"role": "user",
"content": "Write Python code that implements Ui_finalize.py from sem-geologist/Qstitch (path: ui/Ui_finalize.py)."
},
{
"role": "assistant",
"content": "# ui/Ui_finalize.py (from sem-geologist/Qstitch, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n\n# Form implementation gener... |
[
{
"role": "user",
"content": "Write Python code that implements jsrouting.py from M3nin0/supreme-broccoli (path: Web/Flask/site_/lib/python3.5/site-packages/werkzeug/contrib/jsrouting.py)."
},
{
"role": "assistant",
"content": "# Web/Flask/site_/lib/python3.5/site-packages/werkzeug/contrib/jsrou... |
[
{
"role": "user",
"content": "Write Python code that implements review_feedback.py from kidaa/aurora (path: build-support/jenkins/review_feedback.py)."
},
{
"role": "assistant",
"content": "# build-support/jenkins/review_feedback.py (from kidaa/aurora, license: apache-2.0)\n\n#!/usr/bin/env pyth... |
[
{
"role": "user",
"content": "Write Python code that implements trunserver.py from andresriancho/trunserver (path: trunserv/management/commands/trunserver.py)."
},
{
"role": "assistant",
"content": "# trunserv/management/commands/trunserver.py (from andresriancho/trunserver, license: mit)\n\nfro... |
[
{
"role": "user",
"content": "Write Python code that implements test_perf_cmode.py from openstack/cinder (path: cinder/tests/unit/volume/drivers/netapp/dataontap/performance/test_perf_cmode.py)."
},
{
"role": "assistant",
"content": "# cinder/tests/unit/volume/drivers/netapp/dataontap/performanc... |
[
{
"role": "user",
"content": "Write Python code that implements models.py from Nepherhotep/django (path: tests/null_fk_ordering/models.py)."
},
{
"role": "assistant",
"content": "# tests/null_fk_ordering/models.py (from Nepherhotep/django, license: bsd-3-clause)\n\n\"\"\"\nRegression tests for p... |
[
{
"role": "user",
"content": "Write Python code that implements method_tests.py from nfletton/django-oscar (path: tests/unit/shipping/method_tests.py)."
},
{
"role": "assistant",
"content": "# tests/unit/shipping/method_tests.py (from nfletton/django-oscar, license: bsd-3-clause)\n\nfrom decimal... |
[
{
"role": "user",
"content": "Write Python code that implements OperationIntegerAdd.py from kayhayen/Nuitka (path: tests/benchmarks/constructs/OperationIntegerAdd.py)."
},
{
"role": "assistant",
"content": "# tests/benchmarks/constructs/OperationIntegerAdd.py (from kayhayen/Nuitka, license: apac... |
[
{
"role": "user",
"content": "Write Python code that implements ws1.py from Saint-Joe/weewx (path: bin/weewx/drivers/ws1.py)."
},
{
"role": "assistant",
"content": "# bin/weewx/drivers/ws1.py (from Saint-Joe/weewx, license: gpl-3.0)\n\n#!/usr/bin/env python\n#\n# Copyright 2014 Matthew Wall\n# S... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from codeworldprodigy/lab4 (path: lib/jinja2/jinja2/testsuite/__init__.py)."
},
{
"role": "assistant",
"content": "# lib/jinja2/jinja2/testsuite/__init__.py (from codeworldprodigy/lab4, license: apache-2.0)\n\n# -*- codi... |
[
{
"role": "user",
"content": "Write Python code that implements urls.py from masschallenge/impact-api (path: web/impact/impact/urls.py)."
},
{
"role": "assistant",
"content": "# web/impact/impact/urls.py (from masschallenge/impact-api, license: mit)\n\n# MIT License\n# Copyright (c) 2017 MassCha... |
[
{
"role": "user",
"content": "Write Python code that implements safe_exec.py from Edraak/edx-platform (path: common/lib/capa/capa/safe_exec/safe_exec.py)."
},
{
"role": "assistant",
"content": "# common/lib/capa/capa/safe_exec/safe_exec.py (from Edraak/edx-platform, license: agpl-3.0)\n\n\"\"\"C... |
[
{
"role": "user",
"content": "Write Python code that implements attribute.py from sean-/ansible (path: lib/ansible/playbook/attribute.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/playbook/attribute.py (from sean-/ansible, license: gpl-3.0)\n\n# (c) 2012-2014, Michael DeHaan <michael... |
[
{
"role": "user",
"content": "Write Python code that implements gsm0338.py from developmentseed/slingshotSMS (path: pygsm/gsmcodecs/gsm0338.py)."
},
{
"role": "assistant",
"content": "# pygsm/gsmcodecs/gsm0338.py (from developmentseed/slingshotSMS, license: bsd-3-clause)\n\n# vim: ai ts=4 sts=4 ... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from StefanRijnhart/server-tools (path: module_parent_dependencies/__init__.py)."
},
{
"role": "assistant",
"content": "# module_parent_dependencies/__init__.py (from StefanRijnhart/server-tools, license: agpl-3.0)\n\n# ... |
[
{
"role": "user",
"content": "Write Python code that implements datastructures.py from 2013Commons/hue (path: desktop/core/ext-py/Django-1.4.5/django/contrib/databrowse/datastructures.py)."
},
{
"role": "assistant",
"content": "# desktop/core/ext-py/Django-1.4.5/django/contrib/databrowse/datastr... |
[
{
"role": "user",
"content": "Write Python code that implements table.py from hryang/flatbuffers (path: python/flatbuffers/table.py)."
},
{
"role": "assistant",
"content": "# python/flatbuffers/table.py (from hryang/flatbuffers, license: apache-2.0)\n\n# Copyright 2014 Google Inc. All rights res... |
[
{
"role": "user",
"content": "Write Python code that implements test_eos_config.py from dgarros/ansible (path: test/units/modules/network/eos/test_eos_config.py)."
},
{
"role": "assistant",
"content": "# test/units/modules/network/eos/test_eos_config.py (from dgarros/ansible, license: gpl-3.0)\n... |
[
{
"role": "user",
"content": "Write Python code that implements startproject.py from nathanial/lettuce (path: tests/integration/lib/Django-1.3/django/core/management/commands/startproject.py)."
},
{
"role": "assistant",
"content": "# tests/integration/lib/Django-1.3/django/core/management/comman... |
[
{
"role": "user",
"content": "Write Python code that implements openssl_privatekey.py from alxgu/ansible (path: lib/ansible/modules/crypto/openssl_privatekey.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/crypto/openssl_privatekey.py (from alxgu/ansible, license: gpl-3.0)\n\n#... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from inveniosoftware/invenio-oaiharvester (path: invenio_oaiharvester/__init__.py)."
},
{
"role": "assistant",
"content": "# invenio_oaiharvester/__init__.py (from inveniosoftware/invenio-oaiharvester, license: gpl-2.0)\... |
[
{
"role": "user",
"content": "Write Python code that implements setup.py from salvadormrf/wagtailsettings (path: setup.py)."
},
{
"role": "assistant",
"content": "# setup.py (from salvadormrf/wagtailsettings, license: bsd-2-clause)\n\n#!/usr/bin/env python\n\"\"\"\nInstall wagtailsettings using ... |
[
{
"role": "user",
"content": "Write Python code that implements setup.py from kingmotley/SickRage (path: lib/stevedore/example/setup.py)."
},
{
"role": "assistant",
"content": "# lib/stevedore/example/setup.py (from kingmotley/SickRage, license: gpl-3.0)\n\nfrom setuptools import setup, find_pac... |
[
{
"role": "user",
"content": "Write Python code that implements writer.py from wemanuel/smry (path: server-auth/ls/google-cloud-sdk/platform/gsutil/third_party/boto/boto/glacier/writer.py)."
},
{
"role": "assistant",
"content": "# server-auth/ls/google-cloud-sdk/platform/gsutil/third_party/boto/... |
[
{
"role": "user",
"content": "Write Python code that implements make_hermione_images.py from Spicyharambe/spni.github.io (path: opponents/hermione/make_hermione_images.py)."
},
{
"role": "assistant",
"content": "# opponents/hermione/make_hermione_images.py (from Spicyharambe/spni.github.io, lice... |
[
{
"role": "user",
"content": "Write Python code that implements puppetagent.py from szibis/Diamond (path: src/collectors/puppetagent/puppetagent.py)."
},
{
"role": "assistant",
"content": "# src/collectors/puppetagent/puppetagent.py (from szibis/Diamond, license: mit)\n\n# coding=utf-8\n\n\"\"\"... |
[
{
"role": "user",
"content": "Write Python code that implements rpc_classes.py from cvtsi2sd/mbed-os (path: tools/dev/rpc_classes.py)."
},
{
"role": "assistant",
"content": "# tools/dev/rpc_classes.py (from cvtsi2sd/mbed-os, license: apache-2.0)\n\n\"\"\"\nmbed SDK\nCopyright (c) 2011-2013 ARM L... |
[
{
"role": "user",
"content": "Write Python code that implements os.py from 40223149/w16b_test (path: static/Brython3.1.0-20150301-090019/Lib/os.py)."
},
{
"role": "assistant",
"content": "# static/Brython3.1.0-20150301-090019/Lib/os.py (from 40223149/w16b_test, license: gpl-3.0)\n\nr\"\"\"OS rou... |
[
{
"role": "user",
"content": "Write Python code that implements test_task_include.py from zemanel/ansible (path: v2/test/playbook/test_task_include.py)."
},
{
"role": "assistant",
"content": "# v2/test/playbook/test_task_include.py (from zemanel/ansible, license: gpl-3.0)\n\n# (c) 2012-2014, Mic... |
[
{
"role": "user",
"content": "Write Python code that implements nxos_module.py from pgmillon/ansible (path: test/units/modules/network/nxos/nxos_module.py)."
},
{
"role": "assistant",
"content": "# test/units/modules/network/nxos/nxos_module.py (from pgmillon/ansible, license: gpl-3.0)\n\n# (c) ... |
[
{
"role": "user",
"content": "Write Python code that implements test_views.py from virgilio/timtec (path: administration/tests/test_views.py)."
},
{
"role": "assistant",
"content": "# administration/tests/test_views.py (from virgilio/timtec, license: agpl-3.0)\n\nimport pytest\n\n@pytest.mark.dj... |
[
{
"role": "user",
"content": "Write Python code that implements messageWindow.py from jdobes/spacewalk (path: client/debian/packages-already-in-debian/rhn-client-tools/src/up2date_client/messageWindow.py)."
},
{
"role": "assistant",
"content": "# client/debian/packages-already-in-debian/rhn-clie... |
[
{
"role": "user",
"content": "Write Python code that implements aerospike.py from AniruddhaSAtre/dd-agent (path: checks.d/aerospike.py)."
},
{
"role": "assistant",
"content": "# checks.d/aerospike.py (from AniruddhaSAtre/dd-agent, license: bsd-3-clause)\n\n# stdlib\nimport os\nfrom inspect impor... |
[
{
"role": "user",
"content": "Write Python code that implements requirements.py from Foxfanmedium/python_training (path: OnlineCoursera/mail_ru/Python_1/Week_3/playground/env/Lib/site-packages/pkg_resources/_vendor/packaging/requirements.py)."
},
{
"role": "assistant",
"content": "# OnlineCourse... |
[
{
"role": "user",
"content": "Write Python code that implements test_residue.py from Arafatk/sympy (path: sympy/ntheory/tests/test_residue.py)."
},
{
"role": "assistant",
"content": "# sympy/ntheory/tests/test_residue.py (from Arafatk/sympy, license: bsd-3-clause)\n\nfrom collections import defa... |
[
{
"role": "user",
"content": "Write Python code that implements weekday_sensor.py from Acehaidrey/incubator-airflow (path: airflow/contrib/sensors/weekday_sensor.py)."
},
{
"role": "assistant",
"content": "# airflow/contrib/sensors/weekday_sensor.py (from Acehaidrey/incubator-airflow, license: a... |
[
{
"role": "user",
"content": "Write Python code that implements logging.py from jmhsi/justin_tinker (path: lib/python2.7/site-packages/pip/utils/logging.py)."
},
{
"role": "assistant",
"content": "# lib/python2.7/site-packages/pip/utils/logging.py (from jmhsi/justin_tinker, license: apache-2.0)\... |
[
{
"role": "user",
"content": "Write Python code that implements eventlet_backdoor.py from luzheqi1987/nova-annotation (path: nova/openstack/common/eventlet_backdoor.py)."
},
{
"role": "assistant",
"content": "# nova/openstack/common/eventlet_backdoor.py (from luzheqi1987/nova-annotation, license... |
[
{
"role": "user",
"content": "Write Python code that implements protoc_wrapper.py from MIPS/external-chromium_org (path: tools/protoc_wrapper/protoc_wrapper.py)."
},
{
"role": "assistant",
"content": "# tools/protoc_wrapper/protoc_wrapper.py (from MIPS/external-chromium_org, license: bsd-3-claus... |
[
{
"role": "user",
"content": "Write Python code that implements scoping.py from drglove/SickRage (path: lib/sqlalchemy/orm/scoping.py)."
},
{
"role": "assistant",
"content": "# lib/sqlalchemy/orm/scoping.py (from drglove/SickRage, license: gpl-3.0)\n\n# orm/scoping.py\n# Copyright (C) 2005-2014 ... |
[
{
"role": "user",
"content": "Write Python code that implements ims.py from intel-iot-devkit/upm (path: examples/python/ims.py)."
},
{
"role": "assistant",
"content": "# examples/python/ims.py (from intel-iot-devkit/upm, license: mit)\n\n#!/usr/bin/env python\n# Author: Noel Eck <noel.eck@intel.... |
[
{
"role": "user",
"content": "Write Python code that implements keystone_tests.py from doug-fish/horizon (path: openstack_dashboard/test/api_tests/keystone_tests.py)."
},
{
"role": "assistant",
"content": "# openstack_dashboard/test/api_tests/keystone_tests.py (from doug-fish/horizon, license: a... |
[
{
"role": "user",
"content": "Write Python code that implements debug.py from malept/gunicorn (path: gunicorn/debug.py)."
},
{
"role": "assistant",
"content": "# gunicorn/debug.py (from malept/gunicorn, license: mit)\n\n# -*- coding: utf-8 -\n#\n# This file is part of gunicorn released under the... |
[
{
"role": "user",
"content": "Write Python code that implements test_views.py from exploreodoo/datStruct (path: odoo/addons/website/tests/test_views.py)."
},
{
"role": "assistant",
"content": "# odoo/addons/website/tests/test_views.py (from exploreodoo/datStruct, license: gpl-2.0)\n\n# -*- codin... |
[
{
"role": "user",
"content": "Write Python code that implements formparser.py from anbasile/flask_sample (path: flask/lib/python2.7/site-packages/werkzeug/formparser.py)."
},
{
"role": "assistant",
"content": "# flask/lib/python2.7/site-packages/werkzeug/formparser.py (from anbasile/flask_sample... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from lliendo/Radar (path: radar/class_loader/__init__.py)."
},
{
"role": "assistant",
"content": "# radar/class_loader/__init__.py (from lliendo/Radar, license: lgpl-3.0)\n\n# -*- coding: utf-8 -*-\n\n\"\"\"\nThis file i... |
[
{
"role": "user",
"content": "Write Python code that implements tokens.py from DARKPOP/external_chromium_org (path: third_party/closure_linter/closure_linter/common/tokens.py)."
},
{
"role": "assistant",
"content": "# third_party/closure_linter/closure_linter/common/tokens.py (from DARKPOP/exter... |
[
{
"role": "user",
"content": "Write Python code that implements clean.py from timj/scons (path: test/TEX/clean.py)."
},
{
"role": "assistant",
"content": "# test/TEX/clean.py (from timj/scons, license: mit)\n\n#!/usr/bin/env python\n#\n# __COPYRIGHT__\n#\n# Permission is hereby granted, free of ... |
[
{
"role": "user",
"content": "Write Python code that implements _iosxr_template.py from pshen/ansible (path: lib/ansible/modules/network/iosxr/_iosxr_template.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/network/iosxr/_iosxr_template.py (from pshen/ansible, license: gpl-3.0)... |
[
{
"role": "user",
"content": "Write Python code that implements eggs.py from wbc2010/django1.2.5 (path: django1.2.5/django/template/loaders/eggs.py)."
},
{
"role": "assistant",
"content": "# django1.2.5/django/template/loaders/eggs.py (from wbc2010/django1.2.5, license: bsd-3-clause)\n\n# Wrappe... |
[
{
"role": "user",
"content": "Write Python code that implements test_cp_mgmt_tag.py from sestrella/ansible (path: test/units/modules/network/check_point/test_cp_mgmt_tag.py)."
},
{
"role": "assistant",
"content": "# test/units/modules/network/check_point/test_cp_mgmt_tag.py (from sestrella/ansib... |
[
{
"role": "user",
"content": "Write Python code that implements TableFile.py from molliewhitacre/aston (path: aston/qtgui/TableFile.py)."
},
{
"role": "assistant",
"content": "# aston/qtgui/TableFile.py (from molliewhitacre/aston, license: gpl-3.0)\n\n# -*- coding: utf-8 -*-\n\n# Copyright 20... |
[
{
"role": "user",
"content": "Write Python code that implements keyring_storage.py from foolonhill/rietveld (path: third_party/oauth2client/keyring_storage.py)."
},
{
"role": "assistant",
"content": "# third_party/oauth2client/keyring_storage.py (from foolonhill/rietveld, license: apache-2.0)\n\... |
[
{
"role": "user",
"content": "Write Python code that implements dirsnapshot.py from Jumpscale/web (path: pythonlib/watchdog/utils/dirsnapshot.py)."
},
{
"role": "assistant",
"content": "# pythonlib/watchdog/utils/dirsnapshot.py (from Jumpscale/web, license: apache-2.0)\n\n#!/usr/bin/env python\n... |
[
{
"role": "user",
"content": "Write Python code that implements searchcontext.py from Syrcon/servo (path: tests/wpt/css-tests/tools/webdriver/webdriver/searchcontext.py)."
},
{
"role": "assistant",
"content": "# tests/wpt/css-tests/tools/webdriver/webdriver/searchcontext.py (from Syrcon/servo, l... |
[
{
"role": "user",
"content": "Write Python code that implements ui_utils.py from cschenck/blender_sim (path: fluid_sim_deps/blender-2.69/2.69/scripts/addons/modules/ui_utils.py)."
},
{
"role": "assistant",
"content": "# fluid_sim_deps/blender-2.69/2.69/scripts/addons/modules/ui_utils.py (from cs... |
[
{
"role": "user",
"content": "Write Python code that implements isolated_prpc_pb2.py from luci/luci-py (path: appengine/isolate/proto/isolated_prpc_pb2.py)."
},
{
"role": "assistant",
"content": "# appengine/isolate/proto/isolated_prpc_pb2.py (from luci/luci-py, license: apache-2.0)\n\n# Generat... |
[
{
"role": "user",
"content": "Write Python code that implements test_stateful.py from mspark93/VTK (path: ThirdParty/Twisted/twisted/test/test_stateful.py)."
},
{
"role": "assistant",
"content": "# ThirdParty/Twisted/twisted/test/test_stateful.py (from mspark93/VTK, license: bsd-3-clause)\n\n# C... |
[
{
"role": "user",
"content": "Write Python code that implements __openerp__.py from datenbetrieb/odoo (path: addons/marketing_campaign/__openerp__.py)."
},
{
"role": "assistant",
"content": "# addons/marketing_campaign/__openerp__.py (from datenbetrieb/odoo, license: agpl-3.0)\n\n# -*- coding: u... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from tsvstar/vk_downloader (path: vk/tests.py)."
},
{
"role": "assistant",
"content": "# vk/tests.py (from tsvstar/vk_downloader, license: mit)\n\n# coding=utf8\n\nimport os\nimport sys\nimport time\n\nimport unittest\nimpo... |
[
{
"role": "user",
"content": "Write Python code that implements test_bar.py from dongguangming/pygal (path: pygal/test/test_bar.py)."
},
{
"role": "assistant",
"content": "# pygal/test/test_bar.py (from dongguangming/pygal, license: lgpl-3.0)\n\n# -*- coding: utf-8 -*-\n# This file is part of py... |
[
{
"role": "user",
"content": "Write Python code that implements qtest.py from xiandaicxsj/qemu-copy (path: scripts/qtest.py)."
},
{
"role": "assistant",
"content": "# scripts/qtest.py (from xiandaicxsj/qemu-copy, license: gpl-2.0)\n\n# QEMU qtest library\n#\n# Copyright (C) 2015 Red Hat Inc.\n#\... |
[
{
"role": "user",
"content": "Write Python code that implements account_budget_crossovered_report.py from gvb/odoo (path: addons/account_budget/wizard/account_budget_crossovered_report.py)."
},
{
"role": "assistant",
"content": "# addons/account_budget/wizard/account_budget_crossovered_report.py... |
[
{
"role": "user",
"content": "Write Python code that implements models.py from GitAngel/django (path: tests/raw_query/models.py)."
},
{
"role": "assistant",
"content": "# tests/raw_query/models.py (from GitAngel/django, license: bsd-3-clause)\n\nfrom django.db import models\n\nclass Author(model... |
[
{
"role": "user",
"content": "Write Python code that implements models.py from CredoReference/edx-platform (path: common/djangoapps/credo_modules/models.py)."
},
{
"role": "assistant",
"content": "# common/djangoapps/credo_modules/models.py (from CredoReference/edx-platform, license: agpl-3.0)\n... |
[
{
"role": "user",
"content": "Write Python code that implements plot_lasso_lars.py from meduz/scikit-learn (path: examples/linear_model/plot_lasso_lars.py)."
},
{
"role": "assistant",
"content": "# examples/linear_model/plot_lasso_lars.py (from meduz/scikit-learn, license: bsd-3-clause)\n\n#!/us... |
[
{
"role": "user",
"content": "Write Python code that implements cors.py from poojavade/Genomics_Docker (path: Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/boto-2.19.0-py2.7.egg/boto/s3/cors.py)."
},
{
"role": "assistant",
"content": "# Dockerfiles/gedlab-khmer-filter-abun... |
[
{
"role": "user",
"content": "Write Python code that implements perldoc.py from chhao91/QGIS (path: python/ext-libs/pygments/styles/perldoc.py)."
},
{
"role": "assistant",
"content": "# python/ext-libs/pygments/styles/perldoc.py (from chhao91/QGIS, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n\... |
[
{
"role": "user",
"content": "Write Python code that implements shutil.py from 40223151/2014c2g9 (path: exts/w2/static/Brython2.0.0-20140209-164925/Lib/shutil.py)."
},
{
"role": "assistant",
"content": "# exts/w2/static/Brython2.0.0-20140209-164925/Lib/shutil.py (from 40223151/2014c2g9, license:... |
[
{
"role": "user",
"content": "Write Python code that implements forms.py from RaoUmer/django (path: django/contrib/auth/forms.py)."
},
{
"role": "assistant",
"content": "# django/contrib/auth/forms.py (from RaoUmer/django, license: bsd-3-clause)\n\nfrom __future__ import unicode_literals\n\nfrom... |
[
{
"role": "user",
"content": "Write Python code that implements topological.py from sauloal/PiCastPy (path: sqlalchemy/util/topological.py)."
},
{
"role": "assistant",
"content": "# sqlalchemy/util/topological.py (from sauloal/PiCastPy, license: mit)\n\n# util/topological.py\n# Copyright (C) 200... |
[
{
"role": "user",
"content": "Write Python code that implements runner.py from sszlm/MissionPlanner (path: Lib/unittest/runner.py)."
},
{
"role": "assistant",
"content": "# Lib/unittest/runner.py (from sszlm/MissionPlanner, license: gpl-3.0)\n\n\"\"\"Running tests\"\"\"\n\nimport sys\nimport tim... |
[
{
"role": "user",
"content": "Write Python code that implements test_taskcontext.py from actuaryzhang/spark (path: python/pyspark/tests/test_taskcontext.py)."
},
{
"role": "assistant",
"content": "# python/pyspark/tests/test_taskcontext.py (from actuaryzhang/spark, license: apache-2.0)\n\n#\n# L... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.