messages listlengths 2 2 |
|---|
[
{
"role": "user",
"content": "Write Python code that implements test_thread.py from MalloyPower/parsing-python (path: front-end/testsuite-python-lib/Python-2.3/Lib/bsddb/test/test_thread.py)."
},
{
"role": "assistant",
"content": "# front-end/testsuite-python-lib/Python-2.3/Lib/bsddb/test/test_t... |
[
{
"role": "user",
"content": "Write Python code that implements _compat.py from vipulkanade/EventbriteDjango (path: lib/python2.7/site-packages/gunicorn/_compat.py)."
},
{
"role": "assistant",
"content": "# lib/python2.7/site-packages/gunicorn/_compat.py (from vipulkanade/EventbriteDjango, licen... |
[
{
"role": "user",
"content": "Write Python code that implements ce_dldp_interface.py from richardcs/ansible (path: lib/ansible/modules/network/cloudengine/ce_dldp_interface.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/network/cloudengine/ce_dldp_interface.py (from richardcs/... |
[
{
"role": "user",
"content": "Write Python code that implements test_id_token_credentials.py from apache/airflow (path: tests/providers/google/common/utils/test_id_token_credentials.py)."
},
{
"role": "assistant",
"content": "# tests/providers/google/common/utils/test_id_token_credentials.py (fr... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from bhairavmehta95/flashcard-helper-alexa-skill (path: sqlalchemy/__init__.py)."
},
{
"role": "assistant",
"content": "# sqlalchemy/__init__.py (from bhairavmehta95/flashcard-helper-alexa-skill, license: mit)\n\n# sqlal... |
[
{
"role": "user",
"content": "Write Python code that implements gzip.py from thisispuneet/potato-blog (path: django/middleware/gzip.py)."
},
{
"role": "assistant",
"content": "# django/middleware/gzip.py (from thisispuneet/potato-blog, license: bsd-3-clause)\n\nimport re\n\nfrom django.utils.tex... |
[
{
"role": "user",
"content": "Write Python code that implements netrc.py from peiyuwang/pants (path: src/python/pants/util/netrc.py)."
},
{
"role": "assistant",
"content": "# src/python/pants/util/netrc.py (from peiyuwang/pants, license: apache-2.0)\n\n# coding=utf-8\n# Copyright 2014 Pants proj... |
[
{
"role": "user",
"content": "Write Python code that implements louisiana.py from shawngraham/music-lab-scripts (path: 07_louisiana/louisiana.py)."
},
{
"role": "assistant",
"content": "# 07_louisiana/louisiana.py (from shawngraham/music-lab-scripts, license: mit)\n\n# -*- coding: utf-8 -*-\n##\... |
[
{
"role": "user",
"content": "Write Python code that implements self_check.py from alsrgv/tensorflow (path: tensorflow/python/platform/self_check.py)."
},
{
"role": "assistant",
"content": "# tensorflow/python/platform/self_check.py (from alsrgv/tensorflow, license: apache-2.0)\n\n# Copyright 20... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from EliotBerriot/django (path: django/contrib/admin/__init__.py)."
},
{
"role": "assistant",
"content": "# django/contrib/admin/__init__.py (from EliotBerriot/django, license: bsd-3-clause)\n\n# ACTION_CHECKBOX_NAME is ... |
[
{
"role": "user",
"content": "Write Python code that implements tests.py from wkschwartz/django (path: tests/string_lookup/tests.py)."
},
{
"role": "assistant",
"content": "# tests/string_lookup/tests.py (from wkschwartz/django, license: bsd-3-clause)\n\nfrom django.test import TestCase\n\nfrom ... |
[
{
"role": "user",
"content": "Write Python code that implements other_test.py from naro/django-guardian (path: guardian/tests/other_test.py)."
},
{
"role": "assistant",
"content": "# guardian/tests/other_test.py (from naro/django-guardian, license: bsd-2-clause)\n\nimport guardian\nfrom django.c... |
[
{
"role": "user",
"content": "Write Python code that implements module.py from charukiewicz/beer-manager (path: venv/lib/python3.4/site-packages/flask/module.py)."
},
{
"role": "assistant",
"content": "# venv/lib/python3.4/site-packages/flask/module.py (from charukiewicz/beer-manager, license: m... |
[
{
"role": "user",
"content": "Write Python code that implements test_build_source_container.py from DBuildService/atomic-reactor (path: tests/plugins/test_build_source_container.py)."
},
{
"role": "assistant",
"content": "# tests/plugins/test_build_source_container.py (from DBuildService/atomic-... |
[
{
"role": "user",
"content": "Write Python code that implements oc_label.py from ivanhorvath/openshift-tools (path: openshift/installer/vendored/openshift-ansible-3.6.173.0.59/roles/lib_openshift/library/oc_label.py)."
},
{
"role": "assistant",
"content": "# openshift/installer/vendored/openshif... |
[
{
"role": "user",
"content": "Write Python code that implements tellstick.py from vitorespindola/home-assistant (path: homeassistant/components/light/tellstick.py)."
},
{
"role": "assistant",
"content": "# homeassistant/components/light/tellstick.py (from vitorespindola/home-assistant, license: ... |
[
{
"role": "user",
"content": "Write Python code that implements trafficlights.py from cpd4t/CPD4T_Minecraft_Workshop (path: trafficlights.py)."
},
{
"role": "assistant",
"content": "# trafficlights.py (from cpd4t/CPD4T_Minecraft_Workshop, license: cc0-1.0)\n\n# import modules\nimport mcpi.minecr... |
[
{
"role": "user",
"content": "Write Python code that implements conf.py from crossbario/crossbar-fabric-cli (path: docs/conf.py)."
},
{
"role": "assistant",
"content": "# docs/conf.py (from crossbario/crossbar-fabric-cli, license: mit)\n\n# -*- coding: utf-8 -*-\n\n##############################... |
[
{
"role": "user",
"content": "Write Python code that implements check_pydevconsole.py from powlo/script.module.pydevd (path: lib/tests/check_pydevconsole.py)."
},
{
"role": "assistant",
"content": "# lib/tests/check_pydevconsole.py (from powlo/script.module.pydevd, license: epl-1.0)\n\nimport sy... |
[
{
"role": "user",
"content": "Write Python code that implements logging_handlers.py from umkay/zulip (path: zerver/logging_handlers.py)."
},
{
"role": "assistant",
"content": "# zerver/logging_handlers.py (from umkay/zulip, license: apache-2.0)\n\nfrom __future__ import absolute_import\n\nfrom d... |
[
{
"role": "user",
"content": "Write Python code that implements github_pull.py from vanzaj/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers (path: Chapter3_MCMC/github_pull.py)."
},
{
"role": "assistant",
"content": "# Chapter3_MCMC/github_pull.py (from vanzaj/Probabilistic-Programming... |
[
{
"role": "user",
"content": "Write Python code that implements loggerhelper.py from yahman72/robotframework (path: src/robot/output/loggerhelper.py)."
},
{
"role": "assistant",
"content": "# src/robot/output/loggerhelper.py (from yahman72/robotframework, license: apache-2.0)\n\n# Copyright 200... |
[
{
"role": "user",
"content": "Write Python code that implements perftest.py from Lkhagvadelger/phantomjs (path: src/qt/qtwebkit/Tools/Scripts/webkitpy/performance_tests/perftest.py)."
},
{
"role": "assistant",
"content": "# src/qt/qtwebkit/Tools/Scripts/webkitpy/performance_tests/perftest.py (fr... |
[
{
"role": "user",
"content": "Write Python code that implements test_import.py from exploreodoo/datStruct (path: odoo/openerp/addons/test_impex/tests/test_import.py)."
},
{
"role": "assistant",
"content": "# odoo/openerp/addons/test_impex/tests/test_import.py (from exploreodoo/datStruct, license... |
[
{
"role": "user",
"content": "Write Python code that implements utils_messages.py from quiet-oceans/motuclient-setuptools (path: motu/utils_messages.py)."
},
{
"role": "assistant",
"content": "# motu/utils_messages.py (from quiet-oceans/motuclient-setuptools, license: lgpl-3.0)\n\n#! /usr/bin/en... |
[
{
"role": "user",
"content": "Write Python code that implements plex.py from p0psicles/SickGear (path: sickbeard/notifiers/plex.py)."
},
{
"role": "assistant",
"content": "# sickbeard/notifiers/plex.py (from p0psicles/SickGear, license: gpl-3.0)\n\n# Author: Nic Wolfe <nic@wolfeden.ca>\n# URL: h... |
[
{
"role": "user",
"content": "Write Python code that implements vocabcompiler.py from JeremieSamson/jasper (path: client/vocabcompiler.py)."
},
{
"role": "assistant",
"content": "# client/vocabcompiler.py (from JeremieSamson/jasper, license: mit)\n\n# -*- coding: utf-8-*-\n\"\"\"\nIterates over ... |
[
{
"role": "user",
"content": "Write Python code that implements repository.py from thuswa/subdms (path: subdms/repository.py)."
},
{
"role": "assistant",
"content": "# subdms/repository.py (from thuswa/subdms, license: gpl-3.0)\n\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# $Id$\n# Last m... |
[
{
"role": "user",
"content": "Write Python code that implements linguistics.py from gromez/Sick-Beard (path: lib/imdb/linguistics.py)."
},
{
"role": "assistant",
"content": "# lib/imdb/linguistics.py (from gromez/Sick-Beard, license: gpl-3.0)\n\n\"\"\"\nlinguistics module (imdb package).\n\nThis... |
[
{
"role": "user",
"content": "Write Python code that implements zmq_sub.py from brandonrobertz/namecoin-core (path: contrib/zmq/zmq_sub.py)."
},
{
"role": "assistant",
"content": "# contrib/zmq/zmq_sub.py (from brandonrobertz/namecoin-core, license: mit)\n\n#!/usr/bin/env python3\n# Copyright (c... |
[
{
"role": "user",
"content": "Write Python code that implements geonames_import.py from alessandrocamilli/l10n-italy (path: l10n_it_base_location_geonames_import/geonames_import.py)."
},
{
"role": "assistant",
"content": "# l10n_it_base_location_geonames_import/geonames_import.py (from alessandr... |
[
{
"role": "user",
"content": "Write Python code that implements layouttests.py from Evervolv/android_external_chromium_org (path: media/tools/layout_tests/layouttests.py)."
},
{
"role": "assistant",
"content": "# media/tools/layout_tests/layouttests.py (from Evervolv/android_external_chromium_or... |
[
{
"role": "user",
"content": "Write Python code that implements pull.py from CydarLtd/ansible (path: lib/ansible/cli/pull.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/cli/pull.py (from CydarLtd/ansible, license: gpl-3.0)\n\n# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n#\n#... |
[
{
"role": "user",
"content": "Write Python code that implements account_followup_print.py from FlorianLudwig/odoo (path: addons/account_followup/wizard/account_followup_print.py)."
},
{
"role": "assistant",
"content": "# addons/account_followup/wizard/account_followup_print.py (from FlorianLudwi... |
[
{
"role": "user",
"content": "Write Python code that implements blockdevicemapping.py from appneta/boto (path: boto/ec2/blockdevicemapping.py)."
},
{
"role": "assistant",
"content": "# boto/ec2/blockdevicemapping.py (from appneta/boto, license: mit)\n\n# Copyright (c) 2009-2012 Mitch Garnaat htt... |
[
{
"role": "user",
"content": "Write Python code that implements constructor.py from h3biomed/ansible (path: lib/ansible/parsing/yaml/constructor.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/parsing/yaml/constructor.py (from h3biomed/ansible, license: gpl-3.0)\n\n# (c) 2012-2014, Mic... |
[
{
"role": "user",
"content": "Write Python code that implements test_incomplete_types.py from DDEFISHER/servo (path: components/script/dom/bindings/codegen/parser/tests/test_incomplete_types.py)."
},
{
"role": "assistant",
"content": "# components/script/dom/bindings/codegen/parser/tests/test_in... |
[
{
"role": "user",
"content": "Write Python code that implements batch.py from Charence/stk-code (path: tools/batch.py)."
},
{
"role": "assistant",
"content": "# tools/batch.py (from Charence/stk-code, license: gpl-3.0)\n\nfrom matplotlib import pyplot\nfrom os import listdir\n\ndef is_numeric(x)... |
[
{
"role": "user",
"content": "Write Python code that implements test_abstract_inheritance.py from camilonova/django (path: tests/model_inheritance/test_abstract_inheritance.py)."
},
{
"role": "assistant",
"content": "# tests/model_inheritance/test_abstract_inheritance.py (from camilonova/django,... |
[
{
"role": "user",
"content": "Write Python code that implements test_inotify.py from engdan77/edoAutoHomeMobile (path: twisted/internet/test/test_inotify.py)."
},
{
"role": "assistant",
"content": "# twisted/internet/test/test_inotify.py (from engdan77/edoAutoHomeMobile, license: mit)\n\n# Copyr... |
[
{
"role": "user",
"content": "Write Python code that implements indicator.py from BlueBrain/deap (path: deap/tools/indicator.py)."
},
{
"role": "assistant",
"content": "# deap/tools/indicator.py (from BlueBrain/deap, license: lgpl-3.0)\n\n# Copyright (C) 2010 Simon Wessing\n# TU Dortmund U... |
[
{
"role": "user",
"content": "Write Python code that implements wsgilib.py from dulems/hue (path: desktop/core/ext-py/Paste-1.7.2/paste/wsgilib.py)."
},
{
"role": "assistant",
"content": "# desktop/core/ext-py/Paste-1.7.2/paste/wsgilib.py (from dulems/hue, license: apache-2.0)\n\n# (c) 2005 Ian ... |
[
{
"role": "user",
"content": "Write Python code that implements story.py from hltbra/pyhistorian (path: specs/story.py)."
},
{
"role": "assistant",
"content": "# specs/story.py (from hltbra/pyhistorian, license: mit)\n\n'''\n>>> story.run()\nTrue\n>>> print output.getvalue()\nStory: Faked Story ... |
[
{
"role": "user",
"content": "Write Python code that implements seq2seq_test.py from lukeiwanski/tensorflow-opencl (path: tensorflow/contrib/legacy_seq2seq/python/kernel_tests/seq2seq_test.py)."
},
{
"role": "assistant",
"content": "# tensorflow/contrib/legacy_seq2seq/python/kernel_tests/seq2seq... |
[
{
"role": "user",
"content": "Write Python code that implements wsfexv1.py from Danisan/pyafipws (path: wsfexv1.py)."
},
{
"role": "assistant",
"content": "# wsfexv1.py (from Danisan/pyafipws, license: gpl-3.0)\n\n#!/usr/bin/python\n# -*- coding: latin-1 -*-\n# This program is free software; you... |
[
{
"role": "user",
"content": "Write Python code that implements base.py from belltailjp/scikit-learn (path: sklearn/decomposition/base.py)."
},
{
"role": "assistant",
"content": "# sklearn/decomposition/base.py (from belltailjp/scikit-learn, license: bsd-3-clause)\n\n\"\"\"Principal Component An... |
[
{
"role": "user",
"content": "Write Python code that implements test_ddlemit.py from WinterNis/sqlalchemy (path: test/sql/test_ddlemit.py)."
},
{
"role": "assistant",
"content": "# test/sql/test_ddlemit.py (from WinterNis/sqlalchemy, license: mit)\n\nfrom sqlalchemy.testing import fixtures\nfrom... |
[
{
"role": "user",
"content": "Write Python code that implements daemonize.py from overtherain/scriptfile (path: software/googleAppEngine/lib/django_1_3/django/utils/daemonize.py)."
},
{
"role": "assistant",
"content": "# software/googleAppEngine/lib/django_1_3/django/utils/daemonize.py (from ove... |
[
{
"role": "user",
"content": "Write Python code that implements generate-test-data.py from jmiseikis/HomeAutomation (path: node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/tests/generate-test-data.py)."
},
{
"role": "assistant",
"content": "# node_mod... |
[
{
"role": "user",
"content": "Write Python code that implements cli_deploy.py from dphiggs01/ask_amy (path: ask_amy/cli/cli_deploy.py)."
},
{
"role": "assistant",
"content": "# ask_amy/cli/cli_deploy.py (from dphiggs01/ask_amy, license: apache-2.0)\n\nimport json\nfrom subprocess import Popen, P... |
[
{
"role": "user",
"content": "Write Python code that implements device.py from bewest/amforth (path: core/devices/at90usb647/device.py)."
},
{
"role": "assistant",
"content": "# core/devices/at90usb647/device.py (from bewest/amforth, license: gpl-2.0)\n\n# Partname: AT90USB647\n# generated auto... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from debasishm89/OpenXMolar (path: ExtDepLibs/autoit/__init__.py)."
},
{
"role": "assistant",
"content": "# ExtDepLibs/autoit/__init__.py (from debasishm89/OpenXMolar, license: bsd-3-clause)\n\n# -*- coding: utf-8 -*-\n\... |
[
{
"role": "user",
"content": "Write Python code that implements Options.py from MartynShaw/audacity (path: lib-src/lv2/lv2/plugins/eg-midigate.lv2/waflib/Options.py)."
},
{
"role": "assistant",
"content": "# lib-src/lv2/lv2/plugins/eg-midigate.lv2/waflib/Options.py (from MartynShaw/audacity, lic... |
[
{
"role": "user",
"content": "Write Python code that implements test_object.py from omazapa/root (path: interpreter/llvm/src/bindings/python/llvm/tests/test_object.py)."
},
{
"role": "assistant",
"content": "# interpreter/llvm/src/bindings/python/llvm/tests/test_object.py (from omazapa/root, lic... |
[
{
"role": "user",
"content": "Write Python code that implements test_auto_extend.py from jngeist/hyde (path: hyde/tests/ext/test_auto_extend.py)."
},
{
"role": "assistant",
"content": "# hyde/tests/ext/test_auto_extend.py (from jngeist/hyde, license: mit)\n\n# -*- coding: utf-8 -*-\n\"\"\"\nUse ... |
[
{
"role": "user",
"content": "Write Python code that implements signals.py from Glasgow2015/team-10 (path: env/lib/python2.7/site-packages/cms/tests/signals.py)."
},
{
"role": "assistant",
"content": "# env/lib/python2.7/site-packages/cms/tests/signals.py (from Glasgow2015/team-10, license: apac... |
[
{
"role": "user",
"content": "Write Python code that implements check_sdk_patch.py from KitKatXperience/platform_external_chromium_org (path: win8/util/check_sdk_patch.py)."
},
{
"role": "assistant",
"content": "# win8/util/check_sdk_patch.py (from KitKatXperience/platform_external_chromium_org,... |
[
{
"role": "user",
"content": "Write Python code that implements ifl.py from hahalml/bigcouch (path: couchjs/scons/scons-local-2.0.1/SCons/Tool/ifl.py)."
},
{
"role": "assistant",
"content": "# couchjs/scons/scons-local-2.0.1/SCons/Tool/ifl.py (from hahalml/bigcouch, license: apache-2.0)\n\n\"\"\... |
[
{
"role": "user",
"content": "Write Python code that implements __openerp__.py from syci/OCB (path: addons/l10n_sg/__openerp__.py)."
},
{
"role": "assistant",
"content": "# addons/l10n_sg/__openerp__.py (from syci/OCB, license: agpl-3.0)\n\n# -*- encoding: utf-8 -*-\n# Part of Odoo. See LICENSE ... |
[
{
"role": "user",
"content": "Write Python code that implements qt_doc.py from onlyjus/pyqtgraph (path: doc/extensions/qt_doc.py)."
},
{
"role": "assistant",
"content": "# doc/extensions/qt_doc.py (from onlyjus/pyqtgraph, license: mit)\n\n\"\"\"\nExtension for building Qt-like documentation.\n\n... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from bev-a-tron/pledge_service (path: lib/validictory/__init__.py)."
},
{
"role": "assistant",
"content": "# lib/validictory/__init__.py (from bev-a-tron/pledge_service, license: apache-2.0)\n\n#!/usr/bin/env python\n\nf... |
[
{
"role": "user",
"content": "Write Python code that implements ale_data_set.py from vvw/deep_q_rl (path: deep_q_rl/ale_data_set.py)."
},
{
"role": "assistant",
"content": "# deep_q_rl/ale_data_set.py (from vvw/deep_q_rl, license: bsd-3-clause)\n\n\"\"\"This class stores all of the samples for t... |
[
{
"role": "user",
"content": "Write Python code that implements TestTasks.py from hypermindr/barbante (path: barbante/maintenance/tests/TestTasks.py)."
},
{
"role": "assistant",
"content": "# barbante/maintenance/tests/TestTasks.py (from hypermindr/barbante, license: mit)\n\n\"\"\" Tests for bar... |
[
{
"role": "user",
"content": "Write Python code that implements BaseKvmCPU.py from wnoc-drexel/gem5-stable (path: src/cpu/kvm/BaseKvmCPU.py)."
},
{
"role": "assistant",
"content": "# src/cpu/kvm/BaseKvmCPU.py (from wnoc-drexel/gem5-stable, license: bsd-3-clause)\n\n# Copyright (c) 2012 ARM Limit... |
[
{
"role": "user",
"content": "Write Python code that implements conf.py from Drooids/odoo (path: addons/web/doc/conf.py)."
},
{
"role": "assistant",
"content": "# addons/web/doc/conf.py (from Drooids/odoo, license: agpl-3.0)\n\n# -*- coding: utf-8 -*-\n#\n# OpenERP Technical Documentation config... |
[
{
"role": "user",
"content": "Write Python code that implements pl_administrativeunits.py from thiriel/maps (path: django/contrib/localflavor/pl/pl_administrativeunits.py)."
},
{
"role": "assistant",
"content": "# django/contrib/localflavor/pl/pl_administrativeunits.py (from thiriel/maps, licens... |
[
{
"role": "user",
"content": "Write Python code that implements simple_checks.py from JohnReid/seqan (path: util/py_lib/seqan/pyclangcheck/simple_checks.py)."
},
{
"role": "assistant",
"content": "# util/py_lib/seqan/pyclangcheck/simple_checks.py (from JohnReid/seqan, license: bsd-3-clause)\n\n#... |
[
{
"role": "user",
"content": "Write Python code that implements test_densebasic.py from lidavidm/sympy (path: sympy/polys/tests/test_densebasic.py)."
},
{
"role": "assistant",
"content": "# sympy/polys/tests/test_densebasic.py (from lidavidm/sympy, license: bsd-3-clause)\n\n\"\"\"Tests for dense... |
[
{
"role": "user",
"content": "Write Python code that implements activity.py from appneta/boto (path: boto/ec2/autoscale/activity.py)."
},
{
"role": "assistant",
"content": "# boto/ec2/autoscale/activity.py (from appneta/boto, license: mit)\n\n# Copyright (c) 2009-2011 Reza Lotun http://reza.lotu... |
[
{
"role": "user",
"content": "Write Python code that implements avi_wafprofile.py from h3biomed/ansible (path: lib/ansible/modules/network/avi/avi_wafprofile.py)."
},
{
"role": "assistant",
"content": "# lib/ansible/modules/network/avi/avi_wafprofile.py (from h3biomed/ansible, license: gpl-3.0)\... |
[
{
"role": "user",
"content": "Write Python code that implements swig2_example.py from vberaudi/scipy (path: scipy/weave/examples/swig2_example.py)."
},
{
"role": "assistant",
"content": "# scipy/weave/examples/swig2_example.py (from vberaudi/scipy, license: bsd-3-clause)\n\n\"\"\"Simple example ... |
[
{
"role": "user",
"content": "Write Python code that implements multiplicationTablesCodeEval.py from shubhamVerma/code-eval (path: Category - Easy/multiplicationTablesCodeEval.py)."
},
{
"role": "assistant",
"content": "# Category - Easy/multiplicationTablesCodeEval.py (from shubhamVerma/code-ev... |
[
{
"role": "user",
"content": "Write Python code that implements managed_window.py from moble/sympy (path: sympy/plotting/pygletplot/managed_window.py)."
},
{
"role": "assistant",
"content": "# sympy/plotting/pygletplot/managed_window.py (from moble/sympy, license: bsd-3-clause)\n\nfrom __future_... |
[
{
"role": "user",
"content": "Write Python code that implements query.py from azureplus/hue (path: desktop/core/ext-py/Django-1.6.10/django/contrib/gis/db/models/sql/query.py)."
},
{
"role": "assistant",
"content": "# desktop/core/ext-py/Django-1.6.10/django/contrib/gis/db/models/sql/query.py (f... |
[
{
"role": "user",
"content": "Write Python code that implements csp_xml_to_python.py from AISpace2/AISpace2 (path: aispace2/jupyter/csp/csp_xml_to_python.py)."
},
{
"role": "assistant",
"content": "# aispace2/jupyter/csp/csp_xml_to_python.py (from AISpace2/AISpace2, license: gpl-3.0)\n\n#!/usr/b... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from stefanlaheij/ha-buderus (path: buderus/__init__.py)."
},
{
"role": "assistant",
"content": "# buderus/__init__.py (from stefanlaheij/ha-buderus, license: gpl-3.0)\n\n\"\"\"\nSupport to communicate with a Buderus KM2... |
[
{
"role": "user",
"content": "Write Python code that implements test_flavors.py from HybridF5/nova (path: nova/tests/unit/api/openstack/compute/test_flavors.py)."
},
{
"role": "assistant",
"content": "# nova/tests/unit/api/openstack/compute/test_flavors.py (from HybridF5/nova, license: apache-2.... |
[
{
"role": "user",
"content": "Write Python code that implements 320_test_profile.py from mancoast/CPythonPyc_test (path: fail/320_test_profile.py)."
},
{
"role": "assistant",
"content": "# fail/320_test_profile.py (from mancoast/CPythonPyc_test, license: gpl-3.0)\n\n\"\"\"Test suite for the prof... |
[
{
"role": "user",
"content": "Write Python code that implements test_partial_dependence.py from tosolveit/scikit-learn (path: sklearn/ensemble/tests/test_partial_dependence.py)."
},
{
"role": "assistant",
"content": "# sklearn/ensemble/tests/test_partial_dependence.py (from tosolveit/scikit-lear... |
[
{
"role": "user",
"content": "Write Python code that implements test_security_group_default_rules.py from felixma/nova (path: nova/tests/functional/api_sample_tests/test_security_group_default_rules.py)."
},
{
"role": "assistant",
"content": "# nova/tests/functional/api_sample_tests/test_securit... |
[
{
"role": "user",
"content": "Write Python code that implements exporter.py from caseyclements/bokeh (path: bokeh/compat/mplexporter/exporter.py)."
},
{
"role": "assistant",
"content": "# bokeh/compat/mplexporter/exporter.py (from caseyclements/bokeh, license: bsd-3-clause)\n\n\"\"\"\nMatplotlib... |
[
{
"role": "user",
"content": "Write Python code that implements robotparser.py from nmercier/linux-cross-gcc (path: win32/bin/Lib/robotparser.py)."
},
{
"role": "assistant",
"content": "# win32/bin/Lib/robotparser.py (from nmercier/linux-cross-gcc, license: bsd-3-clause)\n\n\"\"\" robotparser.py... |
[
{
"role": "user",
"content": "Write Python code that implements common.py from zaheerm/gst-python (path: testsuite/common.py)."
},
{
"role": "assistant",
"content": "# testsuite/common.py (from zaheerm/gst-python, license: lgpl-2.1)\n\n# -*- Mode: Python -*-\n# vi:si:et:sw=4:sts=4:ts=4\n#\n# gst... |
[
{
"role": "user",
"content": "Write Python code that implements extension.py from tvald/Jink (path: python/jink/extension.py)."
},
{
"role": "assistant",
"content": "# python/jink/extension.py (from tvald/Jink, license: mit)\n\nimport types\n\nclass LazyFactory(object):\n def __init__(self, mod... |
[
{
"role": "user",
"content": "Write Python code that implements views.py from jancsarc/KIM-Online (path: src/accounts/views.py)."
},
{
"role": "assistant",
"content": "# src/accounts/views.py (from jancsarc/KIM-Online, license: mit)\n\nfrom __future__ import unicode_literals\nfrom django.core.ur... |
[
{
"role": "user",
"content": "Write Python code that implements itercompat.py from ibinti/intellij-community (path: python/lib/Lib/site-packages/django/utils/itercompat.py)."
},
{
"role": "assistant",
"content": "# python/lib/Lib/site-packages/django/utils/itercompat.py (from ibinti/intellij-com... |
[
{
"role": "user",
"content": "Write Python code that implements html.py from fritsvanveen/QGIS (path: python/ext-libs/pygments/formatters/html.py)."
},
{
"role": "assistant",
"content": "# python/ext-libs/pygments/formatters/html.py (from fritsvanveen/QGIS, license: gpl-2.0)\n\n# -*- coding: utf... |
[
{
"role": "user",
"content": "Write Python code that implements Image.py from sohail-aspose/Aspose_Slides_Cloud (path: SDKs/Aspose.Slides_Cloud_SDK_for_Python/asposeslidescloud/models/Image.py)."
},
{
"role": "assistant",
"content": "# SDKs/Aspose.Slides_Cloud_SDK_for_Python/asposeslidescloud/mo... |
[
{
"role": "user",
"content": "Write Python code that implements new_section_python_code.py from seanwisdom/program-with-objects_2 (path: new_section_python_code.py)."
},
{
"role": "assistant",
"content": "# new_section_python_code.py (from seanwisdom/program-with-objects_2, license: mit)\n\ndef ... |
[
{
"role": "user",
"content": "Write Python code that implements approve_draft_registrations.py from mluo613/osf.io (path: scripts/prereg/approve_draft_registrations.py)."
},
{
"role": "assistant",
"content": "# scripts/prereg/approve_draft_registrations.py (from mluo613/osf.io, license: apache-2... |
[
{
"role": "user",
"content": "Write Python code that implements settings.py from RussellRiesJr/CoupleComeStatWithMe (path: ccswm/settings.py)."
},
{
"role": "assistant",
"content": "# ccswm/settings.py (from RussellRiesJr/CoupleComeStatWithMe, license: mit)\n\n\"\"\"\nDjango settings for ccswm p... |
[
{
"role": "user",
"content": "Write Python code that implements ml_environment.py from tillrohrmann/flink (path: flink-python/pyflink/ml/api/ml_environment.py)."
},
{
"role": "assistant",
"content": "# flink-python/pyflink/ml/api/ml_environment.py (from tillrohrmann/flink, license: apache-2.0)\n... |
[
{
"role": "user",
"content": "Write Python code that implements mock_cloud_bucket.py from JCROM-Android/jcrom_external_chromium_org (path: chrome/test/functional/ispy/ispy_core/tests/rendering_test_manager/mock_cloud_bucket.py)."
},
{
"role": "assistant",
"content": "# chrome/test/functional/isp... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from prismskylabs/pycounters (path: src/pycounters/__init__.py)."
},
{
"role": "assistant",
"content": "# src/pycounters/__init__.py (from prismskylabs/pycounters, license: apache-2.0)\n\n\"\"\"\n\nPyCounters is a light ... |
[
{
"role": "user",
"content": "Write Python code that implements microsite.py from bitifirefly/edx-platform (path: common/djangoapps/microsite_configuration/templatetags/microsite.py)."
},
{
"role": "assistant",
"content": "# common/djangoapps/microsite_configuration/templatetags/microsite.py (fr... |
[
{
"role": "user",
"content": "Write Python code that implements test_core.py from moxon6/chemlab (path: tests/test_core.py)."
},
{
"role": "assistant",
"content": "# tests/test_core.py (from moxon6/chemlab, license: gpl-3.0)\n\n\"\"\"Test core types like Molecule and Atom.\"\"\"\nfrom chemlab.co... |
[
{
"role": "user",
"content": "Write Python code that implements utils.py from shtouff/django (path: django/db/utils.py)."
},
{
"role": "assistant",
"content": "# django/db/utils.py (from shtouff/django, license: bsd-3-clause)\n\nimport inspect\nimport os\nimport pkgutil\nimport warnings\nfrom im... |
[
{
"role": "user",
"content": "Write Python code that implements test_spatialrefsys.py from Vixionar/django (path: tests/gis_tests/test_spatialrefsys.py)."
},
{
"role": "assistant",
"content": "# tests/gis_tests/test_spatialrefsys.py (from Vixionar/django, license: bsd-3-clause)\n\nimport unittes... |
[
{
"role": "user",
"content": "Write Python code that implements 20130627032526_3bf5430a8c6f_add_roles_and_permis.py from selahssea/ggrc-core (path: src/ggrc_basic_permissions/migrations/versions/20130627032526_3bf5430a8c6f_add_roles_and_permis.py)."
},
{
"role": "assistant",
"content": "# src/gg... |
[
{
"role": "user",
"content": "Write Python code that implements __init__.py from shubhdev/edxOnBaadal (path: lms/djangoapps/commerce/tests/__init__.py)."
},
{
"role": "assistant",
"content": "# lms/djangoapps/commerce/tests/__init__.py (from shubhdev/edxOnBaadal, license: agpl-3.0)\n\n# -*- codi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.