messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\nimport os\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\ndescription = \"\"\"\nDjango settings resolver.\n\"\"\"\n\nsetup(\n name = \"django-sr\",\n url = \"https:/... | python | edit | 1 | 0 | bsd-3-clause | 32bbd11a910b9c1d686b2d41671f01390af3c36c | jespino/django-sr | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='Frappy',\n version='0.1',\n description='Framework for creating Web APIs in Python',\n author='Luke Lee',\n author_email='<EMAIL>',\n url='htt... | python | edit | 1 | 0 | mit | 504d515f03fffdc999cc21a9615ea659a4e29f3b | durden/frappy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nsetup(\n name = \"django-jsonfield\",\n version = open(os.path.join(os.path.dirname(__file__), 'jsonfield', 'VERSION')).read().strip(),\n description = \"JSONField for django models\",\n ... | python | edit | 1 | 0 | bsd-3-clause | d194c8e532b57956ef2a91f7d391b8f5a7d3c639 | SideStudios/django-jsonfield | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nrequirements = []\n\nwith open('requirements.txt', 'r') as f:\n for line in f:\n requirements.append(str(line.strip()))\n\nsetup(\n name='pp_api',\n version='0.1dev',\n packages=['pp_ap... | python | edit | 1 | 0 | mit | 082dd34f8c9090f8bcb48b460e8ccc0e80aa205c | artreven/pp_api | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetuptools.setup(\n name=\"mock-firestore\",\n version=\"0.1.2\",\n author=\"Matt Dowds\",\n description=\"In-memory implementation... | python | edit | 1 | 0 | mit | 590a1684c7c073879d74240685fe5a304afacfdd | mdowds/python-mock-firestore | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf-8\n\nimport re\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='dictmixin',\n __version__=re.search(\n r'__version__\\s*=\\s*[\\'\"]([^\\'\"]*)[\\'\"]', # It excludes inline... | python | edit | 1 | 3 | mit | b3533959e096f41c4dfad19d98bf43cb13bd070f | tadashi-aikawa/owlmixin | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport names\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name=names.__title__,\n version=names.__version__,\n author=names.__author__,\n url=\"https://github.com/treyhunner/names\",\n description=\"Generate ran... | python | edit | 1 | 0 | mit | ac92bffbbc4b1c1f1fe4f56cd8600b38182e46a8 | treyhunner/names,treyhunner/names | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nexec (open('plotly/version.py').read())\n\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\n\nsetup(name='plotly',\n version=__version__,\n use_2to3=False,\n autho... | python | edit | 4 | 1 | mit | 8817481f758eeb0610b8c77fb9dd15dbdc37579b | plotly/python-api,plotly/python-api,plotly/python-api,plotly/plotly.py,ee-in/python-api,ee-in/python-api,ee-in/python-api,plotly/plotly.py,plotly/plotly.py | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.rst')).read()\nexcept IOError:\n README = ''\n\nversion = \"0.0.1\"\n\ns... | python | edit | 3 | 0 | mit | 3320bd5e5790433e9d45c6ee69d87a3ebef88939 | amol-/tgext.socketio | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nversion = '1.1.0'\n\n\ninstall_requires = (\n 'djangorestframework>=3.0.5,<3.2',\n 'FeinCMS>=1.9,<1.11',\n 'django-orderable>=2.0.1,<4',\n 'feincms-extensions>=0.1.0,<1',\n)\n\n\n... | python | edit | 1 | 0 | bsd-2-clause | ab199d2cbaf72bb5a8c01e96582f726fdb5acbf5 | incuna/feincms-pages-api | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom fabric.api import sudo, task, put\n\nfrom twisted.python.filepath import FilePath\n\nfrom braid import pypy, service, authbind, git, package, bazaar, postgres\n\n\n@task\ndef bootstrap():\n ... | python | edit | 1 | 1 | mit | 87ee89bfa404a81d704fe775031599de84686bbe | alex/braid,alex/braid | braid/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('core', '0007_changeemailrequest'),\n ]\n\n operations = [\n migrations.AddField(\n model_name='c... | python | edit | 1 | 0 | mit | fd50ce4b22b4f3d948a64ed400340c0fc744de49 | opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind | src/waldur_core/core/migrations/0008_changeemailrequest_uuid.py | rejected_duplicate | Near-duplicate of sample 5756 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\ntests_require = [\n 'd... | python | edit | 1 | 0 | bsd-3-clause | 6b667b62ad1987c2a312a918df77c0ebb77af298 | beniwohli/apm-agent-python,songyi199111/sentry,looker/sentry,jbarbuto/raven-python,jmp0xf/raven-python,arthurlogilab/raven-python,mvaled/sentry,looker/sentry,someonehan/raven-python,collective/mr.poe,felixbuenemann/sentry,Goldmund-Wyldebeast-Wunderliebe/raven-python,pauloschilling/sentry,1tush/sentry,nikolas/raven-pyth... | setup.py | rejected_duplicate | Near-duplicate of sample 12185 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom .views import MainHandler, ProcessHandler, DashboardHandler\n\n\nINCLUDE_URLS = [\n (r\"/process/(?P<slug>[\\w-]+).json\", ProcessHandler),\n (r\"/(?P<slug>[\\w-]+)\", DashboardHand... | python | edit | 1 | 0 | mit | e32be307fd99c0d38b514385e0af2c257a50d50b | mining/mining,mlgruby/mining,jgabriellima/mining,mlgruby/mining,mlgruby/mining,chrisdamba/mining,seagoat/mining,chrisdamba/mining,AndrzejR/mining,avelino/mining,seagoat/mining,jgabriellima/mining,avelino/mining,mining/mining,AndrzejR/mining | mining/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom invocations import docs\nfrom invocations.testing import test\nfrom invocations.packaging import release\n\nfrom invoke import Collection\nfrom invoke import run\nfrom invoke import task\n\n\n@task(help={\n 'pty': \"Whether to run t... | python | edit | 4 | 0 | bsd-2-clause | a885ebda3774f9d81422a96265bde25f6a93e7bf | bitprophet/releases | tasks.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding=utf-8\n\n\"\"\"Useful task commands for development and maintenance.\"\"\"\n\nfrom invoke import run, task\n\n\n@task\ndef clean():\n\t\"\"\"Clean the project directory of unwanted files and directories.\"\"\"\n\n\trun('rm -rf gmus... | python | edit | 1 | 2 | mit | 49bed20629d4b2ef50026700b98694da4c2ce224 | thebigmunch/gmusicapi-scripts | tasks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n'''\nTests for the salt-run command\n'''\n# Import Python libs\nfrom __future__ import absolute_import\n\n# Import Salt Testing libs\nimport tests.integration as integration\n\n\nclass ManageTest(integration.ShellCa... | python | edit | 1 | 1 | apache-2.0 | e24f89366a8a58a29d26f58b8f21aba437ec1566 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | tests/integration/runners/test_cache.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nfrom LinkMeBot.utils import get_text_from_markdown, human_readable_download_number\n\nclass TestUtils(unittest.TestCase):\n def test_get_text_from_markdown(self):\n markdown = '**test** [^this](https://google.co... | python | edit | 1 | 1 | mit | cb5f74d83f1ed5d655823b87d25ff031e9cb4bc8 | crisbal/PlayStoreLinks_Bot | test/test_utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.utils import timezone\nfrom rest_framework import serializers, viewsets\n\nfrom parkings.models import Parking, ParkingArea\n\n\nclass ParkingAreaStatisticsSerializer(serializers.ModelSerializer):\n current_parking_count = se... | python | edit | 1 | 2 | mit | 1c61a731bf33ee25e1bc1725455978064c59748b | tuomas777/parkkihubi | parkings/api/public/parking_area_statistics.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function, unicode_literals\nimport unittest\nfrom nltk.stem.snowball import SnowballStemmer\n\nclass SnowballTest(unittest.TestCase):\n\n def test_russian(self):\n # Russian wo... | python | edit | 1 | 1 | apache-2.0 | 367e025f5710301545bde09daf06cc2e5fe21510 | nltk/nltk,nltk/nltk,nltk/nltk | nltk/test/unit/test_stem.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf8\nfrom atlassian import Confluence\n\nconfluence = Confluence(\n url='http://localhost:8090',\n username='admin',\n password='admin')\n# this example related get all user from group e.g. group_name\ngroup_name = 'conf... | python | edit | 1 | 0 | apache-2.0 | cafe4629666326fefab17784abac281e7fb226c7 | MattAgile/atlassian-python-api,AstroTech/atlassian-python-api,AstroTech/atlassian-python-api | examples/confluence-get-group-members.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom rest_framework import status\nfrom rest_framework.exceptions import APIException\n\n\ndef json_api_exception_handler(exc, context):\n \"\"\"\n Custom exception handler that returns errors object as an array\n \"\"\"\n fro... | python | edit | 1 | 9 | apache-2.0 | 5e3e3bea2c210d2b14873930dac5e98e4b813726 | amyshi188/osf.io,haoyuchen1992/osf.io,leb2dg/osf.io,DanielSBrown/osf.io,mfraezz/osf.io,arpitar/osf.io,saradbowman/osf.io,felliott/osf.io,brandonPurvis/osf.io,SSJohns/osf.io,njantrania/osf.io,sloria/osf.io,mattclark/osf.io,icereval/osf.io,baylee-d/osf.io,crcresearch/osf.io,RomanZWang/osf.io,caneruguz/osf.io,amyshi188/os... | api/base/exceptions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Test gdal plugin functionality.\n\"\"\"\nimport pytest\nfrom imageio.testing import run_tests_if_main, get_test_dir\n\nimport imageio\nfrom imageio.core import get_remote_file\n\ntest_dir = get_test_dir()\n\n\ntry:\n from osgeo im... | python | edit | 1 | 1 | bsd-2-clause | 7c5cf5eb9b59a499ab480ea571cbb9d8203c1a79 | imageio/imageio | tests/test_gdal.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nA module that brings in equivalents of the new and modified Python 3\nbuiltins into Py2. Has no effect on Py3.\n\nSee the docs for these modules for more information::\n\n- future.builtins.iterators\n- future.builtins.backports\n- f... | python | edit | 1 | 0 | mit | a8974f140158d27ff2b3c6cf0d38829109244bed | michaelpacer/python-future,krischer/python-future,PythonCharmers/python-future,krischer/python-future,PythonCharmers/python-future,QuLogic/python-future,michaelpacer/python-future,QuLogic/python-future | future/builtins/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport sqlite3\n\nfrom binder.conn import Connection\nfrom binder.sqlgen import DIALECT_SQLITE\n\nclass SqliteConnection(Connection):\n\n def __init__(self, dbfile, read_only):\n dbconn = sqlite3.connect(dbfile)\n dberror... | python | edit | 1 | 1 | mit | b2c90df01d86488b1dece173b6bb6b0afa0fbdcf | divtxt/binder | src/binder/db_sqlite.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, url\nfrom harvest.views import ApproveJobView, CancelJobView\n\nurlpatterns = patterns('',\n url(r'^(?P<job_id>\\d+)/approve/?$', ApproveJobView.as_view(), name = 'approve_job' ),\n url(r'^(?P<j... | python | edit | 1 | 0 | bsd-3-clause | 2d811e0e7e7acf952df25c444d926aee7ef0d8fc | rockychen-dpaw/borgcollector,parksandwildlife/borgcollector,rockychen-dpaw/borgcollector,parksandwildlife/borgcollector,rockychen-dpaw/borgcollector,parksandwildlife/borgcollector | harvest/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom tqdm import format_interval, format_meter\n\n\ndef test_format_interval():\n assert format_interval(60) == '01:00'\n assert format_interval(6160) == '1:42:40'\n assert format_interval(2... | python | edit | 1 | 3 | mit | 4539ebc92d59dd0388658fa482626185088222b8 | lrq3000/tqdm,kmike/tqdm | tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport platform\nimport sys\n\nBASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'\nLIBCHROMIUMCONTENT_COMMIT = 'e375124044f9044ac88076eba0cd17361ee0997c'\n\nARCH = {\n 'cygwin': '32bit',... | python | edit | 2 | 1 | mit | 54933f992af05ea3ac1edbb11e5873b9327a946e | JussMee15/electron,mrwizard82d1/electron,chriskdon/electron,seanchas116/electron,the-ress/electron,anko/electron,brenca/electron,kikong/electron,RobertJGabriel/electron,jacksondc/electron,etiktin/electron,arturts/electron,DivyaKMenon/electron,gerhardberger/electron,twolfson/electron,fffej/electron,mirrh/electron,Bionic... | script/lib/config.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\nimport django.db.models.deletion\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('zerver', '0231_add... | python | edit | 1 | 0 | apache-2.0 | b8839302c0a4d8ada99a695f8829027fa433e05e | eeshangarg/zulip,shubhamdhama/zulip,zulip/zulip,brainwane/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,hackerkid/zulip,hackerkid/zulip,timabbott/zulip,zulip/zulip,timabbott/zulip,synicalsyntax/zulip,tommyip/zulip,tommyip/zulip,rht/zulip,andersk/zulip,rishig/zulip,rht/zulip,timabbott/zulip,brainwane/zulip,ee... | zerver/migrations/0232_make_archive_transaction_field_not_nullable.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport argparse\nimport yaml\nfrom os.path import expanduser\n\n\ndef load_config_from(path):\n with open(expanduser(path)) as file:\n return yaml.load(file)\n\ndef parse_options():\n parser = argparse.ArgumentParser()\n parser.add_ar... | python | edit | 2 | 2 | mit | 2a7322104eb4222517f8a1167597104c5daab0bc | phss/notes-cli | notes-cli.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Distributed Task Queue\"\"\"\nfrom celery.distmeta import __version__, __author__, __contact__\nfrom celery.distmeta import __homepage__, __docformat__\nfrom celery.distmeta import VERSION, is_stable_release, version_with_meta\n\n```\... | python | edit | 15 | 0 | bsd-3-clause | 566e68d3b06d3aaba796f0cda57a42bb12cf6d79 | cbrepo/celery,WoLpH/celery,ask/celery,mitsuhiko/celery,cbrepo/celery,mitsuhiko/celery,frac/celery,frac/celery,ask/celery,WoLpH/celery | celery/__init__.py | rejected_lint | Too many lint violations: 15 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom sqlalchemy import func\nfrom sqlalchemy.ext.hybrid import Comparator\n\n\nclass CaseInsensitiveComparator(Comparator):\n def __eq__(self, other):\n return func.lower(self.__clause_element__()) == func.lower(other)\n\n```\n\nA... | python | edit | 3 | 1 | bsd-2-clause | 1468d6e257d4f22f803549606cbd3e3245c2ce37 | moritz9/redash,44px/redash,getredash/redash,alexanderlz/redash,alexanderlz/redash,moritz9/redash,44px/redash,44px/redash,denisov-vlad/redash,getredash/redash,getredash/redash,denisov-vlad/redash,getredash/redash,denisov-vlad/redash,chriszs/redash,denisov-vlad/redash,44px/redash,alexanderlz/redash,getredash/redash,chris... | redash/utils/comparators.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom viper.interactive import *\n\n\nif __name__ == '__main__':\n import argparse\n parser = argparse.ArgumentParser()\n parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes in... | python | edit | 4 | 0 | apache-2.0 | 8b0c1fc8d06a4561b9241a92162a24a4df0efa34 | pdarragh/Viper | viper.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# iterative approach to binary search function (assume list has distinct elements and elements are in ascending order)\n\ndef binary_search(arr, data):\n\tlow = 0 # first element in array\n\thigh = len(arr) - 1 # last item in array\n\twhile... | python | edit | 6 | 4 | mit | 3598313c087651a85dce5e31d9fdc227dea0ccf4 | derekmpham/interview-prep,derekmpham/interview-prep | binary-search.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport api\nimport unittest\nimport os\nfrom getpass import getpass\n\nclass ApiTest(unittest.TestCase):\n\n def setUp(self):\n self.linode = api.Api(os.environ['LINODE_API_KEY'])\n\n def testAvailLinodeplans(self):\n av... | python | edit | 1 | 1 | mit | a827279098ab2ef73778b15a76f738fedce9ed30 | ryanshawty/linode-python,tjfontaine/linode-python | tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- encoding: utf-8 -*-\n\nimport uuid\n\nimport archive_report_ingest_status as report_ingest_status\n\n\ndef test_get_returns_status(dynamodb_resource, table_name):\n guid = str(uuid.uuid4())\n\n table = dynamodb_resource.Table(ta... | python | edit | 1 | 1 | mit | 66602e67c06266735b58fd2bee8b55b7cac401b1 | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | archive/archive_report_ingest_status/src/test_archive_report_ingest_status.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# THIRD PARTY\nfrom djangae.fields import CharField\nfrom django.db import models\n\n\nclass Secret(models.Model):\n created = models.DateTimeField(auto_now_add=True)\n url_slug = CharField(primary_key=True)\n secret = CharField()\... | python | edit | 4 | 2 | mit | 342c1c70e2fbf13bea87792b6a289f830fb95692 | adamalton/letsencrypt-appengine | letsencryptae/models.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# rcstreamlistener.py\nimport urllib3.contrib.pyopenssl\nimport logging\nfrom ipaddress import ip_address\nfrom socketIO_client import SocketIO, BaseNamespace\n\nurllib3.contrib.pyopenssl.inject_into_urllib3()\nlogging.basicConfig(level=log... | python | edit | 5 | 3 | mit | 2fcd13435d04622c7ec0915a77efb390ea9c09b1 | piagetbot/enwikibot | rcstreamlistener.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Run all tests\n\nimport os\nimport subprocess\nimport sys\n\ntopdir = os.path.dirname(os.path.realpath(os.path.abspath(__file__)))\nos.chdir(topdir)\nretcode = subprocess.call(\"nosetests\")\nif not retcode:\n os... | python | edit | 3 | 0 | mit | 08da651286cf7ac8459a059a01831f75c08f80a7 | restpose/restpose-py,restpose/restpose-py | alltests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport argparse\nfrom . import compiler\n\n\ndef main():\n parser = argparse.ArgumentParser(description='CodeKit Language Compiler.')\n parser.add_argument('src', nargs=1, metavar='SOURCE')\n parser.add_a... | python | edit | 1 | 1 | bsd-3-clause | cf6e7bdbd9ec6968be8767f1bbcab09de6f8aace | gjo/python-codekitlang,gjo/python-codekitlang | codekitlang/command.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nRecreate the SWaT network with the highest level of precision.\n\"\"\"\n\nfrom mininet.net import Mininet\nfrom mininet.topo import Topo\nfrom minicps import constants as c\n\n\nclass EthRing(Topo):\n\n \"\"\"Docstring for EthRin... | python | edit | 1 | 1 | mit | 7f1109d38f9bc2f973410f071c97ad874dd6cb0d | scy-phy/minicps,scy-phy/minicps,remmihsorp/minicps,remmihsorp/minicps | minicps/topology.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"A Python 3 package for interacting with *all* aspects of the Pushover API\"\"\"\n\nfrom .error import PushoverCompleteError, BadAPIRequestError\nfrom .pushover_api import PushoverAPI\n\n__all__ = [\n 'PushoverCompleteError', 'BadAP... | python | edit | 1 | 0 | mit | 6250427143245676a5efd7e5c55054b5b3a285fd | scolby33/pushover_complete | src/pushover_complete/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the Li... | python | edit | 1 | 1 | apache-2.0 | f0af944db962bdb8ea764737860ce9168f779977 | GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker | perfkitbenchmarker/linux_packages/azure_credentials.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Multiprocess helpers\n\"\"\"\n\n\nclass SerialExecutor(object):\n \"\"\" Make regular old 'map' look like :mod:`futures.concurrent`\n \"\"\"\n map = map\n\n\ndef get_executor(executor, njob):\n \"\"\" Return an instance o... | python | edit | 1 | 3 | bsd-3-clause | a2f338d06f097d3446627dcbc9b0d727951fcf56 | ceholden/tilezilla,ceholden/landsat_tile,ceholden/landsat_tile,ceholden/landsat_tiles,ceholden/landsat_tiles | tilezilla/multiprocess.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#%% Setup.\nimport numpy as np\nimport scipy.io.wavfile\n\nfrom keras.utils.visualize_util import plot\nfrom keras.callbacks import TensorBoard, ModelCheckpoint\nfrom keras.utils import np_utils\n\nfrom eva.models.wavenet import Wavenet, co... | python | edit | 4 | 0 | apache-2.0 | 546140bee689fc63361977dafa600022396606e7 | israelg99/eva | audio_train.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# This file is only a \"symlink\" to bootstrap.py, all logic should go there.\n\nimport os\nimport sys\nrust_dir = os.path.dirname(os.path.abspath(__file__))\nsys.path.append(os.path.join(rust_dir, \"src\", \"bootst... | python | edit | 1 | 0 | apache-2.0 | c8cac2a2c1b42fde675b166272729c74c2c42cdc | aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust | x.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='Yify',\n version='0.1.0',\n author='Batista Harahap',\n author_email='<EMAIL>',\n packages=['yify'],\n url='https://github.com/tistaharahap/yify-python',\n license='LIC... | python | edit | 1 | 0 | mit | 56116d198ea9fea6d9753c412fff550876e17196 | tistaharahap/yify-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom collections import OrderedDict\nfrom elifetools.utils import date_struct\n\n\nexpected = [\n OrderedDict([\n ('event_type', 'preprint-publication'),\n ('event_desc', 'This article was originally published as a <ext-lin... | python | edit | 1 | 0 | mit | d37237779e6e2a7ed1df9a9ea83e93df2cf2b478 | elifesciences/elife-tools,elifesciences/elife-tools | elifetools/tests/fixtures/test_pub_history/content_01_expected.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport csv\n\nclass CsvConverter:\n\n def __init__(self, csv_file_path):\n self.csv_file_path = csv_file_path\n self.rows = []\n self.source_product_code = \"product_... | python | edit | 1 | 3 | mit | b7077a85956cae3efb2ec1b2f474735cf6e8c4ed | stormaaja/csvconverter,stormaaja/csvconverter,stormaaja/csvconverter | csv_converter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom subprocess import Popen, PIPE\n\nproc = Popen([\"./badencrypt.py\", \"hello!!!\"],stdout=PIPE)\nhexCiphertext = proc.communicate()[0].strip()\n\n#import pdb\n#pdb.set_trace()\nprint hexCiphertext\n\nproc = Popen([\"./baddecrypt.py\", h... | python | edit | 4 | 0 | mit | f707daae978f6fb7c8b5cc8f66cac2820097ebde | somethingnew2-0/CS642-HW4,somethingnew2-0/CS642-HW4 | attack.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='zeit.brightcove',\n version='2.10.2.dev0',\n author='gocept, Zeit Online',\n author_email='<EMAIL>',\n url='http://www.zeit.de/',\n description='Brightcove HTTP... | python | edit | 1 | 0 | bsd-3-clause | 4ced26323a1e98b9fea823c35ebbbb28b103369a | ZeitOnline/zeit.brightcove | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nMESOS_VERSION = '0.20.0'\nUBUNTU_VERSION = '14.04'\n\ntests_require = ['pytest>=2.5.0,<2.6.0', 'pytest-cov>=1.6,<1.7',\n 'pytest-xdist>=1.9,<1.10', 'unittest2>=0.5.1,<0.6.0',\n ... | python | edit | 1 | 0 | apache-2.0 | a5e6c7ab40d1f8dd7f8b3c68ad461ec6adaa0ed2 | dropbox/changes-mesos-framework,dropbox/changes-mesos-framework | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nVERSION = (1, 4, 13)\n\n# Dynamically calculate the version based on VERSION tuple\nif len(VERSION)>2 and VERSION[2] is not None:\n str_version = \"%d.%d_%s\" % VERSION[:3]\nelse:\n str_v... | python | edit | 1 | 0 | bsd-3-clause | 6ab12eb503bbe2eddc1eb419398082dffeb335d5 | pjrobertson/dj-livesettings | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nimport mzgtfs\n\nsetup(\n name='mzgtfs',\n version=mzgtfs.__version__,\n description='Mapzen GTFS',\n author='Ian Rees',\n author_email='<EMAIL>',\n url='https://github.com/transitland/mapzen-gtfs',\n ... | python | edit | 1 | 0 | mit | 9b01b00bf5fa60efaa402bf1e40154574942558e | brechtvdv/mapzen-gtfs,brennan-v-/mapzen-gtfs,transitland/mapzen-gtfs | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nif __name__ == \"__main__\":\n import falafel\n\n setup(\n name=falafel.NAME,\n version=falafel.VERSION,\n description=\"Insights Application Programming Interface\",... | python | edit | 1 | 0 | apache-2.0 | dfb133beb576cddc67bbaf17c2598b7f37c76bad | RedHatInsights/insights-core,RedHatInsights/insights-core | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nREPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'\n\n\nsetup(\n author='Serenata de Amor',\n author_email='<EMAIL>',\n classifiers=[\n 'Development Status :: 4 - Beta',\n 'I... | python | edit | 1 | 0 | mit | 87b708002b80be80657c0eb1d7670fe40f1d992d | datasciencebr/serenata-toolbox | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\nfrom setuptools import setup, find_packages\nimport pyecore\n\nif sys.version_info < (3, 0):\n sys.exit('Sorry, Python < 3.0 is not supported')\n\n\nsetup(\n name=\"pyecore\",\n version=pyecore.... | python | edit | 1 | 0 | bsd-3-clause | e7d610ae806979eae0084c442bdba79c2bd919a2 | pyecore/pyecore,aranega/pyecore | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf8\n\n# Copyright 2014-2015 Vincent Jacques <<EMAIL>>\n\nimport contextlib\nimport os\nimport setuptools\nimport setuptools.command.test\n\n\nversion = \"0.2.1\"\n\n\nsetuptools.setup(\n name=\"LowVolta... | python | edit | 3 | 0 | mit | f4510b9b6402ddbe2412eb5524c7a44eb6bc966d | jacquev6/LowVoltage,jacquev6/LowVoltage | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\nimport versioneer\n\nif __name__ == \"__main__\":\n setuptools.setup(\n name='basis_set_exchange',\n version=versioneer.get_version(),\n cmdclass=versioneer.get_cmdclass(),\n description='Th... | python | edit | 1 | 0 | bsd-3-clause | 5089c8a348f44a4741ab94be78f81ce0fbf34c65 | MOLSSI-BSE/basis_set_exchange | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"How to release a new version: https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi\"\"\"\n\nfrom businesstime import __version__\n\ntry:\n from setuptools import setup\nex... | python | edit | 1 | 0 | bsd-2-clause | 63431113fbb1d1d6793761e3cc30a8492df2f580 | seatgeek/businesstime | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nimport pykka\n\nsetup(\n name='Pykka',\n version=pykka.get_version(),\n author='Stein Magnus Jodal',\n author_email='<EMAIL>',\n packages=['pykka'],\n url='http://jodal.github.com/pykka/... | python | edit | 1 | 0 | apache-2.0 | 76dddab86552a1e65cdc8ed26bb0674c83d5697b | tempbottle/pykka,jodal/pykka,tamland/pykka | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='nanomon',\n version='1.0',\n author='Michael Barrett',\n author_email='<EMAIL>',\n description='The Nano Monitoring System',\n packages=find_packages(),\n)\n\n```\n\n... | python | edit | 1 | 0 | bsd-2-clause | e318716fdaeda8fdabe06daf644178a43bc7400e | cloudtools/nymms | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='udiskie',\n version='0.3.10',\n description='Removable disk automounter for udisks',\n author='Byron Clark',\n author_email='<EMAIL>',\n url='http://bitbucket.org/byroncla... | python | edit | 1 | 0 | mit | d403ae5e41f53f6c2893a946b94c4de899127fba | pstray/udiskie,pstray/udiskie,coldfix/udiskie,coldfix/udiskie,mathstuf/udiskie,khardix/udiskie | setup.py | rejected_duplicate | Near-duplicate of sample 9313 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom __future__ import print_function\n\nfrom setuptools import setup, find_packages\n\nentry_points = \"\"\"\n[glue.plugins]\nvispy_volume=glue_vispy_viewers.volume:setup\nvispy_scatter=glue_vispy_viewers.scatter:s... | python | edit | 1 | 0 | bsd-2-clause | 7dcd285bb9e1b48c70d39eb35d132277e4d8ee88 | glue-viz/glue-3d-viewer,PennyQ/astro-vispy,PennyQ/glue-3d-viewer,glue-viz/glue-vispy-viewers,astrofrog/glue-vispy-viewers,astrofrog/glue-3d-viewer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\nfrom distutils.file_util import copy_file\nimport platform\n\nversion = \"0.1.0\"\n\nsetup(name=\"riemann-sumd\",\n version=version,\n description=\"Python agent for schedul... | python | edit | 4 | 0 | mit | c1498aebcb7d74d023be65055f19a89acf0ec546 | crashlytics/riemann-sumd | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(\n name=\"nbresuse\",\n version='0.2.0',\n url=\"https://github.com/yuvipanda/nbresuse\",\n author=\"Yuvi Panda\",\n description=\"Simple Jupyter extension to show how much resources (RAM... | python | edit | 1 | 0 | bsd-2-clause | 10eb6b8b29906c5c89c3675b660c21028db5b2c3 | yuvipanda/nbresuse,yuvipanda/nbresuse | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nAdapted from:\nhttps://packaging.python.org/tutorials/packaging-projects/\n\"\"\"\n\nimport setuptools\nfrom fsic import __version__\n\n\nwith open('README.md') as f:\n long_description = f.read()\n\nsetu... | python | edit | 1 | 3 | mit | fe870ecdfe63348607fa5d5e6c4101e2609c7553 | ChrisThoung/fsic | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n\nwith open('README.rst', 'r', 'utf-8') as f:\n readme = f.read()\n\n\nsetup(\n name='blanc-contentfiles',\n version='0.2.4',\n des... | python | edit | 1 | 0 | bsd-3-clause | c42bd2e3ae6f8c5c4170c3d5f2ae8ce176939f97 | blancltd/blanc-contentfiles | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='k2catalogue',\n version='0.0.1',\n author='Simon Walker',\n install_requires=['requests', 'sqlalchemy', 'ipython',],\n tests_require=['vcrpy', 'pytest'],\n pack... | python | edit | 1 | 0 | mit | 7ab6e87a8cf89c12733f7923c0f4564672f549fc | mindriot101/k2catalogue | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n\tREADME = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.absp... | python | edit | 1 | 0 | mit | 149c5fb9651f8e33a5e2984f47f8de05c02c1e43 | RyanBalfanz/django-smsish | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='daffodil',\n version='0.3.0',\n author='James Robert',\n description='A Super-simple DSL for filtering datasets',\n license='MIT',\n keywords='data filtering',\n url='https... | python | edit | 1 | 0 | mit | 4a36283ac196f5c5832d32ba656aca7c651183f4 | igorkramaric/daffodil,mediapredict/daffodil | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, PEP420PackageFinder\n\n\nsetup(\n name='tangled.web',\n version='1.0a13.dev0',\n description='RESTful Web Framework',\n long_description=open('README.rst').read(),\n url='http://tangledframework.... | python | edit | 1 | 0 | mit | eb151779dc462e29001c75ed0e05b1c395a27968 | TangledWeb/tangled.web | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nsetup(\n name='pynubank',\n version='1.2.0',\n url='https://github.com/andreroggeri/pynubank',\n author='André Roggeri Campos',\n author_email='<EMAIL>',\n license='... | python | edit | 1 | 0 | mit | 30c80e5c793c1f59f2a22e10cf183de15ef463dd | andreroggeri/pynubank | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport distutils.core\n\n# Uploading to PyPI\n# =================\n# $ python setup.py register -r pypi\n# $ python setup.py sdist upload -r pypi\n\nversion = '1.1'\ndistutils.core.setup(\n name='linersock',\... | python | edit | 1 | 0 | mit | 7c0c5631ff9f2d3511b7c460d22516b5b0393697 | kalekundert/linersock,kalekundert/linersock | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"This is your typical app, demonstrating usage.\"\"\"\n\nimport os\n\nfrom flask_jsondash.charts_builder import charts\n\nfrom flask import (\n Flask,\n session,\n)\n\napp = Flask(__name__)\napp.config['SECRET_KEY'] = 'NOTSECUREL... | python | edit | 3 | 1 | mit | 54ba0d0f7ead8ce49f50d3ecfa6b0a86b227bea7 | christabor/flask_jsondash,christabor/flask_jsondash,christabor/flask_jsondash | app.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\n\nfrom setuptools import setup, find_packages\n\n\nREADME_FILE = os.path.join(os.path.dirname(__file__), 'README.rst')\n\nsetup(\n name='tomako',\n version='dev',\n description='Tomako is the eas... | python | edit | 1 | 0 | mit | 36f5fc790e27b9d617f71a3fe49160cb99d2e5d3 | rcmachado/tomako,rcmachado/tomako | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\n properties: Fancy properties for Python.\n\"\"\"\n\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nCLASSIFIERS = [\n 'Development Status :: 4 - Beta',\n 'Programming Langua... | python | edit | 1 | 0 | mit | ab5a93e55f9e6e1607afcb3ba03d2103dc423cc7 | 3ptscience/properties,aranzgeo/properties | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask\n\n# from image_classification import ImageClassifier\n\napp = Flask(__name__)\n\n\n@app.route('/')\ndef home():\n return 'Hello classification world!'\n\n\nif __name__ == '__main__':\n app.run()\n\n```\n\nAppl... | python | edit | 1 | 1 | mit | e9bb349469b27ae9cd3280cf14aad27101b2f0fa | yassineAlouini/image-recognition-as-a-service,yassineAlouini/image-recognition-as-a-service | app.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n\nfrom distutils.core import setup\n\nfrom hipshot import hipshot\n\n\n_classifiers = [\n 'Development Status :: 4 - Beta',\n 'Environment :: Console',\n 'Intended Audience :: End Users/Desktop',\n 'Licen... | python | edit | 1 | 0 | isc | ad53b2e3f52382e9656a00b5c3641fa9d3e47bb1 | eliteraspberries/hipshot | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom flask_mwoauth import __version__\n\nsetup(name='flask-mwoauth',\n version=__version__,\n description='Flask blueprint to connect to a MediaWiki OAuth server',\n url='http://github.com/valh... | python | edit | 2 | 0 | mit | f74ccf59547d8b7dbee5cbcbf608940a33a8c3f9 | sitic/flask-mwoauth,valhallasw/flask-mwoauth,sitic/flask-mwoauth,valhallasw/flask-mwoauth | setup.py | rejected_duplicate | Near-duplicate of sample 4474 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\nfrom __future__ import division\nfrom __future__ import absolute_import\nfrom future import standard_library\nstandard_library.install_aliases()\nimport argpars... | python | edit | 1 | 4 | mit | e2ea8d08d5e6006136b74d00a2ee64d1e7858941 | toslunar/chainerrl,toslunar/chainerrl | plot_scores.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n__all__ = [\"FibonacciGenerator\"]\n\n\nclass FibonacciGenerator(object):\n \"\"\"\n \"\"\"\n\n # We use List to cache already founded fibonacci numbers,\n # and 1 is the first fibonacci number.\n _... | python | edit | 1 | 2 | mit | 571298802f889a1eb4c397ae9bfa4fea0a2a558c | mvj3/prints_a_multiplication_table_of_primes_numbers | prints_a_multiplication_table_of_primes_numbers/fibonacci_generator.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport serial\nimport threading\n\nprint('Starting server...')\n\ntemperature_usb = '/dev/ttyAMA0'\nBAUD_RATE = 9600\ntemperature_ser = serial.Serial(temperature_usb, BAUD_RATE)\n\ndef process_line(line):\n\tprint('Need to process line: {}'... | python | edit | 1 | 3 | mit | 1e1c9715be91c2b723a26e037d2fa68064bd3bf6 | illumenati/duwamish-sensor,tipsqueal/duwamish-sensor | run.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom datetime import datetime\n\nfrom rest_framework import renderers\nfrom icalendar import Calendar, Event\n\n\nclass ICalRenderer(renderers.BaseRenderer):\n media_type = 'text/calendar'\n format = 'ics'\n\n def render(self, data... | python | edit | 1 | 5 | apache-2.0 | 9448374db62049b6f0209a0b6c3b01f3336e2b2b | ox-it/talks.ox,ox-it/talks.ox,ox-it/talks.ox | talks/core/renderers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Dashboard template filters\"\"\"\nfrom django import template\nimport littlechef\n\nfrom kitchen.settings import REPO\n\nregister = template.Library()\n\n\n@register.filter(name='get_role_list')\ndef get_role_list(run_list):\n \"\"... | python | edit | 1 | 4 | apache-2.0 | 9a30728493258d7dcf60b67a8c87489e1457df1a | edelight/kitchen,edelight/kitchen,edelight/kitchen,edelight/kitchen | kitchen/dashboard/templatetags/filters.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Raise ImproperlyConfigured if django migrations module does not exist (for South users)."
},
{
"role": "assistant",
"content": "\"\"\"\nDjango migrations for robots app\n\nThis package does not contain South migrations. South mig... | python | new_file | 1 | 0 | bsd-3-clause | f16800869c6eaa00cb633f181749e4938c257dc6 | jazzband/django-robots,jezdez/django-robots,jscott1971/django-robots,jscott1971/django-robots,jazzband/django-robots,jezdez/django-robots | robots/migrations/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom random import randint\nfrom time import sleep\nfrom os import system\nfrom easygui import msgbox\n\nwhile True:\n delay = randint(60, 2000)\n sleep(delay)\n system(\"aplay /usr/lib/libreoffice/share/gallery/so... | python | edit | 1 | 0 | apache-2.0 | 4eecac0764e8abfc33c9e77b8eb6b700b536f1a0 | dnuffer/carrot_slots | pull_me.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# from subprocess import CalledProcessError\nimport subprocess\n\n\ndef run_through_shell(command, enable_shell=False):\n \"\"\"\n Retrieves output of command\n Returns tuple success (boolean)/ stdout(string) / stderr (string)\n\n ... | python | edit | 1 | 3 | mit | 5448e38d14589b7558513f51d0abf541790be817 | m45t3r/i3pystatus,teto/i3pystatus,yang-ling/i3pystatus,opatut/i3pystatus,m45t3r/i3pystatus,juliushaertl/i3pystatus,Elder-of-Ozone/i3pystatus,MaicoTimmerman/i3pystatus,paulollivier/i3pystatus,onkelpit/i3pystatus,richese/i3pystatus,asmikhailov/i3pystatus,enkore/i3pystatus,juliushaertl/i3pystatus,eBrnd/i3pystatus,claria/i... | i3pystatus/core/command.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import abspath, join, dirname\nimport random\n\n\n__title__ = 'names'\n__version__ = '0.2'\n__author__ = 'Trey Hunner'\n__license__ = 'MIT'\n\n\nfull_path = lambda filename: abspath(join(dirname(__file__), filename))\n\n\nFILES... | python | edit | 2 | 3 | mit | 44d5974fafdddb09a684882fc79662ae4c509f57 | treyhunner/names,treyhunner/names | names/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom textblob_fr.taggers import PatternTagger\nfrom textblob_fr.sentiments import PatternAnalyzer\n\n__version__ = '0.2.0-dev'\n__author__ = 'Steven Loria'\n__license__ = \"MI... | python | edit | 4 | 0 | mit | b26f768067d0ac495d0cbecdf68c38e73e42662b | sloria/textblob-fr | textblob_fr/__init__.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom opps.db.conf import settings\n\nfrom redis import ConnectionPool\nfrom redis import Redis as RedisClient\n\n\nclass Redis:\n def __init__(self, key_prefix, key_sufix):\n self.ke... | python | edit | 1 | 1 | mit | 6bde135b964690d2c51fe944e52f2a9c9c9dadab | jeanmask/opps,opps/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,williamroot/opps,williamroot/opps,YACOWS/opps,opps/opps,opps/opps,williamroot/opps,YACOWS/opps,YACOWS/opps,jeanmask/opps,opps/opps | opps/db/_redis.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\ntest_itunes.py\n\nCopyright © 2015 Alex Danoff. All Rights Reserved.\n2015-08-02\n\nThis file tests the functionality provided by the itunes module.\n\"\"\"\n\nimport unittest\nfrom datetime import datetime\n\nfrom itunes.itunes imp... | python | edit | 1 | 1 | mit | 9310e94a1406102bba109416f781f9d6330d0028 | adanoff/iTunesTUI | tests/test_itunes.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom djoser.conf import settings\n\ntry:\n from django.contrib.auth.password_validation import validate_password\nexcept ImportError:\n from password_validation import validate_password\n\n__all__ = ['settings', 'validate_password']\n... | python | edit | 1 | 2 | mit | cb6fa6b54ca3e1908037a1b1a3399d8bd4b1be58 | sunscrapers/djoser,akalipetis/djoser,sunscrapers/djoser,sunscrapers/djoser,akalipetis/djoser | djoser/compat.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom unittest import TestCase\n\nfrom win_unc import validators as V\n\n\nclass TestIsValidDriveLetter(TestCase):\n def test_valid(self):\n self.assertTrue(V.is_valid_drive_letter('A'))\n self.assertTrue(V.is_valid_drive_le... | python | edit | 1 | 1 | mit | 07058595e43290524d28b53b5919fb76f16c618b | CovenantEyes/py_win_unc,nithinphilips/py_win_unc | test/test_validators.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.utils.translation import ugettext as _\n\nfrom jmbo.views import ObjectList\n\nfrom jmbo_calendar.models import Event\n\n\nclass ObjectList(ObjectList):\n\n def get_context_data(self, **kwargs):\n context = super(Objec... | python | edit | 2 | 2 | bsd-3-clause | 0e5f5716b8a48ef5fc03f8ee5a3eef140304a354 | praekelt/jmbo-calendar,praekelt/jmbo-calendar | jmbo_calendar/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"Processor for remote INDRA JSON files.\"\"\"\n\nimport requests\nfrom typing import List\n\nfrom ..statements import Statement, stmts_from_json\n\n__all__ = [\n 'RemoteProcessor',\n]\n\n\nclass RemoteProc... | python | edit | 1 | 2 | bsd-2-clause | 8ea90a83318e4c1cb01b773435ef4861a459ac0f | sorgerlab/indra,sorgerlab/indra,sorgerlab/belpy,bgyori/indra,bgyori/indra,bgyori/indra,johnbachman/indra,sorgerlab/belpy,sorgerlab/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/indra | indra/sources/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nfrom calexicon.internal.julian import distant_julian_to_gregorian, julian_to_gregorian\n\n\nclass TestJulian(unittest.TestCase):\n def test_distant_julian_to_gregorian(self):\n self.assertEqual(distant_julian_to... | python | edit | 1 | 1 | apache-2.0 | 9546faddab321eb508f358883faf45cbc7d48dd8 | jwg4/calexicon,jwg4/qual | calexicon/internal/tests/test_julian.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, print_function\n\nimport pytest\nfrom i19.command_line.screen import I19Screen\n\ndef test_i19screen_command_line_help_does_not_crash():\n I19Screen().run('')\n\ndef test_i19screen(regressi... | python | edit | 1 | 1 | bsd-3-clause | 8aaeae23db31162677637a41c5343558f3842450 | xia2/i19 | tests/test_i19screen.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import join\nimport sublime\nimport sys\nfrom unittest import TestCase\n\nversion = sublime.version()\n\nif version < '3000':\n from libsass import pathutils\nelse:\n from sublime_libsass.libsass import pathutils\n\n\ncla... | python | edit | 3 | 1 | mit | ba6305578ad41519ea5f05296dda9732d538d5b3 | blitzrk/sublime_libsass,blitzrk/sublime_libsass | tests/test_pathutils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2013 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nfrom master import gatekeeper\nfrom master import master_utils\n\n# This ... | python | edit | 1 | 1 | bsd-3-clause | 407c6ceec878f60aa908ac12dd9cccc4c4dec9b4 | eunchong/build,eunchong/build,eunchong/build,eunchong/build | masters/master.chromium.chrome/master_gatekeeper_cfg.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.