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 attachments.models import Attachment\nfrom django.contrib.contenttypes import generic\n\n\nclass AttachmentInlines(generic.GenericStackedInline):\n model = Attachment\n extra = 1\n```\n\nApply this change: Fix deprecated modules ...
python
edit
1
0
bsd-3-clause
da39bc268e3fe94af348690262fc116e3e0b2c9c
leotrubach/django-attachments,leotrubach/django-attachments
attachments/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n\nsource_suffix = '.rst'\nmaster_doc = 'index'\n\nhtml_theme = 'alabaster'\n\nextensions = [\n 'sphinx.ext.autodoc',\n 'sphinx.ext.autosummary',\n]\n\n```\n\nApply this change: Add root path to sys.path" }, { "role": "assist...
python
edit
1
0
mit
40a2faa67a5852ae347ab62f6239edfa6c666a1e
bureaucratic-labs/yargy
docs/conf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport feedparser\nimport datetime\n\nfrom .models import RssEntry\n\n\nclass RssSyncHelper(object):\n\n def __init__(self, feed):\n self.feed = feed\n\n def save_entry(self, result):\n pub_date = result.updated_parsed\n...
python
edit
1
2
bsd-3-clause
de441445dbdade4d937783626f1beeb9f439ee11
ebrelsford/django-rsssync
helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport sys\nfrom os.path import abspath, dirname\n\nfrom django.conf import settings\n\n\nsys.path.insert(0, abspath(dirname(__file__)))\n\n\nif not settings.configured:\n settings.configure(\n INSTALLED_APP...
python
edit
1
3
mit
ef89d3608b9ab54aef105528f2c15fa9cc437bcd
treyhunner/django-email-log,treyhunner/django-email-log
runtests.py
rejected_duplicate
Near-duplicate of sample 5549
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n### General settings\n\nextensions = []\ntemplates_path = ['_templates']\nsource_suffix = '.rst'\nmaster_doc = 'index'\nproject = u'Firebase Admin SDK for PHP'\nauthor = u'Jérôme Gamez'\ncopyright = u'Jérôme Gamez...
python
edit
1
0
mit
926731b05f22566e98a02737d673cca3fc0b28ec
kreait/firebase-php
docs/conf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport django\nfrom django.conf import settings\nfrom django.core.management import call_command\n\n\nsettings.configure(\n DATABASES={\n 'default': {\n 'ENGINE': 'django.db.backends.sqlite3',\n ...
python
edit
1
0
mit
8e8370a76c67d7905c73bcb808f89e3cd4b994a3
wylee/django-perms,PSU-OIT-ARC/django-perms
runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import serializers as ser\n\nfrom api.base.serializers import JSONAPISerializer, LinksField, JSONAPIListField\n\nclass TaxonomyField(ser.Field):\n def to_representation(self, obj):\n if obj is not None:\n ...
python
edit
1
2
apache-2.0
7aaa385da78bef57c8b6339f6db04044ace08807
adlius/osf.io,brianjgeiger/osf.io,chrisseto/osf.io,rdhyee/osf.io,sloria/osf.io,brianjgeiger/osf.io,sloria/osf.io,binoculars/osf.io,mattclark/osf.io,saradbowman/osf.io,aaxelb/osf.io,baylee-d/osf.io,Johnetordoff/osf.io,leb2dg/osf.io,laurenrevere/osf.io,samchrisinger/osf.io,binoculars/osf.io,aaxelb/osf.io,rdhyee/osf.io,al...
api/taxonomies/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"colorise module setup script for distribution.\"\"\"\n\nfrom setuptools import setup\nimport os\n\n\ndef get_version(filename):\n with open(filename) as fh:\n for line in fh:\n if line.startswith('__version__'):\n...
python
edit
1
3
bsd-3-clause
4efbc3278c89355df9076f3caccf1032aae9d930
MisanthropicBit/colorise
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport os\n\nPROJECT_ROOT, _ = os.path.split(__file__) \nDESCRIPTION = open( os.path.join(PROJECT_ROOT, \"README\") ).read()\nVERSION = REVISION = '0.1.4'\nPROJECT_NAME = 'JenkinsAPI'\nPROJECT_AUTHORS = \"Salim...
python
edit
1
0
mit
8145850506ba238682f189403f4545183db9bec7
mistermocha/jenkinsapi,jduan/jenkinsapi,mistermocha/jenkinsapi,zaro0508/jenkinsapi,imsardine/jenkinsapi,JohnLZeller/jenkinsapi,mistermocha/jenkinsapi,aerickson/jenkinsapi,EwoutVDC/jenkinsapi,JohnLZeller/jenkinsapi,imsardine/jenkinsapi,salimfadhley/jenkinsapi,imsardine/jenkinsapi,zaro0508/jenkinsapi,zaro0508/jenkinsapi,...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\n\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'\ntest_dir = os.path.dirname(__file__)\nsys.path.insert(0, test_dir)\n\nfrom django.test.utils import get_runner\nfrom django.conf import settings\n\n\ndef run...
python
edit
1
5
mit
6c349621dd3331bf92f803d2d66c96868f8e94c6
geelweb/django-editos,geelweb/django-editos
src/geelweb/django/editos/runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='gdcdatamodel',\n packages=find_packages(),\n install_requires=[\n 'pytz==2016.4',\n 'graphviz==0.4.2',\n 'jsonschema==2.5.1',\n 'python-dateu...
python
edit
1
0
apache-2.0
ce365ef62d26e0555e9a38d152ab6a4f0f96626d
NCI-GDC/gdcdatamodel,NCI-GDC/gdcdatamodel
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\"\"\"\nCopyright (c) 2015 Red Hat, Inc\nAll rights reserved.\n\nThis software may be modified and distributed under the terms\nof the BSD license. See the LICENSE file for details.\n\"\"\"\n\nimport re\n\nfrom setuptools...
python
edit
1
4
bsd-3-clause
f3c9550ee6719278cba7f4edda26274220e954f3
bfontecc007/osbs-client,vrutkovs/osbs-client,twaugh/osbs-client,vrutkovs/osbs-client,jpopelka/osbs-client,DBuildService/osbs-client,projectatomic/osbs-client,bfontecc007/osbs-client,twaugh/osbs-client,pombredanne/osbs-client,jpopelka/osbs-client,DBuildService/osbs-client,projectatomic/osbs-client,pombredanne/osbs-clien...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\ndef read(*path):\n \"\"\"\n Read and return content from ``path``\n \"\"\"\n f = open(\n os.path.join(\n os.path.dirname(__file__),\n *p...
python
edit
3
2
mit
ff05e249e2ad2d479f6d630049f8693d0ef661e9
Singletoned/testino
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the Licens...
python
edit
6
0
apache-2.0
fe5eb7db52725f8d136cbeba4341f5c3a33cf199
tensorflow/model-optimization,tensorflow/model-optimization
tensorflow_model_optimization/python/core/api/quantization/keras/quantizers/__init__.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\n\nsetup(\n\n name=\"PyTumblr\",\n version=\"0.0.5\",\n description=\"A Python API v2 wrapper for Tumblr\",\n author=\"John Bunting\",\n author_email=\"<EMAIL>\",\n url...
python
edit
1
0
apache-2.0
6fcc0d294f6c501d0926d53c386ddb11cff7db25
gcd0318/pytumblr,philgroshens/pytumblr,megacoder/pytumblr,tumblr/pytumblr,dianakhuang/pytumblr,PegasusWang/pytumblr,socrateslee/pytumblr
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetuptools.setup(\n name=\"accelerometer\",\n version=\"2.0\",\n author=\"Aiden Doherty\",\n author_email=\"<EMAIL>\",\n descrip...
python
edit
1
0
bsd-2-clause
e151a6f85c79821a0e56b6dbdb1e6f2155b725a0
aidendoherty/biobankAccelerometerAnalysis,aidendoherty/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis,computationalEpidemiology/biobankAccelerometerAnalysis
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='pyaavso',\n version=__import__('pyaavso').__version__,\n descripti...
python
edit
1
1
mit
57829ac0344df841d6600294dfcd5c745b7ff00b
zsiciarz/pyaavso
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ndef listify(filename):\n return filter(None, open(filename,'r').read().split('\\n'))\n\ndef remove_externals(requirements):\n return filter(lambda e: not e.startswith('-e'), requirements)...
python
edit
1
1
bsd-3-clause
efb8b12eb92d51cddee8e24d569a4c85227cd15a
vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,harrissoerja/vumi,harrissoerja/vumi,TouK/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import find_packages, setup\n\n\nsetup(\n name=\"pylast\",\n version=\"2.2.0.dev0\",\n author=\"Amr Hassan <<EMAIL>>\",\n install_requires=['six'],\n tests_require=['mock', 'pytest', 'co...
python
edit
1
0
apache-2.0
77e06add286e2d4544031fd1d9baf4cffcb16359
pylast/pylast,hugovk/pylast
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\nimport sys\n\nfrom setuptools import setup, find_packages\nfrom build_manpage import build_manpage\n\nHOME=os.path.expanduser('~')\n\nsetup(\n name='popup',\n version='0.2.0',\n author='Jay Edwards',\n cmdclass={...
python
edit
3
0
bsd-2-clause
f3ecf3000f6291bac711857e51e4d894d52ad24a
jayed/popup
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nfrom glob import glob\n\nif os.environ.get('USE_SETUPTOOLS'):\n from setuptools import setup\n setup_kwargs = dict(zip_safe=0)\n\nelse:\n from distutils.core import setup\n setup_kwargs = dict()\n\n\n...
python
edit
1
0
apache-2.0
31aa3fb5aa44d43327942767b89acf0f1375f6b2
mleinart/carbon,kharandziuk/carbon,lyft/carbon,protochron/carbon,pu239ppy/carbon,JeanFred/carbon,johnseekins/carbon,xadjmerripen/carbon,pratX/carbon,criteo-forks/carbon,graphite-project/carbon,obfuscurity/carbon,benburry/carbon,piotr1212/carbon,xadjmerripen/carbon,graphite-server/carbon,kharandziuk/carbon,iain-buclaw-s...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup, find_packages\nsetup(\n name = \"cmdparse\",\n version = \"0.9\",\n author = \"Peter Teichman\",\n license = \"MIT\"...
python
edit
1
0
mit
9fe6b64f83b17e1fe8f9a8d70cddcd8bf438e385
pteichman/python-cmdparse
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='osmviz',\n version='1.1.0',\n description='OSMViz is a small set of Python tools for retrieving '\n 'and using Mapnik tiles from a Slippy Map server '\n ...
python
edit
1
0
mit
b3e14ce837cf9b90f5f7633e028408e21cc48bb6
hugovk/osmviz,hugovk/osmviz
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='Zuice',\n version='0.2-dev',\n description='A dependency injection framework for Python',\n author='Michael Williamson',\n author_email='<EMAIL>',\n url='http://gitorious....
python
edit
1
0
bsd-2-clause
b8abb57f7a0e822ba32be2d379bb967f4abfbc21
mwilliamson/zuice
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport os\n\nfrom django.test import TestCase\nfrom django.utils.text import force_text\n\nfrom import_export.formats import base_formats\n\n\nclass XLSTest(TestCase):\n\n ...
python
edit
1
1
bsd-2-clause
646b0f8babf346f3ec21ae688453deee24fb410f
copperleaftech/django-import-export,PetrDlouhy/django-import-export,PetrDlouhy/django-import-export,rhunwicks/django-import-export,copperleaftech/django-import-export,Apkawa/django-import-export,jnns/django-import-export,PetrDlouhy/django-import-export,daniell/django-import-export,django-import-export/django-import-exp...
tests/core/tests/base_formats_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import url\nfrom manager import views\n\nurlpatterns = [\n url(r'^$', views.package_list, name='package_list'),\n url(r'^packages/(?P<package_name>[a-zA-Z0-9_+-]+)/$', views.package_detail, name='package_detail')...
python
edit
1
0
mit
18bd0bcc0d892aef4ea9babfc6ec2af6e40cea62
colajam93/aurpackager,colajam93/aurpackager,colajam93/aurpackager,colajam93/aurpackager
manager/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport os\n\nversion = 0.4\n\nsetup(\n version=version,\n description=\"A script allowing to setup Amazon EC2 instances through configuration files.\",\n long_description=open(\"README.txt\").read() + ...
python
edit
1
0
bsd-3-clause
4c4a7a016abed4a0710ceffc35a985210cc52ab7
ployground/ploy,fschulze/ploy,ployground/ploy_fabric,ployground/ploy_ec2
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom __future__ import unicode_literals\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n \"Jinja2\",\n \"boto>=2.36.0\",\n \"flask\",\n \"httpretty==0.8.10\",\n \"requests\",\n ...
python
edit
1
0
apache-2.0
75a8d2ed6a3fa03ca132388182b1e7876fb6413e
okomestudio/moto,spulec/moto,spulec/moto,heddle317/moto,Affirm/moto,okomestudio/moto,whummer/moto,2rs2ts/moto,Affirm/moto,ZuluPro/moto,rocky4570/moto,Brett55/moto,spulec/moto,gjtempleton/moto,2rs2ts/moto,okomestudio/moto,2rs2ts/moto,gjtempleton/moto,Brett55/moto,heddle317/moto,botify-labs/moto,spulec/moto,2rs2ts/moto,h...
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='hadmin',\n version='0.1',\n packages=find_packages(),\n author='Alec Ten Harmsel',\n author_email='<EMAIL>',\n description='A Hadoop configuration manager',\n ...
python
edit
1
0
mit
584b4f08cb1dacd57fde85b11824709e10d657ce
trozamon/hadmin
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache....
python
edit
1
0
apache-2.0
913d7562a8be59561c2e7309eb51aa63bc013ad3
google/jax,google/jax,tensorflow/probability,google/jax,tensorflow/probability,google/jax
build/setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.admin.sites import AdminSite as DjangoAdminSite\nfrom django.contrib.admin.sites import site as django_site\n\n\nclass AdminSite(DjangoAdminSite):\n def get_urls(self):\n from django.conf.urls.defaults import p...
python
edit
3
3
apache-2.0
7baaac652f74ea44817cd48eb1a4b3aa36f94e23
texastribune/armstrong.hatband,armstrong/armstrong.hatband,armstrong/armstrong.hatband,armstrong/armstrong.hatband,texastribune/armstrong.hatband,texastribune/armstrong.hatband
armstrong/hatband/sites.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nimport sys\n\n\n_COLOR_CODES = {\n \"white\": '\\033[0m',\n \"red\": '\\033[31m',\n \"green\": '\\033[32m',\n \"orange\": '\\033[33m',\n \"blue\": '\\033[34m',\n \"purple\": '\\033[3...
python
edit
1
4
apache-2.0
9ea9d111c8b6a20015f9ad6149f690c9e8c0774d
mashaoze/esp-idf,espressif/esp-idf,armada-ai/esp-idf,www220/esp-idf,www220/esp-idf,mashaoze/esp-idf,www220/esp-idf,www220/esp-idf,mashaoze/esp-idf,espressif/esp-idf,www220/esp-idf,espressif/esp-idf,espressif/esp-idf,armada-ai/esp-idf,mashaoze/esp-idf,armada-ai/esp-idf,armada-ai/esp-idf,mashaoze/esp-idf
tools/tiny-test-fw/Utility/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"This test checks for correct fork() behavior.\n\"\"\"\n\nimport os\nimport time\nimport unittest\nfrom test.fork_wait import ForkWait\nfrom test.test_support import run_unittest, reap_children\n\ntry:\n os.fork\nexcept AttributeErr...
python
edit
1
3
mit
81b77db1a455a976a5c516decb5fdd141f10bc31
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/test/test_fork1.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nShowcases RGB colourspace volume computations.\n\"\"\"\n\nfrom __future__ import division, unicode_literals\n\nimport colour\nfrom colour.utilities.verbose import message_box\n\nmess...
python
edit
1
0
bsd-3-clause
a3d655bd311161679bafbcad66f678d412e158f0
colour-science/colour
colour/examples/volume/examples_rgb.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# media.py\n\n\nclass Movie(object):\n def __init__(self,\n title,\n storyline,\n poster_image_url,\n trailer_youtube_url,\n lead_actors,\n r...
python
edit
1
1
mit
1f4ff058d14a32e7e7b9a28daee54a2e8ea1eb02
vishallama/udacity-fullstack-movie-trailer,vishallama/udacity-fullstack-movie-trailer
media.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport csv\n\ndef read_axf(axf_string):\n blocks = {}\n state = 'new_block'\n\n for line in axf_string.split('\\n'):\n if line == '[$]' or line == '':\n pass\n\n elif line.startswith('['):\n bloc...
python
edit
5
11
bsd-3-clause
4dcb0e56627d3b801b5377d77fca721c43090ce2
amacd31/bom_data_parser,amacd31/bom_data_parser
bom_data_parser/axf_parser.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nimport tensorflow as tf\nimport tensorflow_addons as tfa\n\n\nclass TestTensorflowAddons(unittest.TestCase):\n def test_tfa_image(self):\n img_raw = tf.io.read_file('/input/tests/data/dot.png')\n img = tf...
python
edit
3
1
apache-2.0
828d03d7a49d65e8584d4bc373ae4d429b291104
Kaggle/docker-python,Kaggle/docker-python
tests/test_tensorflow_addons.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport numpy as np\nfrom astropy import constants\nfrom astropy import units\nfrom sympy.mpmath import polylog\n\n\ndef uibei(order, energy_lo, temp, chem_potential):\n \"\"\"\n Upper incomplete Bose-Einstei...
python
edit
4
2
mit
eac78bcb95e2c34a5c2de75db785dd6532306819
jrsmith3/tec,jrsmith3/ibei,jrsmith3/tec
ibei/main.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom tests import with_settings\nfrom tests.web.splinter import TestCase\nfrom catsnap import Client\nfrom catsnap.table.image import Image\nfrom catsnap.table.album import Album\nfrom nose.tools i...
python
edit
1
1
mit
d86a4b75b1d8b4d18aadbb2bc98387b5ce78f939
ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap
tests/web/splinter/test_view_album.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom bokeh.io import output_file, show\nfrom bokeh.models import GeoJSONDataSource\nfrom bokeh.plotting import figure\nfrom bokeh.sampledata.sample_geojson import geojson\n\noutput_file(\"geojson_points.html\", title=\"GeoJSON Points\")\n\n...
python
edit
1
0
bsd-3-clause
c9ca274a1a5e9596de553d2ae16950a845359321
draperjames/bokeh,bokeh/bokeh,timsnyder/bokeh,dennisobrien/bokeh,maxalbert/bokeh,phobson/bokeh,jakirkham/bokeh,stonebig/bokeh,jakirkham/bokeh,bokeh/bokeh,DuCorey/bokeh,justacec/bokeh,dennisobrien/bokeh,clairetang6/bokeh,azjps/bokeh,timsnyder/bokeh,aiguofer/bokeh,timsnyder/bokeh,ericmjl/bokeh,DuCorey/bokeh,rs2/bokeh,bok...
examples/plotting/file/geojson_points.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import render_template, jsonify\n\nfrom app import app\nfrom models import Show, Episode\n\n@app.route('/')\n@app.route('/index')\ndef index():\n return render_template('index.html')\n\n@app.route(\"/api/new-episodes/\")\ndef ...
python
edit
1
3
mit
1650c9d9620ba9b9262598d3a47208c6c8180768
frequencyasia/website,frequencyasia/website
app/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nAutomation tasks, aided by the Invoke package.\n\"\"\"\nimport os\nimport webbrowser\n\nfrom invoke import task, run\n\n\nDOCS_DIR = 'docs'\nDOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build')\n\n\n@task\ndef docs(show=True):\n \"...
python
edit
1
3
bsd-3-clause
a0fc801130fa9068c5acc0a48d389f469cdb4bb2
Xion/callee
tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nskipif_markers\n--------------\n\nContains pytest skipif markers to be used in the suite.\n\"\"\"\n\nimport pytest\nimport os\n\n\ntry:\n travis = os.environ[u'TRAVIS']\nexcept Ke...
python
edit
1
0
bsd-3-clause
f32685ef4ad847bd237845da6b5b8c44dac0ea9b
audreyr/cookiecutter,dajose/cookiecutter,kkujawinski/cookiecutter,hackebrot/cookiecutter,venumech/cookiecutter,vintasoftware/cookiecutter,pjbull/cookiecutter,lucius-feng/cookiecutter,ramiroluz/cookiecutter,venumech/cookiecutter,0k/cookiecutter,christabor/cookiecutter,hackebrot/cookiecutter,Vauxoo/cookiecutter,Springerl...
tests/skipif_markers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport re\nimport time\nimport sys\nfrom threading import Thread\n\nclass testit(Thread):\n def __init__ (self,ip):\n Thread.__init__(self)\n self.ip = ip\n self.status = -1\n self.r...
python
edit
4
5
mit
114a6eb827c0e3dd4557aee8f76fde1bbd111bb9
imrehg/archalice
archalice.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom typing import List\n\nimport csv\nimport os\nimport random\n\nDICT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"dicts\")\n\n\ndef dictionary_sample(name: str, sample: int = 1) -> List[str]:\n # TODO: Cache counti...
python
edit
1
4
mit
8377bbca8b49a7a973d5521795d6df238774db8b
mariocesar/namegenerator
codenamegenerator/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport mxnet as mx\nimport numpy as np\n\ndef same(a, b):\n return np.sum(a != b) == 0\n\ndef check_with_device(device):\n with mx.Context(device):\n a, b = -10, 10\n mu, sigma = 10, 2\n shape = (100, 1...
python
edit
3
2
apache-2.0
b63bda37aa2e9b5251cf6c54d59785d2856659ca
sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet,sxjscience/mxnet
tests/python/unittest/test_random.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nfrom soccermetrics.rest import SoccermetricsRestClient\n\nclass ClientEndpointTest(unittest.TestCase):\n \"\"\"\n Test endpoints of API resources in client.\n \"\"\"\n\n def setUp(self):\n self.client =...
python
edit
1
1
mit
64038fad35e7a1b9756921a79b6b13d59925e682
soccermetrics/soccermetrics-client-py
tests/test_endpoints.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\nimport os\nimport unittest\nfrom subprocess import Popen, PIPE\n\n\nROOT_DIR = os.path.join(os.path.dirname(__file__), \"..\")\nsys.path.append(ROOT_DIR)\n\nfrom supercron import SuperCron\n\n\nclass Run...
python
edit
1
2
bsd-3-clause
e19b11c8598fe7a7e68640638a3489c05002f968
linostar/SuperCron
tests/test_supercron.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass Rover:\n\n compass = ['N', 'E', 'S', 'W']\n\n def __init__(self, x=0, y=0, direction='N'):\n self.x = x\n self.y = y\n self.direction = direction\n\n @property\n def position(self):\n return sel...
python
edit
1
1
mit
221413b5715286bb7b61e18f8e678f2ca097a5e1
authentik8/rover
rover.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\n\nclass TestMNISTTutorialJSMA(unittest.TestCase):\n def test_mnist_tutorial_jsma(self):\n from tutorials import mnist_tutorial_jsma\n\n # Run the MNIST tutorial on a dataset of reduced size\n # and...
python
edit
1
1
mit
96d798685c53f4568edaaf990b0bbe8e2e10e24a
cleverhans-lab/cleverhans,cleverhans-lab/cleverhans,openai/cleverhans,carlini/cleverhans,cihangxie/cleverhans,cleverhans-lab/cleverhans,carlini/cleverhans,fartashf/cleverhans
tests_tf/test_mnist_tutorial_jsma.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tg.error import ErrorReporter\n\n\ndef simple_app(environ, start_response):\n status = '200 OK'\n headers = [('Content-type', 'text/plain')]\n start_response(status, headers)\n return ['HELLO']\n\n\nclass TestErrorReporterC...
python
edit
1
2
mit
dac770314da39c5494ff6c1ccd46d507ff1b2540
lucius-feng/tg2,lucius-feng/tg2
tests/test_errorware.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\nsetup(\n name='django-append-url-to-sql',\n description=\"Appends the request URL to SQL statements in Django.\",\n version='1.0.1',\n url='https://chris-la...
python
edit
1
0
bsd-3-clause
b0b2c03f04a5f29e11dc01558d272e27665555ce
lamby/django-append-url-to-sql
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='sobol_seq',\n version='0.1.2',\n description='Sobol sequence generator',\n url='https://github.com/naught101/sobol_seq',\n author='naught101',\n author_email='<EMAIL>',\n ...
python
edit
1
0
mit
9ffd929e200fd5b292a24d990cb549beaef20379
naught101/sobol_seq
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\nfrom youtube_dl_gui import version\n\nsetup(name='Youtube-DLG',\n version=version.__version__,\n description='Youtube-dl GUI',\n long_description='A cross platform f...
python
edit
1
0
unlicense
a6b13f81ce7e39462ec188fad998755a2b66d26c
Sofronio/youtube-dl-gui,pr0d1r2/youtube-dl-gui,dstftw/youtube-dl-gui,dstftw/youtube-dl-gui,pr0d1r2/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,Sofronio/youtube-dl-gui,ukazap/youtube-dl-gui,MrS0m30n3/youtube-dl-gui,ukazap/youtube-dl-gui
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, Extension\n\nelp_srcs = ['src/periodic.c', 'src/prdic_math.c', \\\n 'src/prdic_fd.c', \\\n 'src/prdic_pfd.c', \\\n 'src/prdic_main_fd.c', 'src/prdic_main_pfd.c', \\\n 'src/prdic_mai...
python
edit
1
2
bsd-2-clause
566fa441f3864be4f813673dbaf8ffff87d28e17
sobomax/libelperiodic,sobomax/libelperiodic,sobomax/libelperiodic,sobomax/libelperiodic
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom unittest.mock import Mock\n\nfrom jupyterhub import orm\nfrom remoteappmanager.services.reverse_proxy import ReverseProxy\nfrom tornado import gen, testing\n\n\nclass TestReverseProxy(testing.AsyncTestCase):\n @testing.gen_test\n ...
python
edit
1
1
bsd-3-clause
238494a1323d82a791b244a84af64eda3d9be750
simphony/simphony-remote,simphony/simphony-remote,simphony/simphony-remote,simphony/simphony-remote
tests/services/test_reverse_proxy.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ._base import *\n\nSITE_PUBLIC_PORT = None # Default: SITE_PORT\n\n# DJANGO ######################################################################\n\nCACHES['default'].update({\n # 'BACKEND': 'django_redis.cache.RedisCache',\n '...
python
edit
4
0
mit
6b9cc519deaecd093087d5190888b97b7b7eaf02
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
icekit/project/settings/_production.py
rejected_lint
Too many lint violations: 4
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\nsettings = dict()\n\nsettings.update(\n name=\"pykwalify\",\n version=\"0.1.2\",\n description='Python lib/cli for JSON/YAML schem...
python
edit
1
0
mit
5ce630f820652c4d4e984e14cf93a4ac49b297aa
grokzen/pykwalify
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nPACKAGE_VERSION = '0.3'\n\n\ndef version():\n def version_file(mode='r'):\n return open(os.path.join(os.path.dirname(os.path.abspath(__file__), 'version.txt')), mode)\n\n if os.geten...
python
edit
1
2
apache-2.0
1e817a833ae0f86338199635ab2e43c592331d08
odin-public/osaAPI
setup.py
rejected_duplicate
Near-duplicate of sample 4490
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\r\n\r\n\r\nwith open('README.md') as readme:\r\n long_description = readme.read()\r\n\r\n\r\nwith open('requirements.txt') as requirements:\r\n dependencies = [line.strip() for line in requi...
python
edit
1
0
mit
c2297672afff206bdae91aa479cb946b932a35e9
vberlier/nbtlib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nGotoNewest tests\n'''\n\nimport unittest\nimport sys\nsys.path.append('../src/')\nimport gn\n\nTEST_DIR = '/tmp/test'\n\nclass TestGotoNewest(unittest.TestCase):\n ''' Test class for GotoNewest\n '''\n\n def test_empty_base_di...
python
edit
1
1
bsd-2-clause
e7ea098a4700c6f338fc7ef223b696aaed448629
ambidextrousTx/GotoNewest
test/test_gn.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='panoptes_client',\n url='https://github.com/zooniverse/panoptes-python-client',\n author='Adam McMaster',\n author_email='<EMAIL>',\n version='1.1.1',\n package...
python
edit
1
0
apache-2.0
cc55521c1e2af71893eff701bebc51acc112fa75
zooniverse/panoptes-python-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\n\nfrom setuptools import setup\n\n__author__ = 'Ryan McGrath <<EMAIL>>'\n__version__ = '2.10.0'\n\npackages = [\n 'twython',\n 'twython.streaming'\n]\n\nif sys.argv[-1] == 'publish':\n os.system('python setup...
python
edit
1
0
mit
52609334bdd25eb89dbc67b75921029c37babd63
joebos/twython,Oire/twython,fibears/twython,Devyani-Divs/twython,Hasimir/twython,akarambir/twython,ping/twython,vivek8943/twython,ryanmcgrath/twython,Fueled/twython
setup.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
daa004f214956ee0e906540313bdb84b8e31a3e8
consbio/gis-metadata-parser
setup.py
rejected_duplicate
Near-duplicate of sample 2210
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.6.3...
python
edit
1
0
mit
045b8add1a2e45e120f1353f5412b8047dfa1a81
lepinsk/pydub,cbelth/pyMusic,joshrobo/pydub,miguelgrinberg/pydub,jiaaro/pydub,Geoion/pydub,sgml/pydub
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\nfrom setuptools import setup, find_packages\n\nsetup(\n name='isystem-to-mqtt',\n version='0.1.0',\n author='Nicolas Graziano',\n author_email='<EMAIL>',\n packages= find_pack...
python
edit
1
0
mit
a0d17f10dd269aa0a1be97276c312f3f522787f5
ngraziano/isystem-to-mqtt
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py register sdist bdist_wheel upload')\n sys.exit()\n\n\nsetup(\n name='sentry-sso-google',...
python
edit
1
0
mit
28460d76d483e47b6faa63f5b9c3013031a68dea
educreations/sentry-sso-google
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#from distutils.core import setup\nfrom setuptools import setup\n\ndescr = \"\"\"Tree representations and algorithms for Python.\n\nViridis is named after the green tree python, Morelia viridis.\n\"\"\"\n\nDISTNAME = 'viridis'\nD...
python
edit
1
0
mit
4f1124c7526ee1d30f0de180d459f42d716ad2c8
jni/viridis
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport tweepy, time, random\n\ndef main():\n CONSUMER_KEY = 'your_consumer_key'\n CONSUMER_SECRET = 'your_consumer_secret'\n ACCESS_KEY = 'your_access_key'\n ACCESS_SECRET = 'your_access_secret'\n\n auth = tweepy.OAuthHandler...
python
edit
2
4
mit
9e88d6eb6d6d97ea9046dbf842cdc0b5beb62b90
djangokillen/minion-hate-bot
src/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"go_auth\",\n version=\"0.1.0a\",\n url='http://github.com/praekelt/go_auth',\n license='BSD',\n description=\"Authentication services and utilities for Vumi Go AP...
python
edit
1
0
bsd-3-clause
ea30858852815043fd95888add674778893bac42
praekelt/go-auth,praekelt/go-auth
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\nfrom Registry import _version_\n\nsetup(name='python-registry',\n version=_version_,\n description='Read access to Windows Registry files.',\n author='Willi Ballenthin',\...
python
edit
1
0
apache-2.0
b0dda121e03f593afb6ee1b3959b71b615df2b39
williballenthin/python-registry
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nsetup(name='bettercache',\n version='0.5.3',\n description = \"A suite of better cache tools for Django.\",\n license = \"MIT\",\n author='Calvin Spealman',\n...
python
edit
1
0
mit
81fc515539474e720a9b96ef1bc5679e053952f9
ironfroggy/django-better-cache,ironfroggy/django-better-cache
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python3\n# tv_namer.py - Renames passed media files of TV shows\n\nimport shutil\nimport os\nimport sys\nimport logging\n\nimport videoLister\nimport scrapeTVDB\nimport regSplit\n\nlogger = logging.getLogger(__name__)\nlogging.ba...
python
edit
1
0
mit
f7aedd45ad103e66621bad04bfcbbba7d30b4e35
samcheck/PyMedia,samcheck/PyMedia,samcheck/PyMedia
tv_namer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom distutils.core import setup\nimport ibei\n\nsetup(name = \"ibei\",\n version = ibei.__version__,\n author = \"Joshua Ryan Smith\",\n author_email = \"<EMAIL>\",\n packages = [\"ibei\"],\n ...
python
edit
1
0
mit
ab417052f3d41ee5b140e3044a6a925c3895d1ee
jrsmith3/ibei
setup.py
rejected_duplicate
Near-duplicate of sample 1991
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n############################################################################\n# #\n# Copyright 2014 Prelert Ltd ...
python
edit
1
0
apache-2.0
983bdcc48c8feef5e65280e02a83a1f3721bce70
pemontto/engine-python,prelert/engine-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8 -*-\n#\n# Setup file for geocluster\n#\n\nfrom setuptools import setup, find_packages\nimport os\n\n# Get the description file\nhere = os.path.dirname(os.path.abspath(__file__))\nlong_description = open(os.path.join(here, \"...
python
edit
1
0
mit
1780c1d6230669922c9fef2798fdfccf56bbe294
regisf/geocluster
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\nsetup(\n name=\"sigseekr\",\n version=\"0.2.0\",\n packages=find_packages(),\n scripts=['sigseekr/sigseekr.py'],\n author=\"Andrew Low\",\n author_ema...
python
edit
1
0
mit
ca38e933f4dd43fc3fdcc4db27564b5e1559edf1
OLC-Bioinformatics/SigSeekr
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__...
python
edit
1
1
bsd-3-clause
88f241b77438ae59912be6df75b66260a39c7c12
barbarahui/ucldc-iiif,mredar/ucldc-iiif,mredar/ucldc-iiif,barbarahui/ucldc-iiif
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\nimport os\nimport sys\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n sys.exit()\n\nsetup(\n name='Flask-Simon',\n version='0.3.0',\n des...
python
edit
1
0
bsd-3-clause
330f4a6829f39684b7a37961f6f2ee5f692c536d
dirn/Flask-Simon,dirn/Flask-Simon
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='devour',\n version='0.4',\n url='',\n author='http://github.com/brandoshmando',\n author_email='<EMAIL>',\n license='MIT',\n packages=['devour',],\n install_requires=[\n...
python
edit
1
0
mit
16e2d0180cc48c2d3be238ebe17797d8c0acbf62
brandoshmando/devour
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Millipede installation script\n\nhttps://github.com/evadot/millipede\n\"\"\"\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nwith open(path...
python
edit
1
0
bsd-3-clause
a6147357f93295e5b363f36da1c14fd3db7dc062
evadot/millipede-python,evadot/millipede-python,getmillipede/millipede-python,moul/millipede-python,EasonYi/millipede-python,moul/millipede-python,EasonYi/millipede-python,getmillipede/millipede-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages\n\nimport os\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# Get version and release info, which is all stored in AFQ/version.py\nver_file = os.pat...
python
edit
15
0
bsd-2-clause
7fb2155a7884bbebe3b29c1580b37354309c0d1e
arokem/pyAFQ,yeatmanlab/pyAFQ,arokem/pyAFQ,yeatmanlab/pyAFQ
setup.py
rejected_lint
Too many lint violations: 15
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import find_packages, setup\n\n\nVERSION = '2.0.dev0'\n\n\ninstall_requires = [\n 'django-local-settings>=1.0a12',\n 'stashward',\n]\n\nif sys.version_info[:2] < (3, 4):\n install_requires.append('enum...
python
edit
1
0
mit
e9ac75d7f3f023bb0116446a2d358faa36fa90e2
PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils
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.1.2dev',\n description='Creating time series of win...
python
edit
1
1
mit
66581c78e4abf9ff94b954ba0500e6f93fda1d35
wind-python/windpowerlib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2019 The Empirical Calibration Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#...
python
edit
1
0
apache-2.0
8fed7f136912fecf8dfb223807b818f37ee306e8
google/empirical_calibration
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='panya',\n version='0.1.6',\n description='Panya base app.',\n long_description = open('README.rst', 'r').read() + open('AUTHORS.rst', 'r').read() + open('CHANGELOG.rs...
python
edit
1
0
bsd-3-clause
efacef78764f9b74d57adb3e092fdd8ac24939b3
praekelt/panya
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport io\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='django-pipeline',\n version='1.5.2',\n description='Pipeline is an asset packaging library for Django.',\n long_description=io...
python
edit
1
0
mit
213b6303eba6edb4ebb0f9f5101ab2a1e76acfaf
perdona/django-pipeline,chipx86/django-pipeline,cyberdelia/django-pipeline,kronion/django-pipeline,cyberdelia/django-pipeline,skolsuper/django-pipeline,kronion/django-pipeline,beedesk/django-pipeline,sideffect0/django-pipeline,lexqt/django-pipeline,jazzband/django-pipeline,theatlantic/django-pipeline,chipx86/django-pip...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\nwith open(path.join(here, 'README.md'), encoding='utf-8') as f:\n readme = f.read()\n\nsetup(\n name='manuale',...
python
edit
1
0
mit
a8163b0da1da0c303f4b7427473360ddddf982e8
veeti/manuale
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nwith open(path.join(here, 'README.md')) as f:\n jgo_long_description = f.read()\n\nsetup(\n name='jgo',\n version='0.1.0',\n aut...
python
edit
1
0
unlicense
a84102f0736105fb6fb257c1feddc40633d11fcb
ctrueden/jrun,ctrueden/jrun
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport io\nimport os\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\ndef read(*filenames, **kwargs):\n encoding = kwargs.get('encoding', 'utf-8')\n sep = kwargs.get('sep', '\\n')\n buf = []\n ...
python
edit
1
2
apache-2.0
4a601336ee5fccfe2cb4ebf50bd7fdfe127f3a61
uberVU/mongo-pool,uberVU/mongo-pool
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.rst')).read()\n\n\nversion = '0.1'\n\n\nsetup(name='nested_formset',\n version=v...
python
edit
3
0
bsd-3-clause
001f9a3520daefdc64e16e7c29887d27e68d9f4b
nyergler/nested-formset
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"Setup script for The Coverage Space CLI.\"\"\"\n\nimport setuptools\n\nfrom coveragespace import __project__, __version__, CLI\n\ntry:\n README = open(\"README.rst\").read()\n CHANGES = open(\"CHANGES.rs...
python
edit
1
0
mit
758c80b543bfe095718082673901533c2603e69f
jacebrowning/coverage-space-cli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\n\"\"\"\n\n\"\"\"\nimport json\nimport os\n\nfrom sns_utils import publish_sns_message\n\n\ndef main(event, _):\n print(f'Received event:\\n{event}')\n stream_topic_map = json.loads(os....
python
edit
1
1
mit
db76777575162aab69aec9429455f2e7d841a605
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
lambdas/dynamo_to_sns/dynamo_to_sns.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n# encoding: utf-8\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nsetup(\n name='autoprop',\n version='0.0.0',\n author='Kale Kundert',\n author_ema...
python
edit
1
0
mit
c1ce60a964a1ef46b7d971fe91f007f3cf94d558
kalekundert/autoprop
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nimport setuptools\n\npy26_reqs = ['argparse', 'importlib'] if sys.version_info < (2,7) else []\n\nsetuptools.setup(\n name='librarypaste',\n use_hg_version=dict(increment='0.1'),\n author='Jamie Turner',\n author_e...
python
edit
1
0
mit
64c4c3329f25ed4ee565ce8cbd2db1b3141605b2
yougov/librarypaste,yougov/librarypaste
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function, division\nfrom sys import argv, stderr\n\ndef run_gui():\n '''Start the event loop to calucate spectra interactively'''\n # Import Qt functions. Do so here to handle errors better\n try:\n ...
python
edit
2
3
mit
f6b818222d8e6eb9bb6ad3a0d8ab55513eb90673
jensengrouppsu/rapid,jensengrouppsu/rapid
gui/driver.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nversion = __import__('shopify_auth').__version__\n\nsetup(\n name = 'django-shopify-auth',\n version = version,\n description = 'An simple package for adding Shopify authentication to Django apps...
python
edit
1
0
mit
270c9e61646f4fe45e01b06e45dde15ea0856106
discolabs/django-shopify-auth,funkybob/django-shopify-auth,discolabs/django-shopify-auth,RafaAguilar/django-shopify-auth,RafaAguilar/django-shopify-auth,funkybob/django-shopify-auth
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\nsetup(\n name=\"setquery\",\n version=\"0.1\",\n description=\"Set arithmetic evaluator\",\n author=\"Paul Scott\",\n author_email=\"<EMAIL>\",\n url=\"https://github....
python
edit
1
0
mit
8e7eb5dec20ee75d34b566341af3c22b57503dcb
icio/evil
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\nVERSION = '0.4.2'\n\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\n\nsetup(\n name='django-backupdb',\n version=VERSION,\n d...
python
edit
1
1
bsd-2-clause
644a25e2b61bec8847af2f6d64b9b41b8798092d
fusionbox/django-backupdb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"Setup file and install script SciLife python scripts.\n\"\"\"\nfrom setuptools import setup, find_packages\n\ntry:\n with open(\"requirements.txt\", \"r\") as f:\n install_requires = [x.strip() for x i...
python
edit
1
0
mit
6bfcfaffcb1695f142c11b6864951f9471e52d60
remiolsen/status,remiolsen/status,ewels/genomics-status,ewels/genomics-status,SciLifeLab/genomics-status,SciLifeLab/genomics-status,Galithil/status,Galithil/status,remiolsen/status,ewels/genomics-status,Galithil/status,kate-v-stepanova/genomics-status,kate-v-stepanova/genomics-status,kate-v-stepanova/genomics-status,Sc...
setup.py
accepted
null
true