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 nltk\nimport xml.dom.minidom as dom\nimport codecs\n\nfile = open(\"tweets.xml\")\ntree = dom.parse(file)\ni = 0\ne = 0\n\nfor tweet in tree.firstChild.childNodes:\n\n try:\n textNodes = tweet.getElementsByTagName(\"text\")...
python
edit
4
0
apache-2.0
fa4be57f00827ea452e0d7bc1c0b5b17f20a6d2d
markusmichel/Tworpus-Client,markusmichel/Tworpus-Client,markusmichel/Tworpus-Client
test.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\nimport os, sys, glob\nfrom setuptools import setup, find_packages\n\nsetup(\n name='aegea',\n version='0.6.0',\n url='https://github.com/kislyuk/aegea',\n license=open('LICENSE.md').readline().strip(),\n...
python
edit
4
0
apache-2.0
6e426e4ae0dd3841ea7d92b7434c858cf39e9ef4
kislyuk/aegea,wholebiome/aegea,wholebiome/aegea,kislyuk/aegea,wholebiome/aegea,kislyuk/aegea
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__version__ = '2.0.0~rc1'\n\n__license__ = '''\nCopyright (c) 2009-2011, Cameron Dale <<EMAIL>>\nCopyright (c) 2005-2009, Bill McCloskey <<EMAIL>>\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without...
python
edit
1
0
bsd-3-clause
2a6313e2ed7cfbd81e6779e6f014500d801ccc8c
dnrce/xword
xword/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name='TOPKAPI',\n version='0.2dev',\n description='SAHG TOPKAPI model implementation',\n author='Theo Vischel & Scott Sinclair',\n author_email='<EMAIL>; <EMAIL>',\n package...
python
edit
1
0
bsd-3-clause
b786ae0b845374ca42db42ac64322d6aa9e894c5
sahg/PyTOPKAPI,scottza/PyTOPKAPI
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='byterestclient',\n version='0.1',\n packages=find_packages(exclude=['test*']),\n url='',\n license='',\n author='Allard Hoeve',\n author_email='<EMAIL>',\n ...
python
edit
1
0
mit
de1a11e770dc5e3639247cf94d1509ea73aa2554
ByteInternet/python-byterestclient,ByteInternet/python-byterestclient
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"A setuptools based setup module.\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\n\n# Always prefer setuptools over distutils\nfrom setuptools import setup, find_packages\...
python
edit
1
0
mit
39235bffda1ac908a6b900432a6396d3522635e5
mwchase/class-namespaces,mwchase/class-namespaces
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='googleanalytics',\n description='A wrapper for the Google Analytics API.',\n long_description=open('README.rst').read(),\n author='Stijn Debrouwere',\n author_email='<EM...
python
edit
1
0
isc
078050de92362115ffa32f03478b6658bb4da63f
debrouwere/google-analytics
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distribute_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup, find_packages\n\nversion_classifiers = ['Programming Language :: Python :: %s' % version\n for version in ['2', '2.5', '2.6',...
python
edit
1
0
bsd-3-clause
a15855f83d44eee4a8fac3aea97658d8d0051f96
dougbeal/nosy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nVERSION = (0, 1, 7)\n__version__ = '.'.join(map(str, VERSION))\n\nreadme_rst = os.path.join(os.path.dirname(__file__), 'README.rst')\n\nif os.path.exists(readme_rst):\n long_descr...
python
edit
1
0
mit
2ac7469e6ebee4b85851da7eb5fd0325ea7a97e4
erdem/django-map-widgets,erdem/django-map-widgets,erdem/django-map-widgets,erdem/django-map-widgets
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\nimport os\nimport sys\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test as TestCommand\n\n\nclass PyTest(TestCommand):\n user_options = [('pytest-args...
python
edit
1
1
mit
751aecfae754a555aad15fe1771bbf209de00c9c
gaqzi/py-gocd-cli,gaqzi/gocd-cli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nwith open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v_file:\n version = v_file.read().strip()\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as re...
python
edit
1
0
mit
1a892b9d9ee2121241a43d7d0af772dfbb5d08e1
penzance/canvas_python_sdk
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='botometer',\n version='1.0',\n description='Check Twitter accounts for bot behavior',\n url='https://github.com/IUNetSci/botometer-python',\n download_url='https://github.com/I...
python
edit
1
0
mit
bf8d19cd1258de8080713f7155f7a6607504ec18
truthy/botornot-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom cycy import compiler\nfrom cycy.parser.sourceparser import parse\n\n\nclass CyCy(object):\n \"\"\"\n The main CyCy interpreter.\n \"\"\"\n\n def run(self, bytecode):\n pass\n\n\ndef interpret(source):\n print \"He...
python
edit
1
1
mit
51f32076e8708c55420989b660323cdfd9fc6650
Magnetic/cycy,Magnetic/cycy,Magnetic/cycy
cycy/interpreter.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 distutils.core import setup, Extension\nimport numpy\nimport re\n\n\nwith open('README.rst') as f:\n readme = f.read()\n\nwith open('tifffile.py') as f:\n text = f.read()\n\nversi...
python
edit
1
0
bsd-3-clause
a22d36688995ec798628238f716dd7852b7af0a2
blink1073/vidsrc,blink1073/vidsrc
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(\n name='django-synchro',\n description='Django app for database data synchronization.',\n long_description=open('README.rst').read(),\n version='0.6',\...
python
edit
1
0
mit
e3cdb622671eb817b62bf2acfc99b75c0f4ed351
zlorf/django-synchro,zlorf/django-synchro
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\n\nfrom setuptools import setup\n\n# under test we do not want the nose entry point\nif \"XTRACEBACK_NO_NOSE\" in os.environ:\n entry_points = None\nelse:\n entry_points = {\n \"nose.plugins\"...
python
edit
1
0
mit
3cc434bf4bbed3239e08780fc3cbc6d5bf5823cb
0compute/xtraceback,g2p/xtraceback
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup, find_packages\nexcept:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\nsetup(\n name = 'django-flatblocks',\n version = '0.3.5'...
python
edit
1
0
bsd-3-clause
e0a15a818d91a547c6b61044adc07d79b33d9394
zerok/django-flatblocks,zerok/django-flatblocks,funkybob/django-flatblocks,danirus/django-flatblocks-xtd,funkybob/django-flatblocks,danirus/django-flatblocks-xtd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: UTF-8 -*-\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nimport time\n_version = \"2.9.dev%s\" % int(time.time())\n_packages = find_packages('.', exclude=[\"*.tests\", \"*.tests.*\", \"tests.*\", \"...
python
edit
1
0
mit
d272b9a080eeb3b9459ab2c9c5d615694cfe620b
laterpay/laterpay-client-python
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
eb6286a4b2b877192ec42614fbb344fdb170f3e3
barbarahui/nuxeo-calisphere,barbarahui/nuxeo-calisphere
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\n\nsetuptools.setup(\n name='bashlint',\n version='0.0.1',\n description=\"Bash linting tool\",\n long_description=\"Simple Bash linting tool written in Python.\",\n keywords='bash',\n author='Stanislav...
python
edit
1
0
mit
b3c4ca9826ffb71194b94a78cd32998138d033ef
skudriashev/bashlint
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nrequirements = ['httplib2', 'argparse', 'prettytable']\nif sys.version_info ...
python
edit
1
1
apache-2.0
d1171195e771b3de4a40c3773d10f5d0837da2b2
citrix-openstack-build/python-keystoneclient,Mercador/python-keystoneclient,sdpp/python-keystoneclient,jamielennox/python-keystoneclient,ntt-sic/python-keystoneclient,klmitch/python-keystoneclient,jamielennox/python-keystoneclient,dolph/python-keystoneclient,Mercador/python-keystoneclient,dolph/python-keystoneclient,ja...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, Extension, find_packages\n\nfrom glob import glob\nfrom os import path\n\nimport sys\n\n\ndef version():\n with open('src/iteration_utilities/__init__.py') as f:\n for line in f:\n if line....
python
edit
3
3
apache-2.0
5889fa354ff987e872ff87dda5bbf667759a4129
MSeifert04/iteration_utilities,MSeifert04/iteration_utilities,MSeifert04/iteration_utilities,MSeifert04/iteration_utilities
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nimport optparse\n\n\ntranscript_species_dict = dict()\nsequence_dict = dict()\n\n\ndef readgene(gene):\n for transcript in gene['Transcript']:\n transcript_species_dict[transcript['id']] = transcript['species'].repl...
python
edit
1
3
mit
058cee7b5a3efcf6b6bd02a314f1223153cc797f
TGAC/earlham-galaxytools,PerlaTroncosoRey/tgac-galaxytools,TGAC/tgac-galaxytools,anilthanki/tgac-galaxytools,TGAC/earlham-galaxytools,anilthanki/tgac-galaxytools,TGAC/earlham-galaxytools,wjurkowski/earlham-galaxytools,anilthanki/tgac-galaxytools,anilthanki/tgac-galaxytools,TGAC/earlham-galaxytools,anilthanki/tgac-galax...
tools/TreeBest/fasta_header_converter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nr\"\"\"\nTests for QtAwesome.\n\"\"\"\n# Standard library imports\nimport sys\nimport subprocess\n\n# Test Library imports\nimport pytest\n\n# Local imports\nimport qtawesome as qta\nfrom qtawesome.iconic_font import IconicFont\nfrom PyQt5....
python
edit
1
1
mit
a134bdbe2677fdc5a9c7d6408ea021b8e981098b
spyder-ide/qtawesome
qtawesome/tests/test_qtawesome.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Tornado handlers for the terminal emulator.\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom tornado import web\nimport terminado\nfrom ..base.handlers import IPyth...
python
edit
1
2
bsd-3-clause
ee2bd9191bb10a31c0eb688cbddaaa8fedba68a7
ipython/ipython,ipython/ipython
IPython/html/terminal/handlers.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 sys import argv\nimport bottle\nfrom bottle import default_app, request, route, response, get\nfrom tsc.models import DB\n\nbottle.debug(True)\napplication = bottle.default_a...
python
edit
1
3
mit
a4e8347ccf34fa0cc42740e9ad45afe037dec5f6
oinume/dmm-eikaiwa-tsc,oinume/dmm-eikaiwa-tsc
app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport uflash\nimport argparse\nimport sys\nimport os\n\n_HELP_TEXT = \"\"\"\nA simple utility script intended for creating hexified versions of MicroPython\nscripts on the local filesystem _NOT_ the microbit. Does not autodetect a\nmicrob...
python
edit
1
4
mit
5982e5a4f0bb7f47e604aea2c851ba50bcbe07e1
ntoll/uflash
hexify.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\n# Load in babel support, if available.\ntry:\n from babel.messages import frontend as babel\n cmdclass = {\"compile_catalog\": babel.compile_catalog,\n \"extract_messages\": babel.e...
python
edit
1
0
bsd-3-clause
8cdf631d8f3c817e75c2c02218ae60635b49951c
pjdelport/django-money,AlexRiina/django-money,tsouvarev/django-money,iXioN/django-money,rescale/django-money,recklessromeo/django-money,iXioN/django-money,tsouvarev/django-money,recklessromeo/django-money
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n# don't convert to ascii in py2.7 when creating string to return\n\ncrontable = []\noutputs = []\n\n\ndef process_message(data):\n if data['channel'].startswith(\"D\"):\n outputs.append([da...
python
edit
1
1
mit
012bd4e09c7ed08ff79ce039a9682a5249fef1fc
cworth-gh/stony
plugins/clue/clue.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nimport time\nfrom multiprocessing import Process, Event\n\nimport mfhclient\nimport update\nfrom arguments import parse\n\n\ndef main():\n q = Event()\n mfhclient_process = Process(\n args=(args, q,),\n ...
python
edit
1
3
mit
c8d2d6a4eace2107639badd17983e048dc9259e5
Zloool/manyfaced-honeypot
mfh.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport select\n\nimport serf\n\n\ndef server():\n \"\"\"A server for serf commands.\n\n Commands are a string object that are passed to serf.\n\n \"\"\"\n os.mkfifo('/serfnode/parent')\n pi...
python
edit
1
4
mit
6a0186eb0d0e822dded1e58d0381625ded887221
waltermoreira/serfnode,waltermoreira/serfnode,waltermoreira/serfnode
serfnode/handler/parent_server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (C) 2001,2002 Python Software Foundation\n# Author: <EMAIL> (Barry Warsaw)\n\n\"\"\"Various types of useful iterators and generators.\n\"\"\"\n\nimport sys\n\ntry:\n from email._compat22 import body_line_iterator, typed_subpa...
python
edit
5
4
mit
46982bbb4c8c74aece4b80fdbdcf3d5ee1d75ac9
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/email/Iterators.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"WebShack: Sensible web components.\n\nUsage:\n webshack get <package>...\n webshack -h | --help\n webshack --version\n\nOptions:\n -h --help Show this screen.\n --version Show version.\n\"\"\"\n\nimport sys\nfrom ...
python
edit
1
5
mit
e1569a514345a8c78d415011387d06aed5e6daa4
prophile/webshack
webshack/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport simplejson as json\n\nindentation = 0\n\nlang_def = None\nwith open('language.json') as lang_def_file:\n lang_def = json.loads(lang_def_file.read())\n\nif lang_def is None:\n print(\"error reading json language defi...
python
edit
1
5
unlicense
ab6ca021430933b38788ad2ae19f27f8ed00ab54
philipdexter/build-a-lang
parse.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import abort\nfrom flask import Flask\nfrom flask_caching import Cache\n\nimport main\n\n\napp = Flask(__name__)\ncache = Cache(app, config={'CACHE_TYPE': 'simple'})\n\n\n@app.route('/')\ndef display_available():\n content = (...
python
edit
1
2
bsd-3-clause
1e6b0b6f53a4508c3e4218345b2ee57d48fbc8d1
talavis/kimenu
flask_app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom cms.plugin_base import CMSPluginBase\nfrom cms.plugin_pool import plugin_pool\nfrom cms.models.pluginmodel import CMSPlugin\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.conf import settings\n\nfrom models impor...
python
edit
6
2
bsd-3-clause
4cb1b6b8656d4e3893b3aa8fe5766b507afa6d24
RacingTadpole/cmsplugin-rt
cmsplugin_rt/button/cms_plugins.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env\n\nfrom __future__ import print_function, unicode_literals\n\nimport sys\n\n\ndef safe_print(msg, *args, **kwargs):\n\t\"\"\"Safely print strings containing unicode characters.\"\"\"\n\n\ttry:\n\t\tprint(msg, *args, **kwargs)...
python
edit
1
3
mit
ef30c5573a02d072f586973a13419d6fea0fffb5
thebigmunch/gmusicapi-scripts
utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pandas as pd\n\n\ndef fn(row):\n if row['Type'] == 'DIRECT DEBIT':\n return 'DD'\n if row['Type'] == 'DIRECT CREDIT' or row['Spending Category'] == 'INCOME':\n return 'BP'\n if row['Amount (GBP)'] < 0:\n ...
python
edit
1
5
mit
cf843755f4edffb13deebac6c4e39cb44fff72e6
noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit
statement_format.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n__author__ = 'Michiaki Ariga'\n\nsetup(\n name='tabula',\n version='0.1',\n description='Simple wrapper for tabula, read tables from PDF into DataFrame',\n author=__author__,\n author_emai...
python
edit
3
0
mit
0c7d6fa29c7c6d9513f0a63b9165fe7f00788b04
chezou/tabula-py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom web_test import WebTest\nfrom scoring_engine.models.team import Team\nfrom scoring_engine.models.user import User\n\nclass TestAdmin(WebTest):\n def setup(self):\n super(TestAdmin, self).setup()\n team1 = Team(name=\"T...
python
edit
1
1
mit
31bfcd8d7b82bdd53a0d9649402b5dd38a23d506
pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine
tests/scoring_engine/web/test_admin.py
rejected_duplicate
Near-duplicate of sample 1287
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nFlask-JWT-Extended\n-------------------\nFlask-Login provides jwt endpoint protection for Flask.\n\"\"\"\nfrom setuptools import setup\n\nsetup(name='Flask-JWT-Extended',\n version='2.4.1',\n url='https://github.com/vimall...
python
edit
1
0
mit
beaa9ac3f90bbfaf124e04db9b4e790b4ebe8d9e
vimalloc/flask-jwt-extended
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n#from distutils.core import setup\nfrom setuptools import setup\n\ndescr = \"\"\"\nmicroscopium: unsupervised sample clustering and dataset exploration\nfor high content screens.\n\"\"\"\n\nDISTNAME ...
python
edit
1
0
bsd-3-clause
83820cb37f65e6c15427808d90abe8a8e36f24b8
Don86/microscopium,jni/microscopium,jni/microscopium,Don86/microscopium,microscopium/microscopium,microscopium/microscopium
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nfrom osbrain import random_nameserver\nfrom osbrain import run_agent\nfrom osbrain import Agent\nfrom osbrain import Proxy\n\n\ndef log(agent, message):\n agent.log_info(message)\n\n\ndef rep_handler(agent, message):\n if...
python
edit
1
3
apache-2.0
9e4608b5cafcaf69718b3b187e143098ed74954f
opensistemas-hub/osbrain
examples/dispatcher/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport deoplete.util\n\nfrom .base import Base\n\nclass Source(Base):\n def __init__(self, vim):\n Base.__init__(self, vim)\n\n self.name = 'go'\n self.mark = '[go]'\n self.filetypes = ['go']\n self.ran...
python
edit
1
3
mit
b5af31fba4bde1b90857d693b8277a3d2a0e3607
zchee/deoplete-go,zchee/deoplete-go
rplugin/python3/deoplete/sources/go.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# IPython log file\n\n\nfrom gala import classify\ndatas = []\nlabels = []\nimport numpy as np\nlist(map(np.shape, labels))\nfor i in range(3, 4):\n data, label = classify.load_training_data_from_disk('training-data-%i.h5' % i, names=['d...
python
edit
1
0
bsd-3-clause
300471024ff16026d23bf60008d19784604b2eb3
jni/gala-scripts
gala-training-crossval-sub.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom ckanext.qa import __version__\n\nsetup(\n name='ckanext-qa',\n version=__version__,\n description='Quality Assurance plugin for CKAN',\n long_description='',\n classifiers=[],...
python
edit
1
0
mit
a15fd8df979865a44f2699eb15f2825667cbcd7f
ckan/ckanext-qa,ckan/ckanext-qa,ckan/ckanext-qa
setup.py
rejected_duplicate
Near-duplicate of sample 572
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport sys\n\nfrom setuptools import setup\n\nrequired = [\n 'pytest',\n 'requests',\n 'requests_oauthlib',\n 'httplib2==0.9.1',\n 'python-dateutil',\n]\n\n# Python 2 dependenci...
python
edit
1
0
mit
4f1a119f2dc04cad75e647a000ae9041647153fb
arc90/python-readability-api,arc90/python-readability-api
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Set Distribute handler as default top level handler." }, { "role": "assistant", "content": "# :coding: utf-8\n# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips\n# :license: See LICENSE.txt.\n\nfrom .handler.distribute imp...
python
new_file
1
0
apache-2.0
181a3aedff78f46beec703cb610a5ac6d3339f93
4degrees/sawmill,4degrees/mill
source/bark/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\n\ndef main ():\n dlls = [\"bin/%s\" % dll for dll in [\"libcairo-2.dll\"]]\n\n licenses = [\"doc/%s\" % license for license in [\"LICENSE-LGPL.TXT\",\n \"LICENSE-CAIRO.TX...
python
edit
1
3
mit
134338b7aab3c3b79c2aa62fd878926ff9d9adc5
jmcb/python-cairo-dependencies
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf-8\n\n\"\"\"\n.. codeauthor:: Tsuyoshi Hombashi <<EMAIL>>\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport dataproperty\nimport six\n\nfrom ._error import NetworkInterfaceNotFoundError\n\n\nANYWHERE_NETWORK = \"0.0...
python
edit
1
4
mit
4d414fe592bfd7f085f9aaea0b6992d28ad193ce
thombashi/tcconfig,thombashi/tcconfig
tcconfig/_common.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import NoArgsCommand\n\nfrom scraper.models import Source\n\n\nclass Command(NoArgsCommand):\n \"\"\" Crawl all active resources \"\"\"\n\n def handle_noargs(self, **options):\n sources = Source...
python
edit
1
2
mit
737dca75d26a90d627be09144db7441156fee981
zniper/django-scraper,zniper/django-scraper
scraper/management/commands/run_scraper.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sublime\nimport sublime_plugin\nfrom functools import partial\nfrom format_date import FormatDate\n\n\nclass InsertDateCommand(sublime_plugin.TextCommand, FormatDate):\n \"\"\"Prints Date according to given format string\"\"\"\n\n...
python
edit
2
13
mit
f122d1561c79bd46eb82ff64a15245171a4934e8
FichteFoll/InsertDate,FichteFoll/InsertDate
insert_date.py
rejected_complexity
Cyclomatic complexity too high: 13
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport urllib2\n\nif __name__ == '__main__':\n gdal_version = '1.11.0'\n # parse out the version info\n major, minor, release = map(lambda x: int(x), gdal_version.split('.'))\n\n gdal_download_uri = 'http://download.osgeo.org/gd...
python
edit
4
0
mit
3c705ba62a6dae804ff2e2307d38c9c30d555e22
phargogh/gdal-build
build.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nflashcards.commands.sets\n~~~~~~~~~~~~~~~~~~~\n\nContains the commands and subcommands related to the sets resource.\n\"\"\"\nimport os\n\nimport click\n\nfrom flashcards import sets\nfrom flashcards import storage\n\n\n@click.group...
python
edit
1
1
mit
6bff4763f486f10e43890191244b33d5b609bfdd
zergov/flashcards,zergov/flashcards
flashcards/commands/sets.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\n\"\"\"\nimport debug: https://github.com/narfdotpl/debug\n\"\"\"\n\nimport __builtin__\nfrom sys import _getframe\n\nfrom ipdb import set_trace\n\n\n# do not forget\nold_import = __builtin__.__impor...
python
edit
1
2
unlicense
6672d3eb6bcc916f25f7f7e6ed47d573644f7c45
narfdotpl/debug
debug.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"cumulus\",\n version=\"0.1.0\",\n description=\"Girder API endpoints for interacting with cloud providers.\",\n author=\"Chris Haris\",\n author_email=\"<EMAIL>\"...
python
edit
1
0
apache-2.0
f0a185e443490396af254627ead039cf627db556
cjh1/cumulus,Kitware/cumulus,cjh1/cumulus,Kitware/cumulus
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__author__ = \"Shyue Ping Ong, Anubhav Jain, Michael Kocher, \" + \\\n \"Geoffroy Hautier, William Davidson Richard, Dan Gunter, \" + \\\n \"Shreyas Cholia, Vincent L Chevrier, Rickard Armiento\"\n__date__ = \"Jul 27...
python
edit
13
0
mit
b16b701f6ad80d0df27ab6ea1d9f115a6e2b9106
blondegeek/pymatgen,tallakahath/pymatgen,dongsenfo/pymatgen,mbkumar/pymatgen,vorwerkc/pymatgen,mbkumar/pymatgen,johnson1228/pymatgen,setten/pymatgen,johnson1228/pymatgen,tschaume/pymatgen,davidwaroquiers/pymatgen,fraricci/pymatgen,dongsenfo/pymatgen,blondegeek/pymatgen,aykol/pymatgen,richardtran415/pymatgen,dongsenfo/p...
pymatgen/__init__.py
rejected_lint
Too many lint violations: 13
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\nfrom distutils.command.sdist import sdist as _sdist\n\nclass sdist(_sdist):\n def run(self):\n try:\n import sys\n sys.path.append(\"contrib\")\n ...
python
edit
1
2
mit
06fd1674239de71ccbe52398516642d9b19b743b
vitorbaptista/pyppd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport codecs\nimport os.path as path\n\n# buildout build system \n# http://www.buildout.org/en/latest/docs/tutorial.html\n\n# setup() documentation: \n# http://python-packaging-user-guide.readth...
python
edit
1
0
apache-2.0
1a22f2b7413ecf3b9cc656c51a7856fc99431a4a
sonata-nfv/son-cli,edmaas/son-cli,dang03/son-cli,lconceicao/son-cli,stevenvanrossem/son-cli,stevenvanrossem/son-cli,lconceicao/son-cli,sonata-nfv/son-cli,sonata-nfv/son-cli,lconceicao/son-cli,edmaas/son-cli,dang03/son-cli,lconceicao/son-cli,stevenvanrossem/son-cli,edmaas/son-cli,stevenvanrossem/son-cli,dang03/son-cli,l...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ._ccomp import label as _label\n\ndef label(input, neighbors=8, background=None, return_num=False,\n connectivity=None):\n return _label(input, neighbors, background, return_num, connectivity)\n\nlabel.__doc__ = _label.__doc_...
python
edit
1
1
bsd-3-clause
cb2745cfdfa7e90de4a7201300d5d22ae8015e0e
bennlich/scikit-image,ClinicalGraphics/scikit-image,newville/scikit-image,chriscrosscutler/scikit-image,warmspringwinds/scikit-image,blink1073/scikit-image,paalge/scikit-image,michaelaye/scikit-image,vighneshbirodkar/scikit-image,Midafi/scikit-image,Hiyorimi/scikit-image,Britefury/scikit-image,vighneshbirodkar/scikit-i...
skimage/measure/_label.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom nose.tools import *\n\nfrom lctools import config\n\nclass TestConfig(object):\n test_filename = \"bebebe\"\n\n def setup(self):\n fd = open(self.test_filename, 'w')\n fd.write(\"[default]\\n\")\n ...
python
edit
5
1
apache-2.0
37b0387f9425c25a53c981dce3911e98c7ca14dd
novel/lc-tools,novel/lc-tools
test/test_config.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import serializers\n\nfrom obcy.models import Joke\n\n\nclass ObcyJokeSerializer(serializers.ModelSerializer):\n added = serializers.DateTimeField(source='added', format='%Y-%m-%dT%XZ')\n\n class Meta:\n mod...
python
edit
1
0
mit
904bf6ad25fb719c0cb90d3a4b77227fc56ed92b
jchmura/suchary-django,jchmura/suchary-django,jchmura/suchary-django
api/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\n\nclass Credential(object):\n def __init__(self, name, login, password, comments):\n self.name = name\n self.login = login\n self.password = password\n self.comments = comments\n\n def save(sel...
python
edit
1
1
mit
1175a7da5583f58915cfe7991ba250cb19db39f7
marcwebbie/passpie,scorphus/passpie,marcwebbie/pysswords,eiginn/passpie,marcwebbie/passpie,scorphus/passpie,eiginn/passpie
pysswords/credential.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nSpecific checks.\n\"\"\"\nfrom discord.ext.commands import CheckFailure, check\n\n\ndef is_owner(ctx):\n if ctx.bot.owner_id not in [\"214796473689178133\", ctx.bot.owner_id]:\n raise CheckFailure(message=\"You are not the...
python
edit
1
5
mit
efe588cbedc1100f2893c53503ddd30ac011cf06
MJB47/Jokusoramame,MJB47/Jokusoramame,MJB47/Jokusoramame
joku/checks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Copyright (C) 2014:\n# Gabes Jean, <EMAIL>\n\nimport threading\nfrom opsbro_test import *\n\nfrom opsbro.gossip import gossiper\n\n\nclass TestGossip(OpsBroTest):\n def setUp(self):\n gossiper.init({}, ...
python
edit
4
1
mit
62d275fbb27bf40a5b94e5e708dd9669a6d7270a
naparuba/kunai,naparuba/kunai,naparuba/kunai,naparuba/opsbro,naparuba/opsbro,naparuba/kunai,naparuba/opsbro,naparuba/opsbro,naparuba/kunai,naparuba/kunai
test/test_gossip.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Author: Óscar Nájera\n# License: 3-clause BSD\n\"\"\"\nTesting the rst files generator\n\"\"\"\nfrom __future__ import division, absolute_import, print_function\nimport sphinxgallery.backreferences as sg\nfrom nos...
python
edit
1
1
bsd-3-clause
393366860dcf0e4af7621839c61de9008f8ea900
sphinx-gallery/sphinx-gallery,Titan-C/sphinx-gallery,Titan-C/sphinx-gallery,Eric89GXL/sphinx-gallery,lesteve/sphinx-gallery,lesteve/sphinx-gallery,Eric89GXL/sphinx-gallery,sphinx-gallery/sphinx-gallery
sphinxgallery/tests/test_backreferences.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nimport ofxparse\n\nsetup(name='ofxparse',\n version=ofxparse.__version__,\n description=\"Tools for working with the OFX (Open Financial Exchange) file format\",\n long_descripti...
python
edit
1
0
mit
edbbcdda383c8f15c5a3c496490f2a85125d844d
udibr/ofxparse,rdsteed/ofxparse,jseutter/ofxparse,jaraco/ofxparse,hiromu2000/ofxparse,egh/ofxparse
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom .base import RedirectView\nfrom pyvac.models import VacationType\n\n\nclass Index(RedirectView):\n redirect_route = u'login'\n\n\nclass Home(RedirectView):\n\n redirect_route = u'login'\n\n def render(...
python
edit
1
4
bsd-3-clause
e56a8b5cf4e298d69bc321a4ce323e2f881900d0
doyousoft/pyvac,sayoun/pyvac,doyousoft/pyvac,doyousoft/pyvac,sayoun/pyvac,sayoun/pyvac
pyvac/views/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nImport the required subclasses of :class:`~qrcode.image.base.BaseImage` from the qrcode library with a fallback to SVG\nformat when the Pillow library is not available.\n\"\"\"\nimport logging\nfrom qrcode.image.svg import SvgPathIm...
python
edit
1
4
bsd-3-clause
5deb33c244242d36a16a8c08ff816368b345a8f3
dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code
qr_code/qrcode/image.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\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\n\nsetup(\n name='pneumatic',\n version='0.1.8',\n description='A bulk upload library for Docume...
python
edit
1
1
mit
adcbb33f7f0fed92bbbe33ef37b67db8841953d1
anthonydb/pneumatic
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path as path\nfrom setuptools import setup\n\n\ndef get_readme(filename):\n if not path.exists(filename):\n return \"\"\n\n with open(path.join(path.dirname(__file__), filename)) as readme:\n content = readme.r...
python
edit
1
2
mit
ca62e5dae3b07bb0534fbb2df9072c744bff6e4b
daGrevis/mdx_linkify
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
4737bbc134aaa3b4512ef89e7824a36495e68291
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# -*- 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
d0e4c6300c8328f4f72b4a2b04061e94d7c7dea8
Doist/todoist-python
setup.py
rejected_duplicate
Near-duplicate of sample 494
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nfrom mutant import __version__\n\ngithub_url = 'https://github.com/charettes/django-mutant'\nlong_desc = open('README.md').read()\n\nsetup(\n name='django-mutant',\n ...
python
edit
1
0
mit
c6e7f85907c59de284938d30342c7ca48674d4c7
charettes/django-mutant
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys\n\n\nif sys.version_info.major != 3:\n raise RuntimeError(\"PhenoGraph requires Python 3\")\n\nsetup(\n name=\"PhenoGraph\",\n description=\"Graph-based clustering for high-di...
python
edit
1
0
mit
9596d7c5cd30a41961ac49471c3501a29b619d46
jacoblevine/PhenoGraph
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n\nsetup(name='Keras',\n version='0.1.2',\n description='Theano-based Deep Learning library',\n author='Francois Chollet',\n author_email='<EMAIL>',\n ...
python
edit
1
0
mit
a582b184c9918cdf556c9892b70481deccded61d
xiaoda99/keras,jimgoo/keras,dxj19831029/keras,eulerreich/keras,iScienceLuvr/keras,ledbetdr/keras,kemaswill/keras,cvfish/keras,why11002526/keras,gamer13/keras,DeepGnosis/keras,harshhemani/keras,saurav111/keras,abayowbo/keras,Aureliu/keras,keras-team/keras,kuza55/keras,relh/keras,nehz/keras,keskarnitish/keras,dolaameng/k...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\n:Author Patrik Valkovic\n:Created 04.08.2017 19:00\n:Licence GNUv3\nPart of grammpy\n\n\"\"\"\n\nfrom distutils.core import setup\n\n\nsetup(\n name='grammpy',\n version='1.1.1',\n packages=['grammpy'...
python
edit
1
0
mit
a8a56f20dd76f61ec1ea6e99037490922d5cbcb1
PatrikValkovic/grammpy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom setuptools import setup, find_packages\nfrom thotkeeper import __version__ as tk_version\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n name='thotkeeper',\n versi...
python
edit
1
0
bsd-2-clause
fd5b1bc59bc6b6640727fc88ade075be9b8355c4
cmpilato/thotkeeper
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 import setup\nexcept ImportError:\n from distutils.core import setup\n\nVERSION = '0.2'\n\nsetup(name='tornado-httpclient-session',\n version=VERSION,\n packages=['httpclient_s...
python
edit
1
0
mit
c984957d006cacfe2e741d5f57fcb8257f4d846b
Norpadon/tornado-httpclient-session
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Fix compile error on OS X 10.9" }, { "role": "assistant", "content": "from distutils.core import setup, Extension\nimport os\n\nos.environ['CFLAGS'] = \"-Qunused-arguments\"\nsetup(name = \"Indexer\", version = \"0.1\", ext_modul...
python
new_file
1
0
apache-2.0
ab63395c1d8c9ec6bce13811965c8335463b0b78
pombredanne/python-rabin-fingerprint,pombredanne/python-rabin-fingerprint,cschwede/python-rabin-fingerprint,cschwede/python-rabin-fingerprint
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='pyW215',\n version='0.4',\n description='Interface for d-link W215 Smart Plugs.',\n url='https://github.com/linuxchristian/pyW215',\n author='Christian ...
python
edit
1
0
mit
3e717a2a77dcf18f9a281e68462b5809010e1835
LinuxChristian/pyW215
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup, Extension\nfrom glob import glob\n\nmodule1 = Extension('hashpumpy',\n sources = glob('*.cpp'),\n libraries = ['crypto'])\n\nsetup (name = 'hashpumpy',\n version ...
python
edit
1
0
mit
006929cb8032f038522645a687f7385dcaa66b78
bwall/HashPump,bwall/HashPump,christophetd/HashPump,christophetd/HashPump
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept:\n from distutils.core import setup\nfrom distutils.command import install\n\nimport forms\n\nfor scheme in install.INSTALL_SCHEMES.values():\n scheme['data'] = scheme['purelib']\n\nsetup...
python
edit
1
0
mit
126b9d4e49bfdba7305d727f13eb2f97b0051069
emgee/formal,emgee/formal,emgee/formal
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nimage analysis group tools\n\"\"\"\nfrom setuptools import setup\n\n\nsetup(\n name='image-analysis',\n version='0.0.1',\n url='https://github.com/CoDaS-Lab/image-analysis',\n license='BSD',\n ...
python
edit
1
0
apache-2.0
352461ab268d6f6bba691f837880ef0d3def4f43
CoDaS-Lab/image_analysis
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nform setuptools import setup, find_packages\n\nsetup(name='todo-man',\n version='0.0.1',\n author='Rylan Santinon',\n license='Apache',\n packages=['todo-man'])\n\n```\n\nApply this change: Fix typo in import statement" ...
python
edit
3
0
apache-2.0
3f869e81a8c5e8f62146bc09b0c316fbc1327799
rylans/todo-man
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='crasync',\n packages=['crasync'], # this must be the same as the name above\n version='v1.0.0a',\n description='An async wrapper for cr-api.com',\n author='verixx',\n aut...
python
edit
1
0
mit
784e1257e7784d15f84cb81c5fff887796ebd54f
grokkers/cr-async
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\nimport maxmindupdater\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read().decode('utf8')\n\nsetup(\n name=maxmindupdater.__name__,\n version=maxmindupdater._...
python
edit
1
0
mit
a982d30b0b3f97858209b51d9c8525086daf37f8
yola/maxmind-updater,yola/maxmind-updater
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='Lookupy',\n version='0.1',\n author='Vineet Naik',\n author_email='<EMAIL>',\n packages=['lookupy',],\n license='MIT License',\n description='Django QuerySet inspired i...
python
edit
1
0
mit
ce606a9dfce7506da0072832cb5ea7c96163d582
naiquevin/lookupy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(name='pyramid_es',\n version='0.3.2.dev',\n description='Elasticsearch integration for Pyramid.',\n long_description=open('README.rst').read(),\n classifiers=[\n ...
python
edit
1
0
mit
1f2c5b6e75224116b8c3a327aa739eed976ded11
storborg/pyramid_es
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(name='confab',\n version='0.2',\n description='Configuration management with Fabric and Jinja2.',\n author='Location Labs',\n author_email='<E...
python
edit
1
0
apache-2.0
572d990af00e4113b66e7fe06083032f70710874
locationlabs/confab
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nfrom setuptools import setup\n\nimport startup\n\n\nsubprocess.check_call('./gen_manifest.sh')\n\n\nsetup(\n name = 'startup',\n version = startup.__version__,\n description = 'A dependency graph resolver for pro...
python
edit
1
0
mit
b193cd6ffdb3343f8b5619962e275ffa63c55ed5
clchiou/startup,clchiou/startup
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='flickruper',\n version='0.1.0',\n author='Igor Katson',\n author_email='<EMAIL>',\n py_modules=['flickruper'],\n scripts=['bin/flickruper'],\n entry_points={\n '...
python
edit
1
0
mit
85697d8a1d79a599071fea4cc41216f3df3f3586
ikatson/flickruper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), fname), 'r') as infile:\n content = infile.read()\n return content\n\nset...
python
edit
1
1
apache-2.0
2cdb59c417d2a099744f629557307331bba8d706
Bachmann1234/marshmallow-polyfield
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport os.path\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name=\"eventstreamd\",\n version=\"0.6.1...
python
edit
1
1
mit
1c17410550c926960eab863c2c2e8dca63e92364
srittau/eventstreamd,srittau/eventstreamd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='armstrong.base',\n version='0.1.2',\n description='Base functionality that needs to be shared widely',\n author='Texas Tribune',\n author_email='<EMAIL>',\n url='http://github...
python
edit
1
0
bsd-3-clause
2f593f1581eaa4ec30c1a73a71bc8e0a52284441
texastribune/armstrong.base
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:\n README = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.a...
python
edit
1
0
mit
3299b0057ab79f81103128ec15f894f6e4c039a4
ministryofjustice/money-to-prisoners-transaction-uploader
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 = \"fastly\",\n version = \"0.0.2,\n author = \"Fastly?\",\n aut...
python
edit
1
1
mit
de11e989fd18c2565a99e8299f76eebe0fff8dc4
fastly/fastly-py,fastly/fastly-py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='permission',\n version='0.1.2',\n author='Zhipeng Liu',\n author_email='<EMAIL>',\n url='https://github.com/hustlzp/permission',\n packages=['permission'],\n license='L...
python
edit
1
0
mit
46f0aa2f1dd219fa733b4e1e522c382d695ad8d6
hustlzp/permission
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nBASE_URL = 'https://api.box.com/2.0'\n\nFOLDERS_URL = '{}/folders/{{}}/items'.format(BASE_URL)\n\nMAX_FOLDERS = 1000\n\n\nclass Client(object):\n def __init__(self, provider_logic):\n \"\"\"\n Box client constructor\n ...
python
edit
1
5
apache-2.0
0451c608525ee81e27c8f8ec78d31e50f0bed9d2
rca/box
box/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nimport versioneer\n\n\ndef read_requirements():\n import os\n\n\n path = os.path.dirname(os.path.abspath(__file__))\n requirements_file = os.path.join(path, 'requirements.txt')\n tr...
python
edit
1
3
mit
798808550be49e941d72044622ae920171611283
csdms/coupling,csdms/coupling,csdms/pymt
setup.py
accepted
null
true