messages
listlengths
2
2
[ { "role": "user", "content": "Write Python code that implements keyword.py from perryjrandall/arsenalsuite (path: cpp/apps/bach/web/bach/models/keyword.py)." }, { "role": "assistant", "content": "# cpp/apps/bach/web/bach/models/keyword.py (from perryjrandall/arsenalsuite, license: gpl-2.0)\n\n#\...
[ { "role": "user", "content": "Write Python code that implements test_writer.py from liu602348184/django (path: tests/migrations/test_writer.py)." }, { "role": "assistant", "content": "# tests/migrations/test_writer.py (from liu602348184/django, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n...
[ { "role": "user", "content": "Write Python code that implements rungui.py from freyley/trello-traceability (path: rungui.py)." }, { "role": "assistant", "content": "# rungui.py (from freyley/trello-traceability, license: agpl-3.0)\n\n#!/usr/bin/env python\n\nimport urwid\nfrom trello import Trel...
[ { "role": "user", "content": "Write Python code that implements is_type_isbn.py from tsgit/invenio (path: modules/bibfield/lib/functions/is_type_isbn.py)." }, { "role": "assistant", "content": "# modules/bibfield/lib/functions/is_type_isbn.py (from tsgit/invenio, license: gpl-2.0)\n\n## This fil...
[ { "role": "user", "content": "Write Python code that implements test_rrp.py from CiuffysHub/MITMf (path: mitmflib-0.18.4/build/lib.linux-i686-2.7/mitmflib/impacket/testcases/SMB_RPC/test_rrp.py)." }, { "role": "assistant", "content": "# mitmflib-0.18.4/build/lib.linux-i686-2.7/mitmflib/impacket/...
[ { "role": "user", "content": "Write Python code that implements __init__.py from numerigraphe/odoo (path: addons/mrp_repair/__init__.py)." }, { "role": "assistant", "content": "# addons/mrp_repair/__init__.py (from numerigraphe/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n###############...
[ { "role": "user", "content": "Write Python code that implements test_core.py from supergentle/migueltutorial (path: flask/lib/python2.7/site-packages/pbr/tests/test_core.py)." }, { "role": "assistant", "content": "# flask/lib/python2.7/site-packages/pbr/tests/test_core.py (from supergentle/migue...
[ { "role": "user", "content": "Write Python code that implements body_validation.py from wolverineav/neutron (path: neutron/pecan_wsgi/hooks/body_validation.py)." }, { "role": "assistant", "content": "# neutron/pecan_wsgi/hooks/body_validation.py (from wolverineav/neutron, license: apache-2.0)\n\...
[ { "role": "user", "content": "Write Python code that implements process_resources.py from Chilledheart/chromium (path: build/android/gyp/process_resources.py)." }, { "role": "assistant", "content": "# build/android/gyp/process_resources.py (from Chilledheart/chromium, license: bsd-3-clause)\n\n#...
[ { "role": "user", "content": "Write Python code that implements 0003_fix_thumb_options.py from eloquence/unisubs (path: apps/externalsites/migrations/0003_fix_thumb_options.py)." }, { "role": "assistant", "content": "# apps/externalsites/migrations/0003_fix_thumb_options.py (from eloquence/unisu...
[ { "role": "user", "content": "Write Python code that implements pos_confirm.py from rruebner/odoo (path: addons/point_of_sale/wizard/pos_confirm.py)." }, { "role": "assistant", "content": "# addons/point_of_sale/wizard/pos_confirm.py (from rruebner/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8...
[ { "role": "user", "content": "Write Python code that implements __openerp__.py from open-synergy/sale-workflow (path: sale_allotment/__openerp__.py)." }, { "role": "assistant", "content": "# sale_allotment/__openerp__.py (from open-synergy/sale-workflow, license: agpl-3.0)\n\n# -*- coding: utf-8...
[ { "role": "user", "content": "Write Python code that implements split_benchmark.py from rdipietro/tensorflow (path: tensorflow/python/ops/split_benchmark.py)." }, { "role": "assistant", "content": "# tensorflow/python/ops/split_benchmark.py (from rdipietro/tensorflow, license: apache-2.0)\n\n# C...
[ { "role": "user", "content": "Write Python code that implements bzrc.py from byu-aml-lab/bzrflag (path: bzagents/bzrc.py)." }, { "role": "assistant", "content": "# bzagents/bzrc.py (from byu-aml-lab/bzrflag, license: gpl-3.0)\n\n#!/usr/bin/python -tt\n\n# Control BZFlag tanks remotely with synch...
[ { "role": "user", "content": "Write Python code that implements test_basic.py from chaluemwut/fbserver (path: venv/lib/python2.7/site-packages/scipy/linalg/tests/test_basic.py)." }, { "role": "assistant", "content": "# venv/lib/python2.7/site-packages/scipy/linalg/tests/test_basic.py (from chalu...
[ { "role": "user", "content": "Write Python code that implements tls_ftpd.py from leiferikb/bitpop (path: src/third_party/pyftpdlib/src/demo/tls_ftpd.py)." }, { "role": "assistant", "content": "# src/third_party/pyftpdlib/src/demo/tls_ftpd.py (from leiferikb/bitpop, license: gpl-3.0)\n\n#!/usr/bi...
[ { "role": "user", "content": "Write Python code that implements bad_reversed_sequence.py from mith1979/ansible_automation (path: applied_python/applied_python/lib/python2.7/site-packages/pylint/test/functional/bad_reversed_sequence.py)." }, { "role": "assistant", "content": "# applied_python/app...
[ { "role": "user", "content": "Write Python code that implements Seq2Seq_pytorch.py from intel-analytics/analytics-zoo (path: pyzoo/zoo/chronos/model/Seq2Seq_pytorch.py)." }, { "role": "assistant", "content": "# pyzoo/zoo/chronos/model/Seq2Seq_pytorch.py (from intel-analytics/analytics-zoo, licen...
[ { "role": "user", "content": "Write Python code that implements gmock_output_test.py from yaoandw/joke (path: Pods/AVOSCloudCrashReporting/Breakpad/src/testing/test/gmock_output_test.py)." }, { "role": "assistant", "content": "# Pods/AVOSCloudCrashReporting/Breakpad/src/testing/test/gmock_output...
[ { "role": "user", "content": "Write Python code that implements SextanteToolsTest.py from slarosa/QGIS (path: python/plugins/sextante/tests/SextanteToolsTest.py)." }, { "role": "assistant", "content": "# python/plugins/sextante/tests/SextanteToolsTest.py (from slarosa/QGIS, license: gpl-2.0)\n\n...
[ { "role": "user", "content": "Write Python code that implements Tfidf.py from largelymfs/IRModel (path: src/models/Tfidf.py)." }, { "role": "assistant", "content": "# src/models/Tfidf.py (from largelymfs/IRModel, license: mit)\n\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# @Author: largely...
[ { "role": "user", "content": "Write Python code that implements index.py from vprnet/traces (path: app/index.py)." }, { "role": "assistant", "content": "# app/index.py (from vprnet/traces, license: apache-2.0)\n\n#!/usr/local/bin/python2.7\n\nfrom flask import Flask\nimport sys\nfrom flask_froze...
[ { "role": "user", "content": "Write Python code that implements randomized_l1.py from jorik041/scikit-learn (path: sklearn/linear_model/randomized_l1.py)." }, { "role": "assistant", "content": "# sklearn/linear_model/randomized_l1.py (from jorik041/scikit-learn, license: bsd-3-clause)\n\n\"\"\"\...
[ { "role": "user", "content": "Write Python code that implements python_101.py from psb-seclab/CTFStuff (path: hacknight/HN_Lab_1/python_101.py)." }, { "role": "assistant", "content": "# hacknight/HN_Lab_1/python_101.py (from psb-seclab/CTFStuff, license: mit)\n\n# -*- coding: utf-8 -*-\n\n#impor...
[ { "role": "user", "content": "Write Python code that implements acl.py from canvasnetworks/canvas (path: common/boto/s3/acl.py)." }, { "role": "assistant", "content": "# common/boto/s3/acl.py (from canvasnetworks/canvas, license: bsd-3-clause)\n\n# Copyright (c) 2006,2007 Mitch Garnaat http://ga...
[ { "role": "user", "content": "Write Python code that implements XmlRpcClient.py from dana-i2cat/felix (path: vt_manager/src/python/vt_manager/communication/XmlRpcClient.py)." }, { "role": "assistant", "content": "# vt_manager/src/python/vt_manager/communication/XmlRpcClient.py (from dana-i2cat/f...
[ { "role": "user", "content": "Write Python code that implements no190.py from dhermes/project-euler (path: python/complete/no190.py)." }, { "role": "assistant", "content": "# python/complete/no190.py (from dhermes/project-euler, license: apache-2.0)\n\n#!/usr/bin/env python\n\n# Let S_m = (x_1, ...
[ { "role": "user", "content": "Write Python code that implements test_msilib.py from gcblue/gcblue (path: bin/Lib/test/test_msilib.py)." }, { "role": "assistant", "content": "# bin/Lib/test/test_msilib.py (from gcblue/gcblue, license: bsd-3-clause)\n\n\"\"\" Test suite for the code in msilib \"\"...
[ { "role": "user", "content": "Write Python code that implements test_provider_ogr_gpkg.py from mhugo/QGIS (path: tests/src/python/test_provider_ogr_gpkg.py)." }, { "role": "assistant", "content": "# tests/src/python/test_provider_ogr_gpkg.py (from mhugo/QGIS, license: gpl-2.0)\n\n# -*- coding: u...
[ { "role": "user", "content": "Write Python code that implements constant.py from huanpc/lab_cloud_computing (path: docs/learning-by-doing/week09_10_connectDB_restApi/auto scaling system/constant.py)." }, { "role": "assistant", "content": "# docs/learning-by-doing/week09_10_connectDB_restApi/auto...
[ { "role": "user", "content": "Write Python code that implements GPSController.py from martinohanlon/pelmetcam (path: GPSController.py)." }, { "role": "assistant", "content": "# GPSController.py (from martinohanlon/pelmetcam, license: mit)\n\nfrom gps import *\nimport time\nimport datetime\nimpor...
[ { "role": "user", "content": "Write Python code that implements IOBinding.py from Symmetry-Innovations-Pty-Ltd/Python-2.7-for-QNX6.5.0-x86 (path: usr/pkg/lib/python2.7/idlelib/IOBinding.py)." }, { "role": "assistant", "content": "# usr/pkg/lib/python2.7/idlelib/IOBinding.py (from Symmetry-Innova...
[ { "role": "user", "content": "Write Python code that implements sql.py from bmispelon/csvkit (path: csvkit/sql.py)." }, { "role": "assistant", "content": "# csvkit/sql.py (from bmispelon/csvkit, license: mit)\n\n#!/usr/bin/env python\n\nimport datetime\n\nimport six\n\nfrom sqlalchemy import Col...
[ { "role": "user", "content": "Write Python code that implements capabilities_filter.py from CloudServer/cinder (path: cinder/openstack/common/scheduler/filters/capabilities_filter.py)." }, { "role": "assistant", "content": "# cinder/openstack/common/scheduler/filters/capabilities_filter.py (from...
[ { "role": "user", "content": "Write Python code that implements fruity.py from Technocaveman/There-is-no-Third-Step (path: node_modules/pygmentize-bundled/vendor/pygments/pygments/styles/fruity.py)." }, { "role": "assistant", "content": "# node_modules/pygmentize-bundled/vendor/pygments/pygments...
[ { "role": "user", "content": "Write Python code that implements lnkfile.py from arizvisa/syringe (path: template/lnkfile.py)." }, { "role": "assistant", "content": "# template/lnkfile.py (from arizvisa/syringe, license: bsd-2-clause)\n\nimport ptypes, ndk, office.propertyset\nfrom ptypes import ...
[ { "role": "user", "content": "Write Python code that implements 0001_initial.py from chrisndodge/edx-platform (path: openedx/core/djangoapps/user_api/migrations/0001_initial.py)." }, { "role": "assistant", "content": "# openedx/core/djangoapps/user_api/migrations/0001_initial.py (from chrisndodg...
[ { "role": "user", "content": "Write Python code that implements level3_model_rf.py from jingxiang-li/kaggle-yelp (path: model/level3_model_rf.py)." }, { "role": "assistant", "content": "# model/level3_model_rf.py (from jingxiang-li/kaggle-yelp, license: mit)\n\nfrom __future__ import division\nf...
[ { "role": "user", "content": "Write Python code that implements html.py from jreback/pandas (path: pandas/io/formats/html.py)." }, { "role": "assistant", "content": "# pandas/io/formats/html.py (from jreback/pandas, license: bsd-3-clause)\n\n\"\"\"\nModule for formatting output data in HTML.\n\"...
[ { "role": "user", "content": "Write Python code that implements collect.py from cobrab11/black1-bot (path: extensions/collect.py)." }, { "role": "assistant", "content": "# extensions/collect.py (from cobrab11/black1-bot, license: apache-2.0)\n\n# BS mark.1-55\n# /* coding: utf-8 */\n\n# BlackSm...
[ { "role": "user", "content": "Write Python code that implements acknowledge.py from systers/mailman (path: src/mailman/handlers/acknowledge.py)." }, { "role": "assistant", "content": "# src/mailman/handlers/acknowledge.py (from systers/mailman, license: gpl-3.0)\n\n# Copyright (C) 1998-2015 by t...
[ { "role": "user", "content": "Write Python code that implements datetimefield.py from sciCloud/OLiMS (path: lims/browser/fields/datetimefield.py)." }, { "role": "assistant", "content": "# lims/browser/fields/datetimefield.py (from sciCloud/OLiMS, license: agpl-3.0)\n\nfrom time import strptime\n...
[ { "role": "user", "content": "Write Python code that implements rtmgr.py from gbiggs/rtcshell (path: rtcshell/rtmgr.py)." }, { "role": "assistant", "content": "# rtcshell/rtmgr.py (from gbiggs/rtcshell, license: epl-1.0)\n\n#!/usr/bin/env python\n# -*- Python -*-\n# -*- coding: utf-8 -*-\n\n'''r...
[ { "role": "user", "content": "Write Python code that implements tests.py from dhoffman34/django (path: tests/servers/tests.py)." }, { "role": "assistant", "content": "# tests/servers/tests.py (from dhoffman34/django, license: bsd-3-clause)\n\n# -*- encoding: utf-8 -*-\n\"\"\"\nTests for django.c...
[ { "role": "user", "content": "Write Python code that implements views.py from stone5495/NewsBlur (path: apps/profile/views.py)." }, { "role": "assistant", "content": "# apps/profile/views.py (from stone5495/NewsBlur, license: mit)\n\nimport stripe\nimport datetime\nfrom django.contrib.auth.decor...
[ { "role": "user", "content": "Write Python code that implements json_type.py from knewmanTE/FrameworkBenchmarks (path: toolset/benchmark/test_types/json_type.py)." }, { "role": "assistant", "content": "# toolset/benchmark/test_types/json_type.py (from knewmanTE/FrameworkBenchmarks, license: bsd-...
[ { "role": "user", "content": "Write Python code that implements handlers.py from Aaron1992/v2ex (path: mapreduce/handlers.py)." }, { "role": "assistant", "content": "# mapreduce/handlers.py (from Aaron1992/v2ex, license: bsd-3-clause)\n\n#!/usr/bin/env python\n#\n# Copyright 2010 Google Inc.\n#\...
[ { "role": "user", "content": "Write Python code that implements test_writer.py from duqiao/django (path: tests/migrations/test_writer.py)." }, { "role": "assistant", "content": "# tests/migrations/test_writer.py (from duqiao/django, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\nfrom __futur...
[ { "role": "user", "content": "Write Python code that implements user_element.py from offtools/linux-show-player (path: lisp/modules/gst_backend/elements/user_element.py)." }, { "role": "assistant", "content": "# lisp/modules/gst_backend/elements/user_element.py (from offtools/linux-show-player, ...
[ { "role": "user", "content": "Write Python code that implements models.py from pigeonflight/strider-plone (path: docker/appengine/lib/django-1.5/tests/regressiontests/serializers_regress/models.py)." }, { "role": "assistant", "content": "# docker/appengine/lib/django-1.5/tests/regressiontests/se...
[ { "role": "user", "content": "Write Python code that implements energy_fft.py from modelkayak/python_signal_examples (path: energy_fft.py)." }, { "role": "assistant", "content": "# energy_fft.py (from modelkayak/python_signal_examples, license: mit)\n\nimport numpy as np\nimport scipy\nfrom matp...
[ { "role": "user", "content": "Write Python code that implements qttrajectory.py from moxon6/chemlab (path: build/lib/chemlab/graphics/qttrajectory.py)." }, { "role": "assistant", "content": "# build/lib/chemlab/graphics/qttrajectory.py (from moxon6/chemlab, license: gpl-3.0)\n\nfrom PyQt4.QtGui ...
[ { "role": "user", "content": "Write Python code that implements numerics_test.py from gautam1858/tensorflow (path: tensorflow/python/kernel_tests/numerics_test.py)." }, { "role": "assistant", "content": "# tensorflow/python/kernel_tests/numerics_test.py (from gautam1858/tensorflow, license: apac...
[ { "role": "user", "content": "Write Python code that implements crypto.py from SnappleCap/oh-mainline (path: vendor/packages/Django/tests/regressiontests/utils/crypto.py)." }, { "role": "assistant", "content": "# vendor/packages/Django/tests/regressiontests/utils/crypto.py (from SnappleCap/oh-ma...
[ { "role": "user", "content": "Write Python code that implements GetProject.py from jordanemedlock/psychtruths (path: temboo/core/Library/Basecamp/GetProject.py)." }, { "role": "assistant", "content": "# temboo/core/Library/Basecamp/GetProject.py (from jordanemedlock/psychtruths, license: apache-...
[ { "role": "user", "content": "Write Python code that implements advanced_link_crawler.py from zzsza/TIL (path: python/crawling/advanced_link_crawler.py)." }, { "role": "assistant", "content": "# python/crawling/advanced_link_crawler.py (from zzsza/TIL, license: mit)\n\nimport re\nfrom urllib imp...
[ { "role": "user", "content": "Write Python code that implements scheduler_options.py from openstack/manila (path: manila/scheduler/scheduler_options.py)." }, { "role": "assistant", "content": "# manila/scheduler/scheduler_options.py (from openstack/manila, license: apache-2.0)\n\n# Copyright (c)...
[ { "role": "user", "content": "Write Python code that implements base.py from rbalda/neural_ocr (path: env/lib/python2.7/site-packages/django/contrib/gis/geoip/base.py)." }, { "role": "assistant", "content": "# env/lib/python2.7/site-packages/django/contrib/gis/geoip/base.py (from rbalda/neural_o...
[ { "role": "user", "content": "Write Python code that implements test_http.py from zhanghenry/stocks (path: tests/utils_tests/test_http.py)." }, { "role": "assistant", "content": "# tests/utils_tests/test_http.py (from zhanghenry/stocks, license: bsd-3-clause)\n\nfrom __future__ import unicode_li...
[ { "role": "user", "content": "Write Python code that implements test_tracker.py from vismartltd/edx-platform (path: common/djangoapps/track/tests/test_tracker.py)." }, { "role": "assistant", "content": "# common/djangoapps/track/tests/test_tracker.py (from vismartltd/edx-platform, license: agpl-...
[ { "role": "user", "content": "Write Python code that implements sessions.py from andela-bojengwa/talk (path: venv/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py)." }, { "role": "assistant", "content": "# venv/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py (from andela...
[ { "role": "user", "content": "Write Python code that implements __openerp__.py from bala4901/odoo (path: addons/l10n_cn/__openerp__.py)." }, { "role": "assistant", "content": "# addons/l10n_cn/__openerp__.py (from bala4901/odoo, license: agpl-3.0)\n\n# -*- encoding: utf-8 -*-\n##################...
[ { "role": "user", "content": "Write Python code that implements race_fluent_modification.py from buzzer/pr2_imagination (path: race_simulation_run/tools/race_fluent_modification.py)." }, { "role": "assistant", "content": "# race_simulation_run/tools/race_fluent_modification.py (from buzzer/pr2_i...
[ { "role": "user", "content": "Write Python code that implements sip.py from nirmeshk/oh-mainline (path: vendor/packages/twisted/twisted/protocols/sip.py)." }, { "role": "assistant", "content": "# vendor/packages/twisted/twisted/protocols/sip.py (from nirmeshk/oh-mainline, license: agpl-3.0)\n\n#...
[ { "role": "user", "content": "Write Python code that implements gcc-wrapper.py from Grarak/grakernel-msm8930 (path: scripts/gcc-wrapper.py)." }, { "role": "assistant", "content": "# scripts/gcc-wrapper.py (from Grarak/grakernel-msm8930, license: gpl-2.0)\n\n#! /usr/bin/env python\n# -*- coding: ...
[ { "role": "user", "content": "Write Python code that implements ProcessingExampleProviderPlugin.py from landryb/QGIS (path: python/plugins/processing/algs/exampleprovider/ProcessingExampleProviderPlugin.py)." }, { "role": "assistant", "content": "# python/plugins/processing/algs/exampleprovider/...
[ { "role": "user", "content": "Write Python code that implements has_key.py from MalloyPower/parsing-python (path: front-end/testsuite-python-lib/Python-2.6/Lib/curses/has_key.py)." }, { "role": "assistant", "content": "# front-end/testsuite-python-lib/Python-2.6/Lib/curses/has_key.py (from Mallo...
[ { "role": "user", "content": "Write Python code that implements test_timespantools_Timespan_is_congruent_to_timespan.py from mscuthbert/abjad (path: abjad/tools/timespantools/test/test_timespantools_Timespan_is_congruent_to_timespan.py)." }, { "role": "assistant", "content": "# abjad/tools/times...
[ { "role": "user", "content": "Write Python code that implements multi_cpp_inheritance_test.py from PySide/Shiboken (path: tests/samplebinding/multi_cpp_inheritance_test.py)." }, { "role": "assistant", "content": "# tests/samplebinding/multi_cpp_inheritance_test.py (from PySide/Shiboken, license:...
[ { "role": "user", "content": "Write Python code that implements token.py from bazitur/brackets-python-tools (path: pythonfiles/parso/python/token.py)." }, { "role": "assistant", "content": "# pythonfiles/parso/python/token.py (from bazitur/brackets-python-tools, license: mit)\n\nfrom __future__ ...
[ { "role": "user", "content": "Write Python code that implements settings_header.py from glaubitz/fs-uae-debian (path: arcade/launcher/settings/settings_header.py)." }, { "role": "assistant", "content": "# arcade/launcher/settings/settings_header.py (from glaubitz/fs-uae-debian, license: gpl-2.0)...
[ { "role": "user", "content": "Write Python code that implements aliases.py from twoh/leevee (path: env/Lib/encodings/aliases.py)." }, { "role": "assistant", "content": "# env/Lib/encodings/aliases.py (from twoh/leevee, license: mit)\n\n\"\"\" Encoding Aliases Support\n\n This module is used b...
[ { "role": "user", "content": "Write Python code that implements find_chat.py from djw8605/htcondor (path: src/condor_contrib/condor_pigeon/src/condor_pigeon_client/skype_linux_tools/find_chat.py)." }, { "role": "assistant", "content": "# src/condor_contrib/condor_pigeon/src/condor_pigeon_client/...
[ { "role": "user", "content": "Write Python code that implements idplist.py from dangtrinhnt/django-saml2 (path: djangosaml2/templatetags/idplist.py)." }, { "role": "assistant", "content": "# djangosaml2/templatetags/idplist.py (from dangtrinhnt/django-saml2, license: apache-2.0)\n\n# Copyright (...
[ { "role": "user", "content": "Write Python code that implements server.py from nevir/plexability (path: extern/depot_tools/third_party/boto/mashups/server.py)." }, { "role": "assistant", "content": "# extern/depot_tools/third_party/boto/mashups/server.py (from nevir/plexability, license: gpl-2.0...
[ { "role": "user", "content": "Write Python code that implements conf.py from kalahbrown/HueBigSQL (path: desktop/core/ext-py/django-extensions-1.5.0/docs/conf.py)." }, { "role": "assistant", "content": "# desktop/core/ext-py/django-extensions-1.5.0/docs/conf.py (from kalahbrown/HueBigSQL, licens...
[ { "role": "user", "content": "Write Python code that implements route_guide_resources.py from kriswuollett/grpc (path: examples/python/multiplex/route_guide_resources.py)." }, { "role": "assistant", "content": "# examples/python/multiplex/route_guide_resources.py (from kriswuollett/grpc, license...
[ { "role": "user", "content": "Write Python code that implements test_presence.py from howethomas/synapse (path: tests/rest/client/v1/test_presence.py)." }, { "role": "assistant", "content": "# tests/rest/client/v1/test_presence.py (from howethomas/synapse, license: apache-2.0)\n\n# -*- coding: u...
[ { "role": "user", "content": "Write Python code that implements asl.py from joachimmetz/plaso (path: plaso/parsers/asl.py)." }, { "role": "assistant", "content": "# plaso/parsers/asl.py (from joachimmetz/plaso, license: apache-2.0)\n\n# -*- coding: utf-8 -*-\n\"\"\"The Apple System Log (ASL) fil...
[ { "role": "user", "content": "Write Python code that implements test_parameters.py from FireWRT/OpenWrt-Firefly-Libraries (path: staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/ctypes/test/test_parameters.py)." }, { "role": "assistant", "content": "# staging_dir/target-mip...
[ { "role": "user", "content": "Write Python code that implements pt-br.py from SamReha/Concepts-Game (path: languages/pt-br.py)." }, { "role": "assistant", "content": "# languages/pt-br.py (from SamReha/Concepts-Game, license: gpl-2.0)\n\n# -*- coding: utf-8 -*-\n{\n'!langcode!': 'pt-br',\n'!lang...
[ { "role": "user", "content": "Write Python code that implements __openerp__.py from ubic135/odoo-design (path: addons/auth_signup/__openerp__.py)." }, { "role": "assistant", "content": "# addons/auth_signup/__openerp__.py (from ubic135/odoo-design, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n...
[ { "role": "user", "content": "Write Python code that implements funcd.py from dlazz/ansible (path: lib/ansible/plugins/connection/funcd.py)." }, { "role": "assistant", "content": "# lib/ansible/plugins/connection/funcd.py (from dlazz/ansible, license: gpl-3.0)\n\n# Based on local.py (c) 2012, Mi...
[ { "role": "user", "content": "Write Python code that implements CNAME.py from chamakov/namebench (path: nb_third_party/dns/rdtypes/ANY/CNAME.py)." }, { "role": "assistant", "content": "# nb_third_party/dns/rdtypes/ANY/CNAME.py (from chamakov/namebench, license: apache-2.0)\n\n# Copyright (C) 200...
[ { "role": "user", "content": "Write Python code that implements __openerp__.py from alfredoavanzosc/odoomrp-wip-1 (path: sale_product_variants/__openerp__.py)." }, { "role": "assistant", "content": "# sale_product_variants/__openerp__.py (from alfredoavanzosc/odoomrp-wip-1, license: agpl-3.0)\n\...
[ { "role": "user", "content": "Write Python code that implements models.py from titasakgm/brc-stock (path: openerp/addons/report_geraldo/lib/geraldo/site/newsite/django_1_0/tests/regressiontests/null_queries/models.py)." }, { "role": "assistant", "content": "# openerp/addons/report_geraldo/lib/ge...
[ { "role": "user", "content": "Write Python code that implements qa_probe_density.py from gsmaxwell/phase_offset_rx (path: gr-digital/python/qa_probe_density.py)." }, { "role": "assistant", "content": "# gr-digital/python/qa_probe_density.py (from gsmaxwell/phase_offset_rx, license: gpl-3.0)\n\n#...
[ { "role": "user", "content": "Write Python code that implements uniformbuffers_test_generator.py from rnestler/servo (path: tests/wpt/mozilla/tests/webgl/conformance-2.0.0/deqp/functional/gles3/uniformbuffers/uniformbuffers_test_generator.py)." }, { "role": "assistant", "content": "# tests/wpt/m...
[ { "role": "user", "content": "Write Python code that implements test_credit.py from alu042/edx-platform (path: common/djangoapps/student/tests/test_credit.py)." }, { "role": "assistant", "content": "# common/djangoapps/student/tests/test_credit.py (from alu042/edx-platform, license: agpl-3.0)\n\...
[ { "role": "user", "content": "Write Python code that implements loss_ops.py from snnn/tensorflow (path: tensorflow/contrib/losses/python/losses/loss_ops.py)." }, { "role": "assistant", "content": "# tensorflow/contrib/losses/python/losses/loss_ops.py (from snnn/tensorflow, license: apache-2.0)\n...
[ { "role": "user", "content": "Write Python code that implements dellos9.py from tjanez/ansible (path: lib/ansible/module_utils/dellos9.py)." }, { "role": "assistant", "content": "# lib/ansible/module_utils/dellos9.py (from tjanez/ansible, license: gpl-3.0)\n\n#\n# (c) 2015 Peter Sprygada, <pspry...
[ { "role": "user", "content": "Write Python code that implements links.py from TaylorOshan/pysal (path: pysal/contrib/glm/links.py)." }, { "role": "assistant", "content": "# pysal/contrib/glm/links.py (from TaylorOshan/pysal, license: bsd-3-clause)\n\n'''\nDefines the link functions to be used wi...
[ { "role": "user", "content": "Write Python code that implements athena_control.py from athena-voice/athena-voice-client (path: athena/modules/active/athena_control.py)." }, { "role": "assistant", "content": "# athena/modules/active/athena_control.py (from athena-voice/athena-voice-client, licens...
[ { "role": "user", "content": "Write Python code that implements test_ryu_plugin.py from jumpstarter-io/neutron (path: neutron/tests/unit/ryu/test_ryu_plugin.py)." }, { "role": "assistant", "content": "# neutron/tests/unit/ryu/test_ryu_plugin.py (from jumpstarter-io/neutron, license: apache-2.0)\...
[ { "role": "user", "content": "Write Python code that implements fields.py from TimBuckley/effective_django (path: tests/custom_pk/fields.py)." }, { "role": "assistant", "content": "# tests/custom_pk/fields.py (from TimBuckley/effective_django, license: bsd-3-clause)\n\nimport random\nimport stri...
[ { "role": "user", "content": "Write Python code that implements modfcgid.py from CeltonMcGrath/TACTIC (path: 3rd_party/CherryPy/cherrypy/test/modfcgid.py)." }, { "role": "assistant", "content": "# 3rd_party/CherryPy/cherrypy/test/modfcgid.py (from CeltonMcGrath/TACTIC, license: epl-1.0)\n\n\"\"\...
[ { "role": "user", "content": "Write Python code that implements device_configuration.py from bergercookie/Pump3000 (path: for_keep/final_code/device_configuration.py)." }, { "role": "assistant", "content": "# for_keep/final_code/device_configuration.py (from bergercookie/Pump3000, license: bsd-2...
[ { "role": "user", "content": "Write Python code that implements common.py from FrankTsui/robust_rescaled_svm (path: common.py)." }, { "role": "assistant", "content": "# common.py (from FrankTsui/robust_rescaled_svm, license: apache-2.0)\n\nimport numpy as np \nimport matplotlib.pyplot as plt \n\...
[ { "role": "user", "content": "Write Python code that implements test_tree.py from JeanKossaifi/scikit-learn (path: sklearn/tree/tests/test_tree.py)." }, { "role": "assistant", "content": "# sklearn/tree/tests/test_tree.py (from JeanKossaifi/scikit-learn, license: bsd-3-clause)\n\n\"\"\"\nTesting...
[ { "role": "user", "content": "Write Python code that implements test_openurl.py from miku/siskin (path: siskin/test_openurl.py)." }, { "role": "assistant", "content": "# siskin/test_openurl.py (from miku/siskin, license: gpl-3.0)\n\nfrom siskin.openurl import openurl_parameters_from_intermediate...