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\nimport os\nimport datetime\nimport tornado.gen\nimport statsd\n\nif os.environ.get(\"STATSD_URL\", None):\n ip, port = os.environ.get(\"STATSD_URL\").split(':')\n statsd_client = statsd.StatsClient(host=ip, port=int(port),\n ...
python
edit
1
4
apache-2.0
0ca502644e66c40089382d13a780a6edc78ddafc
upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift,upfluence/thrift
lib/py/src/metrics.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport httpretty\n\nfrom paystackapi.tests.base_test_case import BaseTestCase\nfrom paystackapi.subaccount import SubAccount\n\n\nclass TestSubAccount(BaseTestCase):\n\n @httpretty.activate\n def test_subaccount_create(self):\n ...
python
edit
1
1
mit
0901477d231091e72b4e47e0f5a59a49cb31414d
andela-sjames/paystack-python
paystackapi/tests/test_subaccount.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\" Assignment 1, Exercise 1, INF1340, Fall, 2014. Grade to gpa conversion\n\nThis module prints the amount of money that Lakshmi has remaining\nafter the stock transactions.\n\n\"\"\"\n\n__author__ = 'Susan Sim'...
python
edit
1
0
mit
20adc2fa2a15f122d5093da2bbfc9625bb2ed772
Momomelo/inf1340_2015_asst1
exercise1.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\nimport versioneer\n\nsetup(name='s3fs',\n version=versioneer.get_version(),\n cmdclass=versioneer.get_cmdclass(),\n classifiers=[\n 'Development Status :: 4 - Be...
python
edit
1
0
bsd-3-clause
ce6951b1e5f878ba69ff3f55c500c4309f8f4672
fsspec/s3fs
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n#\n#\n#\n\nimport skoleintra.config\nimport skoleintra.pgContactLists\nimport skoleintra.pgDialogue\nimport skoleintra.pgDocuments\nimport skoleintra.pgFrontpage\nimport skoleintra.pgWeekplans\nimport skoleintra.schi...
python
edit
1
0
bsd-2-clause
0670b48b74dddd05a67f63983f7208f1c0c5efed
bennyslbs/fskintra
fskintra.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport sys\n\nfrom setuptools import Command, setup\n\n\nclass RunTests(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(s...
python
edit
1
1
bsd-3-clause
df0c2093366a8f6c4d7d8117d3168303fe39c085
consbio/parserutils
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\n\nsetup(\n name='Partner Feeds',\n version=_...
python
edit
1
0
bsd-2-clause
9bbe3dfa75f5fa91f526ebccdacf4b8e5220e42b
theatlantic/django-partner-feeds
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\nimport subprocess\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef get_version(version=None):\n \"Returns a version number with commit id if the git repo is present\"\n...
python
edit
1
0
mit
fdf8e5d872bb6579d7ae6ef7ac4c93040db3f71c
GeoNode/geonode-client,GeoNode/geonode-client,GeoNode/geonode-client,GeoNode/geonode-client
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='panoptescli',\n version='1.0.1',\n url='https://github.com/zooniverse/panoptes-cli',\n author='Adam McMaster',\n author_email='<EMAIL>',\n description=(\n ...
python
edit
1
0
apache-2.0
ef81b053e0e32546354dfc86be2c5d4b1e0f74ac
zooniverse/panoptes-cli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport codecs\nfrom setuptools import setup\nimport pypandoc\n\nlong_desc = ''\nwith codecs.open('README.md', 'r', 'utf-8') as f:\n logn_desc_md = f.read()\n with codecs.open('README.rst', 'w', 'utf-8') as rf:\n long_desc = pyp...
python
edit
1
2
mit
dd0d4854e59e85e101612057d4681aa77c5fde65
pyohei/cronquot,pyohei/cronquot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n######\n# Check ExId (GUID) by Email through JDBC\n#\n# Author: Christoph Stoettner\n# Mail: <EMAIL>\n# Documentation: http://scripting101.stoeps.de\n#\n# Version: 2.0\n# Date: 2014-06-04\n#\n# License:...
python
edit
2
0
apache-2.0
a45fa05bc1f8c5f8c72db54484f8a18d2c53dadc
stoeps13/ibmcnx2,stoeps13/ibmcnx2
ibmcnx/doc/DataSources.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name = \"django-safe-project\",\n version = \"0.0.3\",\n author = \"Matthew Reid\",\n author_email = \"<EMAIL>\",\n description = (\"Start Django projects with sensitive data outside o...
python
edit
1
0
mit
24bda30926d06a6fdc457c61c26fd5a48b4b0755
nocarryr/django-safe-project
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='django-theherk-events',\n version='1.8',\n packages=find_package...
python
edit
1
1
bsd-3-clause
6081ffcbf587352ede305e34d78c32f9ed78f44f
theherk/django-theherk-events
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" Setup file for distutils\n\n\"\"\"\n\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nsetup(\n name='python-gdrive',\n version='0.1',\n author='Tony Sanchez',\n author_email='<EMAIL>',\n url='...
python
edit
1
0
apache-2.0
3f0f1d8202a26916dfcab616c1bec02f31da330b
cogniteev/python-gdrive
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nimport sys\n\nexecfile('yas3fs/_version.py')\n\nrequires = ['setuptools>=2.2', 'boto>=2.25.0']\n\n# Versions of Python pre-2.7 require argparse separately. 2.7+ and 3+ all\n# include this as th...
python
edit
2
0
mit
341d8bf56a6664be931549566f809ea69427d67a
danilop/yas3fs,danilop/yas3fs
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n######\n# Check ExId (GUID) by Email through JDBC\n#\n# Author: Christoph Stoettner\n# Mail: <EMAIL>\n# Documentation: http://scripting101.stoeps.de\n#\n# Version: 2.0\n# Date: 2014-06-04\n#\n# License:...
python
edit
2
0
apache-2.0
4559acc15b009be5d853dfdad0fdc9d3184370df
stoeps13/ibmcnx2,stoeps13/ibmcnx2
ibmcnx/doc/DataSources.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='tequila-sessions',\n version='1.0.0',\n description='Requests session for Tequila (EPFL login manager)',\n author='Antoine Albertelli',\n author_em...
python
edit
1
0
bsd-3-clause
af0b2b4ae205adb59e9e1922ca6ec10d491ebf2a
antoinealb/python-tequila
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\n\nsetup(name='l1',\n version='0.1',\n description='L1',\n author='Bugra Akyildiz',\n author_email='<EMAIL>',\n url='bugra.github.io',\n packages=['l1'],\n ...
python
edit
1
0
apache-2.0
d404b6d606aff840819f9e811a429bd472a72e56
bugra/l1
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='bwapi',\n\n version='3.2.0',\n\n description='A software development kit for the Brandwatch API',\n\n url='https://github.com/BrandwatchLtd/api_sdk',\n\n author='Amy Barker, Jami...
python
edit
1
0
mit
c297b882cbe5139062672dbb295c2b42adfc1ed8
anthonybu/api_sdk,BrandwatchLtd/api_sdk
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup, Extension\nsetup(name=\"fastcache\", version=\"0.1\",\n packages = [\"fastcache\", \"fastcache.tests\"],\n ext_modules= [Extension(\"fastcache._lrucache\",\n [\"src/_lrucache.c\...
python
edit
1
0
mit
6cd2a721d90c991b7c7dde221affd6ebecf70e95
pbrady/fastcache,pbrady/fastcache,pbrady/fastcache
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport codecs\nfrom setuptools import setup, find_packages\n\n\ndef _read_file(name, encoding='utf-8'):\n \"\"\"\n Read the contents of a file.\n\n :param name: The name of the file in the current directory...
python
edit
1
1
mit
a101321fecca49754cf3a640fbfac19953fd56fb
gebn/chandl,gebn/chandl
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nsetup(\n name='django-post_office',\n version='1.1.1',\n author='Selwin Ong',\n author_email='<EMAIL>',\n packages=['post_office'],\n url='https://github.com/ui/djan...
python
edit
1
0
mit
229c71fd33956e27fc70468f3ff3d6c87796b574
RafRaf/django-post_office,yprez/django-post_office,ekohl/django-post_office,fapelhanz/django-post_office,ui/django-post_office,JostCrow/django-post_office,ui/django-post_office,jrief/django-post_office
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='wafw00f',\n version=__import__('wafw00f').__version__,\n description=('WAFW00F identifies and fingerprints '\n 'Web Applicat...
python
edit
1
0
bsd-3-clause
8b6429173e177acf3b1303e71ef717a2f26d950b
EnableSecurity/wafw00f,sandrogauci/wafw00f
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n return ''\n\nsetup(\n name='todoist-python',...
python
edit
1
2
mit
10fc032aafb22801fbb73accc7930cb57636e10c
Doist/todoist-python,electronick1/todoist-python
setup.py
rejected_duplicate
Near-duplicate of sample 2235
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#/usr/bin/env python\nfrom setuptools import setup\n\ntry:\n readme = open(\"README.rst\")\n long_description = str(readme.read())\nfinally:\n readme.close()\n\nsetup(\n name='pyziptax',\n version='1.0',\n description='Pyt...
python
edit
1
0
apache-2.0
42ba81023397eb7bdf9361e981102aec0dd65a0b
albertyw/pyziptax
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport socket\n\nfrom mock import patch\n\nfrom sentry.metrics.datadog import DatadogMetricsBackend\nfrom sentry.testutils import TestCase\n\n\nclass DatadogMetricsBackendTest(TestCase):\n def se...
python
edit
1
1
bsd-3-clause
6eff80bcf12357e943d705b8812822b1c0c0e409
pauloschilling/sentry,pauloschilling/sentry,pauloschilling/sentry
tests/sentry/metrics/test_datadog.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ntry:\n from pyqt_distutils.build_ui import build_ui\n cmdclass={'build_ui': build_ui}\nexcept ImportError:\n cmdclass={}\n pass\n\nsetup(\n name='gauges',\n version='0.1',\n ...
python
edit
1
0
mit
cb59ed68e390d92b8ba2d6aaeece998bd389d64b
estan/gauges
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nimport sys\nimport cozify\n\nwith open('README.rst') as file:\n long_description = file.read()\n\nsetup(\n name='cozify',\n version=cozify.__version__,\n python_requires='>=3.5',\n author='arta...
python
edit
3
0
mit
b2f1c1c54f3ebb3c95de0032fc13fc03997d222c
Artanicus/python-cozify,Artanicus/python-cozify
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.\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 Licen...
python
edit
1
0
apache-2.0
03dc8e57616984631cf48fa91cee9ae2292dc067
lxc/pylxd,lxc/pylxd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.gis.db import models\nfrom django.contrib.gis import geos\nfrom datetime import datetime\n\nclass Venue(models.Model):\n name = models.CharField(max_length=255)\n street_address = models.TextField() \n country =...
python
edit
1
2
bsd-3-clause
1a9c9b60d8e0b69b5d196ff8323befd6d9e330aa
mozilla/make.mozilla.org,mozilla/make.mozilla.org,mozilla/make.mozilla.org,mozilla/make.mozilla.org
make_mozilla/events/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\n\nfrom .backends import get_search_backend\n\n\nclass SearchForm(forms.Form):\n q = forms.CharField(label='Query', required=True)\n\n def search(self, model_or_queryset):\n backend = get_search_backend...
python
edit
1
1
bsd-3-clause
442b083e9d1618569aa96a653ed2c0e4dfc27e59
jreigel/saleor,car3oon/saleor,KenMutemi/saleor,HyperManTT/ECommerceSaleor,itbabu/saleor,UITools/saleor,HyperManTT/ECommerceSaleor,UITools/saleor,maferelo/saleor,tfroehlich82/saleor,mociepka/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,tfroehlich82/saleor,UITools/saleor,jreigel/saleor,itbabu/sale...
saleor/search/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom awx.main.migrations import _ask_for_variables as ask_for_variables\nfrom awx.main.migrations import _migration_utils as migration_utils\nfrom django.db import migratio...
python
edit
1
0
apache-2.0
5eb67411a44366ed90a6078f29f1977013c1a39c
snahelou/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx,snahelou/awx,wwitzel3/awx
awx/main/migrations/0017_v300_prompting_migrations.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.apps import AppConfig\nfrom django.conf import settings\nfrom common.helpers.db import db_is_initialized\n\n\nclass CommonConfig(AppConfig):\n name = 'common'\n\n def ready(self):\n self.display_missing_environment_...
python
edit
1
4
mit
bb90fe7c59435d1bef361b64d4083710ffadcf7f
DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange
common/apps.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef get_readme():\n return open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\n\nsetup(\n author=\"Julio Gonzalez Altamirano\",\n a...
python
edit
1
1
mit
e9cd60485ebfbe0afee60a70aea318e3e820f948
jga/capmetrics-etl,jga/capmetrics-etl
setup.py
rejected_duplicate
Near-duplicate of sample 1058
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='pymediainfo',\n version='2.1.5',\n author='Louis Sautier',\n author_email='<EMAIL>',\n url='https://github.com/sbraz/pymediainfo',\n description=\"\"\"A Python ...
python
edit
1
0
mit
61b5bc8a7e81225a83d195e016bc4adbd7ca1db5
paltman/pymediainfo,paltman-archive/pymediainfo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding=utf-8\nimport os\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.rst')).read()\nNEWS = open(os.path.join(here, 'NEWS.txt')).read()\n\nver...
python
edit
1
0
apache-2.0
26d063cd78140d69160e16364a6cdda1e26516d2
cilekagaci/engerek
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom flask.ext.babel import gettext\nfrom ..division import Division\nfrom database_utils import init_db\nfrom ldap_utils import init_ldap\nfrom ipaddress import IPv4Network\nimport user\n\n\ndef init_context(app)...
python
edit
1
1
mit
52b481e77756530ae14de2e55a977dfac269f6b5
MarauderXtreme/sipa,fgrsnau/sipa,agdsn/sipa,lukasjuhrich/sipa,agdsn/sipa,agdsn/sipa,lukasjuhrich/sipa,MarauderXtreme/sipa,lukasjuhrich/sipa,agdsn/sipa,fgrsnau/sipa,MarauderXtreme/sipa,fgrsnau/sipa,lukasjuhrich/sipa
model/hss/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport sys\nfrom setuptools import setup, find_packages\n\nclassifiers = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: Developers\",\n \"License :: OSI Approved :: Apache Software License...
python
edit
1
0
apache-2.0
6faf5a38083fd21fbf7ed80d785873c977b8de09
lpsinger/testing.postgresql,tk0miya/testing.postgresql
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport codecs\n\nfrom setuptools import setup\n\n\ndef read_lines_from_file(filename):\n with codecs.open(filename, encoding='utf-8') as f:\n return [line.rstrip('\\n') for line in f]\n\n\nlong_description = read_lines_from_file('...
python
edit
1
2
mit
e38fae5f5115b0707c16afe6b796609338da9bca
homeworkprod/weitersager
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n with open(os.path.join(os.path.dirname(__file__), fname)) as f:\n return f.read()\n\n\nsetup(\n name='botnet',\n version='0.1.0',\n author='bo...
python
edit
1
1
mit
b20c1f0c5a71d46b80b405b6561869dfd52307c1
boreq/botnet
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\nsetup(\n name=\"segfault\",\n version=\"0.0.1\",\n author=\"Sean Kelly\",\n author_email=\"<EMAIL>\",\n description=\"A library that makes the Python interpreter segfault.\...
python
edit
1
0
mit
c79b729a5dda5661a5eb2e640aa402aab6f397a2
cbgbt/segfault,cbgbt/segfault
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\ntry:\n import setuptools\nexcept ImportError:\n from distribute_setup import use_setuptools\n use_setuptools()\n import setuptools\n\nfrom pip import req\nfrom setuptools.command import test\n\nREQ = set([dep.name\n ...
python
edit
2
1
bsd-3-clause
45e8df4123926f56391809f78ef22d4e012a4bf8
rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective,rafaduran/python-mcollective
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python2.4\nfrom distutils.core import setup\n\nsetup(name='mox',\n version='0.5.1',\n py_modules=['mox', 'stubout'],\n url='http://code.google.com/p/pymox/',\n maintainer='pymox maintainers',\n maintainer...
python
edit
1
0
apache-2.0
b43e6636932d34743b4680898b235dfdcc1cd934
glasser/pymox,JustinAtPsycle/pymox,arne-cl/pymox,githubashto/pymox,shraddha-pandhe/pymox,MarkBerlin78/pymox,qin/pymox,ivancrneto/pymox,jackxiang/pymox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(name='windpowerlib',\n version='0.2.1dev',\n description='Creating time series of win...
python
edit
1
1
mit
80019f7d0b1ef1d8624e6e9739c069af38a2ed5c
wind-python/windpowerlib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"__init__.py\"\"\"\n\nimport logging\n\nlogger = logging.getLogger('jsonrpcclient')\nlogger.addHandler(logging.StreamHandler())\n\nfrom jsonrpcclient.server import Server\n\n```\n\nApply this change: Set the loglevel again, seems like ...
python
edit
3
0
mit
1c9feb7b2d9a4ac1a1d3bef42139ec5a7f26b95e
bcb/jsonrpcclient
jsonrpcclient/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name=\"153957-theme\",\n version=\"1.0.0\",\n packages=find_packages(),\n url=\"http://github.com/153957/153957-theme/\",\n bugtrack_url='http://github.com/153957/1539...
python
edit
1
0
mit
6c03cb4e97ddd06b51d8cdb553a552ce49e9fad4
153957/153957-theme,153957/153957-theme
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nlong_description = (\n open('README.rst').read()\n + '\\n' +\n open('CHANGES.txt').read())\n\ntests_require = [\n 'pytest >= 2.0',\n 'pytest-cov',\n 'pytest-remove-...
python
edit
1
0
bsd-3-clause
214685d155164565be308f6b2714c03557c9b774
taschini/reg,morepath/reg
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='django-gcs',\n packages=['django_gcs'],\n version='0.1',\n description='Django file storage backend for Google Cloud Storage',\n author='Bogdan Radko',\n author_email='<EMAI...
python
edit
1
0
mit
ebe23ee92bb72d9daa756925694cc2cda2e53df0
bodja/django-gcs
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django_rocket import __version__, __author__, __email__, __license__\n\nfrom setuptools import setup, find_packages\n\nREADME = open('README.rst').read()\n# Second paragraph has the short description\ndescription = README.split('\\n')[...
python
edit
1
0
mit
84d87a3dab6eecc65f8b04276a1fa7dab3d43461
mariocesar/django-rocket,mariocesar/django-rocket
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\npy_files = [\n \"ansible/module_utils/hashivault\",\n \"ansible/plugins/lookup/hashivault\",\n \"ansible/plugins/action/hashivault_read_to_file\",\n \"ansible/plugins/action...
python
edit
1
0
mit
8846415aa0a362ceee1e8c07f35310cff00223c0
TerryHowe/ansible-modules-hashivault,TerryHowe/ansible-modules-hashivault
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nkwds = {}\n\n# Read the long description from the README.txt\nthisdir = os.path.abspath(os.path.dirname(__file__))\nf = open(os.path.join(thisdir, 'README.txt'))\nkwds['long_description'] = f.read(...
python
edit
1
0
bsd-3-clause
a0a8dfcd74e18917c1795f59cc7101295ba5b067
mindw/grin,while0pass/grin,cpcloud/grin,lecheel/grin,LuizCentenaro/grin
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\nsetup(\n name='PAWS',\n version='0.1.0',\n description='Python AWS Tools for Serverless',\n author='Curtis Maloney',\n author_email='<EMAIL>',\n url='https://github.com/funkybob/paws',...
python
edit
1
0
bsd-3-clause
428ce0c6d1d90eea1fb6e5fea192b92f2cd4ea36
funkybob/paws
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom tcxparser import __version__\n\nsetup(\n name='python-tcxparser',\n version=__version__,\n author='Vinod Kurup',\n author_email='<EMAIL>',\n py_modules=['tcxparser', ],\n url='https://git...
python
edit
1
0
bsd-2-clause
052cac696f044119efc34424b0e1778c77b90399
vkurup/python-tcxparser,SimonArnu/python-tcxparser,vkurup/python-tcxparser
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nfrom setuptools import setup\n\n\nwith open(\"README.rst\") as file:\n long_description = file.read()\n\nsetup(\n name=\"tvnamer\",\n version=\"1.0.0-dev\",\n description=\"Utility to rename lots of TV vi...
python
edit
1
0
mit
2cf406b6542b5a518f302925cf61a2ee957cb5db
tomleese/tvnamer,thomasleese/tvnamer
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(name='pytest-cov',\n version='1.6',\n description='py.test plugin for coverage reporting with '\n 'support for both centralised and distributed testing, '...
python
edit
1
0
mit
508c7049cc4d3f0d933907db289c8557c359b4d0
pytest-dev/pytest-cov,moreati/pytest-cov,schlamar/pytest-cov,ionelmc/pytest-cover,opoplawski/pytest-cov,wushaobo/pytest-cov
setup.py
rejected_duplicate
Near-duplicate of sample 12144
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\n\n\npackagename = 'documenteer'\ndescription = 'Tools for LSST DM documentation projects'\nauthor = 'Jonathan Sick'\nauthor_email = '<EMAIL>'\nlicense = 'MIT'\nurl = 'https://github.co...
python
edit
1
1
mit
5b050589639c21aecfa5f9dffc8c739920bbd05c
lsst-sqre/documenteer,lsst-sqre/sphinxkit,lsst-sqre/documenteer
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 os\nfrom setuptools import setup\n\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2...
python
edit
1
1
bsd-3-clause
ac63e960270d0594e1db6d257008b9035344c57e
reincubate/pytest-django,hoh/pytest-django,ktosiek/pytest-django,tomviner/pytest-django,pelme/pytest-django,thedrow/pytest-django,bforchhammer/pytest-django,felixonmars/pytest-django,davidszotten/pytest-django,pombredanne/pytest_django,RonnyPfannschmidt/pytest_django,ojake/pytest-django,aptivate/pytest-django
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='hpswitch',\n version='0.1',\n description=\"A library for interacting with HP Networking switches\",\n packages=['hpswitch', ],\n url='http...
python
edit
1
0
mit
a04a8c7d8e1087df39025d6e798d83438ac35f77
leonhandreke/hpswitch,thechristschn/hpswitch
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/env python\nfrom setuptools import setup\n\n\nsetup(\n name='pypugly',\n use_scm_version=True,\n\n author='Alexandre Andrade',\n author_email='<EMAIL>',\n\n url='https://github.com/zerotk/pypugly',\n\n description='...
python
edit
1
0
mit
1312426276465a16f7e490a4d78a73fb5a92f58c
zerotk/pypugly,zerotk/pypugly
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nErply-API\n---------\n\nPython wrapper for Erply API\n\"\"\"\nfrom distutils.core import setup\n\nsetup(\n name='ErplyAPI',\n version='0.2015.01.16-dev',\n description='Python wrapper for Erply API',\...
python
edit
1
0
bsd-3-clause
2756239ccb9976a93d8c19a1ff071c64f211980c
tteearu/python-erply-api
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\n\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\nsetup(\n setup_requires=['pbr'],\n pbr=True,\n)\n\n```\n\nApply this change: Add version constraint to pbr" ...
python
edit
2
0
mit
e0feb54b337260476dd87a9c03b6835986cd7ba9
CloudBrewery/docrane
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf8\n\nimport platform\nimport os\n\nsystem = platform.system()\n\nfrom distutils.core import setup\n\nsetup(\n name='matlab2cpp',\n version='0.2',\n packages=['matlab2cpp', 'matlab2cpp.translati...
python
edit
6
0
bsd-3-clause
1d729ada6c81cdf75c6f76b996337e46d7b679a0
jonathf/matlab2cpp,jonathf/matlab2cpp,jonathf/matlab2cpp
setup.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nimport os\nimport sys\n\nfrom haloanalysis.version import get_git_version\n\nsetup(name='haloanalysis',\n version=get_git_version(),\n license='BSD',\n pac...
python
edit
4
0
bsd-3-clause
ba54f2aa487c1a719a133ab761bd7be5af43e447
woodmd/haloanalysis,woodmd/haloanalysis
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='python-varnish',\n version='0.2.2',\n long_description=open('README.rst').read(),\n description='Simple Python interface for the Varnish management port',\n author='Justin Qu...
python
edit
1
0
bsd-3-clause
c21c286b56dec481eb36d72a60560606e1d70768
ByteInternet/python-varnishadm
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup, Extension\nsetup(name=\"java_random\", version=\"1.0.1\",\n description=\"Provides a fast implementation of the Java random number generator\",\n author=\"Matthew Bradbury\",\n license=\"MIT\...
python
edit
1
0
mit
2b74737db827a4ddc6e4ba678c31304d6f857b47
MBradbury/python_java_random,MBradbury/python_java_random,MBradbury/python_java_random
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name=\"feedinlib\",\n version=\"0.1.0rc1\",\n description=\"Creating time series fr...
python
edit
1
1
mit
06c17c0ecd01b4dccc8495785532ce6a377eb99f
oemof/feedinlib
setup.py
rejected_duplicate
Near-duplicate of sample 1066
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\nsetup(name = 'i2py',\n version = '0.2',\n description = 'Tools to work with i2p.',\n author = 'contributors.txt',\n author_email = 'Anonymous',\n classifiers = [\n 'De...
python
edit
1
0
mit
89d9a8a7d6eb5e982d1728433ea2a9dfbd9d1259
chris-barry/i2py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import find_packages, setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n README = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path....
python
edit
1
0
mit
9fea1ab22a4d89c975767527e0d83ca224734d34
ejesse/gobblegobble
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('description.txt') as f:\n long_description = ''.join(f.readlines())\n\n\ndef get_requirements():\n with open(\"requirements.txt\") as f:\n return f.readlines()\n\n\nsetu...
python
edit
1
1
mit
7e44bb64bfabce3fde77a774c8d13df094f8e0a2
chovanecm/sacredboard,chovanecm/sacredboard,chovanecm/sacredboard
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\n\nfrom webcomix.comic import Comic\nfrom webcomix.supported_comics import supported_comics\nfrom webcomix.util import check_first_pages\n\n\n@pytest.mark.slow\ndef test_supported_comics():\n for comic_name, comic_info in s...
python
edit
1
1
mit
a1e18385c2c5df9db8390b2da4d5baa2465f150e
J-CPelletier/webcomix,J-CPelletier/WebComicToCBZ,J-CPelletier/webcomix
webcomix/tests/test_comic_availability.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf-8\nimport glob as _glob\n\nimport setuptools as _st\n\nimport tues as _tues\n\nif __name__ == '__main__':\n _st.setup(\n name='tues',\n version=_tues.__version__,\n url='https://g...
python
edit
1
0
mit
ba942aa988e049779a717c41d068547f5bce8b0b
wontfix-org/tues
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport glob\nfrom setuptools import setup, find_packages\n\n__version__ = open('version.txt').read()\n\n__doc__ = 'qipipe processes the OHSU QIN study images. See the README file for more information.'\n\nrequires = ['pydicom']\n\nsetup(\n ...
python
edit
1
0
bsd-2-clause
51b60dc34f9ce2c613e3c79275ccb2495faaf180
ohsu-qin/qipipe
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\n\nversion = '0.0.1'\n\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.rst')).read()\nexcept IOError:\n README = ''\n\nsetup(na...
python
edit
1
0
mit
46deed1aa739b3fbd6b86972807e03d54a7fc085
miraculixx/depot,eprikazc/depot,amol-/depot,miraculixx/depot,rlam3/depot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__doc__ = \"\"\"\nManipulate audio with an simple and easy high level interface.\n\nSee the README file for details, usage info, and a list of gotchas.\n\"\"\"\n\nfrom setuptools import setup\n\nsetup(\n name='pydub',\n version='0.18....
python
edit
1
0
mit
0ea95fa57419b77150bb8e4ba264aa56cf51da86
jiaaro/pydub
setup.py
rejected_duplicate
Near-duplicate of sample 4787
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='udiskie',\n version='0.4.0',\n description='Removable disk automounter for udisks',\n author='Byron Clark',\n author_email='<EMAIL>',\n url='http://bitbucket.org/byronclar...
python
edit
1
0
mit
979aa0a98ac92ed08d10b81602b070bdfefaf4e1
coldfix/udiskie,mathstuf/udiskie,pstray/udiskie,khardix/udiskie,pstray/udiskie,coldfix/udiskie
setup.py
rejected_duplicate
Near-duplicate of sample 9313
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nlong_description = (\n open('README.rst').read()\n + '\\n' +\n open('CHANGES.txt').read())\n\nsetup(name='dectate',\n version='0.11.dev0',\n description=\"A configuration eng...
python
edit
1
0
bsd-3-clause
43cb656c5318d656fdff6d7bc3a2d6f69861c714
morepath/dectate
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf8\nfrom setuptools import setup\n\nsetup(\n name='correlation-toolbox',\n version='0.0.1',\n author='Jakob Jordan, David Dahmen',\n author_email='<EMAIL>',\n description=('Collection of functions to investigate...
python
edit
1
0
mit
f61ab3c58981806581eb2efaa1e5efe1bff21a16
INM-6/correlation-toolbox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\nfrom __future__ import (absolute_import, division,\n print_function, unicode_literals)\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='pysteps',\n version='1.0',\n ...
python
edit
1
0
bsd-3-clause
334b805fce8b7924aa4b812964165f1d93f07d69
pySTEPS/pysteps
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\nfrom sys import platform\nimport subprocess\nimport glob\nimport os\n\nver = os.environ.get(\"PKGVER\") or subprocess.run...
python
edit
4
0
mit
0e82fba1c9769f71c162c8364fe783d2cc3cda17
KnightOS/sdk,KnightOS/sdk,KnightOS/sdk
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nimport os\n\n\ndef get_build():\n path = \"./.build\"\n\n if os.path.exists(path):\n fp = open(path, \"r\")\n build = eval(fp.read())\n if os.path.exist...
python
edit
1
3
apache-2.0
b4ea08a378bd12c823b6e68f4b72f3a6b327f8e1
knockoutMice/pylast,yanggao1119/pylast,knockoutMice/pylast,hugovk/pylast,pylast/pylast,yanggao1119/pylast
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools.core import setup\nexcept ImportError:\n from distutils.core import setup\n\nsetup(name='djeasyroute',\n version='0.0.1',\n description='A simple class based route system for d...
python
edit
1
0
mit
fdc8f5068e9e3ccf44eb223aabf088336777db2c
Goggin/djeasyroute
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from disutils.core import setup\n\ntry:\n from pypandoc import convert\n long_description = convert('README.md', 'rst')\nexcept:\n \"\"\"\n Don't fail if pandoc or...
python
edit
1
0
mit
969559c6eb94405ecf470b310e752a80736aeeef
chargehound/chargehound-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom person import Person\n\n\ndef go(db):\n global status\n while status == 1:\n inputText = input(\"command>\")\n for i in commands:\n if inputText == i:\n commands[i](db)\n\ndef helpMe(db):\n...
python
edit
1
4
mit
2029256cda7e3bc752d30361357932053cb98744
matejd11/birthdayNotify
shell.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name=\"ftfy\",\n version='3.3.0',\n maintainer='Luminoso Technologies, Inc.',\n maintainer_email='<EMAIL>',\n license=\"MIT\",\n url='http://github.com/LuminosoInsight/python-ftfy',...
python
edit
1
0
mit
09f784d459f22eec41cb720f5e1945f8fca48e6e
rspeer/python-ftfy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nsetup(\n name = 'Pokedex',\n version = '0.1',\n packages = find_packages(),\n package_data = { '': 'data' },\n install_requires=['SQLAlchemy>=0.5.1', 'whoosh>=0.3.0b1'],\n\n ent...
python
edit
1
0
mit
238022485a66c6d6920b81d0a6235ab314188a9b
RK905/pokedex-1,mschex1/pokedex,xfix/pokedex,DaMouse404/pokedex,veekun/pokedex,veekun/pokedex
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Cut 0.10 for new feature in docs module" }, { "role": "assistant", "content": "__version_info__ = (0, 10, 0)\n__version__ = '.'.join(map(str, __version_info__))\n" } ]
python
new_file
1
0
bsd-2-clause
731935873ee4c342bfaa5825cdc9e39ce79d71a5
pyinvoke/invocations,mrjmad/invocations,singingwolfboy/invocations
invocations/_version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom decimal import Decimal as D\n\nfrom oscar.apps.shipping import repository, methods, models\n\n\nclass Standard(methods.FixedPrice):\n code = \"standard\"\n name = \"Standard\"\n charge_excl_tax = D('10.00')\n\n\nclass Express(...
python
edit
1
2
bsd-3-clause
1aaa261af71d8f8a57f360b9525a38fb537858d1
jinnykoo/wuyisj,john-parton/django-oscar,rocopartners/django-oscar,QLGu/django-oscar,michaelkuty/django-oscar,WillisXChen/django-oscar,eddiep1101/django-oscar,kapari/django-oscar,sonofatailor/django-oscar,jinnykoo/wuyisj,faratro/django-oscar,django-oscar/django-oscar,WadeYuChen/django-oscar,WillisXChen/django-oscar,jmt...
sites/us/apps/shipping/repository.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport unittest\nfrom pyunio import pyunio\n\npyunio.use('httpbin')\n\nparams = {\n 'body': {\n 'name': 'James Bond'\n }\n }\n\n\ndef test_get():\n\n response = js...
python
edit
1
1
mit
a8ccc99aa0923be9a102bb6d42590d3214d4d229
citruspi/PyUnio
tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport rq\nimport redis\nimport django\n\nfrom django.conf import settings\n\n\nREDIS_CLIENT = redis.Redis(settings.REDIS_HOST, settings.REDIS_PORT, db=0)\n\n\nclass CustomJob(rq.job.Job):\n def _unpickle_data(self):\n django.setu...
python
edit
1
1
mit
bfdb2c41c06375d1fe8ff196486ffd71873e0264
theju/wush
wush/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass Stock:\n def __init__(self, symbol):\n self.symbol = symbol\n self.price = None\n\n def update(self, timestamp, price):\n self.price = price\n\n```\n\nApply this change: Update update method for negative pri...
python
edit
1
2
mit
a612e39f2395aa04bb3fd063188c4a1038324b04
bsmukasa/stock_alerter
stock.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport neovim\nimport os, subprocess\nimport json\n\n@neovim.plugin\nclass LanguageServerClient:\n\n def __init__(self, nvim):\n self.nvim = nvim\n self.server = subprocess.Popen(\n [\"cargo\", \"run\", \"--manif...
python
edit
1
3
mit
c2c9efed928b1414cb906cb23356e4af2baaf6e4
autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/LanguageClient-neovim,autozimu/L...
LanguageServerClient.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom nose.tools import * # PEP8 asserts\n\nfrom modularodm.exceptions import ValidationError\n\nfrom tests.base import OsfTestCase\nfrom website.addons.forward.tests.factories import ForwardSettingsFactory\n\n\nc...
python
edit
5
2
apache-2.0
33198314eb70b079b2fdb918abd66d7296f65219
alexschiller/osf.io,mluo613/osf.io,emetsger/osf.io,chrisseto/osf.io,cslzchen/osf.io,DanielSBrown/osf.io,TomBaxter/osf.io,monikagrabowska/osf.io,mluo613/osf.io,caneruguz/osf.io,laurenrevere/osf.io,adlius/osf.io,aaxelb/osf.io,SSJohns/osf.io,SSJohns/osf.io,felliott/osf.io,saradbowman/osf.io,laurenrevere/osf.io,monikagrabo...
website/addons/forward/tests/test_models.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Import a Python object made by compiling a Mochi file.\n\"\"\"\n\nimport os\n\nfrom mochi.core import pyc_compile_monkeypatch\n\n\ndef get_function(name, file_path):\n \"\"\"Python function from Mochi.\n\n Compiles a Mochi file ...
python
edit
1
1
mit
4c0ad1cbf346c6d34a924c77081f2dd37e7f86ac
slideclick/mochi,i2y/mochi,pya/mochi,slideclick/mochi,i2y/mochi,pya/mochi
mochi/utils/pycloader.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom celery.task import task\n\nfrom .models import MangoPayNaturalUser, MangoPayBankAccount\n\n\n@task\ndef create_mangopay_natural_user(id):\n MangoPayNaturalUser.objects.get(id=id, mangopay_id__isnull=True).create()\n\n\n@task\ndef up...
python
edit
1
1
mit
5b712a639b2de9015e5d1a25b4edf8482254e064
FundedByMe/django-mangopay,webu/django-mangopay,DylannCordel/django-mangopay,charlietjhin/django-mangopay
mangopay/tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# http://fms.komkon.org/EMUL8/NES.html#LABM\n\nimport struct\n\nclass Rom(object):\n def __init__(self, romPath, cpu):\n self.path = romPath\n self.romData = open(romPath, 'rb').read()\n\n if \"NES\" not in self.romD...
python
edit
2
6
bsd-2-clause
ef323ee8d607b8b9e6a2ee8107324e62297e14ea
pusscat/refNes
nesCart.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nCAUTION! Keep everything here at at minimum. Do not import stuff.\nThis module is imported in setup.py, so you cannot for instance\nimport a dependency.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_f...
python
edit
1
0
mit
781a0cdce589c0b0f4ecc6966cb3abb9e79e98eb
mrpau/kolibri,learningequality/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri
kolibri/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport networkx as nx\n\n\nclass ConnectedComponents:\n def __init__(self, g):\n self.g = g\n\n def get_connected_components(self):\n clusters = []\n for components in nx.connected_components(self.g):\n ...
python
edit
1
4
mit
066d2db105e4ac1cc5f52c0987c6c6832054bd78
studiawan/pygraphc
pygraphc/clustering/ConnectedComponents.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom jinja2._compat import text_type\nfrom datetime import datetime\nimport re\n\ndef do_right(value, width=80):\n \"\"\"Right-justifies the value in a field of a given width.\"\"\"\n return text_type(value).rjust(width)\n\n_LATEX_SUB...
python
edit
1
2
mit
e40f44cf090428eea3cab01913bef614d5dae121
sjbarag/poorly-named-resume-generator,sjbarag/poorly-named-resume-generator
pnrg/filters.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sqlite3\nimport shelve\n\n\ndef connect_db(name):\n \"\"\"\n Open a connection to the database used to store quotes.\n\n :param name: (str) Name of database file\n\n :return: (shelve.DbfilenameShelf)\n \"\"\"\n try:...
python
edit
1
2
mit
27fa3be6b7dd55637ad2b683f4027f32578ee04a
nickdibari/Get-Quote
utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom google.appengine.api import users\nfrom model import User\n\ndef create_user(google_user):\n user = User(\n google_user=google_user,\n )\n user.put()\n return user\n\ndef get_current_user_model():\n return get_use...
python
edit
1
2
mit
bc95ab06932378b3befe1c5628735f25a2807b14
studyindenmark/newscontrol,youtify/newscontrol,studyindenmark/newscontrol,youtify/newscontrol
utils.py
accepted
null
true