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 __future__ import unicode_literals\n\nfrom django.db import models\nfrom django.conf import settings\n\nimport django.db.models.signals\nimport django.dispatch.dispatcher\n\nimport web.core\n\nimport re\nimport os\nimport uuid\n\nclass...
python
edit
3
1
bsd-3-clause
20a938892492defb1063a63b12e1aeb5b47c5508
ambientsound/rsync,ambientsound/rsync,ambientsound/rsync,ambientsound/rsync
web/core/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .base import *\n\nDATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.sqlite3',\n #'NAME': 'db.sqlite3',\n }\n}\n\nINSTALLED_APPS += ('django_jenkins',)\n\nPROJECT_APPS = {\n 'cardbox',\n}\n```\n\nAp...
python
edit
3
0
mit
bde51dc314bd920dafd5f72fbc4ccae099f5be59
DummyDivision/Tsune,DummyDivision/Tsune,DummyDivision/Tsune
tsune/settings/ci.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\n\nimport importlib\n\n# Merge two lots of mesobox-compatible context additions\ndef merge_context_additions(additions):\n context = {}\n boxes = {}\n for c in additions:\n try:\n ...
python
edit
1
7
mit
5553dd2aba90749fdedda55067c2010cf1522f54
grundleborg/mesosphere
mesobox/boxes.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom gmusicapi import Mobileclient\n\n# Try to print out some valid device IDs.\nif __name__ == '__main__':\n api = Mobileclient()\n email = input('Enter your email: ')\n password = input('Enter your password: ')\n\n if not api....
python
edit
1
0
mit
2492803223060ecf92f8c60a2aa07db8f450e7b1
christopher-dG/pmcli,christopher-dG/pmcli
get_dev_id.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logbook\nimport sh\n\nfrom piper.logging import SEPARATOR\n\n\nclass Process:\n \"\"\"\n Helper class for running processes\n\n \"\"\"\n\n def __init__(self, config, cmd, parent_key):\n self.config = config\n ...
python
edit
1
4
mit
68211b703e15309b1a384f46d7bd70a8657decde
thiderman/piper
piper/process.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Core XML support for Python.\n\nThis package contains three sub-packages:\n\ndom -- The W3C Document Object Model. This supports DOM Level 1 +\n Namespaces.\n\nparser -- Python wrappers for XML parsers (currently only supports ...
python
edit
1
0
mit
657d2d7e5aaefd2ee3b543ab9eb03f4a91d26d37
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/xml/__init__.py
rejected_duplicate
Near-duplicate of sample 2605
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport boto3\nimport click\n\n\n@click.group()\ndef cli():\n \"\"\"EMR CLI group\"\"\"\n pass\n\n\n@cli.command(help='List EMR clusters')\n@click.argument('name', default='*')\ndef ls(name):\n \"\"\"List EM...
python
edit
1
2
mit
7642359c1ecf2b5dc38f70924e7c9885739a79c8
achiku/jungle
jungle/emr.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core import serializers\nfrom django.http.response import HttpResponse\n\nfrom what_meta.models import WhatTorrentGroup\n\n\ndef search_torrent_groups(request, query):\n return HttpResponse(\n serializers.serialize('js...
python
edit
1
1
mit
d7d9fcb260b85a3f785852239acaea6ccda1725a
grandmasterchef/WhatManager2,davols/WhatManager2,MADindustries/WhatManager2,MADindustries/WhatManager2,davols/WhatManager2,karamanolev/WhatManager2,MADindustries/WhatManager2,davols/WhatManager2,grandmasterchef/WhatManager2,grandmasterchef/WhatManager2,grandmasterchef/WhatManager2,karamanolev/WhatManager2,karamanolev/W...
what_meta/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass PreconditionError (TypeError):\n pass\n\n\ndef preconditions(*precs):\n pass # stub.\n\n```\n\nApply this change: Implement a stub decorator factory." }, { "role": "assistant", "content": "class PreconditionError (Ty...
python
edit
1
1
mit
61f4d269e745a24209e1719049f25dab3e3171a0
nejucomo/preconditions
preconditions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponsePermanentRedirect\n\nfrom django.conf.urls import patterns, include, url\n\n\nurlpatterns = patterns('',\n # Redirect the base URL to the dashboard.\n u...
python
edit
null
null
mit
6661c7afe060e21b29483cb01d30473211cef830
dannybrowne86/django-timepiece,caktus/django-timepiece,josesanch/django-timepiece,caktus/django-timepiece,dannybrowne86/django-timepiece,gaga3966/django-timepiece,arbitrahj/django-timepiece,arbitrahj/django-timepiece,gaga3966/django-timepiece,josesanch/django-timepiece,arbitrahj/django-timepiece,BocuStudio/django-timep...
timepiece/urls.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Sep 23 15:23:58 2015\n\n@author: jensv\n\"\"\"\n\nimport skin_core_scanner_simple as scss\nreload(scss)\nimport equil_solver as es\nreload(es)\nimport newcomb_simple as new\nreload(new)\n\n(la...
python
edit
4
0
mit
5e1ffdab41c322a9bcd466b34aabaa37ef08a6e2
jensv/fluxtubestability,jensv/fluxtubestability
profiling_run.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 unittest\nimport os.path\nfrom macropolo import MacroTestCase, JSONTestCaseLoader\nfrom macropolo.environments import SheerEnvironment\n\nclass CFGovTestCase(SheerEnvironment, MacroTestCase):\n \"\"\"\n ...
python
edit
1
1
cc0-1.0
653e40e15bfbf5c24c990ecdf90c0e6deb6d5636
kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh,kave/cfgov-refresh
test/macro_tests/test_macros.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\n\"\"\"Pandoc filter that replaces labels of format {#?:???}, where ? is a\nsingle lower case character defining the type and ??? is an alphanumeric\nlabel, with numbers. Different types are counted separately.\n\n\"...
python
edit
1
5
mit
fd516d3b80e63c6883d5eec47a8bf9ff6042509b
scotthartley/pandoc-figref
pandoc-figref.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\nfrom authentication_app.models import Account\n\n'''\n @name : Promotion\n @desc : The promotion model.\n'''\nclass Promotion(models.Model):\n account = models.ForeignKey(Account)\n name = models....
python
edit
1
1
mit
9168abf53be960d1630ec6ecb01c6d8f55d21739
mvpgomes/shopit-app,mvpgomes/shopit-app,mvpgomes/shopit-app,mvpgomes/shopit-app
promotions_app/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport subprocess\n\nfrom ..platform_name import platform_name\n\nif platform_name() == 'windows':\n from .windows import *\nelse:\n from .posix import *\n\n\nclass shell_list(list):\n \"\"\"A special subclass of list us...
python
edit
3
4
bsd-3-clause
845b9b9be9c5a7f0f4e214215854d2d3c05a11f3
jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000,jimporter/bfg9000
bfg9000/shell/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2009 Simplistix Ltd\n#\n# See license.txt for more details.\n\nimport unittest\n\nfrom glob import glob\nfrom os.path import dirname,join,pardir\nfrom doctest import DocFileSuite,REPORT_NDIFF,ELLIPSIS\n\noptions = REPORT_NDI...
python
edit
1
1
mit
daaf58639148b220d6dcce13e054374a68f9b01a
nebulans/testfixtures,Simplistix/testfixtures
testfixtures/tests/test_docs.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\n\nfrom pages.models import *\nfrom django.test.client import Client\n\nclass PagesTestCase(TestCase):\n fixtures = ['tests.json']\n\n def test_01_add_page(self):\n \"\"\"\n Test that the...
python
edit
5
1
bsd-3-clause
b8c4d7aabcd07fcba443558a02cdcb38d32009df
pombredanne/django-page-cms-1,remik/django-page-cms,pombredanne/django-page-cms-1,oliciv/django-page-cms,oliciv/django-page-cms,pombredanne/django-page-cms-1,remik/django-page-cms,oliciv/django-page-cms,batiste/django-page-cms,akaihola/django-page-cms,remik/django-page-cms,batiste/django-page-cms,batiste/django-page-cm...
pages/tests.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Copyright (c) 2012-2013 Raphaël Barrois\n\nfrom django.db import models\nfrom semantic_version import django_fields as semver_fields\n\n\nclass VersionModel(models.Model):\n version = semver_fields.VersionField...
python
edit
1
0
bsd-2-clause
a8726f9acf3d2a1b0287046d0ffb5236892c6535
rbarrois/python-semanticversion,marcelometal/python-semanticversion,mhrivnak/python-semanticversion,pombredanne/python-semanticversion
tests/django_test_app/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*- #\nfrom __future__ import unicode_literals\n\nAUTHOR = u'Leonardo Zhou'\nSITENAME = u'\\u4e91\\u7ffc\\u56fe\\u5357'\nSITEURL = ''\n\nTIMEZONE = 'Asia/Shanghai'\n\nDEFAULT_LANG = u'zh'\n\n# Feed...
python
edit
1
0
cc0-1.0
89c906fc0ff6490de07543292c6e1e738652e2ef
glasslion/zha,glasslion/zha-beta,glasslion/zha,glasslion/zha-beta,glasslion/zha-beta,glasslion/zha
pelicanconf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport unittest\nimport bpython.keys as keys\n\nclass TestKeys(unittest.TestCase):\n def test_keymap_map(self):\n \"\"\"Verify KeyMap.map being a dictionary with the correct length.\"\"\"\n self.asser...
python
edit
1
1
mit
0ac40dd99823ccff795361c9e0f49409d9d4d95e
myint-archive/bpython,hirochachacha/apython,thomasballinger/old-bpython-with-hy-support
bpython/test/test_keys.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.importlib import import_module\n\ndef get_backend():\n \"\"\"\n Return an instance of the registration backend for use on thi...
python
edit
4
3
bsd-3-clause
da0ba836636f6ce78d8606a5932de34a8e1160a1
Geffersonvivan/django-registration,tanjunyen/django-registration,rulz/django-registration,allo-/django-registration,furious-luke/django-registration,kinsights/django-registration,yorkedork/django-registration,mick-t/django-registration,torchingloom/django-registration,alawnchen/django-registration,furious-luke/django-r...
registration/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Script to generate an HTML page from a KAF file that shows the text contents\nincluding line numbers.\n\"\"\"\nfrom bs4 import BeautifulSoup\n\n\nwith open('data/minnenijd.kaf') as f:\n xml_doc = BeautifulSoup(f)\n\noutput_html = [...
python
edit
4
0
apache-2.0
aedd144895d6ff6da0766d935cd0221985fccca8
NLeSC/embodied-emotions-scripts,NLeSC/embodied-emotions-scripts
kaf2html.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, sys\nimport unittest\n\n\nclass SqliteTest(unittest.TestCase):\n TESTING_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 'testing_dir'))\n\n def test_command(self):\n command = 'diary generate sqlite %s...
python
edit
3
1
mit
6eacc0a0736edc410c011003986831b5f58da03e
GreenVars/diary
tests/command_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, unicode_literals\n\nfrom unittest import skipUnless\n\nfrom prometheus_client import Counter\nfrom prometheus_client import CollectorRegistry, generate_latest\n\ntry:\n from prometheus_client.twist...
python
edit
1
1
apache-2.0
abef969505fc5cb30367a4c16c7daf1205c1c2aa
thomaso-mirodin/client_python,prometheus/client_python
tests/test_twisted.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom flask import Flask\nfrom flask.ext.sqlalchemy import SQLAlchemy\n\n__version__ = '0.1'\n\nDB_URI = 'postgresql://@/updatechecker'\n\nAPP = Flask(__name__)\nAPP.config['SQLALCHEMY_DATABASE_URI'] = DB_URI\nAPP.conf...
python
edit
2
1
bsd-2-clause
55a6d1204543b9fea3b955f39722779d153c3752
bboe/update_checker_app
update_checker_app/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom leonardo.module.nav.mixins import NavigationWidgetMixin\nfrom leonardo.module.nav.models import NavigationWidget\nfrom leonardo.module.web.models import ListWidget, Widget\nfrom leonardo.module.web.widgets.mixins import (AuthContentP...
python
edit
1
0
bsd-3-clause
1c5cd470002b256677f9dc0a7c25c141880cd916
django-leonardo/django-leonardo,django-leonardo/django-leonardo,django-leonardo/django-leonardo,django-leonardo/django-leonardo
leonardo/widgets/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np\nfrom nose2 import tools\nimport utils\n\n\n@tools.params(((1000, 25), 10, 0),\n ((1000, 25), 10, 1),\n ((1000, 25), 77, 0)\n )\ndef test_online_statistics(shape, batch_size, axis):\...
python
edit
1
6
mit
f2ecbe9020746a00c9f68918697a45b7f68e23fa
alexlee-gk/visual_dynamics
utils/tests/test_math_utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#------------------------------------------------------------------------------\n# Copyright (c) 2010, Enthought Inc\n# All rights reserved.\n#\n# This software is provided without warranty under the terms of the BSD license.\n\n#\n# Author...
python
edit
3
1
bsd-3-clause
ef91f18f7fce637643ad58351b96e13c37eb8925
burnpanck/traits,burnpanck/traits
traits/qt/__init__.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 23.06.2017 16:39\n:Licence GNUv3\nPart of grammpy\n\n\"\"\"\n\nfrom unittest import main, TestCase\nfrom grammpy import Rule\n\n\nclass FromSymbolComputeTest(TestCase):\n p...
python
edit
1
1
mit
9b020b87cede9dc2014c86946b3fa9bfedbd0577
PatrikValkovic/grammpy
tests/rules_tests/FromSymbolComputeTest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport numpy\nfrom numpy.distutils.core import Extension\nimport railgun\nfrom railgun import __author__, __version__, __license__\n\nsetup(\n name='railgun',\n version=__version__,\n packages=['railgu...
python
edit
1
0
mit
bb1722d4ac346823551c65861a8ac58f77dca2d0
tkf/railgun,tkf/railgun
setup.py
rejected_duplicate
Near-duplicate of sample 20267
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Update the coverity branch from the master branch.\n# It is not done automatically because Coverity Scan limits\n# the number of submissions per day.\n\nfrom __future__ import print_function\nimport shutil, tempfile...
python
edit
1
1
bsd-2-clause
3814a07c44c7d97a2ca4aa0f2741a913149d4acd
lightslife/cppformat,alabuzhev/fmt,mojoBrendan/fmt,dean0x7d/cppformat,Jopie64/cppformat,alabuzhev/fmt,cppformat/cppformat,alabuzhev/fmt,mojoBrendan/fmt,cppformat/cppformat,lightslife/cppformat,cppformat/cppformat,dean0x7d/cppformat,lightslife/cppformat,dean0x7d/cppformat,mojoBrendan/fmt,Jopie64/cppformat,Jopie64/cppfor...
support/update-converity-branch.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, request, session\nfrom flask.ext.babel import Babel\n\nfrom welt2000.__about__ import (\n __title__, __summary__, __uri__, __version__, __author__, __email__,\n __license__,\n) # noqa\n\n\napp = Flask(__name_...
python
edit
9
3
mit
ffff57041cf8d2a13a941a8f0e39d92fe082f28a
Turbo87/welt2000,Turbo87/welt2000
welt2000/__init__.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nsetup(name='hermes-gui',\n version='0.1',\n packages=[\n 'acme',\n 'acme.acmelab',\n 'acme.core',\n 'acme.core.views',\n ],\n package_data={\n ...
python
edit
1
0
bsd-3-clause
7660b601d068652487cc97a704ae54acc33c6889
certik/hermes-gui
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(\n name='mailcap-fix',\n version='0.1.1',\n description='A patched mailcap module that conforms to RFC 1524',\n long_description=open('README.rst', encoding='utf-8').read(),\n url='https:...
python
edit
1
0
unlicense
65e72a7688d6382bd07896cc8c86914277fca422
michael-lazar/mailcap_fix
setup.py
rejected_duplicate
Near-duplicate of sample 17025
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(name='pyramid_uniform',\n version='0.2',\n description='Form handling for Pyramid.',\n long_description='',\n classifiers=[\n 'Development Status :: 2 - Pre-Alpha',\n ...
python
edit
1
0
mit
8e5e2dcd6e2743667cbcfb3284b6b01aa6606220
storborg/pyramid_uniform
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\n\nsetup(\n name='todoman',\n description='A simple CalDav-based todo manager.',\n author='Hugo Osvaldo Barrera',\n author_email='<EMAIL>',\n url='https://github.com/pimu...
python
edit
1
0
isc
01d3027e568bcd191e7e25337c6597eb75b82789
Sakshisaraswat/todoman,AnubhaAgrawal/todoman,hobarrera/todoman,pimutils/todoman,asalminen/todoman,rimshaakhan/todoman
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n version='0.43',\n name=\"pydvkbiology\",\n packages=find_packages(),\n description='Python scripts used in my biology/bioinformatics research',\n author='DV Klopfenstein...
python
edit
1
0
mit
425de8b01ccaef3aa7b6ac988158609fa237e96b
dvklopfenstein/biocode
setup.py
rejected_duplicate
Near-duplicate of sample 17897
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\n__version__ = \"0.0.1\"\n\ndescription = \"A buildout recipe to create .deb packages\"\n\nsetup(\n name='vdt.recipe.debian',\n version=__version__,\n description=description,\n lo...
python
edit
1
0
bsd-3-clause
37f137003d1b6e9f7361db38e0de109e0327fc42
devopsconsulting/vdt.recipe.version
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 = \"countries\",\n version = \"0.1.1-1\",\n description = 'Provides models for a \"complete\" list of countries',\n author = 'David Danier',\n author_email = '<EMAI...
python
edit
3
0
bsd-3-clause
68e6cad67a7b18c28377899bca1716f5e64d3d6f
team23/django_countries
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)\nimport io\n\nimport setuptools\n\nwith io.open('README.txt', encoding='utf-8') as readme:\n\tlong_description = readme.read()\nwith io.open(...
python
edit
1
0
mit
247a42a9839f03f01fb3228505798dffc0659ac9
jaraco/jaraco.functools
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom setuptools import setup\nimport json\nimport version_handling\n\nversion = \"v%s.%s.%s\" % version_handling.get_version()\n\nlong_description=\"\"\"TravisCI results ...
python
edit
3
0
mit
8e194b9598f71a5005601d64b82c563827f14351
nanonyme/simplecpreprocessor
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/evn python2\n\nfrom setuptools import setup, find_packages\nsetup(name='pprof',\n version='0.9.6',\n packages=find_packages(),\n install_requires=[\"SQLAlchemy==1.0.4\", \"cloud==2.8.5\", \"plumbum==1.4.2\",\n ...
python
edit
1
0
mit
5de287f0b4dbe19ccb46048a4c1b4f792835ec42
simbuerg/benchbuild,simbuerg/benchbuild
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup\n\nsetup_requires = ['setuptools_scm']\nif sys.argv[-1] in ('sdist', 'bdist_wheel'):\n setup_requires.append('setuptools-markdown')\n\nsetup(\n name='tldr',\n author='Felix Yan',\n author...
python
edit
1
0
mit
2683d93184b8f7b82ce0651c900f3c8b830af33b
tldr-pages/tldr-python-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, sys\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\ndef main():\n setup(\n name='stcrestclient',\n version= '1.8.3',\n author='Andrew Gillis',\n ...
python
edit
4
1
mit
08563ac150e6264ca3f57d720bc204998863fbb1
Spirent/py-stcrestclient
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"A custom GeoKey extension for WeGovNow functionality.\"\"\"\n\nfrom os.path import join\nfrom setuptools import setup, find_packages\n\n\nname = 'geokey-wegovnow'\nversion = __import__(name.replace('-', '_'))....
python
edit
1
0
mit
0d3553c38117d0f410d38a5f34510e8a87db10bd
ExCiteS/geokey-wegovnow,ExCiteS/geokey-wegovnow
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport codecs\nfrom setuptools import setup\n\n\ndef read(fname):\n file_path = os.path.join(os.path.dirname(__file__), fname)\n return codecs.open(file_path, encoding='utf-...
python
edit
1
1
mit
8026b40fe57f699b3c49bbc95753ab1c54cb35e8
dbader/pytest-mypy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport os\n\nfrom setuptools import setup\n\n\nsrc_dir = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(src_dir, 'README.txt')) as f:\n long_description = f.read()\n\nsetup(\n name='PyENS...
python
edit
1
0
apache-2.0
07806b972dd1bc308e1c7b032b78c7dd8db8810b
yasserglez/pyenscript
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\n\nversion = __import__('cms_themes').__version__\n\ninstall_requires = [\n 'setuptools',\n 'django',\n 'django-cms',\n]\n\nsetup(\n name = \"django-cms-themes\",\n versi...
python
edit
3
0
bsd-3-clause
95af1be2d31685eca899549fe9656b137cedcf96
MegaMark16/django-cms-themes
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\"\"\"\n:mod:`setup`\n====================\n\n:Synopsis: Create egg.\n:Author: DataONE (Pippin)\n\"\"\"\n\nfrom setuptools import setup, find_packages\nimport d1_client_cli\n\nsetup(\n name='...
python
edit
null
null
apache-2.0
0975c706c503d403810ddeba24ea14b5c9bdd133
DataONEorg/d1_python,DataONEorg/d1_python,DataONEorg/d1_python,DataONEorg/d1_python
d1_client_cli/src/setup.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nimport subprocess\n\nfrom setuptools import setup\n\ntry:\n pandoc = subprocess.Popen(['pandoc', 'README.md', '--to', 'rst'],\n stdout=subprocess.PIPE)\n\n readme = ...
python
edit
1
0
bsd-2-clause
684bf371bca1a7443e0f77a0f22b2f1ab5d5b4b4
michhar/notedown,aaren/notedown,michhar/notedown,lgautier/notedown,lgautier/notedown,aaren/notedown
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nPackage configuration file\n\"\"\"\nfrom setuptools import setup\n\nsetup(\n name='pylint-mccabe',\n version='0.1.2',\n author='Infoxchange Australia dev team',\n author_email='<EMAIL>',\n py_modules=['pylint_mccabe']...
python
edit
1
0
mit
495a117cd122ce0d22b7c603eaf2bbdef3df0df9
infoxchange/pylint-mccabe
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n \nsetup(\n name='twitter-text-py',\n version='1.0.3',\n description='A library for auto-converting URLs, mentions, hashtags, lists, etc. in Twitter text. Also does tweet validation and search term hig...
python
edit
1
0
apache-2.0
6c75574504489ddd26b236db0ce7246c545db14c
joebos/twitter-text-py,joebos/twitter-text-py,joebos/twitter-text-py,joebos/twitter-text-py,joebos/twitter-text-py,joebos/twitter-text-py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\nimport lithium\n\npackages = ['lithium',]\ncore = ['conf', 'views',]\napps = ['blog', 'contact',]\ntemplatetags = ['blog',]\npackage_data = {}\n\nfor item in templatetags:\n packag...
python
edit
1
0
bsd-2-clause
dda39cf93fdbd9e40becfc82bb4e1e49e08c44f3
kylef/lithium
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.exceptions import ValidationError\nimport magic\n\n\nclass MimetypeValidator(object):\n\tdef __init__(self, mimetypes):\n\t\tself.mimetypes = mimetypes\n\t\n\tdef __call__(self, value):\n\t\tmime = magic.from_buffer(value.r...
python
edit
4
3
bsd-3-clause
fcc030b960965f9ac462bbefa48f629b73db5c8b
MetaArchive/etd-drop,MetaArchive/etd-drop
etd_drop_app/validators.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"lcp URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/1.9/topics/http/urls/\nExamples:\nFunction views\n 1. Add an import: from my_app import ...
python
edit
1
0
bsd-2-clause
e5c949d33bb40c32d05932e4dfe8fe75f87fbf16
mblayman/lcp,mblayman/lcp,mblayman/lcp
lcp/urls.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\nexec(open('jira/version.py').read())\nsetup(\n name='jira-python',\n version=__version__,\n packages=find_packages(),\n\n install_requires=['requests>=0.13....
python
edit
2
0
bsd-2-clause
e549c9382e2a75c1607a33925a6532d7859836d7
milo-minderbinder/jira,milo-minderbinder/jira,m42e/jira,systemadev/jira-python,jameskeane/jira-python,dwmarshall/pycontribs-jira,kinow/jira,awurster/jira,coddingtonbear/jira,VikingDen/jira,tsarnowski/jira-python,pycontribs/jira,systemadev/jira-python,jameskeane/jira-python,rayyen/jira,awurster/jira,kinow/jira,dbaxa/jir...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# from distutils.core import setup\nfrom setuptools import setup, find_packages\nfrom pip.req import parse_requirements\nimport pip\nimport sys\n\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\nt...
python
edit
1
0
mit
db41d77cbdb42d0bb8326e4585d1c2f73ec8c708
isotoma/KeenClient-Python,keenlabs/KeenClient-Python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2018 Arista Networks, Inc.\n# Use of this source code is governed by the Apache License 2.0\n# that can be found in the LICENSE file.\n\nfrom setuptools import setup\n\nsetup( name='switools',\n version='1.0',\n ...
python
edit
1
0
apache-2.0
82597c5bc118ef9a3e53268614cfe398fc848477
aristanetworks/swi-tools,aristanetworks/swi-tools
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/local/bin/python3 -u\n__author__ = 'Oliver Ratzesberger <https://github.com/fxstein>'\n__copyright__ = 'Copyright (C) 2015 Oliver Ratzesberger'\n__license__ = 'Apache License, Version 2.0'\n\n# Make sure we have access to Sentie...
python
edit
1
0
apache-2.0
5568e84b715ed2de20d325aa1e66e9959e5e8b89
fxstein/SentientHome
feed/feed.home.loadtest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\n\nfrom distribute_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup\n\nversion = None\nfor line in open('./soundcloud/__init__.py'):\n m = re.search('__version__\\s*=\\s*(.*)', line)\n if m:\n ...
python
edit
1
0
bsd-2-clause
e15f9e221e81d41f2da3ed06253fd4ff8b5d9199
phijor/soundcloud-python,soundcloud/soundcloud-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom invoke import run, task\n\nTESTPYPI = \"https://testpypi.python.org/pypi\"\n\n\n@task\ndef lint(ctx):\n \"\"\"Run flake8 to lint code\"\"\"\n run(\"flake8\")\n\n\n@task(lint)\ndef test(ctx):\n \"\"\"Lint, unit test, and check ...
python
edit
1
4
mit
9c6532aad52f8eb950aeae97dd43f1d921006b6b
questrail/keysight
tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom catwatch.extensions import mail\nfrom catwatch.blueprints.user.tasks import deliver_password_reset_email\nfrom catwatch.blueprints.user.models import User\n\n\nclass TestTasks(object):\n def test_deliver_password_reset_email(self, s...
python
edit
1
1
mit
99b69babaf5ed1517ecb0681a4110a8511876241
nickjj/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask,z123/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask,z123/build-a-saas-app-with-flask,z123/build-a-saas-app-with-flask,nickjj/build-a-saas-app-with-flask
catwatch/tests/user/test_tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nose.tools import assert_true\n\ndef test_find_sampling_selector():\n from zope.interface import implementedBy\n import cc.license\n\n sampling_selector = cc.license.get_selector('recombo')()\n return sampling_selector\n\nd...
python
edit
5
1
mit
39404dfa8ab921977347d4405c525935a0ce234d
creativecommons/cc.license,creativecommons/cc.license
cc/license/tests/test_licenses.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nimport nnpy, unittest\n\nclass Tests(unittest.TestCase):\n def test_basic(self):\n\n pub = nnpy.Socket(nnpy.AF_SP, nnpy.PUB)\n pub.bind('inproc://foo')\n self.assertEqual(pub.ge...
python
edit
1
1
mit
f75d06702274257215229b83c4ff74de3dc72463
nanomsg/nnpy
nnpy/tests.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 subprocess, os, sys, optparse\n\nfullpath = os.path.join(os.getcwd(), os.path.dirname(sys.argv[0]))\ncapath = os.path.abspath(\n os.path.join(fullpath, \"qooxdoo\", \"tool\", \"bin...
python
edit
1
2
mit
e409e8d77eec8e53978512da56bf52f768d46c1a
unify/unify,unify/unify,unify/unify,unify/unify,unify/unify,unify/unify
create-application.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# 4-1. Pizzas\n\nfavorite_pizzas = [\"Columpus\", \"Marco Polo\", \"Amerikana\"]\n\nfor pizza in favorite_pizzas:\n\tprint(pizza)\n\n```\n\nApply this change: Add version 2 of exercise 4.1." }, { "role": "assistant", "content": ...
python
edit
1
0
mit
9bec0bfcf8f12dc3f95a04918331c99c77b4914b
HenrikSamuelsson/python-crash-course
exercises/chapter_04/exercise_04_01/exercise_04_01.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"module containing generator for login tokens\n\n\"\"\"\nimport base64\n\nfrom django.core.signing import TimestampSigner, BadSignature\nfrom django.contrib.auth import get_user_model\n\n\nclass LoginTokenGenerator:\n \"\"\"Generato...
python
edit
1
5
mit
23dac5f2e5be725eff7d329a6af399f6d80c59de
randomic/aniauth-tdd,randomic/aniauth-tdd
logintokens/tokens.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.exceptions import ValidationError\nfrom django.db import models\nimport six\n\n\nclass EnumFieldMixin(six.with_metaclass(models.SubfieldBase)):\n def __init__(self, enum, choices=None, max_length=10, **options):\n ...
python
edit
1
5
mit
d837a194e29b867443a3758bb4c159afe193e798
suutari-ai/django-enumfields,jessamynsmith/django-enumfields,bxm156/django-enumfields,jackyyf/django-enumfields
enumfields/fields.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nimport mpd\n\nSERVER = \"localhost\"\nPORT = 6600\n\n\ndef connect(mpdclient):\n \"\"\"\n Handle connection to the mpd server\n \"\"\"\n mpdclient.connect(SERVER, PORT)\n\n\nmpdclient = mpd.MPDClient()\nconn...
python
edit
1
1
bsd-2-clause
3cf7ca56ac156154dc08433955fff4b15e7eb331
Anthony25/mpd_muspy
mpd_mypy.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nTests for TwitterSA\n\nThese tests might be overkill, it's my first time messing around\nwith unit tests.\n\nJesse Mu\n\"\"\"\n\nimport TwitterSA\nimport unittest\n\n\nclass TwitterSATestCase(unittest.TestCase):\n def setUp(self)...
python
edit
1
2
mit
eb994bad8556c750f2c27f83117e7d32899d9427
jayelm/twittersa,jayelm/twittersa
tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n config = Configuration('neuroimaging', parent_package, top_path)\n\n config.add_subpackage('algorithms')\n ...
python
edit
3
1
bsd-3-clause
5e12fbf432331f1cc6f16c85e9535c12e5584ecc
alexis-roche/nipy,alexis-roche/register,arokem/nipy,alexis-roche/register,alexis-roche/niseg,nipy/nireg,nipy/nipy-labs,nipy/nireg,arokem/nipy,alexis-roche/nipy,alexis-roche/register,arokem/nipy,alexis-roche/nireg,bthirion/nipy,nipy/nipy-labs,alexis-roche/nireg,bthirion/nipy,bthirion/nipy,alexis-roche/nipy,arokem/nipy,a...
neuroimaging/setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\r\n\r\nimport os\r\nimport re\r\nfrom collections import defaultdict\r\n\r\nhtml_files = set()\r\nhtml_file_groups = defaultdict(list)\r\nnewest_files = set()\r\n\r\n\r\ndef get_all_files():\r\n for n in os.listdi...
python
edit
1
4
mit
6b7f3ac5bc8c753eb77e975003eb3ee626491774
gousaiyang/SoftwareList,gousaiyang/SoftwareList
SLClearOldLists.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport argparse\nimport numpy\n\n\ndef load_default():\n print \"TODO: load default scores\"\n return None, None\n\n\ndef get_data():\n \"\"\" Get scores data.\n If there are no arguments in command line load default\n\n \"\"...
python
edit
5
4
mit
2dc6c076c1d5dce2623ba49eb42a239f31c37547
maigimenez/bio,maigimenez/bio,maigimenez/bio
roc/roc_curve.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom django.conf import settings\nfrom django.core.management import call_command\n\n\nINSTALLED_APPS = (\n # Required contrib apps.\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.con...
python
edit
1
0
bsd-3-clause
e8454180e4ec612e5c76ab0ec5f149adcaadf026
helber/django-dbsettings,helber/django-dbsettings,zlorf/django-dbsettings,sciyoshi/django-dbsettings,johnpaulett/django-dbsettings,nwaxiomatic/django-dbsettings,DjangoAdminHackers/django-dbsettings,zlorf/django-dbsettings,winfieldco/django-dbsettings,DjangoAdminHackers/django-dbsettings,johnpaulett/django-dbsettings,wi...
runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.shortcuts import redirect\nfrom rest_framework import viewsets\n\nfrom .models import User\nfrom .permissions import IsUserOrReadOnly\nfrom .serializers import AuthenticatedUserSerializer, UserSerializer\n\n\nclass UserViewSet(v...
python
edit
1
3
bsd-3-clause
f9b079b7956419ec324234dbad11d073bed70dd8
FreeMusicNinja/api.freemusic.ninja
users/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nfrom selenium import webdriver\nstarttime=time.time()\nurl = 'http://applemusic.tumblr.com/beats1'\nwhile True:\n driver = webdriver.PhantomJS()\n driver.set_window_size(1920, 1080)\n driver.get(url)\n driver.save_s...
python
edit
3
0
mit
f9791b4b19b2cf304e322db0a40c95ad4632d5a8
duramato/Beats-Metadata
screenshooter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import BaseCommand\n\nfrom apps import mommy\n\n\nclass Command(BaseCommand):\n args = 'name of job'\n help = 'run a job'\n\n @staticmethod\n def print_job_names():\n possible_jobs = []\n ...
python
edit
1
3
mit
78854858ebeb3fe92df82e203880e177a205051a
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
apps/mommy/management/commands/mommy-task-run.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'athletic_pandas',\n packages = ['athletic_pandas'],\n version = '0.3',\n description = 'Workout analysis',\n author='Aart Goossens',\n author_email='<EMAIL>',\n url='...
python
edit
1
0
mit
afe3cd41e5224e5de5aa37ee8ef2b0fa485cb1b0
AartGoossens/athletic_pandas
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Expand wavenumber conversion factor out to a few decimal places." }, { "role": "assistant", "content": "# v = 108 * sqrt(k/m) cm^-1\nCM_CONVERSION_FACTOR = 108.46435\n" } ]
python
new_file
1
0
bsd-2-clause
8a452925f4d630c5f29d2aab9e565798b4a6284c
grollins/sardine,grollins/sardine
sardine/const.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Designed for use with boofuzz v0.0.1-dev3\nfrom boofuzz import *\n\n\ndef main():\n session = sessions.Session(\n target=sessions.Target(\n connection=SocketConnection(\"192.168.56.101\", 8021, ...
python
edit
32
1
mit
7e1a490aa4ab490ef2d53c0f73593ed5bd405920
jtpereyda/boofuzz-ftp
ftp.py
rejected_lint
Too many lint violations: 32
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\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...
python
edit
1
0
bsd-3-clause
ba8615cb7d895ce883d5126b557c29a69e2f93e0
bipsandbytes/django-api
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n\nwith open('README.rst', 'r', 'utf-8') as f:\n readme = f.read()\n\n\nsetup(\n name='blanc-basic-podcast',\n version='0.3',\n desc...
python
edit
1
0
bsd-2-clause
79c0568b600443e0b86097a6e60ee0526a2b8db3
blancltd/blanc-basic-podcast
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nwith open('fcmcmp/__meta__.py') as file:\n exec(file.read())\nwith open('README.rst') as file:\n readme = f...
python
edit
4
0
mit
800b9faf318bd5fd403ae9beef8bddb35e82802a
kalekundert/fcmcmp
setup.py
rejected_lint
Too many lint violations: 4
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.0a10',\n 'stashward',\n]\n\nif sys.version_info[:2] < (3, 4):\n install_requires.append('enum...
python
edit
1
0
mit
c9278c030620a0b56e88130a745ee21315b904bf
wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils
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
bsd-3-clause
b5a049b1b7b4c2d759aafc38ef2f9af148396bbd
Azelphur-Servers/django-game-info
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n readme = f.read()\n\nexecfile('substance/_version.py')\n\ninstall_requires = ['setuptools>=1.1.3', 'PyYAML', 'tabulate', 'paramiko', 'netaddr', 'requests', 't...
python
edit
3
0
apache-2.0
055b939e8e906c5c03130680edb8f7e5642e9141
turbulent/substance,turbulent/substance
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Credit to bartTC and https://github.com/bartTC/django-memcache-status for ideas\n\ntry:\n from setuptools import setup, find_packages\n from setuptools.command.test import test\nexcept ImportError:\n from...
python
edit
1
1
apache-2.0
9481843728077b8445d5e2323b40d322760064b9
brilliant-org/nexus-memcache,brilliant-org/nexus-memcache,brilliant-org/nexus-memcache
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom distutils.core import setup\n\nsetup(name='lattice',\n version='0.8',\n description='Java Build tool in Python',\n author='Zhenlei Cai',\n author_email='<EMAIL>',\n url='http://www.python.org/sigs/distutils-s...
python
edit
3
0
apache-2.0
c90a76dd2f8b7ccfd081267b3d246d47a18df2e2
jerryzhenleicai/lattice,jerryzhenleicai/lattice,jerryzhenleicai/lattice
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Author: Aziz Alto\n# email: <EMAIL>\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(\n name='pydataset',\n description=(\"Provides instant acce...
python
edit
1
0
mit
e2e4b0b10dcc0cd98b0e87e63db073dd2f27882f
iamaziz/PyDataset
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='cb-event-duplicator',\n version='1.2.0',\n packages=['cbopensource', 'cbopensource.tools', 'cbopensource.tools.eventduplicator'],\n url='https://github.com/carbonblack/cb-event-dupl...
python
edit
1
0
mit
92abc4715e001be7f4729612c31616e0d63c3a2e
carbonblack/cb-event-duplicator
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport requests\nimport json\nfrom subprocess import Popen, PIPE\nimport tempfile\nimport os\nimport sys\n\nconfig = {}\nwith open ('../config/conversion.json') as fp:\n config = json.load(fp)\n\n\ndef to_cml(inchi):\n request = requests....
python
edit
2
2
bsd-3-clause
6377a1a50293c2b62eb5e29c936998ad09995c7a
OpenChemistry/mongochemweb,OpenChemistry/mongochemweb
service/inchi.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\ntry:\n from setuptools import setup\n from setuptools.command.install import install\nexcept ImportError:\n from distutils.core import setup\n from distutils.core.command.install import install\n\n\n\n...
python
edit
2
1
bsd-3-clause
79678296fa20cbfa11aa9a58496de09a71e88ac4
jdfreder/ipython-flightwidgets,jdfreder/ipython-flightwidgets
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom distutils.core import setup\n\nfrom shortwave import VERSION\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='django-shortwave',\n version=VERSION,\n de...
python
edit
1
1
bsd-3-clause
309a8c9a39ddfa01d2e3c24aab0bc50a84121f4e
benspaulding/django-shortwave
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__VERSION__ = '1.0.3'\n\nfrom setuptools import setup\ntry:\n import pypandoc\n long_description = pypandoc.convert('README.md', 'rst')\nexcept OSError:\n # Stolen from pypandoc: if pandoc is not installed, fallback to using raw co...
python
edit
1
0
apache-2.0
74a09fe1aa31db15501d260749dba12e227f91cb
fmoo/python-editor
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='fortigateconf',\n version='0.4.1',\n description='Python modules to interact with Fortigate configuration rest and ssh',\n install_requires=['reques...
python
edit
1
0
apache-2.0
dbbf69546f10cc7e197a61212f728f6f7b303398
thomnico/fortigateconf,thomnico/fortiosapi,thomnico/fortiosapi
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Install Mesh TensorFlow.\"\"\"\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nsetup(\n name='mesh-tensorflow',\n version='0.1.14',\n description='Mesh TensorFlow',\n author='Google Inc.',\n aut...
python
edit
1
0
apache-2.0
a1796f2cd30efae9f2dda77c4386f8bef9ca459f
tensorflow/mesh,tensorflow/mesh
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport re\nfrom setuptools import setup, find_packages\n\n\ndef get_version():\n with open(os.path.join(os.path.dirname(__file__), 'gitlab_mr.py')) as f:\n for line in f.readlines():\n m = re.match(r\"__versi...
python
edit
3
3
apache-2.0
5118c78a3a89424e0577d538b2f85b1753284344
anti-social/gitlab-merge-request
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom codecs import open as codecs_open\nimport distutils.log\nimport os.path\nimport shutil\nfrom setuptools import setup, find_packages\nimport subprocess\n\n\n# Try to convert README markdown to restructured text using pandoc.\ntry:\n ...
python
edit
1
0
isc
70ba345d2c1bf8a695656406359c081611d01f90
mapbox/pygeobuf
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom webhooks import __version__\n\nwith open('README.rst') as f:\n long_description = f.read()\n\nsetup(\n name='webhooks',\n version=__version__,\n description='Flask app for triggering Jenkins ...
python
edit
1
0
mit
225af65498426edce75ffbc0ab80ad1757446d0e
Wikia/jenkins-webhooks
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\nimport os\nimport sys\n\nif sys.version < '3':\n execfile(os.path.join('icebergsdk', 'version.py'))\nelse:\n ...
python
edit
3
0
mit
7c0d5465e282b3a55dc67a8b94f7451cbd470351
Iceberg-Marketplace/Iceberg-API-PYTHON,izberg-marketplace/izberg-api-python
setup.py
accepted
null
true