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#!/usr/bin/env python\nimport os\nimport sys\n\n\ndef runtests():\n test_dir = os.path.dirname(__file__)\n sys.path.insert(0, test_dir)\n os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\n import django\n from django...
python
edit
1
1
mit
c28ae7e4b0637a2c4db120d9add13d5589ddca40
sergei-maertens/django-systemjs,sergei-maertens/django-systemjs,sergei-maertens/django-systemjs,sergei-maertens/django-systemjs
runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nA management command to create a user with a given email.\n\"\"\"\n\nfrom django.contrib.auth.models import User\nfrom django.core.management.base import BaseCommand, CommandError\n\nfrom ixprofile_client.webservice import UserWebSe...
python
edit
2
6
mit
0bdcb1c36432cfa0506c6dd667e4e1910edcd371
infoxchange/ixprofile-client,infoxchange/ixprofile-client
ixprofile_client/management/commands/createsuperuser.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Convert list, for later reference." }, { "role": "assistant", "content": "def read_file(filename):\n # Open the file\n file_obj = open(filename)\n\n # Iterate over lines in the file\n for line in file_obj:\n\n ...
python
new_file
2
4
mit
d799b3fdf6365fb54f0a1553b9a68c4334dd5482
dokterbob/slf-programming-workshops,dokterbob/slf-programming-workshops,dokterbob/slf-programming-workshops,dokterbob/slf-programming-workshops
examples/project_one/input.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nsys.path.append(\"../ideascaly\")\n\nfrom ideascaly.auth import AuthNonSSO\nfrom ideascaly.api import API\n\nimport ConfigParser\nimport unittest\n\nconfig = ConfigParser.ConfigParser()\nconfig.read('config')\n\n\nclass Ideascal...
python
edit
1
1
mit
ba564c7e2cacc8609d52f03e501786be3c7c8f44
joausaga/ideascaly
tests/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"A simple example demonstrating basic usage of pyuv_cffi\n\nThis example creates a timer handle and a signal handle, then starts the loop. The timer callback is\nrun after 1 second, and repeating every 1 second thereafter. The signal h...
python
edit
1
1
mit
8396ac44d434a06c410c516b6109ec6ace030601
veegee/guv,veegee/guv
examples/pyuv_cffi_example.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nimport manifest\nimport plow\n\nclass StaticModuletests(unittest.TestCase):\n\n def testFindJobs(self):\n plow.findJobs()\n\n\nif __name__ == \"__main__\":\n suite = unittest.TestLoader().loadTestsFromTestCas...
python
edit
2
2
apache-2.0
d07109e07e4d9fab488dfbbcf56fdfe18baa56ab
Br3nda/plow,Br3nda/plow,chadmv/plow,Br3nda/plow,chadmv/plow,chadmv/plow,Br3nda/plow,Br3nda/plow,chadmv/plow,chadmv/plow,chadmv/plow,chadmv/plow
lib/python/plow/test/test_static.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport boto\nfrom boto.glacier.exceptions import UnexpectedHTTPResponseError\n\nclass CommandDeleteArchiveFromVault(object):\n\n def execute(self, args, config):\n glacier_connection = boto.connect_glacier(aws_access_key_id=config.get('...
python
edit
4
4
mit
fddd44624f1c8ff6f66a2f33cafe908a5853389d
carsonmcdonald/glacier-cmd
glaciercmd/command_delete_archive_from_vault.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport random\nimport time\nfrom os import getenv\n\nfrom aiographite.aiographite import connect\nfrom aiographite.protocol import PlaintextProtocol\n\nGRAPHITE_HOST = getenv('GRAPHITE_HOST', 'localhost')\n\n\nasync def run(worker, *args, *...
python
edit
1
2
apache-2.0
eb03de241f3d47173381ee22f85b5cdf5d9c1fb4
aioworkers/aioworkers
examples/monitoring/worker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport django.test\nfrom django.core.exceptions import ValidationError\n\nfrom core.tests.setups import RobrechtSocialUserFactory\nfrom ..validators import RepoExistanceValidator\n\n\n#######################################...
python
edit
3
1
mit
ea3e9270788b251440b5f6fab1605361e0dc2ade
robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth
inonemonth/challenges/tests/test_forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n\nfrom django.template import Library\nfrom ..html import TermsHTMLReconstructor\n\nregister = Library()\n\n\n@register.filter\ndef replace_terms(html):\n parser = TermsHTMLReconstructor()\n parser.feed(html)\n ret...
python
edit
1
1
bsd-3-clause
5237cb7f1339eb13b4c01f1c3611448a8f865726
BertrandBordage/django-terms,philippeowagner/django-terms,BertrandBordage/django-terms,philippeowagner/django-terms
terms/templatetags/terms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom either_or import either_or\n\nclass nxppyTests(unittest.TestCase):\n \"\"\"Basic tests for the NXP Read Library python wrapper.\"\"\"\n\n def test_import(self):\n \"\"\"Test that it can be imported\"\"\"\n...
python
edit
3
1
mit
cd944a2606159c8ea11ffe8075ce4ec186fd799c
AlterCodex/nxppy,Schoberm/nxppy,AlterCodex/nxppy,tuvaergun/nxppy,Schoberm/nxppy,tuvaergun/nxppy,Schoberm/nxppy,tuvaergun/nxppy,AlterCodex/nxppy
tests/basic_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.version import StrictVersion\n__version__ = \"5.0.5a1\"\nStrictVersion(__version__)\n__DOI__ = \"Zenodo, DOI:10.5281/zenodo.4467703\"\n__release_date__ = \"2021\"\n__build__ = \"GIT_COMMIT\"\n\n```\n\nApply this change: Rever...
python
edit
1
0
bsd-3-clause
9a1c34c7b3ff4de9dda7d8dbf6fb3234a40dc0b1
SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview
src/sas/sasview/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db.models.signals import pre_save\nfrom django.dispatch import receiver\nfrom reversion.models import Version\nfrom reversion.revisions import default_revision_manager\...
python
edit
1
4
bsd-3-clause
30ed3800fdeec4aec399e6e0ec0760e46eb891ec
weijia/djangoautoconf,weijia/djangoautoconf
djangoautoconf/model_utils/model_reversion.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .grid import GridContainer, GridItem\nfrom .liquids import LiquidWell\n\n\nclass Microplate(GridContainer):\n rows = 12\n cols = 8\n volume = 100\n min_vol = 50\n max_vol = 90\n height = 14.45\n ...
python
edit
3
1
apache-2.0
dfb6d41be3acf5fc4d4d0f3d8a7fb9d3507e9ae7
OpenTrons/opentrons-api,OpenTrons/opentrons-api,Opentrons/labware,OpenTrons/opentrons-api,OpenTrons/opentrons-api,OpenTrons/opentrons_sdk,OpenTrons/opentrons-api
labware/microplates.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"Executes a Django cronjob\"\"\"\n\nimport os\n\n# Activate the virtualenv\npath = os.path.dirname(os.path.abspath( __file__ ))\nactivate_this = os.path.join(path, 'env/bin/activate_this.py')\nexecfile(activate_t...
python
edit
2
0
bsd-3-clause
e8795b5f45ea67c83f7e99c54b04e0dceb1fee34
nikdoof/test-auth
run-cron.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport discord\nimport duckbot_settings\nimport random\nfrom discord.ext import commands\n\n_DESCRIPTION = '''quack'''\n\nbot = commands.Bot(command_prefix='/', description=_DESCRIPTION)\n\n@bot.event\nasync def on_ready():\n\tprint('logged...
python
edit
5
3
mit
23675e41656cac48f390d97f065b36de39e27d58
andrewlin16/duckbot,andrewlin16/duckbot
duckbot.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Generic Fabric-commands which should be usable without further configuration\"\"\"\nfrom fabric.api import *\nfrom os.path import dirname, split, abspath\nimport os\nimport sys\nimport glob\n\n\n# Hacking our ...
python
edit
8
0
bsd-2-clause
d1174017c6b282aa1d808b784ffde8a3d3190472
mattock/fabric,mattock/fabric
fabfile.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tastypie import fields\nfrom tastypie.resources import ModelResource, ALL\nfrom tastypie.authentication import ApiKeyAuthentication\nfrom tastypie.authorization import Authorization\nfrom subscription.models import Subscription, Messag...
python
edit
1
0
bsd-3-clause
a67176ba0ba06d1a7cfff5d8e21446bb78a30518
praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control
subscription/api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom collections import namedtuple\n# TODO: Move this code to a module so we don't depend on PYTHONPATH and that sort\n# of ugliness.\nfrom jarvis import convert_file_to_json, get_tags\n\nJarvisSettings = namedtuple('Jarvis...
python
edit
3
2
apache-2.0
a3689129e2938dd7f2213ea11ac36a854cc0a31e
clb6/jarvis-cli
test/test_jarvis.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import\n\nimport pytest\n\nfrom django.core.urlresolvers import reverse\nfrom exam import fixture\n\nfrom sentry.testutils import TestCase\n\n\n@pytest.mark.xfail\nclass ReplayTest(...
python
edit
1
1
bsd-3-clause
12cb8ca101faa09e4cc07f9e257b3d3130892297
mitsuhiko/sentry,fotinakis/sentry,beeftornado/sentry,mvaled/sentry,mvaled/sentry,BuildingLink/sentry,alexm92/sentry,mvaled/sentry,mvaled/sentry,BuildingLink/sentry,nicholasserra/sentry,JackDanger/sentry,fotinakis/sentry,gencer/sentry,fotinakis/sentry,beeftornado/sentry,ifduyue/sentry,JamesMura/sentry,imankulov/sentry,l...
tests/sentry/web/frontend/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf8\nfrom __future__ import unicode_literals\n\n# Here we only want to include the absolute most common words. Otherwise,\n# this list would get impossibly long for German – especially considering the\n# old vs. new spelling rule...
python
edit
1
0
mit
71cdbeada7e11634e1168ca2e825167cbe87b4de
aikramer2/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,honnibal/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,honnibal/spaCy,aikramer2/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,aikramer2/spaCy,recognai/spa...
spacy/lang/de/norm_exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport getopt\n\nfrom compiler import compile, visitor\n\n##import profile\n\ndef main():\n VERBOSE = 0\n DISPLAY = 0\n CONTINUE = 0\n opts, args = getopt.getopt(sys.argv[1:], 'vqdc')\n for k, v in opts:\n ...
python
edit
13
14
mit
f408d7e61753ecdeb280e59ecb35485385ec3f6a
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Tools/compiler/compile.py
rejected_lint
Too many lint violations: 13
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\n:Author Patrik Valkovic\n:Created 23.06.2017 16:39\n:Licence GNUv3\nPart of grammpy\n\n\"\"\"\n\nfrom unittest import main, TestCase\nfrom grammpy import Rule\n\n\nclass InvalidSyntaxTest(TestCase):\n pass\...
python
edit
22
1
mit
125dfa47e5656c3f9b1e8846be03010ed02c6f91
PatrikValkovic/grammpy
tests/rules_tests/isValid_tests/InvalidSyntaxTest.py
rejected_lint
Too many lint violations: 22
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom conftest import (POSITIVE_HOST_PATTERNS, NEGATIVE_HOST_PATTERNS)\n\n\n@pytest.mark.parametrize(\"host_pattern, num_hosts\", POSITIVE_HOST_PATTERNS)\ndef test_len(host_pattern, num_hosts, hosts):\n assert len(getattr(h...
python
edit
1
1
mit
981bac39056584ec9c16e5a8d0f7a972d7365a3f
jlaska/pytest-ansible
tests/test_module_dispatcher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# pylint: disable-msg = unused-import\n\"\"\"\n*Main PhiFlow import:* `from phi.flow import *`\n\nImports important functions and classes from\n`math`, `geom`, `field`, `physics` and `vis` (including sub-modules)\nas well as the modules and...
python
edit
50
0
mit
910d848f9c7ceb9133fe52c0c3f2df6c8ed4e4aa
tum-pbs/PhiFlow,tum-pbs/PhiFlow
phi/flow.py
rejected_lint
Too many lint violations: 50
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding:utf-8 -*-\nfrom django.contrib import admin\nfrom .. import models\n\nadmin.site.register(models.IntegrationType, )\nadmin.site.register(models.IntegrationCredential, )\n\n```\n\nApply this change: Enable integration credential...
python
edit
1
0
bsd-3-clause
5867a09fb43f8c4480d7aef89a200e952406a648
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
dbaas/integrations/credentials/admin/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport io\nimport os\nimport unittest\nfrom pyddl import *\n\n__author__ = \"Jonathan Hale\"\n\n\nclass DdlTextWriterTest(unittest.TestCase):\n\n def tearDown(self):\n try:\n os.remove(\"test.oddl\")\n except Fil...
python
edit
13
2
mit
06f0edb71086573a3d7f9efb01b97b073cf415a3
Squareys/PyDDL
tests/DdlTextWrterTest.py
rejected_lint
Too many lint violations: 13
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom board import Board, BoardCanvas\n\n\nb = Board(19, 19)\nc = BoardCanvas(b)\n\n```\n\nApply this change: Add game loop to prototype" }, { "role": "assistant", "content": "#!/usr/bin/env python\n\nimport platform\nimport subp...
python
edit
3
4
mit
de15315b95f70e56d424d54637e3ac0d615ea0f0
davesque/go.py
proto/ho.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndefault_app_config = 'pucas.apps.PucasConfig'\n\n__version_info__ = (0, 5, 1, None)\n\n# Dot-connect all but the last. Last is dash-connected if not None.\n__version__ = '.'.join([str(i) for i in __version_info__[:-1]])\nif __version_info__...
python
edit
1
0
apache-2.0
d7e0fd7027f4a4a5024d136c0ab96b244d761c99
Princeton-CDH/django-pucas,Princeton-CDH/django-pucas
pucas/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\n tests.integration.shell.call\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n :copyright: © 2012 UfSoft.org - :email:`Pedro Algarvio (<EMAIL>)`\n :license: Apache 2.0, see LICENSE for more details.\n\"\"\"\n\...
python
edit
1
1
apache-2.0
325902c169424ec76307efa71a2e4885180e5cbb
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
tests/integration/shell/call.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport paver.doctools\nimport paver.setuputils\n\nfrom schevo.release import setup_meta\n\n\noptions(\n setup=setup_meta,\n sphinx=Bunch(\n docroot='doc',\n builddir='build',\n sourcedir='source',\n ),\n)\n\n\n...
python
edit
8
1
mit
e0a6ea3d48691bedfb39a0a92d569ea4aaf61810
Schevo/schevo,Schevo/schevo
pavement.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport requests\n\nfrom django.core.management import call_command\nfrom django.core.management.base import NoArgsCommand\nfrom django.conf import settings\nfrom django.utils.six.moves import input\n\n\nclass Command(NoArgsCommand):\n \"...
python
edit
1
4
apache-2.0
dc1cf6fabcf871e3661125f7ac5d1cf9567798d6
manhhomienbienthuy/pythondotorg,python/pythondotorg,SujaySKumar/pythondotorg,lebronhkh/pythondotorg,SujaySKumar/pythondotorg,lepture/pythondotorg,python/pythondotorg,proevo/pythondotorg,Mariatta/pythondotorg,malemburg/pythondotorg,willingc/pythondotorg,fe11x/pythondotorg,berkerpeksag/pythondotorg,demvher/pythondotorg,p...
cms/management/commands/load_dev_fixtures.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom subprocess import check_output, CalledProcessError\n\ntry:\n num_gpus = len(check_output(['nvidia-smi', '--query-gpu=gpu_name',\n '--format=csv']).decode().strip().split(...
python
edit
1
0
apache-2.0
7cd2249d231e8afc1384bc3757856e8fdbb234bf
theislab/dca,theislab/dca,theislab/dca
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nimport testinfra.utils.ansible_runner\n\ntestinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(\n os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')\n\n\ndef test_command(host):\n assert host.command('i3 --v...
python
edit
1
1
mit
d2991a6385be74debf71eb8404e362c6027e6d50
nephelaiio/ansible-role-i3,nephelaiio/ansible-role-i3
molecule/default/tests/test_default.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nAdd a 'w3cdate' key to every entry -- this contains the date in ISO8601 format\n\nWARNING: you must have PyXML installed as part of your python installation \nin order for this plugin to work\n\nPlace this plugin early in your load_...
python
edit
4
2
mit
43ae9bdec900081d6ff91fc3847a4d8d9a42eaeb
daitangio/pyblosxom,daitangio/pyblosxom,willkg/douglas,willkg/douglas
contrib/plugins/w3cdate.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\nimport sys\n\nfrom colour_runner.django_runner import ColourRunnerMixin\nfrom django.conf import settings\n\n\nsettings.configure(\n INSTALLED_APPS=(\n # Put contenttypes before auth to work around test is...
python
edit
1
0
bsd-2-clause
2951520fab9f213322584327c9e5841fe13fc993
incuna/incuna-auth,incuna/incuna-auth,ghickman/incuna-auth,ghickman/incuna-auth
tests/run.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.contenttypes.models import ContentType\n\nfrom fluent_contents.models import ContentItem\nfrom fluent_contents.tests.utils import AppTestCase\n\n\nclass ModelTests(AppTestCase):\n \"\"\"\n Testing the data model.\n...
python
edit
1
2
apache-2.0
d1c3f195e455b926429aadf84cfd9fc51db2802f
edoburu/django-fluent-contents,edoburu/django-fluent-contents,django-fluent/django-fluent-contents,django-fluent/django-fluent-contents,django-fluent/django-fluent-contents,edoburu/django-fluent-contents
fluent_contents/tests/test_models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.core import urlresolvers\nfrom django.utils import translation\nfrom localeurl import utils\n\ndef reverse(*args, **kwargs):\n reverse_kwargs = kwargs.get('kwargs') or {}\n locale = utils....
python
edit
1
2
mit
59d44ba76a9b2f98375fa2f893dabc0376de6f82
simonluijk/django-localeurl
localeurl/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2007-2009 Christopher Lenz\n# All rights reserved.\n#\n# This software is licensed as described in the file COPYING, which\n# you should have received as part of this distribution.\n\nimport uuid\...
python
edit
2
4
bsd-3-clause
14b9ed3052054cf983fe6b7b1903faca3f1a0a13
djc/couchdb-python,djc/couchdb-python,infinit/couchdb-python,Roger/couchdb-python
couchdb/tests/testutil.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass defaultdict(dict):\n\n \"\"\"Poor man's implementation of defaultdict for Python 2.4\n \"\"\"\n\n def __init__(self, default_factory=None, **kwargs):\n self.default_factory = default_factory\n super(defaultdict,...
python
edit
1
3
apache-2.0
a36fe5002bbf5dfcf27a3251cfed85c341e2156d
couchbase/couchbase-cli,couchbaselabs/couchbase-cli,membase/membase-cli,membase/membase-cli,couchbase/couchbase-cli,membase/membase-cli,couchbaselabs/couchbase-cli,couchbaselabs/couchbase-cli
cbcollections.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nCopyright 2015 Rackspace\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/li...
python
edit
1
1
apache-2.0
56dc9af410907780faba79699d274bef96a18675
openstack/designate,openstack/designate,openstack/designate
functionaltests/common/base.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import division\n\nfrom ds_binary_heap_tuple import BinaryHeap\n\ndef dijkstra(weighted_graph_d, start_vertex):\n inf = float('inf')\n\n sh...
python
edit
4
2
bsd-2-clause
e3d23b47b01deebb25652512be551a128db9c36e
bowen0701/algorithms_data_structures
alg_dijkstra_shortest_path.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport hashlib\n\nclass Store(object):\n def __init__(self):\n self.id = None\n self.name = None\n self.location = None\n\n def __repr__(self):\n return \"%s,%s,%s\" % (self.name, self.location.zipcode, sel...
python
edit
1
1
apache-2.0
edec2186f5a83789a5d6a5dbd112c9ff716c3d46
rnowling/bigpetstore-data-generator,rnowling/bigpetstore-data-generator,rnowling/bigpetstore-data-generator
src/python/datamodels/output_models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"Provide the empy templating engine.\"\"\"\n\nfrom __future__ import print_function\n\n\nimport em\n\nfrom . import Engine\n\n\nclass EmpyEngine(Engine):\n\n \"\"\"Empy templating engine.\"\"\"\n\n handle =...
python
edit
1
2
mit
030de1eccb4819c175b2d8d43dc16c878bb689c9
blubberdiblub/eztemplate
engines/empy_engine.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport zipfile\nimport cPickle\nimport numpy as np\n\n\"\"\"\n track_obj: {\n frames: 1 by n numpy array,\n anchors: 1 by n numpy array,\n features: m by n numpy array,\n scores: c by ...
python
edit
4
5
mit
9a2e56c5721fad4df75339feac6676897f40ac01
myfavouritekk/TPN
src/tpn/data_io.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Indices that need to be added manually:\n#\n# invoke shell --no-transaction\n\nfrom pymongo import ASCENDING, DESCENDING\n\n\ndb['user'].create_index([\n ('emails', ASCENDING),\n])\n\ndb['user'].create_index([\n ('external_accounts'...
python
edit
9
0
apache-2.0
70db9410173183c83d80ca23e56ceb0d627fcbae
baylee-d/osf.io,abought/osf.io,Johnetordoff/osf.io,felliott/osf.io,alexschiller/osf.io,mluo613/osf.io,brianjgeiger/osf.io,crcresearch/osf.io,aaxelb/osf.io,wearpants/osf.io,hmoco/osf.io,mfraezz/osf.io,caseyrollins/osf.io,leb2dg/osf.io,emetsger/osf.io,caneruguz/osf.io,alexschiller/osf.io,CenterForOpenScience/osf.io,bayle...
scripts/indices.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom s2v1 import *\n\ndef number_of_records(data_sample):\n\treturn len(data_sample)\n\nnumber_of_ties = number_of_records(data_from_csv) - 1 # minus header row\n\nprint(number_of_ties, \"ties in our data sample\")\n\ndef number_of_records2...
python
edit
4
1
mit
1e62898d02ae5187ce078a2bb699eefd6bc184ef
alexmilesyounger/ds_basics
s2v2.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tools import add_constant, categorical\nfrom datautils import Dataset\n\nfrom statsmodels import NoseWrapper as Tester\ntest = Tester().test\n\n```\n\nApply this change: REF: Remove import of moved file" }, { "role": "assistant...
python
edit
4
0
bsd-3-clause
8c05cb85c47db892dd13abbd91b3948c09b9a954
josef-pkt/statsmodels,adammenges/statsmodels,saketkc/statsmodels,DonBeo/statsmodels,edhuckle/statsmodels,saketkc/statsmodels,wkfwkf/statsmodels,wzbozon/statsmodels,huongttlan/statsmodels,kiyoto/statsmodels,astocko/statsmodels,musically-ut/statsmodels,bsipocz/statsmodels,wwf5067/statsmodels,jstoxrocky/statsmodels,cbmoor...
statsmodels/tools/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.urlresolvers import reverse, resolve\nfrom django.http import HttpResponseRedirect\n\nfrom gameon.users.models import get_profile_safely\n\n\nclass ProfileMiddleware(object):\n\n @classmethod\n def safe_paths(cls):\n ...
python
edit
1
7
bsd-3-clause
e66fe8e6c79f7b29e2f334b481904f7d838a2655
mozilla/gameon,mozilla/gameon,mozilla/gameon,mozilla/gameon
gameon/users/middleware.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# After this function, any futher calls to import RPi.GPIO\n# will instead import .gpio.Gpio instead\ndef patch_fake_gpio():\n print('Warning, not in RPi, using mock GPIO')\n # Idea taken from RPLCD who commented it as being from:\n ...
python
edit
4
1
mit
c69b7b80c75e170f1b83d1204fb531544a9fc831
rfarley3/lcd-restful,rfarley3/lcd-restful
rpifake/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nimport lxml.etree\n\n\nclass XPathError(Exception):\n pass\n\n\ndef parse_xml_filename(filename):\n return lxml.etree.parse(filename)\n\n\ndef compile_xpath(query):\n try:\n return lxml.etree.XPath(query)\n ...
python
edit
2
9
mit
638f52f59135d151a3c7ed4f84fc0716c6c0d69d
isbadawi/mcbench,isbadawi/mcbench
mcbench/xpath.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\nimport sys\nimport subprocess\n\n\nclass BmiIlamb(object):\n _command = 'run_ilamb'\n _args = None\n _env = None\n\n def __init__(self):\n self._time = self.get_start_time()\n\n @property\n d...
python
edit
3
2
mit
95fcaffa1dc73ec3c83734587c311b47e79e0d3c
permamodel/ILAMB,permamodel/ILAMB,permamodel/ILAMB
pylamb/bmi_ilamb.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sublime\nimport sublime_plugin\ntry:\n from GitGutter.view_collection import ViewCollection\nexcept ImportError:\n from view_collection import ViewCollection\n\nclass GitGutterBaseChangeCommand(sublime_plugin.WindowCommand):\n ...
python
edit
3
3
mit
54eb7862d6b17f4e86a380004f6e682452fbebce
tushortz/GitGutter,biodamasceno/GitGutter,tushortz/GitGutter,akpersad/GitGutter,michaelhogg/GitGutter,natecavanaugh/GitGutter,natecavanaugh/GitGutter,tushortz/GitGutter,michaelhogg/GitGutter,natecavanaugh/GitGutter,biodamasceno/GitGutter,akpersad/GitGutter,akpersad/GitGutter,robfrawley/sublime-git-gutter,natecavanaugh/...
git_gutter_change.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nUseful utilities.\n\"\"\"\nimport json\n\nfrom kyokai import Request\nfrom kyokai.context import HTTPRequestContext\n\n\ndef jsonify(func):\n \"\"\"\n JSON-ify the response from a function.\n \"\"\"\n async def res(ctx: ...
python
edit
1
4
mit
8ce1def3020570c8a3e370261fc9c7f027202bdf
azah/OWAPI,SunDwarf/OWAPI
owapi/util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nRTRSS\n-----\n\nRSS feeds for popular bittorrent tracker\n\n\"\"\"\nfrom setuptools import setup\n\nwith open('reqs/production.txt') as f:\n _requirements = f.read().splitlines()\n\nsetup(\n name='rtrss',\n version='0.3',\n...
python
edit
1
0
apache-2.0
c12b0e1c3253f17b71cbb4095c83c73d0f2ea188
notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nInitialisation file for query directory.\n\"\"\"\n\n```\n\nApply this change: Update query init file docstring." }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n\"\"\"\nInitialisat...
python
edit
1
0
mit
6a940fbd0cc8c4e4a9f17423c593452d010b6883
MichaelCurrin/twitterverse,MichaelCurrin/twitterverse
app/lib/query/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.template import Template\nfrom django.template.context import RequestContext\n\nfrom snapboard.utils import get_response_cache_key, get_prefix_cache_key\n\n\...
python
edit
1
6
bsd-3-clause
ef81c3eb8b54baeac5ef22843de736345c4d5523
johnboxall/snapboard,johnboxall/snapboard
snapboard/middleware/cache.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n\nVery basic implementation of an event loop\n==========================================\n\nThe eventloop is a singleton to schedule and run events.\n\nExports\n-------\n\n- ``EventLoop``: the basic eventloop\n\n\"\"\"\n\nimport que...
python
edit
3
2
mit
9ec80ed117ca393a63bf7eb739b4702bfbc0884e
waltermoreira/tartpy
tartpy/eventloop.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='tablo',\n description='A PostGIS table to feature service app for Django',\n keywords='feature service, map server, postgis, django',\n version='1.3.0',\n packages=['tablo', 'tab...
python
edit
1
0
bsd-3-clause
29bb9a9298136475138962bb63f0305e9221628f
consbio/tablo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport cutplanner\nimport unittest\n\nclass TestStock(unittest.TestCase):\n\n def setUp(self):\n self.stock = cutplanner.Stock(120)\n\n def test_cut(self):\n self.stock.assign_cut(20)\n self.assertEqual(self.stock...
python
edit
2
1
mit
b552d550ca7e4468d95da9a3005e07cbd2ab49d6
alanc10n/py-cutplanner
tests/test_stock.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name=\"datafork\",\n version=\"0.0.1\",\n description=\"Forkable global state\",\n packages=['datafork'],\n author=\"Martin Atkins\",\n author_email=\"<EMAIL>\",\n classifier...
python
edit
1
0
mit
8bc57a3a09709f8c12bfa98869674680483b162c
apparentlymart/python-datafork
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom collections import OrderedDict\n\n\ndef combine_uniquely(iterable1, iterable2):\n \"\"\"\n Combine unique items of two sequences preserving order.\n\n :type seq1: Iterable[Any]\n :type seq2: Iterable[Any]\n :rtype: list[...
python
edit
4
8
mit
66a9d140feb3a0bd332031853fb1038622fd5c5b
mikkokeskinen/tunnistamo,mikkokeskinen/tunnistamo
oidc_apis/utils.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom . import views\nfrom django.conf.urls import url\n\n\nurlpatterns = [\n url(r'^find_legislator/', views.find_legislator),\n url(r'^get_latlon/', views.get_latlon)\n]\n\n```\n\nApply this change: Add url for latest latlon url" }...
python
edit
1
0
mit
64c2a9ec42fba89225af07a3d0cf84dd9de98e4b
jamesturk/tot,jamesturk/tot,jamesturk/tot,jamesturk/tot,jamesturk/tot
legislators/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nsetup(\n name='django-pager-duty',\n description='PagerDuty Filtering and On Call Display',\n author='Paul Traylor',\n url='htt...
python
edit
1
0
mit
5a8ba813dc3dc40044f2fe9365dfde477edc4f6f
kfdm-archive/django-pager-duty
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import url\nfrom . import views\n\nurlpatterns = [\n url(r'^(?P<url_username>\\w+)$',\n views.user_feed, {'page_nr': '1', 'sort': 'new'}, name='user_feed'),\n url(r'^(?P<url_username>\\w+)/(?P<sort>hot|new...
python
edit
1
0
apache-2.0
23ca8b449a075b4d8ebee19e7756e39f327e9988
lionleaf/dwitter,lionleaf/dwitter,lionleaf/dwitter
dwitter/user/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nimport os\nimport json\nimport math\nimport uncertain\n\nTIMINGS_DIR = 'collected'\n\n\ndef _mean(values):\n \"\"\"The arithmetic mean.\"\"\"\n return sum(values) / len(values)\n\n\ndef _mean_err(vals):\n \"...
python
edit
1
2
mit
21304ed626998ae4fd359d2e8358bf7563b9020d
cucapra/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,guoyiteng/braid,guoyiteng/braid,cucapra/braid,cucapra/braid,guoyiteng/braid,cucapra/braid
harness/summarize.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\nimport unittest\n\nimport wrapt\n\nclass TestArguments(unittest.TestCase):\n\n def test_getcallargs(self):\n def function(a, b=2, c=3, d=4, e=5, *args, **kwargs):\n pass\n\n ...
python
edit
1
1
bsd-2-clause
09f65ff2a21cd00355193bcdee22a2289ead2d24
GrahamDumpleton/wrapt,GrahamDumpleton/wrapt
tests/test_arguments.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport webapp2\n\nfrom google.appengine.api import channel\nfrom google.appengine.api import users\n\nopen_channels = set()\n\nclass ChannelDidConnect(webapp2.RequestHandler):\n\n def post(self):\n print \"Got connection\"\n ...
python
edit
4
2
mit
542ab347d5a0195c88be212d966253d4385b8af5
misterwilliam/gae-channels-sample,misterwilliam/gae-channels-sample,misterwilliam/gae-channels-sample
api.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Apply monkey patch in agent package for direct import main() from dvs_neutron_agent module" }, { "role": "assistant", "content": "# Copyright 2016 Mirantis, Inc.\n# All Rights Reserved.\n#\n# Licensed under the Apache License, Ve...
python
new_file
1
0
apache-2.0
26b18cac1164d9e543f02f54fc396b25eb40b5cf
ekosareva/vmware-dvs,ekosareva/vmware-dvs,Mirantis/vmware-dvs,VTabolin/vmware-dvs,Mirantis/vmware-dvs
vmware_dvs/agent/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nif not (2, 6) <= sys.version_info < (3,):\n sys.exit(u'Mopidy requires Python >= 2.6, < 3')\n\nfrom subprocess import PIPE, Popen\n\nVERSION = (0, 4, 0)\n\ndef get_git_version():\n process = Popen(['git', 'describe'], stdo...
python
edit
1
3
apache-2.0
d7149d8ea09c897fb954652beeef3bf008448d9e
pacificIT/mopidy,swak/mopidy,jodal/mopidy,vrs01/mopidy,swak/mopidy,woutervanwijk/mopidy,tkem/mopidy,rawdlite/mopidy,jodal/mopidy,mokieyue/mopidy,rawdlite/mopidy,jmarsik/mopidy,bacontext/mopidy,mokieyue/mopidy,quartz55/mopidy,ZenithDK/mopidy,dbrgn/mopidy,priestd09/mopidy,mopidy/mopidy,quartz55/mopidy,glogiotatidis/mopid...
mopidy/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long description from the relevant file\nwith open(path.join(here, 'DESCRIPTION.rst'), enc...
python
edit
1
0
apache-2.0
5651b1a790d1c37162d328ece8673616f8d4bc98
erprice/fes,erprice/fes
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2014-2015 ARM Limited\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 License at\n#\n# http://www...
python
edit
1
2
apache-2.0
bf694ffdf1fd61f6e108f3076ed975d538af5224
bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,bjackman/workload-automation,jimboatarm/workload-...
wlauto/common/android/resources.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"setup.py\"\"\"\n#pylint:disable=line-too-long\n\nfrom codecs import open as codecs_open\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup #pylint:disable=import-error,no-name-in-modul...
python
edit
1
0
mit
a214b216ba260977eace4c9aff260089dd761a8f
bcb/jsonrpcserver
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nfrom glob import glob\nfrom distutils.core import setup\n\n\nsetup(\n name='whisper',\n version='0.9.10-pre2',\n url='https://launchpad.net/graphite',\n author='Chris Davis',\n author_email='<EMAIL>'...
python
edit
3
0
apache-2.0
06820a8be62577448dbd5e77cb28ce51f9960869
cbowman0/whisper,jjneely/whisper,graphite-server/whisper,graphite-project/whisper,piotr1212/whisper,obfuscurity/whisper,deniszh/whisper,acdha/whisper,akbooer/whisper,penpen/whisper,kerlandsson/whisper,alexandreboisvert/whisper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Copyright (c) 2011 Google Inc. 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\n\"\"\"\nSmoke-tests 'settings' blocks.\n\"\"\"\n\nimpo...
python
edit
1
0
bsd-3-clause
bca736ac15b06263c88d0265339b93b8c2b20d79
witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp
test/settings/gyptest-settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rdflib import *\nimport unittest\n\nclass test_normalisedString(unittest.TestCase):\n def test1(self):\n lit2 = Literal(\"\\two\\nw\", datatype=XSD.normalizedString)\n lit = Literal(\"\\two\\nw\", datatype=XSD.string)\...
python
edit
1
1
bsd-3-clause
f26a59aae33fd1afef919427e0c36e744cb904fc
RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib
test/test_normalizedString.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nROOT_DIR = os.path.dirname(os.path.abspath(__file__))\nREADME_FILE = os.path.join(ROOT_DIR, \"README.rst\")\n\nwith open(...
python
edit
1
0
mit
3b21b6e9edf19edc6569e383e708965a17c2ce0b
xgfone/pycom,xgfone/xutils
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 concurrent.futures\n\nfrom db.common import session_scope\nfrom db.player import Player\nfrom utils.player_data_retriever import PlayerDataRetriever\n\n\ndef create_player_seasons(sim...
python
edit
1
4
mit
b482eb5c8ff7dc346a3c7037c2218a4b2f2d61c4
leaffan/pynhldb
setup/create_player_seasons.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\n\"\"\"Main executable for ShivyC compiler\n\nFor usage, run \"./shivyc.py --help\".\n\n\"\"\"\n\nimport argparse\n\ndef get_arguments():\n \"\"\"Set up the argument parser and return an object storing the\n a...
python
edit
1
1
mit
50f2cd076aae183376ab14d31594c104ac210738
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
shivyc.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\n from setuptools import find_packages\n packages = find_packages()\nexcept ImportError:\n from distutils.core import setup\n import os\n packages = [x.strip('./').replace('/','.') for x...
python
edit
1
0
bsd-2-clause
14a706fe52d3bc316fc5d3a130824b7353e9efed
angr/cle
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__author__ = \"Richard Lindsley\"\n\nimport sys, os\nimport argparse\n\nimport sip\nsip.setapi('QDate', 2)\nsip.setapi('QDateTime', 2)\nsip.setapi('QString', 2)\nsip.setapi('QTextStream', 2)\nsip.setapi('QTime', 2)\nsip.setapi('QUrl', 2)\ns...
python
edit
5
2
mit
b2a7b299e38ca2cb0d1a725fcfbf6d5d73fa1dfc
richli/dame
dame/dame.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\nfrom mamba import __version__\n\nsetup(name='mamba',\n version=__version__,\n description=\"The definitive testing tool for Python. Born under the banner of B...
python
edit
1
0
mit
ac000dab8aff1a80f20cc525bf799f6a9893dee3
eferro/mamba,angelsanz/mamba,alejandrodob/mamba,nestorsalceda/mamba,dex4er/mamba,jaimegildesagredo/mamba,markng/mamba
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n# coding=utf-8\n\n\"\"\"\nImplements reused sanity checks\n\"\"\"\n\nimport os\nimport sys\nfrom gitver.termcolors import term, bold\nfrom gitver.defines import PRJ_ROOT, CFGDIR, CFGDIRNAME, GITIGNOREFILE\n\n\ndef ch...
python
edit
2
4
apache-2.0
9a3c134de0c1c7d194f3d7e30bd9cea917154cba
manuelbua/gitver,manuelbua/gitver,manuelbua/gitver
gitver/sanity.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nversion = '6.5.1'\n\n\nextras_require = {\n 'images': [\n 'Pillow>=2.8.1,<2.9',\n ],\n}\n\n\nsetup(\n name='incuna-test-utils',\n packages=find_packages(),\n include_pac...
python
edit
1
0
bsd-2-clause
1e6bd140ebc2fbc4227af7859b3df47a6f876f95
incuna/incuna-test-utils,incuna/incuna-test-utils
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import (\n absolute_import,\n print_function,\n)\n\nPOSTGRES_MAX_INT = 2147483647\n\n# class statuses\nSTATUS_OPEN = 0\nSTATUS_FULL = 1\nSTATUS_CLOSED = 2\nSTATUS_TENTATIVE = 3\nSTATUS_CANCELLED = 4\nSTATUS_STOPPED = 5...
python
edit
1
0
mit
461ad75cdb5b8d1a514ff781fd021b33cfd5aa3d
Chybby/Tutorifull,Chybby/Tutorifull,Chybby/Tutorifull
constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nc.InteractiveShellApp.exec_lines = []\n# ipython-autoimport - Automatically import modules\nc.InteractiveShellApp.exec_lines.append(\n \"try:\\n %load_ext ipython_autoimport\\nexcept ImportError: pass\")\n# Automatically reload module...
python
edit
6
0
mit
a6e6e6bf18c48638d4c6c7d97f894edd3fc3c1ad
brycepg/dotfiles,brycepg/dotfiles
ipython_config.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\ngeopy is a Python 2 and 3 client for several popular geocoding web services.\n\ngeopy makes it easy for Python developers to locate the coordinates of\naddresses, cities, countries, and landmarks across the globe using third-party\n...
python
edit
5
0
mit
b064d8dbc4be13c12c1c87491ebcb484ab71ac52
geopy/geopy,jmb/geopy
geopy/__init__.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-pagelets',\n version=__import__('pagelets').__version__,\n author='Caktus Consulting Group',\n author_email='<EMAIL>',\n packages=find_packages(exclude=['sa...
python
edit
1
0
bsd-3-clause
64ecd6694bc1aeeece09a4b3485f53aee02e5962
caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport csv\nimport re\nimport os\nfrom urlparse import urlparse\nfrom elasticsearch import Elasticsearch\n\nif os.environ.get('BONSAI_URL'):\n url = urlparse(os.environ['BONSAI_URL'])\n bonsai_tuple = url.netloc.partition('@')\n ELASTICS...
python
edit
null
null
mit
11278ec546cf1c84a6aefff7ed4e5a677203d008
codeforamerica/streetscope,codeforamerica/streetscope
index_addresses.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
python
edit
1
1
apache-2.0
051a0ae16f7c387fcab55abff7debb4e0985654e
tengqm/senlin-container,stackforge/senlin,openstack/senlin,stackforge/senlin,Alzon/senlin,openstack/senlin,tengqm/senlin,Alzon/senlin,openstack/senlin,tengqm/senlin-container,tengqm/senlin
senlin/db/sqlalchemy/migration.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nVERSION = \"0.5.1\"\n\nfrom setuptools import setup, find_packages\n\nclassifiers = [\n 'Intended Audience :: Developers',\n 'Intended Audience :: Science/Research',\n 'Natural Language :: English',\n 'Top...
python
edit
1
0
mit
ae65aa843a2da11f4a237ce52de3b034826c40e8
LuminosoInsight/luminoso-api-client-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport re\n\nfrom citrination_client.base import *\nfrom citrination_client.search import *\nfrom citrination_client.data import *\nfrom citrination_client.models import *\nfrom citrination_client.views.descriptors import *\nfrom...
python
edit
8
5
apache-2.0
b2764b9ada2ca3bec548ceb82e71697f7515f14f
CitrineInformatics/python-citrination-client
citrination_client/__init__.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import Extension, find_packages, setup\n\narpreq = Extension('arpreq', sources=['arpreq/arpreq.c'],\n extra_compile_args=['-std=c99'])\n\nsetup(name='arpreq',\n version='0.1.0',\n description=\"Qu...
python
edit
1
0
mit
8ab6e70e8c04936ee7c6608a97014b06856e7a2f
sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys, os\nmyPath = os.path.dirname(os.path.abspath(__file__))\nprint(myPath)\nsys.path.insert(0, myPath + '/../SATSolver')\n\nfrom unittest import TestCase\nfrom individual import Individual\nfrom BitVector import BitVector\nfrom bita...
python
edit
1
1
mit
82cb6d190ce1e805914cc791518c97e063ecdc96
Imperium-Software/resolver,Imperium-Software/resolver,Imperium-Software/resolver,Imperium-Software/resolver
tests/test_individual.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='utf9',\n version='0.2',\n description='Encode and decode text with UTF-9 (IEEE RFC4042)',\n install_requires=['bitarray'],\n url='http://github.com/enricobacis/utf9',\n au...
python
edit
1
0
mit
be85f552edf4eeeae5f4f2e53db0c03aa037970d
enricobacis/utf9
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rpyc.core.stream import SocketStream, PipeStream\nfrom rpyc.core.channel import Channel\nfrom rpyc.core.protocol import Connection\nfrom rpyc.core.netref import BaseNetref\nfrom rpyc.core.async import AsyncResult, AsyncResultTimeout\nf...
python
edit
null
null
mit
96fac3babb22386fd94eccc86abb5bd15c917c53
glpatcern/rpyc,sponce/rpyc,pyq881120/rpyc,pombredanne/rpyc,geromueller/rpyc,kwlzn/rpyc,siemens/rpyc,eplaut/rpyc,gleon99/rpyc
rpyc/core/__init__.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\nimport simuvex\n\nclass UserHook(simuvex.SimProcedure):\n NO_RET = True\n\n # pylint: disable=arguments-differ\n def run(self, user_func=None, user_kwargs=None, default_return_addr=None):\n result = user_func(self.state, **u...
python
edit
1
3
bsd-2-clause
149a8091333766068cac445db770ea73055d8647
axt/angr,schieb/angr,tyb0807/angr,chubbymaggie/angr,chubbymaggie/simuvex,chubbymaggie/angr,chubbymaggie/simuvex,f-prettyland/angr,axt/angr,angr/angr,f-prettyland/angr,tyb0807/angr,schieb/angr,axt/angr,chubbymaggie/angr,f-prettyland/angr,iamahuman/angr,tyb0807/angr,iamahuman/angr,angr/angr,iamahuman/angr,angr/angr,schie...
simuvex/procedures/stubs/UserHook.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport setuptools\nimport unittest\n\n\ndef discover_tests():\n test_loader = unittest.TestLoader()\n return test_loader.discover('.', pattern='*_test.py')\n\n\nif __name__ == '__main__':\n setuptools.setu...
python
edit
1
1
apache-2.0
6a4fa01005d1023e79bc5f214a14285727bb096b
mesonbuild/wrapweb,mesonbuild/wrapweb,mesonbuild/wrapweb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, unicode_literals\n\nimport unittest\n\nfrom draftjs_exporter.constants import Enum, BLOCK_TYPES, ENTITY_TYPES, INLINE_STYLES\n\n\nclass EnumConstants(unittest.TestCase):\n def test_enum_returns_the...
python
edit
1
1
mit
95fbbe9bac94e171424cb8ee23a675a70607fb62
springload/draftjs_exporter,springload/draftjs_exporter,springload/draftjs_exporter
tests/test_constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''UniqueID facade.\n\nReturns the following depending on the platform:\n\n* **Android**: Android ID\n* **OS X**: Serial number of the device\n* **Linux**: Serial number using lshw\n* **Windows**: MachineGUID from regkey\n\nSimple Example\n...
python
edit
1
1
mit
50784afbb0c95f435c1a25e0840438e406349bbb
kivy/plyer,kived/plyer,kivy/plyer,KeyWeeUsr/plyer,KeyWeeUsr/plyer,kived/plyer,kivy/plyer,KeyWeeUsr/plyer
plyer/facades/uniqueid.py
accepted
null
true