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\nfrom setuptools import setup\n\nREQUIRES = [\n 'markdown',\n 'mdx_outline',\n]\n\nSOURCES = []\n\nwith open('README.rst', 'r') as f:\n long_description = f.read()\n\nsetup(\n name=\"mdx_attr_cols\",\n version=\"0.1.1\",\n ...
python
edit
1
0
isc
fe2ce1c782730690f92651439abe33b6252821b8
CTPUG/mdx_attr_cols
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=\"globus-cli\",\n version=\"0.1.0\",\n packages=find_packages(),\n install_requires=['globus-sdk-python'],\n # for now, install directly from GitHub\n # TODO: on...
python
edit
1
0
apache-2.0
5a5a83abb5265dd0abc3c6306f65930c4ce012f2
globus/globus-cli,globus/globus-cli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nVERSION = '0.1.0dev'\n\nsetup(\n name='Brewmeister',\n version=VERSION,\n long_description=open('README.rst').read(),\n packages=find_packages(),\n include_package_data=True,\n ...
python
edit
1
3
mit
e04417d0811fba4e36ca16e3c731f35033be09f9
brewpeople/brewmeister,brewpeople/brewmeister,brewpeople/brewmeister
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='pystash',\n version='0.0.14',\n author='Alexander Davydov',\n author_email='<EMAIL>',\n packages=[ 'pystash' ],\n scripts=[ 'bin/stash' ],\n url='http://pypi.python.org...
python
edit
1
0
mit
f51589192d428b82acbebece6be73799e04a3f44
nyddle/pystash
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom downstream_node import __version__\n\nsetup(\n name='downstream-node',\n version=__version__,\n packages=['downstream_node'],\n url='',\n license='',\n author='Storj Labs',\n author_...
python
edit
1
0
mit
24a6ff064036248043ff609ec7ba1925832219c4
Storj/downstream-node,Storj/downstream-node
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('README.rst') as fd:\n long_description = fd.read()\n\nsetup(name='Flask-ESClient',\n version='0.1.1',\n description='Flask extension for ESClient (elasticsearch client)',\n ...
python
edit
3
0
bsd-2-clause
f964c435efce30a3ca3cb10185666e8e8af7a0db
baijum/flask-esclient
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*-coding:utf-8-*-\n\nfrom setuptools import setup\n\nsetup(\n name='rocketchat_API',\n version='0.6.5',\n packages=['rocketchat_API', 'rocketchat_API.APIExceptions'],\n url='https://github.com/jadolg/rocketchat_API',\n lic...
python
edit
1
0
mit
1e47c53e6c96007fe41834e9b0ba2602a6f0e860
jadolg/rocketchat_API
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\ndef readme():\n with open('README.md') as readme_file:\n return readme_file.read()\n\n\nsetup(\n name='comment_parser',\n version='1.2.3',\n description='Parse comments from various source file...
python
edit
1
1
mit
5cf5f6c16f8430cf1939b3775982b9dabbdc4123
jeanralphaviles/comment_parser
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add a basic test for irange\n\nMake sure `irange` is there, it doesn't return a list, and it acts like\n`range` on some test arguments." }, { "role": "assistant", "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\nfr...
python
new_file
1
1
bsd-3-clause
4cf871af11eb08b3b5b8671c4b5042c6f9f2f344
jakirkham/dask-distance
tests/test__pycompat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'PyFVCOM',\n packages = ['PyFVCOM'],\n version = '1.2',\n description = (\"PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot...
python
edit
1
0
mit
3a9d53fd1ad0687a5ed3564c44a7624488a83d4b
pwcazenave/PyFVCOM
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nUnit tests\n\"\"\"\n\nimport django\n\nfrom django.conf import settings\n\n# Configure Django as required by some of the Gherkin steps\nsettings.configure(\n CACHES={'default': {\n 'BACKEND': 'django.core.cache.backends.lo...
python
edit
1
0
mit
87b9e240f3065fcd1c057ccf8698c2e824d113a9
infoxchange/ixprofile-client,infoxchange/ixprofile-client
ixprofile_client/tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .compoundmotorsinkportspart import CompoundMotorSinkPortsPart, \\\n APartName, ARbv, AGroup\nfrom .cssourceportspart import CSSourcePortsPart, APartName, ARbv, AGroup\nfrom .cspart import CSPart, AMri\nfrom .pmacchildpart import Pma...
python
edit
25
0
apache-2.0
6ab01b1e26184bf296cf58939db5299f07cd68f5
dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm
malcolm/modules/pmac/parts/__init__.py
rejected_lint
Too many lint violations: 25
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distribute_setup import use_setuptools\n use_setuptools()\n from setuptools import setup\n\nsetup(\n setup_requires=['d2to1>=0.2.5', 'st...
python
edit
1
0
bsd-3-clause
cbb0bd366f829b2c917456256d178b54a2c9a735
jhunkeler/acstools
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nversion = '0.0.1'\n\nsetup(name='scoville',\n version=version,\n description=\"A tool for measureing tile latency.\",\n long_description=open('README.md').read(),\n classifi...
python
edit
1
0
mit
400978cac957684f1f5d1a19a585cc8ea7b4e616
tilezen/scoville,tilezen/scoville,tilezen/scoville
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nimport logging\nimport multiprocessing.pool\n\n\nfrom rackattack.physical.ipmi import IPMI\n\n\nclass ColdReclaim:\n _CONCURRENCY = 8\n _pool = None\n\n def __init__(self, hostname, username, password, hardReset):\n ...
python
edit
3
2
apache-2.0
14fdcdd5193816cc171120ba31112411aa0fd43d
eliran-stratoscale/rackattack-physical,eliran-stratoscale/rackattack-physical,Stratoscale/rackattack-physical,Stratoscale/rackattack-physical
rackattack/physical/coldreclaim.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#This file is part of the ISIS IBEX application.\n#Copyright (C) 2012-2016 Science & Technology Facilities Council.\n#All rights reserved.\n#\n#This program is distributed in the hope that it will be useful.\n#This program and the accompany...
python
edit
3
1
bsd-3-clause
147197f5640f9c008b73832f6b15316e1966da1c
ISISComputingGroup/EPICS-inst_servers,ISISComputingGroup/EPICS-inst_servers
BlockServer/epics/archiver_wrapper.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#\n# Setup script for Django Evolution\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test\n\nfrom django_evolution import ...
python
edit
1
1
bsd-3-clause
28b280bb04f806f614f6f2cd25ce779b551fef9e
beanbaginc/django-evolution
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom IPython.parallel import Client\nfrom distarray.client import DistArrayContext\n\n\nclass TestDistArrayContext(unittest.TestCase):\n\n def setUp(self):\n self.client = Client()\n self.dv = self.client[:...
python
edit
5
3
bsd-3-clause
affc010ccb741bbaba3b63eb565844a090bab51f
RaoUmer/distarray,enthought/distarray,enthought/distarray,RaoUmer/distarray
distarray/tests/test_client.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport datetime\n\nimport os\n\nimport pytest\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\n@pytest.mark.paramet...
python
edit
1
1
mit
80d671aa79f306bb17eed006bc99eaa6e6a17bd5
ctorgalson/ansible-role-janus,ctorgalson/ansible-role-janus
molecule/default/tests/test_default.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nClass Mixins.\n\"\"\"\n\nclass MultipleIDMixin(object):\n \"\"\"\n Override get_queryset for multiple id support\n \"\"\"\n def get_queryset(self):\n \"\"\"\n Override :meth:``get_queryset``\n \"\"\"...
python
edit
1
2
bsd-2-clause
77c97ea46280b395d0c2c1c02941f5eb6d88fde6
Instawork/django-rest-framework-json-api,aquavitae/django-rest-framework-json-api,lukaslundgren/django-rest-framework-json-api,django-json-api/django-rest-framework-json-api,leo-naeka/rest_framework_ember,kaldras/django-rest-framework-json-api,schtibe/django-rest-framework-json-api,hnakamur/django-rest-framework-json-a...
rest_framework_json_api/mixins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\n# Copyright (c) 2009 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\n\"\"\"Makes sure that the app/ code is cpplint c...
python
edit
1
1
bsd-3-clause
7a0c0e6ed56e847b7b6300c1a0b4a427f26b296d
wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser
app/PRESUBMIT.py
rejected_duplicate
Near-duplicate of sample 3531
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.utils.translation import gettext as _\nimport six\n\nfrom django_enumfield.exceptions import InvalidStatusOperationError\n\n\ndef validate_valid_transition(enum, from_value, to_value):\n \"\"\"\n Validate that to_value is ...
python
edit
1
5
mit
dae6cf8ebe2c2eb0f7c004190c9a3d76a65df918
jessamynsmith/django-enumfield,5monkeys/django-enumfield,lamby/django-enumfield,lamby/django-enumfield,joar/django-enumfield,fcurella/django-enumfield
django_enumfield/validators.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom geojson import Feature, Point, FeatureCollection, dumps\n\nwikitext = open('wiki-fork', 'r')\noutput = open('output.geojson', 'w')\n\ngeo_output = []\n\nfor line in wikitext:\n split = line.split('\"')\n\n ...
python
edit
1
0
unlicense
cd3c1f1fbacd4d1a113249af0faf298d5afa540f
guyfawcus/ArchMap,maelstrom59/ArchMap,guyfawcus/ArchMap,guyfawcus/ArchMap,maelstrom59/ArchMap
wikifork-convert.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Tests for the PythonPoint tool.\n\"\"\"\n\nimport os, sys, string\nfrom reportlab.test import unittest\nfrom reportlab.test.utils import makeSuiteForClasses, outputfile\n\nimport reportlab\n\n\nclass PythonPointTestCase(unittest.TestC...
python
edit
5
4
bsd-3-clause
44351d1e48159825226478df13c648aaa83018db
kanarelo/reportlab,kanarelo/reportlab,Distrotech/reportlab,Distrotech/reportlab,kanarelo/reportlab,Distrotech/reportlab,Distrotech/reportlab,Distrotech/reportlab,kanarelo/reportlab,kanarelo/reportlab
reportlab/test/test_tools_pythonpoint.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\n\ndef import_attribute(import_path, exception_handler=None):\n from django.utils.importlib import import_module\n module_name, object_name = import_path.rsplit('.', 1)\n try:\n module = import_module(module_nam...
python
edit
1
6
bsd-3-clause
4848baf76e4972401530b624816ba48cb08d9398
diox/django-appconf,carltongibson/django-appconf,django-compressor/django-appconf,jezdez/django-appconf,jessehon/django-appconf,treyhunner/django-appconf,jezdez-archive/django-appconf
appconf/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\nimport sshrc.core.lexer as lexer\n\nimport pytest\n\n\n@pytest.mark.parametrize(\"input_, output_\", (\n (\"\", \"\"),\n (\" \", \"\"),\n (\" #\", \"\"),\n (\"# \", \"\"),\n (\"...
python
edit
1
1
mit
9b82ab1ad03c758b6f33e1e5ff6a2b73ff68fccc
9seconds/sshrc,9seconds/concierge
tests/test_core_lexer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nclass MyWorkflow(object):\n def __init__(self):\n pass\n\n def step3(self, session_time = None):\n print \"Step3 of session %s\" % session_time\n\n\n```\n\nApply this change: Fix an example of python task\n\nThe origin...
python
edit
1
1
apache-2.0
cdaf1c4a9a99a7f089470e8ceaaa226124a42cf0
treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,treasure-data/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag,treasure-data/digdag,KimuraTakaumi/digdag,treasure-data/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag,KimuraTakaumi/digdag
digdag-cli/src/main/resources/digdag/cli/tasks/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nimport log_parser\n\nimport os\n\n\n@pytest.fixture\ndef parsed_log():\n logname = os.path.join(os.path.split(os.path.abspath(__file__))[0],\n 'build.log')\n gen = list(log_parser.read_log_from...
python
edit
1
4
bsd-3-clause
62ba442ac447dbb4482dd15f70075d224d0e5a0e
NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes
scripts/test_conda_build_log.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n'''\n :codeauthor: :email:`Bo Maryniuk <<EMAIL>>`\n'''\nfrom __future__ import absolute_import, print_function, unicode_literals\nimport datetime\n\nfrom tests.support.unit import TestCase, skipIf\nfrom tests.sup...
python
edit
6
1
apache-2.0
cad7093a3175868944acf1d2f62bad523e4f8a41
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
tests/unit/utils/test_thin.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\n# Register your models here.\n\nfrom .models import Post\nfrom .models import UserProfile\nfrom .models import SocialMedia\n\n\nclass ArticleAdmin(admin.ModelAdmin):\n list_display = (\"title\", \"cate...
python
edit
1
0
apache-2.0
cb073dc49efffad56d880f63fd709e5a803e7cf6
andreztz/DjangoBlog,andreztz/DjangoBlog,andreztz/DjangoBlog
blog/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\n# To set __version__\n__version__ = '0.0.2'\n\nsetup(name=\"socketconsole\",\n version=__version__,\n py_modules=['socketconsole'],\n description=\"Unix socket access to python thread dump\",\n ...
python
edit
1
0
bsd-3-clause
0a2e0798dcd257d1c0f3b9cf923af38487d3adde
robotadam/socketconsole
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\n\nclass List(object):\n \"\"\"List class.\"\"\"\n def __init__(self):\n pass\n\n def add(self, item):\n pass\n\n def remove(self, item):\n pass\n\n def search(self...
python
edit
1
1
bsd-2-clause
117b202a1c28282a2c27a545c3da29df9e5675ec
bowen0701/algorithms_data_structures
ds_unordered_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Copyright (c) 2016, Michael Boyle\n# See LICENSE file for details: <https://github.com/moble/quaternion/blob/master/LICENSE>\n\nfrom __future__ import print_function\n\nimport fileinput\nfrom auto_version import c...
python
edit
1
0
mit
158eb354c4860456bf12910c5f737b07c0a313a3
moble/quaternion,moble/quaternion
.meta_yaml_replacer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from urllib.parse import urlparse\nexcept ImportError:\n from urlparse import urlparse\n\nfrom botocore.auth import SigV4Auth\nfrom botocore.awsrequest import AWSRequest\nimport requests\n\nclass AWSV4Sign(requests.auth.AuthBas...
python
edit
1
3
isc
c84c4ce448f367be0d1759ad20fc8dc58de8fc89
jmenga/requests-aws-sign
requests_aws_sign/requests_aws_sign.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\n\"\"\"\nDispatch your torrents into multiple watchdirs\nSee:\n https://github.com/Anthony25/torrents_dispatcher\n\"\"\"\n\nfrom os import path\nfrom setuptools import setup\n\nhere = path.abspath(path.dirname(__...
python
edit
1
0
bsd-2-clause
6107e4d6b2d437c2762b2b93071e44ccdb508948
Anthony25/torrents_dispatcher
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"A setuptools based setup module.\n\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\nfrom setuptools import setup, find_packages\n\nsetup(\n\tname='integrate',\n\tversion='...
python
edit
1
0
bsd-3-clause
f453181fd28f914c285a0cdc6d066c740206ea3d
anfema/integrate
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom codecs import open as codecs_open\nfrom setuptools import setup, find_packages\n\n\n# Get the long description from the relevant file\nwith codecs_open('README.rst', encoding='utf-8') as f:\n ...
python
edit
1
0
mit
fbbdef69f8c234926d644d1c5c77dc1bae1c4a21
jwass/geog
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nimport codecs\nimport schema\n\n\nsetup(\n name=schema.__name__,\n version=schema.__version__,\n author=\"Vladimir Keleshev\",\n author_email=\"<EMAIL>\",\n description=\"Simple data validation...
python
edit
1
0
mit
895652eabfd8313b15015969dc9b7459d9c890d5
keleshev/schema
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport SimpleCV as scv\nfrom SimpleCV import Image\nimport cv2\nimport time\nfrom start_camera import start_camera\nimport threading\n\ndef take_50_pictures():\n camera_thread = threading.Thread(target=start_camera)\n camera_thread.start(...
python
edit
2
2
mit
65a6f21e992cc51238c6916895e9cf2f2b2bab21
jwarshaw/RaspberryDrive
driver_code_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport os\nfrom setuptools import setup, find_packages\n\nfrom hsync._version import __version__\n\nsetup(\n name = 'hsync',\n version = __version__,\n author = 'André Lucas',\n author_...
python
edit
4
0
bsd-3-clause
4bb450a883ba0a851c823491540dd7294216c2d0
andrelucas/hsync
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport enum\n\n\nclass Opcode(enum.IntEnum):\n QUERY = 0\n IQUERY = 1\n STATUS = 2\n\n\nclass ResponseCode(enum.IntEnum):\n NO_ERROR = 0\n FORMAT_ERROR = 1\n SERVER_ERROR = 2\n NAME_ERROR = 3\n NOT_IMPLEMENTED = 4\n ...
python
edit
1
1
apache-2.0
d506ceb3e3327f086b79cf38d39b34d5825132d0
svisser/dynamite
dynamite/message.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='pypicache',\n version='0.1',\n description='PyPI caching and proxying server',\n author='Michael Twomey',\n author_email='<EMAIL>',\n url='http://readthedocs.org/projects/...
python
edit
1
0
bsd-2-clause
69a94a60d04991ba5f8c25276455dedc3a0b898c
micktwomey/pypicache
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\n\nVERSION = (0, 3)\nVERSION_STR = \".\".join(map(str, VERSION))\n\n\nurl = 'https://github.com/mila/spadl'\n\ntry:\n if sys.version_info >= (3,):\n long_descriptio...
python
edit
1
0
bsd-3-clause
4bfd4d32f41e173944bbf76d35c3d88a96930013
mila/spadl
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport nagios\n\nsetup(name='nagios-api',\n version=nagios.version,\n description='Control nagios using an API',\n author='Mark Smith',\n author_email='<EMAIL>',\n license='BSD New ...
python
edit
1
0
bsd-3-clause
384fd7ba49ad0cfcb173656a5e31475e8c9b49b3
zorkian/nagios-api,zorkian/nagios-api
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\n\nlong_description = open('README.rst').read()\n\nsetup(name=\"quik\",\n version=\"0.2.2-dev\",\n description=\"A fast and lightweight Python template engine\",\n long_de...
python
edit
1
0
mit
15e7e578a211d9af4ed68ccf02361c06308c7d4e
avelino/quik
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\nfrom setuptools import setup, find_packages\n\nEXTRAS_REQUIRES = dict(\n web=[\n 'bottle>=0.11',\n ],\n test=[\n 'pytest>=2.2.4',\n 'mock>=0.8.0',\n ],\n dev=[\n 'ipython...
python
edit
1
0
mit
993414b8c0e99bf88285dd7c3f0fa0e41ab7d0d9
thelinuxkid/gumjabi
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = \"linode-python\",\n version = \"1.1\",\n description = \"Python bindings for Linode API\",\n author = \"TJ Fontaine\",\n author_email = \"<EMAIL>\",\n url = \"https://gi...
python
edit
1
0
mit
632c13c31e915a36b81fc60e305dd168bb4e679f
ryanshawty/linode-python,tjfontaine/linode-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n\ndev_requires = [\n 'Sphinx==1.2.2',\n]\n\ninstall_requires = [\n 'nodeconductor>=0.78.0',\n]\n\n\nsetup(\n name='nodeconductor-saltstack',\n version='0.1....
python
edit
1
0
mit
a399f9c81b4ad145ebe653bd6c9e8f9396b705f9
opennode/nodeconductor-saltstack
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='zeit.objectlog',\n version='0.11dev',\n author='Christian Zagrodnick',\n author_email='<EMAIL>',\n description=\"\"\"\\\n\"\"\",\n packages=find_packages('src')...
python
edit
1
0
bsd-3-clause
479972b027c1571be1a3b0c7659c7e3ccf12939e
ZeitOnline/zeit.objectlog
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nversion = '0.1'\n\ninstall_requires = [\n 'SQLAlchemy>=0.7.8'\n ]\n\n\nsetup_requires = [\n 'nose'\n ]\n\ntests_require = install_requires + [\n 'coverage',\n 'psycopg2',\n ...
python
edit
1
0
mit
4797197ae4f53c4de46083d330654cf74849cf26
geoalchemy/geoalchemy2
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n# coding: latin-1\n\n#------------------------------------------------------------------------------#\n# Artificial Intelligence - Bayes Classification Algorithms #\n# ==================================...
python
edit
1
3
apache-2.0
4b418cee7bcf1f2d47674a94c5070f40771f54f5
Chavjoh/BayesClassificationPython
BayesClassification.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding=utf-8\nfrom __future__ import absolute_import, division, print_function\n\nimport sys\nfrom setuptools import setup\n\nVERSION='0.1.0'\n\nANTLR4 = 'antlr4-python{}-runtime'.format(sys.version_info.major)\n\nsetup(\n name='vfp2py...
python
edit
1
0
mit
d65549b33fca6516436864c44ba3de459d68e679
mwisslead/vfp2py,mwisslead/vfp2py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n\tname='feature-extraction',\n\tauthor='Liam Marshall',\n\tauthor_email='<EMAIL>',\n\tversion='0.1',\n\tlicense='Apache',\n\n\tpackages=['feature_extraction'],\n\tinstall_requires=['numpy', 'Pillow', ...
python
edit
1
0
apache-2.0
a79a55502d4b4e4867d997cb80630181444a3274
widoptimization-willett/feature-extraction
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom FetchStats import Fetcher\n\nclass Facter(Fetcher):\n import yaml\n\n def __init__(self):\n self.context = 'facter'\n self._load_data()\n\n def _load_data(self):\n try:\n output = self._exec('fa...
python
edit
7
3
mit
9cf9a1d70a5d453dfd217c1ba148eccdc630912e
pombredanne/jsonstats,pombredanne/jsonstats,RHInception/jsonstats,RHInception/jsonstats
FetchStats/Plugins/Facter.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='libgen.py',\n version='0.1.0',\n license='MIT',\n author='Adolfo Silva',\n author_email='<EMAIL>',\n url='https://github.com/adolfosilva/libgen.py',\n description='A script...
python
edit
1
0
mit
c9a93f6ba48c05438c83738f1729ee7e4b4fd346
adolfosilva/libgen.py
setup.py
rejected_duplicate
Near-duplicate of sample 2373
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='fortdepend',\n version='0.1.0',\n description='Automatically generate Fortran dependencies',\n author='Peter Hill',\n author_email='<EMAIL>',\n url='https://github.com/Zed...
python
edit
1
0
mit
39dcf1965aa286881f556b65b781decf9835605b
ZedThree/fort_depend.py,ZedThree/fort_depend.py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.views.generic import TemplateView\n\nfrom competition.models import Competition\n\n\nclass HomePageView(TemplateView):\n template_name = \"home/home.html\"\n \n def get_context_data(self, **kwargs):\n context = sup...
python
edit
1
2
bsd-3-clause
9ee6b2e61fccf7ebc6b3e90370f78ffcf948969d
siggame/webserver,siggame/webserver,siggame/webserver
webserver/home/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nSettings overrided for test time\n\"\"\"\nfrom django.conf import settings\n\n\nINSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (\n 'modeltranslation.tests',\n)\n\nLANGUAGES = (('de', 'Deutsch'),\n ...
python
edit
1
0
bsd-3-clause
dbb9becd09bbb9808060272b74e664afc354dfa8
deschler/django-modeltranslation,deschler/django-modeltranslation
modeltranslation/tests/settings.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\n\nCLASSIFIERS = [\n 'Development Status :: 4 - Beta',\n 'Environment :: Console',\n 'Intended Audience :: Developers',\n 'Licen...
python
edit
1
0
bsd-3-clause
3997dc74b50e83a661dc3efa2adf8355466133ac
paluh/code-formatter
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Test code for find_pairs_pt.py\r\n\r\nimport pytest\r\nimport find_pairs_pt as fp\r\n\r\ndef test_one_pair():\r\n assert fp.find_pairs_simple([1,9]) == [(1,9)]\r\n assert fp.find_pairs([1,9]) == [(1,9)]\r\n\r\n'''\r\n>>> find_pairs_...
python
edit
3
1
mit
db20e918844890979a6af6bfa3b3e74c09914728
daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various,daveinnyc/various
utilities/test_find_pairs_pt.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom setuptools.command.test import test as TestCommand\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_args = []\n self.te...
python
edit
2
1
bsd-3-clause
f8c8c14e0ca6f8e3174a14f519b395a4e0bfe043
ryanorendorff/pyop
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport sys\nimport os\n\nsys.path.insert(0, os.path.join(os.path.dirname(__file__), 'hellosign_sdk'))\n\ndef readme():\n with open('README.md') as f:\n return f.read()\n\nsetup(name='hellosign-python-...
python
edit
1
1
mit
f3bf773868b17f1928167787e783e5b2b70d7ed0
arshsingh/hellosign-python-sdk,HelloFax/hellosign-python-sdk
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 = 'compdb',\n version = '0.1',\n package_dir = {'': 'src'},\n packages = find_packages('src'),\n\n author = 'Carl Simon Adorf',\n author_email = '<EMAIL>',\n ...
python
edit
1
0
bsd-3-clause
4efdee1f93e85b96607a21c0d8f79343ef989697
csadorf/signac,csadorf/signac
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\n yerba:\n ------\n\n A is a distributed job management framework\n\n copyright: (c) 2014 by Evan Briones\n license: MIT, refer to LICENSE for details\n\"\"\"\n\n__version__ = \"0.4-dev\"\n\n\n...
python
edit
1
0
bsd-2-clause
7b634eb825e2e102caf862e8753012c35f14ee3f
LyonsLab/Yerba,LyonsLab/Yerba
yerba/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport requests\nfrom graphql.execution import ExecutionResult\nfrom graphql.language.printer import print_ast\n\nfrom .http import HTTPTransport\n\n\nclass RequestsHTTPTransport(HTTPTransport):\n ...
python
edit
1
2
mit
72d89466e40fadeb246b6d69ab0e7035f6bcc8da
graphql-python/gql
gql/transport/requests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom website.project.taxonomies import Subject\nfrom admin.nodes.serializers import serialize_node\n\n\ndef serialize_preprint(preprint):\n\n return {\n 'id': preprint._id,\n 'date_created': preprint.date_created,\n ...
python
edit
1
4
apache-2.0
c72f021248eaf2b969967eb8663e72f888c5fba7
cslzchen/osf.io,Johnetordoff/osf.io,hmoco/osf.io,adlius/osf.io,pattisdr/osf.io,icereval/osf.io,cslzchen/osf.io,chrisseto/osf.io,mfraezz/osf.io,brianjgeiger/osf.io,HalcyonChimera/osf.io,chennan47/osf.io,Johnetordoff/osf.io,cwisecarver/osf.io,Nesiehr/osf.io,caseyrollins/osf.io,crcresearch/osf.io,HalcyonChimera/osf.io,bin...
admin/preprints/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport logging\n\nfrom werkzeug.utils import import_string\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef get_task(request):\n return json.dumps({})\n\n\ndef configure(self_settings):\n \"\"\"\n Getting plugin's de...
python
edit
1
5
bsd-3-clause
53b176674f1d72396b066705e502b5fcbee16a91
mrgambal/vulyk,mrgambal/vulyk,mrgambal/vulyk
vulyk/plugins/dummy/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.contrib.auth.models import User\n\n\nclass ImagerProfile(models.Model):\n user = models.OneToOneField(User)\n\n profile_picture = models.ImageField(null=True)\n picture_privacy = models.Boo...
python
edit
1
1
mit
173f874c4cf911fc9a35e0e039f164cb625fdccc
nbeck90/django-imager,nbeck90/django-imager
imager/ImagerProfile/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom django.test import TestCase, tag\nfrom typing import List\nfrom unittest.mock import patch, call\nfrom urllib.error import URLError\n\nfrom data_refinery_workers.downloaders import utils\n\nclass UtilsTestCase(TestCase):\n...
python
edit
7
1
bsd-3-clause
6b4e73a386ae0b4b904c32554cbdfba17aa2997a
data-refinery/data_refinery,data-refinery/data_refinery,data-refinery/data_refinery
workers/data_refinery_workers/downloaders/test_utils.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#*Flays seen function\n@command(\"seen\")\n\ndef seen(nick,user,channel,message):\n\twith db as conn:\t\n\t\twith conn.cursor() as cursor:\n\t\t\tcursor.execute(\"SELECT time, nick, message, channel from log where nick = %s order by time de...
python
edit
6
3
unlicense
e049017d8abfdee80a0d825af996cb5de2d63657
ccowmu/botler
commands/seen.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nHolds the Conllable interface, which is a marker interface to show that a class\nis a Conll object, such as a treebank, sentence, or token, and therefore has a\nconll method.\n\"\"\"\n\n\nclass Conllable:\n \"\"\"\n A Conllabl...
python
edit
1
1
mit
ae21969815351e84912d1d69be77e20450619acf
pyconll/pyconll,pyconll/pyconll
pyconll/conllable.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.version import StrictVersion\n\nfrom django import get_version\n\n\nQADMIN_DEFAULT_EXCLUDES = [\n 'django.contrib.sessions',\n 'django.contrib.admin',\n 'django.contrib.contenttypes',\n 'django.contrib.messages',\...
python
edit
1
0
mit
58cd5650900a426363c7e0b8fb9bf7d2f881f95b
zniper/django-quickadmin
quickadmin/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/env python\nimport socket\nimport sys\nfrom sys import argv\nfrom os import getcwd\n\nif len(argv) < 2:\n print \"Usage: client <command>\"\n sys.exit(-1)\n\ntry:\n f = file(\"%s/target/sbt-server-port\" % getcwd(), \"r\")\n...
python
edit
3
0
mit
1ea64f77c3fd3c779c8da43d68c282946a654771
pfn/sbt-simple-server
sbt-client.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nBasis Set Exchange\n\nContains utilities for reading, writing, and converting\nbasis set information\n'''\n\n# Just import the basic user API\nfrom .api import (get_basis, lookup_basis_by_role, get_metadata, get_reference_data, get_all...
python
edit
20
0
bsd-3-clause
88221a3afbf8daa692a344ab7bb7f8d396d547f8
MOLSSI-BSE/basis_set_exchange
basis_set_exchange/__init__.py
rejected_lint
Too many lint violations: 20
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom menpo.shape import PointDirectedGraph\nimport numpy as np\n\n\ndef pointgraph_from_circle(fitting):\n y, x = fitting.center\n radius = fitting.diameter / 2.0\n return PointDirectedGraph(np.array(((y, x),\n ...
python
edit
1
1
bsd-3-clause
90860fbe9d5b21b51ade753bdc6dfefc15cb31ac
jabooth/menpodetect,jabooth/menpodetect,yuxiang-zhou/menpodetect,yuxiang-zhou/menpodetect
menpodetect/pico/conversion.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport socket\nimport time\n\nfrom flask import *\n\nimport config\n\n\n# TCP port the Yun console listens for connections on.\nCONSOLE_PORT = 6571\n\n# Create flask application.\napp = Flask(__name__)\n\n# Get activity configuration.\nacti...
python
edit
4
2
mit
7f7d986471a413b5118db72546aafd24b3d454ca
Nosskirneh/SmartRemoteControl,punker76/SmartRemoteControl,Nosskirneh/SmartRemoteControl,punker76/SmartRemoteControl,tdicola/SmartRemoteControl,Nosskirneh/SmartRemoteControl,Nosskirneh/SmartRemoteControl,Nosskirneh/SmartRemoteControl
SmartRemoteControl/www/server.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask_caching import Cache\n\nimport main\n\n\napp = Flask(__name__)\ncache = Cache(app, config={'CACHE_TYPE': 'simple'})\n\n@app.route('/')\ndef display_available():\n content = ('<html>' +\n ...
python
edit
2
2
bsd-3-clause
7bb4e910ae8869c1108e306ee418b2c2bce8aa88
talavis/kimenu
flask_app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Fill missing values in a grid.\"\"\"\n# Copyright (c) 2012-2014 Andrew Dawson\n# \n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"...
python
edit
1
0
mit
db3700382cf14b73b9ddbcb3a35fafd92910dcbf
ajdawson/gridfill
gridfill/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport chainer\nimport chainer.functions as F\nimport chainer.links as L\n\n\nclass SEBlock(chainer.Chain):\n\n \"\"\"A squeeze-and-excitation block.\n\n This block is part of squeeze-and-excitation networks. Channel-wise\n multipl...
python
edit
1
1
mit
493aef6b9965bd4fd83fac8a4cdd790b2d8010e2
chainer/chainercv,pfnet/chainercv,chainer/chainercv
chainercv/links/connection/seblock.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nnbtutor - a small utility to indicate which cells should be cleared (exercises).\n\"\"\"\n\ntry:\n from nbconvert.preprocessors.base import Preprocessor\nexcept ImportError:\n from IPython.nbconvert.pr...
python
edit
1
3
bsd-2-clause
345a8e338e1c5256bc8e5e78d0595a76d1ceff84
jorisvandenbossche/nbtutor,jorisvandenbossche/nbtutor
nbtutor/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nbyceps.blueprints.orga_admin.forms\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:Copyright: 2006-2018 Jochen Kupperschmidt\n:License: Modified BSD, see LICENSE for details.\n\"\"\"\n\nfrom wtforms import StringField\nfrom wtforms.validato...
python
edit
1
2
bsd-3-clause
9977960046198626d266197bd9f6c4245e1897d6
homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps,m-ober/byceps
byceps/blueprints/orga_admin/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport argparse\nimport sys\n\n\ndef parse_basic_args(args=sys.argv[1:]):\n parser = argparse.ArgumentParser(description=__doc__)\n parser.add_argument(\n '--input', '-i', metavar='FILE',\n defau...
python
edit
1
1
mit
4494f4835245990ed5380cbf9800eef5d74986e6
cdown/srt
utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# WINC Firmware Update Script\n#\n# To start have a successful firmware update create a \"firmware\" folder on the\n# uSD card and but a bin file in it. The firmware update code will load that\n# new firmware onto the WINC module.\n\nimport...
python
edit
1
0
mit
16f7e964341b2a0861011b33d3e4aedd937cead5
iabdalkader/openmv,kwagyeman/openmv,kwagyeman/openmv,openmv/openmv,kwagyeman/openmv,openmv/openmv,iabdalkader/openmv,openmv/openmv,iabdalkader/openmv,kwagyeman/openmv,iabdalkader/openmv,openmv/openmv
usr/examples/14-WiFi-Shield/fw_update.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np\n\n# Note: we use dtype objects instead of dtype classes. The spec does not\n# require any behavior on dtypes other than equality.\nint8 = np.dtype('int8')\nint16 = np.dtype('int16')\nint32 = np.dtype('int32')\nint64 = np...
python
edit
1
0
bsd-3-clause
29974fba6810e1be7e8a2ba8322bd8c78a9012d0
pdebuyl/numpy,rgommers/numpy,jakirkham/numpy,endolith/numpy,charris/numpy,mattip/numpy,mhvk/numpy,pdebuyl/numpy,seberg/numpy,simongibbons/numpy,seberg/numpy,mattip/numpy,jakirkham/numpy,pdebuyl/numpy,mhvk/numpy,simongibbons/numpy,numpy/numpy,jakirkham/numpy,rgommers/numpy,charris/numpy,simongibbons/numpy,anntzer/numpy,...
numpy/_array_api/_dtypes.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#######################################################################\n# Name: test_examples\n# Purpose: Test that examples run without errors.\n# Author: Igor R. Dejanović <igor DOT dejanovic AT gmail DOT com>\n#...
python
edit
1
6
mit
da353acf45de9159cb5d05e5bd3b6d7bff6d0840
igordejanovic/textX,igordejanovic/textX,igordejanovic/textX
tests/functional/test_examples.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom django import forms\nfrom django.contrib.auth.models import User\nfrom django.utils.translation import ugettext_lazy as _\n\ntry:\n from notification import models as notification\nexcept ImportError:\n notification = None\n\nf...
python
edit
1
3
mit
eee5018475e01286be3ee5b396e213762923484e
pinax/django-announcements,pinax/pinax-announcements,arthur-wsw/pinax-announcements,edx/django-announcements,percipient/django-announcements,ntucker/django-announcements,brosner/django-announcements,datafyit/django-announcements,datafyit/django-announcements,GeoNode/geonode-announcements,rizumu/django-announcements,sta...
announcements/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, absolute_import\nimport argparse\nimport os\nimport subprocess as sp\nfrom contextlib import contextmanager\nimport tempfile\ntry:\n impor...
python
edit
5
2
mit
edf67fb99af11fbf9b62b1a67dd9992a247fe326
NGTS/pipeline-output-analysis-setup-script
setup_directory.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport sys\nimport re\n\n# Note: no output will be printed until the entire test suite has finished\nresult = subprocess.run(sys.argv[1], shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True...
python
edit
1
0
apache-2.0
ff85fc05e179e451dabb1f20781dfc5a90314d71
sbosley/squidb,yahoo/squidb,yahoo/squidb,sbosley/squidb,sbosley/squidb,sbosley/squidb,sbosley/squidb,yahoo/squidb,yahoo/squidb,yahoo/squidb
scripts/adb-wrapper.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\ntagversion Entrypoints\n\"\"\"\nimport logging\nimport sys\n\nfrom tagversion.argparse import ArgumentParser\nfrom tagversion.git import GitVersion\nfrom tagversion.write import WriteFile\n\n\ndef main():\n logging.basicConfig(le...
python
edit
1
1
bsd-2-clause
0599961b1509d7b8e0bec310b40a62f11a55cc8f
rca/tag-version,rca/tag-version
src/tagversion/entrypoints.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding:utf-8 -*-\n\nfrom gather.api import need_auth, EXCLUDE_COLUMNS\n\nfrom gather.extensions import api_manager\nfrom gather.topic.models import Topic, Reply\n\n\nbp = api_manager.create_api_blueprint(\n Topic,\n methods=[\"G...
python
edit
1
2
mit
623c56c14aa1d1c47b081f607701323d00903dc9
whtsky/Gather,whtsky/Gather
gather/topic/api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom datetime import datetime\n\nfrom stock import Stock\n\n\nclass StockTest(unittest.TestCase):\n def test_new_stock_price(self):\n \"\"\"A new stock should have a price that is None.\n\n \"\"\"\n ...
python
edit
1
1
mit
7d79c6072482d7a2de515d7ca567225100e7b6e9
bsmukasa/stock_alerter
tests/test_stock.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport factory\nimport faker\nimport random\nimport uuid\n\nfrom astral.models.stream import Stream\nfrom astral.models.node import Node\nfrom astral.models.ticket import Ticket\n\n\nELIXIR_CREATION = lambda class_to_create, **kwargs: class...
python
edit
4
0
mit
e880522e226b593be2985cdc85cb0ebd87e53a98
peplin/astral
astral/models/tests/factories.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pyspark.sql import SparkSession \nfrom sparkxarray.reader import ncread\nimport os\n\n\nspark = SparkSession.builder.appName('hi').getOrCreate()\nsc = spark.sparkContext\nprint(os.getcwd())\nfilename = os.path.abspath('sparkxarray/test...
python
edit
1
0
apache-2.0
68c47089e8f50aa518816ea9099ef038055af53f
andersy005/spark-xarray,andersy005/spark-xarray
sparkxarray/tests/test_reader.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import pagination\nfrom rest_framework.response import Response\n\nclass JSONAPIPagination(pagination.PageNumberPagination):\n\n def get_paginated_response(self, data):\n return Response({\n 'links':...
python
edit
1
1
apache-2.0
1e5c593ef0dc38c12bd987f9b2f37f9bfc3c71e1
wearpants/osf.io,mluke93/osf.io,chennan47/osf.io,mluo613/osf.io,billyhunt/osf.io,monikagrabowska/osf.io,danielneis/osf.io,mluo613/osf.io,dplorimer/osf,jinluyuan/osf.io,cslzchen/osf.io,ZobairAlijan/osf.io,emetsger/osf.io,HarryRybacki/osf.io,emetsger/osf.io,cosenal/osf.io,amyshi188/osf.io,brianjgeiger/osf.io,HarryRybacki...
api/base/pagination.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.conf.urls.defaults import patterns, include, url\nfrom django.contrib.staticfiles.urls import staticfiles_urlpatterns\nfrom django.http import HttpResponse\n\nfrom funfactory.monkeypatches impor...
python
edit
1
0
bsd-3-clause
70bfa7096fd64e6aea6f849d63878b1c8d6c6427
hoosteeno/fjord,lgp171188/fjord,Ritsyy/fjord,rlr/fjord,DESHRAJ/fjord,rlr/fjord,Ritsyy/fjord,Ritsyy/fjord,DESHRAJ/fjord,lgp171188/fjord,lgp171188/fjord,rlr/fjord,staranjeet/fjord,rlr/fjord,hoosteeno/fjord,mozilla/fjord,hoosteeno/fjord,staranjeet/fjord,mozilla/fjord,hoosteeno/fjord,mozilla/fjord,staranjeet/fjord,lgp17118...
fjord/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom scipy import optimize as o\nimport numpy as np\nimport clean as c\n\ndef minimize_scalar(func, options):\n bracket = options['bracket']\n bounds = options['bounds']\n method = options['method']\n tol = options['tol']\...
python
edit
3
4
mit
3f0deec0ca0566fb411f98ec5940590b8dc8002a
acjones617/scipy-node,acjones617/scipy-node
optimize/py/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.contrib.auth.models import User\n\n\nclass Match(models.Model):\n white = models.ForeignKey(User, related_name=\"White\")\n black = models.ForeignKey(User, related_name=\"Black\")\n moves =...
python
edit
1
1
mit
69ec6586cd9ce9c8bda5b9c2f6f76ecd4a43baca
EyuelAbebe/gamer,EyuelAbebe/gamer
chessfellows/chess/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\n\nSPOTIFY_SERVICE = 1\nSOUNDCLOUD_SERVICE = 2\n\nVALID_ATTACHMENT_TYPES = ('.ogg',)\n\n# Regular expressions\nRE_ATTACHMENT_URI = re.compile('^disco:\\/\\/(.*)\\/(.*)$')\n\n```\n\nApply this change: disco: Add more valid attachme...
python
edit
1
0
mit
e96387d98c2b7c4ffd9ccd75fe081a7b54e563d9
pythonology/discobot,chandler14362/disco
disco/constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom eve import Eve\napp = Eve()\n\nif __name__ == '__main__':\n app.run()\n\n```\n\nApply this change: Add initial views for google login." }, { "role": "assistant", "content": "import json\nimport settings\nfrom flask impor...
python
edit
1
7
mit
2cd4e6f021e576a17a3f8f40122775baee9e8889
mattiaslundberg/typer,mattiaslundberg/typer,mattiaslundberg/typer,mattiaslundberg/typer
server/run.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals, division, absolute_import, print_function\n\nimport os\n\n\npackage_name = \"asn1crypto\"\n\nother_packages = [\n \"oscrypto\",\n \"certbuilder\",\n \"certvalidator\",\n ...
python
edit
1
0
mit
ba72f7177a713d4e9b468c005f6c4306cbca5cc5
wbond/asn1crypto
dev/__init__.py
accepted
null
true