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\n# #!/usr/bin python\n#Test Noise Addition:\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\n\ndef add_noise(flux, SNR):\n \"Using the formulation mu/sigma\"\n mu = np.mean(flux)\n sigma = mu / SNR\n # Add normal distrib... | python | edit | 1 | 2 | mit | 7a393502b36567dce93df718d716373414e2e674 | jason-neal/companion_simulations,jason-neal/companion_simulations | test_noise_addition.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nversion = '1.0.24'\n\ntry:\n import pypandoc\n long_description = pypandoc.convert('README.md', 'rst')\nexcept (IOError, ImportError):\n long_description = open('README.md').read()\n\nsetup(name='fal... | python | edit | 1 | 0 | mit | b60cca91aada5a9b634a893de5bc757afe3c5ba9 | bdupharm/falcon-autocrud | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom gcm import VERSION\n\nsetup(\n name='django-gcm',\n version=VERSION,\n description='Google Cloud Messaging Server',\n author='Adam Bogdal',\n author_email='<EMAIL>',\n url=... | python | edit | 1 | 0 | bsd-2-clause | 38b60466398172166daa2616fc1c5ea138bf513c | johnofkorea/django-gcm,johnofkorea/django-gcm,bogdal/django-gcm,bogdal/django-gcm | 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, find_packages\nfrom salad import VERSION\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nsetup(\n name=\"salad\",\n description=\"A nice mi... | python | edit | 2 | 0 | bsd-3-clause | da9e6a701c701ac38d512159424fd33401b4c91d | adw0rd/salad-py3,beanqueen/salad,salad/salad,beanqueen/salad,adw0rd/salad-py3,salad/salad | 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\n\nsetup(\n name='fmi',\n version='0.50',\n description='FMI weather data fetcher',\n author='Kimmo Huoman',\n author_email='<EMAIL>',\n url='https://github.com/kipe/... | python | edit | 1 | 0 | mit | 505489011e3a9b32efc172e002dbbcfce27b5874 | kipe/fmi | 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='django-likes',\n version='0.1',\n description='Django app providing view interface to django-secretballot.',\n long_description = open('README.rst', 'r').read() + ope... | python | edit | 1 | 0 | bsd-3-clause | b0e7db83e1b81c5babe0ac9193d5a71f655bd75c | Afnarel/django-likes,Afnarel/django-likes,Afnarel/django-likes | 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 | a8ac3656ad66eb5767742adc6e0c35b61e7f13d6 | Doist/todoist-python | setup.py | rejected_duplicate | Near-duplicate of sample 2235 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport sys, os\nfrom pip.req import parse_requirements\n\nexec(open('tooldog/version.py').read())\n\ninstall_reqs = parse_requirements('requirements.txt', session='')\nreqs = [str(ir.req) for ir in install_reqs... | python | edit | 2 | 0 | mit | 0a047eabb06afcf870e6fa160b808816454a85d7 | khillion/ToolDog | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom fdep import __VERSION__\n\ntry:\n ldsc = open(\"README.md\").read()\nexcept:\n ldsc = \"\"\n\nsetup(\n name=\"fdep\",\n packages=['fdep'],\n version=__VERSION__,\n author=\"Checkr\",\n ... | python | edit | 1 | 0 | mit | b1168ed34505c8bfa20e6679c06cc9fd0ae559d1 | checkr/fdep | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__author__ = 'adaml, boul, jedeko'\nfrom setuptools import setup\n\nsetup(\n zip_safe=True,\n name='cloudify-cloudstack-plugin',\n version='1.1',\n packages=[\n 'cloudstack_plugin',\n 'cloudstack_exoscale_plugin'\n... | python | edit | 1 | 0 | apache-2.0 | a074ccda405c5215bc3157f9d6086dced6f271a9 | cloudify-cosmo/cloudify-cloudstack-plugin,cloudify-cosmo/cloudify-cloudstack-plugin | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='panoptescli',\n version='1.1.1',\n url='https://github.com/zooniverse/panoptes-cli',\n author='Adam McMaster',\n author_email='<EMAIL>',\n description=(\n ... | python | edit | 1 | 0 | apache-2.0 | b7e4a6df41dd1938e6be999a59871048094e0727 | zooniverse/panoptes-cli | 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 os\n\n#README = \"/\".join([os.path.dirname(__file__), \"README.md\"])\n\n#with open(README) as file:\n# long_description = file.read()\n\nsetup(\n name='graphitesend... | python | edit | 3 | 0 | apache-2.0 | 8e6041d78da54415d4b4cf918a0abba2f779b8d7 | daniellawrence/graphitesend,rdefeo/graphitesend,PabloLefort/graphitesend,numberly/graphitesend | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='Eve-Mongoengine',\n version='0.0.1',\n url='https://github.com/hellerstanislav/eve-mongoengine',\n author='Stanislav Heller',\n author_ema... | python | edit | 3 | 0 | mit | c308ddec90d37777896a9275738fac8e5764dec7 | bumbeelabs2/eve-mongoengine,MongoEngine/eve-mongoengine,rudaoshi/eve-mongoengine,kcaylor/eve-mongoengine,rudaoshi/eve-mongoengine | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nfrom azurectl.version import __VERSION__\n\nconfig = {\n 'description': 'Manage Azure PubCloud Service',\n 'author': 'PubCloud Develo... | python | edit | 1 | 0 | apache-2.0 | aae0586728f29887b6789260a286cb3e7a244b52 | SUSE/azurectl,SUSE/azurectl,SUSE/azurectl | setup.py | rejected_duplicate | Near-duplicate of sample 4807 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nfrom withtool import __version__\n\n\ndef read(fname):\n path = os.path.join(os.path.dirname(__file__), fname)\n with open(path, encoding='utf-8') as f:\n return f.read()\n\n\nsetup(... | python | edit | 1 | 1 | mit | 5e8218a2fb5b0c63df4394e299ad75fec2494b29 | renanivo/with | setup.py | rejected_duplicate | Near-duplicate of sample 12411 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nimport pykka\n\nsetup(\n name='Pykka',\n version=pykka.get_version(),\n author='Stein Magnus Jodal',\n author_email='<EMAIL>',\n packages=['pykka'],\n url='http://jodal.github.com/pykka/... | python | edit | 1 | 0 | apache-2.0 | e0d284e9796bddad2dcb1284f9c9fa34c85db8af | jodal/pykka,tamland/pykka,tempbottle/pykka | setup.py | rejected_duplicate | Near-duplicate of sample 14969 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport skyfield # to learn the version\n\nsetup(\n name='skyfield',\n version=skyfield.__version__,\n description=skyfield.__doc__.split('\\n', 1)[0],\n long_description=open('README.rst').read... | python | edit | 1 | 0 | mit | bcf7b9a670b2ad1ad1962879de2009453e98a315 | skyfielders/python-skyfield,exoanalytic/python-skyfield,ozialien/python-skyfield,GuidoBR/python-skyfield,ozialien/python-skyfield,exoanalytic/python-skyfield,skyfielders/python-skyfield,GuidoBR/python-skyfield | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.rst')).read()\nexcept IOError:\n README = ''\n\nversion = \"0.1.0\"\n\nt... | python | edit | 3 | 0 | mit | b9b5af6bc8da56caadf74e75b833338330305779 | amol-/tgext.mailer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\nfrom setuptools import setup\n\nrequires = ['six']\ntests_require = ['mock', 'nose']\n\nif sys.version_info[0] == 2:\n requires += ['python-dateutil>=1.0, != 2.0']\nelse:\n # Py3k\n requires += ... | python | edit | 1 | 0 | apache-2.0 | 53332dd8eae28e9a42ea213b8b3d482f09135ce3 | spulec/freezegun | 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.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n name=\"EQTransformer\",\n author=\"S. Mostafa Mousavi\",\n version=\"0.1.61\",\n author_email=\"... | python | edit | 1 | 0 | mit | 9efd6c325376270938cd16fec9907fcb4680722e | smousavi05/EQTransformer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pim.commands.init import _defaults, _make_package\nfrom pim.commands.install import install\nfrom pim.commands.uninstall import uninstall\n\nfrom click.testing import CliRunner\n\ndef _create_test_package():\n d = _defaults()\n d... | python | edit | 4 | 1 | mit | fcef30a09d24ade495085fc281c334da0098f727 | freeman-lab/pim | tests/test_commands.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport os.path\n\nfrom django.core.management.base import NoArgsCommand\nfrom django.conf import settings\n\nclass Command(NoArgsCommand):\n \n can_import_settings = True\n\n def handle_noargs(self, **options):\n ... | python | edit | 4 | 3 | apache-2.0 | 6c488d267cd5919eb545855a522d5cd7ec7d0fec | mollyproject/mollyproject,mollyproject/mollyproject,mollyproject/mollyproject | molly/utils/management/commands/generate_cache_manifest.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\nimport codecs\n\nfrom setuptools import setup\nimport upsidedown\n\nVERSION = str(upsidedown.__version__)\n(AUTHOR, EMAIL) = re.match('^(.*?)\\s*<(.*)>$', upsidedown.__author__).groups()\nURL = upsidedown.__url__\nLICENSE = upsid... | python | edit | 1 | 0 | mit | 9c4ceba823a1e25ce75e5231a705ca2cbc76c3dc | cburgmer/upsidedown,jaraco/upsidedown | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nfrom dimod import __version__, __author__, __description__, __authoremail__\n\ninstall_requires = ['decorator>=4.1.0']\nextras_require = {'all': ['numpy']}\n\npackages = ['dimod',\n ... | python | edit | 3 | 0 | apache-2.0 | d251f7f97e5fc32fd41266430ed0e991109e1fbe | dwavesystems/dimod,dwavesystems/dimod | 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 sys\n\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nif sys.argv[-1] == 'publish':\n os.system('pandoc -o README... | python | edit | 1 | 0 | bsd-3-clause | 00dddace119917ff4e6428450d6ddf75f50bc3ac | berlincode/sjcl | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom codecs import open as codecs_open\nfrom setuptools import setup, find_packages\n\n\nwith codecs_open('README.md', encoding='utf-8') as f:\n LONG_DESCRIPTION = f.read()\n\n\nsetup(name='gypsy',\n version='0.0.1',\n descript... | python | edit | 1 | 0 | mit | b0dba403abb5d0a81d823eddc90c19160dc5b354 | tesera/pygypsy,tesera/pygypsy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\n\"\"\"\n setup\n ~~~~~\n\n :copyright: 2014 by Daniel Neuhäuser\n :license: BSD, see LICENSE.rst for details\n\"\"\"\nfrom setuptools import setup\n\n\nwith open('README.rst', 'r') as readme:\n long_descrip... | python | edit | 1 | 0 | bsd-3-clause | f068be029606253d36518478151793e70e231d5f | DasIch/oore | setup.py | rejected_duplicate | Near-duplicate of sample 2906 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nfrom eppy import __version__\n\n\nsetup(\n name = \"EPP\",\n version = __version__,\n author = \"Wil Tan\",\n author_email = \"<EMAIL>\",\n description = \"EPP Client for Python\... | python | edit | 3 | 0 | mit | 53bcc5478d3bf25be308ca0e2d0920dcb5b57cfe | cloudregistry/eppy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='Splango',\n version='0.1',\n description='Split (A/B) testing library for Django',\n author='Shimon Rura',\n author_email='<EMAIL>',\n url='ht... | python | edit | 1 | 0 | mit | e647731ecd2f7c3d68744137e298143529962693 | shimon/Splango | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\nfrom rest_framework.renderers import JSONRenderer\n\n\"\"\"\nFormat data such that it can be safely loaded by JSON.parse in javascript\n 1. create a JSON string\n 2. second, correctly wrap the JSON in quotes for inclusion in ... | python | edit | 1 | 1 | mit | aa3a79f3e733e65e354e0c1c63bf3efe0f128fc1 | DXCanas/content-curation,DXCanas/content-curation,DXCanas/content-curation,DXCanas/content-curation | contentcuration/contentcuration/views/json_dump.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\n\nfrom setuptools import find_packages, setup\n\ninstall_requires = ['robotframework']\nif sys.version_info < (2, 7):\n install_requires.append('argparse')\n\n\nsetup(\n name='pre_commit_robotframe... | python | edit | 1 | 0 | mit | b740afb96931518d122ebb10bb356457036b35ed | guykisel/pre-commit-robotframework-tidy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport functools\n\nDEFAULT_HEADERS = frozenset([\"origin\", \"x-requested-with\", \"content-type\", \"accept\"])):\n\ndef wrap_cors(func=None, *, allow_origin='*', allow_headers=DEFAULT_HEADERS):\n \"\"\"\n A middleware that allow CO... | python | edit | null | null | bsd-2-clause | d327b6651234c33549f35d5d5411012d2419634b | jespino/anillo,hirunatan/anillo,jespino/anillo,hirunatan/anillo | anillo/middlewares/cors.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport functools\n\ndef wrap_cors(\n func=None,\n *,\n allow_origin='*',\n allow_headers=set([\"Origin\", \"X-Requested-With\", \"Content-Type\", \"Accept\"])):\n \"\"\"\n A middleware that allow CORS calls, by adding the\... | python | edit | null | null | bsd-2-clause | 298d9fc5264fc80089034c4770369d65e898e3e0 | jespino/anillo,hirunatan/anillo,jespino/anillo,hirunatan/anillo | anillo/middlewares/cors.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport itertools\n\nfrom .base import PactBase\n\n\nclass PactGroup(PactBase):\n\n def __init__(self, pacts=None, lazy=True):\n if pacts is None:\n pacts = []\n self._pacts = pacts[:]\n self._finished_pact... | python | edit | 1 | 6 | bsd-3-clause | 9e09a45edee517f62c252fce9716d82e63ea7a0e | vmalloc/pact | pact/group.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\npackage_files_paths = []\ndef package_files(directory):\n global package_files_paths\n for (path, directories, filenames) in os.walk(directory):\n for filename in filena... | python | edit | 1 | 4 | mit | d71921a3dff82b038311b15fc9b56926521eaefb | PyOCL/OpenCLGA,PyOCL/oclGA,PyOCL/oclGA,PyOCL/TSP,PyOCL/TSP,PyOCL/oclGA,PyOCL/oclGA,PyOCL/OpenCLGA,PyOCL/OpenCLGA | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nProvides request handlers for managing and viewing analyses.\n\n\"\"\"\nimport aiohttp\nimport aiohttp.web\n\nimport virtool.genbank\nimport virtool.http.proxy\nimport virtool.http.routes\nfrom virtool.api.utils import bad_gateway, ... | python | edit | 2 | 3 | mit | 1e1430d89d0cbd5f1de04194ac394b703c86693d | virtool/virtool,virtool/virtool,igboyes/virtool,igboyes/virtool | virtool/api/genbank.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom aiohttp import web\nfrom mako.template import Template\n\nfrom virtool.utils import get_static_hash\n\n\n@web.middleware\nasync def middleware(req, handler):\n is_api_call = req.path.startswith(\"/api\")\n\n ... | python | edit | 1 | 6 | mit | 057aecebb701810c57cac5b8e44a5d5d0a03fa12 | virtool/virtool,igboyes/virtool,igboyes/virtool,virtool/virtool | virtool/error_pages.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\"\"\"\ntest_botanick\n----------------------------------\n\nTests for `botanick` module.\n\"\"\"\n\nimport pytest\n\n\nfrom botanick import Botanick\n\ndef test_botanick():\n\temails_found ... | python | edit | 1 | 1 | mit | 2721a3d5c8bfcf3a6945e8744e4887688578ce9f | avidot/Botanick | tests/test_emailharvesterws.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nif __name__ == '__main__':\n from conda_concourse_ci.cli import main\n sys.exit(main())\n\n```\n\nApply this change: E111: Fix indentation to multiple of 4"
},
{
"role": "assistant",
"content": "import sys\nif __na... | python | edit | 1 | 0 | bsd-3-clause | e9dae2ad4790aeb903723d095f9efc4614700b65 | conda/conda-concourse-ci,conda/conda-concourse-ci | conda_concourse_ci/__main__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pages.models import Page, Language, Content\nfrom pages.utils import auto_render\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django import forms\nfrom django.http import Http404\nimport settings\n\n@a... | python | edit | 5 | 4 | bsd-3-clause | f46526a5a42ec324de4925a208c23a46c48658c9 | pombreda/django-page-cms,google-code-export/django-page-cms,pombreda/django-page-cms,google-code-export/django-page-cms,google-code-export/django-page-cms,Alwnikrotikz/django-page-cms,odyaka341/django-page-cms,Alwnikrotikz/django-page-cms,Alwnikrotikz/django-page-cms,PiRSquared17/django-page-cms,pombreda/django-page-cm... | pages/views.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom sys import argv\nfrom operator import add, sub, mul, div\n\nfunctions = { \\\n\t'+': (2, add), \\\n\t'-': (2, sub), \\\n\t'*': (2, mul), \\\n\t'/': (2, div) \\\n}\n\ndef get_code():\n\treturn argv[1]\n\ndef get... | python | edit | 2 | 4 | mit | e7e2c68a147adc9e7d0da69740d4698b7c100796 | thewizardplusplus/micro,thewizardplusplus/micro,thewizardplusplus/micro | micro.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nimport re\n\nfrom whalelinter.app import App\nfrom whalelinter.dispatcher import Dispatcher\nfrom whalelinter.commands.command import ShellCommand\nfrom whalelinter.commands.apt import ... | python | edit | 1 | 10 | mit | af010c5e924a779a37495905efc32aecdfd358ea | jeromepin/whale-linter | whalelinter/commands/common.py | rejected_duplicate | Near-duplicate of sample 15305 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ..base import Resource\n\nfrom .flight_segment import FlightSegment\n\n\nclass FlightStatus(Resource):\n _as_is_fields = [\n 'current_segment',\n 'departure_service_action',\n 'flags',\n 'href',\n ... | python | edit | 1 | 1 | mit | e7e043884244cc6bf38027db99a14e184cd1eda2 | gadventures/gapipy | gapipy/resources/flights/flight_status.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\nfrom exit import err_exit\n\n\nclass Python(object):\n \"\"\"Python interpreter abstraction.\"\"\"\n\n def __init__(self, python=None, version_info=None):\n self.python = sys.executable\n self.version_info ... | python | edit | 1 | 3 | bsd-2-clause | 7e7be00f696bd9fea2e9f18e126d27b6e9e1882d | Jarn/jarn.mkrelease | jarn/mkrelease/python.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport sys\nimport textwrap\n\n\ntry:\n import gi\n gi.require_version('Gst', '1.0')\n from gi.repository import GLib, GObject, Gst\nexcept ImportError:\n ... | python | edit | 1 | 0 | apache-2.0 | 2124c66d11e46878492970e73700e3e0028a3f1e | adamcik/mopidy,kingosticks/mopidy,mopidy/mopidy,jodal/mopidy,mopidy/mopidy,kingosticks/mopidy,mopidy/mopidy,adamcik/mopidy,jcass77/mopidy,adamcik/mopidy,jcass77/mopidy,jodal/mopidy,kingosticks/mopidy,jodal/mopidy,jcass77/mopidy | mopidy/internal/gi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport time\nfrom yahoo_finance import Share\n\nnyt = Share('NYT')\nibm = Share('IBM')\ngoogle = Share('GOOG')\nfacebook = Share('FB')\nlinkedin = Share('LNKD')\n\nfor minute in range(30):\n\tprint \"%s minutes\" % minute\n\tnyt.refresh()\n... | python | edit | 7 | 0 | mit | 1a75b9336b295502f4625f4edd11d86d2a2fe117 | cathyq/yahoo-finance | yahoo.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.db import models\n\n\nclass ModelBase(models.Model):\n \"\"\"Base class for SUMO models.\n\n * Adds objects_range class method.\n * Adds update method.\n \"\"\"\n\n class Meta:\n ... | python | edit | 1 | 4 | bsd-3-clause | 012235fd93e77de19065a0e906554887e27580fd | mozilla/kitsune,mozilla/kitsune,mozilla/kitsune,mozilla/kitsune | kitsune/sumo/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom server.models import *\n\n\nclass MachineGroupAdmin(admin.ModelAdmin):\n readonly_fields = ('key',)\n\n\nclass MachineAdmin(admin.ModelAdmin):\n list_display = ('hostname', 'serial')\n\n\nadmin.s... | python | edit | 21 | 0 | apache-2.0 | 1f0e5b7e65914ec5c3fb0a6617f72ea2f466bbdc | salopensource/sal,salopensource/sal,sheagcraig/sal,salopensource/sal,sheagcraig/sal,sheagcraig/sal,salopensource/sal,sheagcraig/sal | server/admin.py | rejected_lint | Too many lint violations: 21 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, include, url\nfrom django.views.decorators.csrf import csrf_exempt\nfrom oidc_provider.views import *\n\n\nurlpatterns = patterns('',\n\n url(r'^authorize/?$', AuthorizeView.as_view(), name='authori... | python | edit | 11 | 0 | mit | be5ffde03bd08a613353c876fd91b35f8a38d76a | torreco/django-oidc-provider,ByteInternet/django-oidc-provider,wojtek-fliposports/django-oidc-provider,bunnyinc/django-oidc-provider,torreco/django-oidc-provider,bunnyinc/django-oidc-provider,juanifioren/django-oidc-provider,juanifioren/django-oidc-provider,ByteInternet/django-oidc-provider,wojtek-fliposports/django-oi... | oidc_provider/urls.py | rejected_lint | Too many lint violations: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2012 - 2014 Lars Hupfeldt Nielsen, Hupfeldt IT\n# All rights reserved. This work is under a BSD license, see LICENSE.TXT.\n\nimport sys\n\nfrom .framework import api_select\nfrom jenkinsflow.flow import serial\nfrom jenkinsf... | python | edit | 1 | 1 | bsd-3-clause | 59c8c57884021f472bb98d00fc46fe7214c689d3 | lechat/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow,lechat/jenkinsflow,lechat/jenkinsflow,lhupfeldt/jenkinsflow,lechat/jenkinsflow | test/unbuffered_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: [pylprof] Use new version of line profiler"
},
{
"role": "assistant",
"content": "from line_profiler import LineProfiler\nlp = LineProfiler()\nlp.enable_profile_all()\nprofile = lp.runcall\n"
}
] | python | new_file | 1 | 0 | mit | 569cc559e32f31d3256ff2df3a491a55384e5c27 | iddl/pprofile,iddl/pprofile | lib/pylprof/imports.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom app import app\nfrom flask.ext.sqlalchemy import SQLAlchemy\nfrom flask.ext.script import Manager, prompt_bool\nfrom datetime import datetime\n\ndb = SQLAlchemy(app)\n\nmanager = Manager(usage=\"Manage the database\")\n\n@manager.comma... | python | edit | 1 | 2 | mit | 96d7a2a3a3250993084c1847436711ceaea988fc | taeram/idiocy,taeram/idiocy,taeram/idiocy | app/database.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/local/bin/python\n# Code Fights Simple Composition Problem\n\nfrom functools import reduce\nimport math\n\n\ndef compose(f, g):\n return lambda x: f(g(x))\n\n\ndef simpleComposition(f, g, x):\n return compose(eval(f), eval(g))(... | python | edit | 1 | 3 | mit | 236eaa669027199c2bc53e225b8ffcc6427e78cd | HKuz/Test_Code | CodeFights/simpleComposition.py | rejected_duplicate | Near-duplicate of sample 5840 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom ._version import __version__\nfrom .api import get, now, utcnow\nfrom .arrow import Arrow\nfrom .factory import ArrowFactory\n\n```\n\nApply this change: Add ParserError to the module exports.\n\nAdding ParserE... | python | edit | 9 | 0 | apache-2.0 | a0ba91395dc02f92e58395e41db77af12439a507 | crsmithdev/arrow | arrow/__init__.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\r\nimport sys\r\nimport cv2\r\nimport numpy as np\r\nfrom matplotlib import pyplot as plt\r\n\r\n# read input image\r\nimg = cv2.imread('/home/pi/OCR/VR/tempImg.jpg')\r\n\r\n# Extract only those image areas where VR i... | python | edit | 5 | 0 | apache-2.0 | 2c64ba2bf9e67d6fb3e12a16489900ae7319ca33 | ssudheen/Watson-Rover,ssudheen/Watson-Rover,ssudheen/Watson-Rover,ssudheen/Watson-Rover | RasPi/VR/VR_split_image_v0.1.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# this contains imports plugins that configure py.test for astropy tests.\n# by importing them here in conftest.py they are discoverable by py.test\n# no matter how it is invoked within the source tree.\n\nfrom astropy.tests.pytest_plugins ... | python | edit | 5 | 0 | bsd-3-clause | d085f8de9d428d0c84d281ad6782d86f4bb0d242 | larrybradley/photutils,astropy/photutils | photutils/conftest.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Basic models, such as user profile \"\"\"\nfrom django.db import models\n\nclass Language(models.Model):\n name = models.CharField(max_length=40, null=False)\n learn_url = models.URLField(null=True, blank=True)\n\n @staticme... | python | edit | 1 | 2 | bsd-3-clause | 30ec6a7be967d1c4041539cf80f6ae3709460af5 | sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack,sloria/wtfhack | wtfhack/base/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom slybot import __version__\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\ninstall_requires = ['Scrapy', 'scrapely', 'loginform', 'lxml', 'jsonschema']\ntests_requires = install_requ... | python | edit | 1 | 0 | bsd-3-clause | 4fbda94aa41e0051a4ef7ea26beb587865f8f081 | amikey/portia,naveenvprakash/portia,asa1253/portia,sntran/portia,PrasannaVenkadesh/portia,anjuncc/portia,NoisyText/portia,Youwotma/portia,PrasannaVenkadesh/portia,anjuncc/portia,amikey/portia,livepy/portia,NicoloPernigo/portia,anjuncc/portia,asa1253/portia,verylasttry/portia,chennqqi/portia,NoisyText/portia,amikey/port... | slybot/setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os.path\nfrom utils import file_sha1sum\n\n\nclass Artefact(object):\n def __init__(self, filename, extension):\n if not filename.endswith(extension):\n raise ValueError\n self.filename = filename\n ... | python | edit | 1 | 2 | mit | 8244d43bb87a2ea88ab1ee0c9cedee77eeb994ba | jstutters/Plumbium | plumbium/artefacts.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__version_info__ = (0, 9, 0, 'dev')\n\n\n# Dot-connect all but the last. Last is dash-connected if not None.\n__version__ = '.'.join([str(i) for i in __version_info__[:-1]])\nif __version_info__[-1] is not None:\n __version__ += ('-%s' %... | python | edit | 1 | 1 | apache-2.0 | 9aaa857b278d68009fc6de052e6951677d037fb5 | Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django | derrida/__init__.py | rejected_duplicate | Near-duplicate of sample 3805 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\nfrom __future__ import print_function\nimport argparse\nimport re\n\ntime_re = re.compile(r\"^\\s*#?\\s*([0-9]+(?:\\.[0-9]+)?)\\s+\\\"\")\nfirst_num_re = re.compile(r\"([0-9]+(?:\\.[0-9]+)?)\")\n\n\ndef adjust_lines(lines... | python | edit | 1 | 3 | apache-2.0 | 5e2dbeab75501254da598c6c401cbbd8446f01a5 | quisquous/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,sqt/cactbot,sqt/cactbot,sqt/cactbot,quisquous/cactbot,quisquous/cactbot,sqt/cactbot,quisquous/cactbot | util/timeline_adjust.py | rejected_duplicate | Near-duplicate of sample 9587 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\n pwm._compat\n ~~~~~~~~~~~\n\n Micro compatiblity library. Or superlight six, if you want. Like a five, or something.\n\n\"\"\"\n# pylint: disable=unused-import\n\nimport sys\n\nPY2 = sys.version_info[0] == 2\n\nif PY2: # p... | python | edit | 5 | 1 | mit | e04123ce0b368b19015270b1fc1bd1f706c765cf | thusoy/pwm,thusoy/pwm | pwm/_compat.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Tests for certbot.main.\"\"\"\nimport unittest\n\n\nimport mock\n\n\nfrom certbot import cli\nfrom certbot import configuration\nfrom certbot.plugins import disco as plugins_disco\n\n\nclass ObtainCertTest(unittest.TestCase):\n \"\... | python | edit | 1 | 1 | apache-2.0 | 1ceea35669fd8e6eff5252ef6607289619f0f3c2 | lmcro/letsencrypt,jsha/letsencrypt,dietsche/letsencrypt,letsencrypt/letsencrypt,stweil/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,lmcro/letsencrypt,stweil/letsencrypt,jtl999/certbot,DavidGarciaCat/letsencrypt,letsencrypt/letsencrypt,DavidGarciaCat/letsenc... | certbot/tests/main_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Configuration for Django system.\"\"\"\n\n__version__ = \"0.12.0\"\n__version_info__ = tuple(\n [\n int(num) if num.isdigit() else num\n for num in __version__.replace(\"-\", \".\", 1).split(\".\")\n ]\n)\n\n```\n\... | python | edit | 1 | 0 | mit | fd8ea34ccc5f9aa83ea3ab81da2face511fd306f | uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers | dthm4kaiako/config/__init__.py | rejected_duplicate | Near-duplicate of sample 1349 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom collections import OrderedDict\nfrom binascii import hexlify, unhexlify\nfrom calendar import timegm\nfrom datetime import datetime\nimport json\nimport struct\nimport time\n\nfrom .account import PublicKey\nfrom .chains import known_c... | python | edit | 12 | 1 | mit | c35c11fb546123d0aada37fe7d7ab1829a6fa9f0 | xeroc/python-graphenelib | graphenebase/transactions.py | rejected_lint | Too many lint violations: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Forms definitions.\"\"\"\nfrom django import forms\n\nfrom .models import Event\n\n\nclass EventForm(forms.ModelForm):\n \"\"\"Form for EventCreateView.\"\"\"\n\n class Meta: # noqa\n model = Event\n fields = (\n ... | python | edit | 1 | 4 | mit | debb751e42229c702fe93430a44cb5674d9aacde | FlowFX/reggae-cdmx,FlowFX/reggae-cdmx | app/events/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom tg.configuration import AppConfig, Bunch\nimport moksha\nfrom moksha import model\nfrom moksha.lib import app_globals, helpers\n\nbase_config = AppConfig()\nbase_config.package = moksha\n\n# Set the default renderer\nbase_config.defaul... | python | edit | 5 | 0 | apache-2.0 | 424a5da1e867b5b77fe5f241ef0a825988157811 | lmacken/moksha,ralphbean/moksha,pombredanne/moksha,pombredanne/moksha,mokshaproject/moksha,lmacken/moksha,ralphbean/moksha,lmacken/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,ralphbean/moksha,mokshaproject/moksha,pombredanne/moksha | moksha/config/app_cfg.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python3\n\nfrom checker.abstract import AbstractChecker\n\nimport base64\nimport sys\nimport codecs\n\nclass ContestChecker(AbstractChecker):\n def __init__(self, tick, team, service, ip):\n AbstractChecker.__init__(sel... | python | edit | 1 | 2 | isc | 14a085f787f5fe80a0737d97515b71adaf05d1cd | fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver,fausecteam/ctf-gameserver | checker/checker/contest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom django import forms\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom .models import Channel\n\n\nclass ChannelAdminForm(forms.ModelForm):\n layout = forms.ChoiceField(c... | python | edit | 1 | 0 | mit | 99c08468b7008a3c44b5b7c48bccbc9fb3825556 | opps/opps,jeanmask/opps,opps/opps,opps/opps,opps/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,williamroot/opps | opps/channels/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.core.exceptions import ValidationError\n\n\nclass OrderedModel(models.Model):\n order = models.PositiveIntegerField(blank=True, unique=True)\n\n class Meta:\n abstract = True\n o... | python | edit | 1 | 4 | bsd-3-clause | 27d083727e3ca8d0264fc08e96a15f1cdc6a5acc | MagicSolutions/django-orderedmodel,MagicSolutions/django-orderedmodel | orderedmodel/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom app.system.updater import check_updates, do_upgrade, run_ansible\nfrom app.system.updater import do_reboot\nfrom app.views import SimpleBackgroundView\nfrom .base import BaseService, BlockingServiceStart\n\n\nclass UpdaterService(BaseS... | python | edit | 1 | 3 | mit | 174e36358df2522f39154a47f3f79b7dffadb3fd | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | app/services/updater_service.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport distutils.core\n\ndistutils.core.setup(\n name='sunburnt',\n version='0.4',\n description='Python interface to Solr',\n author='Toby White',\n author_email='<EMAIL>',\n packages=['sunburnt']... | python | edit | 1 | 0 | mit | f4f439f24dceb0c68f05a90196b3e4b525d1aa7a | rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,anmar/sunburnt,rlskoeser/sunburnt,pixbuffer/sunburnt-spatial,qmssof/sunburnt,tow/sunburnt,anmar/sunburnt | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name=\"yunomi\",\n version=\"0.2.2\",\n description=\"A Python metrics library with rate, statistical distribution, and timing information.\",\n author=\"richzeng\",\n author_email=\"<... | python | edit | 1 | 0 | mit | b395ec89a82b0c416caa3b0163978e5cf25afb4b | dreid/yunomi | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf8\n# Copyright © 2011 Kozea\n# Licensed under a 3-clause BSD license.\n\n\"\"\"\nStrip trailing whitespace before saving.\n\n\"\"\"\n\nfrom gi.repository import GObject, Gedit\n\n\nclass WhiteSpaceTerminator(GObject.Object, Ged... | python | edit | 1 | 2 | bsd-3-clause | d64a171dfde57106a5abd7d46990c81c6250b965 | Kozea/Gedit-WhiteSpace-Terminator | whitespaceterminator.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom os.path import relpath, join\nfrom setuptools import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\ndef find_package_data(data_root, package_root):\n files = []\n f... | python | edit | 1 | 3 | mit | 9822e412eb23b4860bcb24996dc2a912eba07d9c | open-forcefield-group/openforcefield,openforcefield/openff-toolkit,openforcefield/openff-toolkit,open-forcefield-group/openforcefield,open-forcefield-group/openforcefield | setup.py | rejected_duplicate | Near-duplicate of sample 12402 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name='pyresttest',\n version='1.6.0',\n description='Python RESTful API Testing & Microbenchmarking Tool',\n long_description='Python RESTful API Testing & Microbenchmarking Tool \\n ... | python | edit | 1 | 0 | apache-2.0 | 5543655eec9a71a1a978d70c8381aa3bef1d9a1f | svanoort/pyresttest,netjunki/pyresttest,svanoort/pyresttest,satish-suradkar/pyresttest,satish-suradkar/pyresttest,netjunki/pyresttest | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nWSGI config for moocng project.\n\nThis module contains the WSGI application used by Django's development server\nand any production WSGI deployments. It should expose a module-level variable\nnamed ``application``. Django's ``runse... | python | edit | 2 | 2 | apache-2.0 | 00ca7bed25582d16cc47ecaa3908226ff7d56b0d | GeographicaGS/moocng,GeographicaGS/moocng,GeographicaGS/moocng,OpenMOOC/moocng,OpenMOOC/moocng,GeographicaGS/moocng | moocng/wsgi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"testapp\",\n version=\"0.1\",\n description=\"Example application to be deployed.\",\n packages=find_packages(),\n install_requires=['falcon'],\n)\n\n```\n\nApply... | python | edit | 1 | 0 | apache-2.0 | 298e591522c2deb1f24c028d5c851d60bf38de39 | brantlk/python-sample-app | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long description from the README file\nwith open(path.join(here, 'README.md'), encoding='utf-8') as f:\n ... | python | edit | 1 | 0 | mit | f97ab0211eaa07080ea946912c66b8b3393151f6 | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2021 DeepMind Technologies Limited\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ... | python | edit | 1 | 0 | apache-2.0 | 747c912a39f74f51cb5c38176b3e0328938d6d7a | deepmind/xmanager,deepmind/xmanager | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nf = open(os.path.join(os.path.dirname(__file__), 'README.rst'))\nreadme = f.read()\nf.close()\n\nsetup(\n name='micawber',\n version=\"0.2.6\",\n description='a small librar... | python | edit | 1 | 0 | mit | 5158880a371f708ab7eeefcb04a29cf53b2ffcad | coleifer/micawber,coleifer/micawber | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import Extension, setup\nfrom Cython.Build import cythonize\nfrom sys import platform\n\nfrom distutils.sysconfig import get_config_vars\nimport os\n\n(opt,) = get_config_vars('OPT')\nif opt:\n os.environ['OPT'] = \" \".j... | python | edit | 1 | 0 | mit | 411dc08c79ec3fb3a6ff70b2c99b0eb6cbc49ade | jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nHERE = os.path.abspath(os.path.dirname(__file__))\nVERSION_NS = {}\nwith open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:\n exec(f.read(), {}, VERSION_NS)\n\nsetup(\n name='lc_wr... | python | edit | 1 | 0 | bsd-3-clause | 31bbe03929ff43705fb8f62e9b0a13b7a0195a7c | NII-cloud-operation/Jupyter-LC_wrapper,NII-cloud-operation/Jupyter-LC_wrapper | 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\nsetup(name='pymks',\n version='0.1-dev',\n description='Package for Materials Knowledge System (MKS) regression tutorial',\n author='Daniel Wheeler',\n ... | python | edit | 1 | 3 | mit | e3e4334788457ae60d8834862ba0b4aece511be7 | awhite40/pymks,davidbrough1/pymks,XinyiGong/pymks,fredhohman/pymks,davidbrough1/pymks | 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 | eb46fab82fc90dc714a5cfa046288d5d4bfcc176 | hgdeoro/pcassandra,hgdeoro/pcassandra | setup.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\nexcept ImportError:\n from distutils.core import setup\n\n\nwith open('README.rst') as f:\n readme = f.read()\n\nsetup(\n name='whatthepatch',\n version='0.0.3',... | python | edit | 1 | 0 | mit | a9075095c4490e61cc29932850ef6dcbf8dff0c8 | cscorley/whatthepatch | 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\nfrom cron_sentry.version import VERSION\n\nsetup(\n name='cron-sentry',\n version=VERSION,\n author='Yipit Coders',\n author_email='<EMAIL>',\n description='... | python | edit | 1 | 0 | mit | c2931c9f04e73f7b871359a678e1f0b110aa833e | ciiol/cron-sentry,sysadmind/cron-sentry | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport setuptools\n\n\nsetuptools.setup(\n name='factory_djoy',\n version='0.5',\n\n description='Factories for Django, creating valid instances every time',\n url='http://github.com/jamescooke/factory_djoy',\n aut... | python | edit | 3 | 0 | mit | 0a4236439dd8d73f5428f9a21e172f4d78280342 | jamescooke/factory_djoy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom builtins import range\nimport sys, os\nsys.path.insert(1, os.path.join(\"..\",\"..\"))\nimport h2o\nfrom tests import pyunit_utils\nfrom h2o.estimators.deeplearning import H2ODeepLearningEstimator\n\ndef deeplearning_basic():\n\n\n\n ... | python | edit | 3 | 1 | apache-2.0 | 7acd0f07522aa1752585f519109129f9e9b8687e | jangorecki/h2o-3,h2oai/h2o-3,mathemage/h2o-3,mathemage/h2o-3,jangorecki/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,mathemage/h2o-3,michalkurka/h2o-3,spennihana/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,mathemage/h2o-3,h2oai/h2o-dev,michalkurka/h2o-3,m... | h2o-py/tests/testdir_algos/deeplearning/pyunit_iris_basic_deeplearning.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\n#import time\n#_version = \"3.0.dev%s\" % int(time.time())\n_version = \"3.0.0\"\n_packages = find_packages('.', exclude=[\"*.tests\", \"*.te... | python | edit | 1 | 0 | mit | 72422be6af89c5a8d4256f5b15ac216f3545f058 | laterpay/laterpay-client-python | setup.py | rejected_duplicate | Near-duplicate of sample 14848 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import abspath\n\nfrom flask import current_app as app\nfrom app import create_app\n# from app.model import init_db\nfrom flask.ext.script import Manager\n\nmanager = Manager(create_app)\nmanager.add_option('-m', '--cfgmode', d... | python | edit | 6 | 2 | mit | 4b0a51dcfb1b71975d0064f0ce58d68660d45a13 | nerevu/prometheus-api,nerevu/prometheus-api,nerevu/prometheus-api | manage.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom astropy.table import Table\nimport os\n\n\nclass AuxService:\n\n renames = {}\n ignored_columns = []\n transforms = {}\n basename = 'AUX_SERVICE'\n\n def __init__(self, auxdir='/fact/aux'):\n self.auxdir = auxdir\... | python | edit | 1 | 2 | mit | 548329d5366e9b0f037a1df59efaeb6b36b5987d | fact-project/aux2mongodb | aux2mongodb/auxservices/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .module import Module, interact\n\n\nclass Led(Module):\n def __init__(self, id, alias, robot):\n Module.__init__(self, 'LED', id, alias, robot)\n self.color = (0, 0, 0)\n\n @property\n def color(self):\n ... | python | edit | 1 | 3 | mit | aae5c02f8642eec08e87c102b7d255fb74b86c94 | pollen/pyrobus | pyluos/modules/led.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\nimport jsoncomment\n\n\nclass Config:\n def __init_config_from_file(self, path):\n with open(path) as f:\n for k, v in jsoncomment.JsonComment(json).loads(f.read()).items():\n self.__config[k... | python | edit | 1 | 4 | mit | 29f6e1c46179257b6604a4314855b0347bc312ad | sbobek/achievement-unlocked | src/config.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='botbot',\n version='0.2.4',\n description='A meta-bot for Euphoria.',\n author='Rishov Sarkar',\n url='https://github.com/ArkaneMoose/BotBot',\n lice... | python | edit | 1 | 0 | mit | abc31c1d07e68f86e8ea4ffed080c073d7baa254 | ArkaneMoose/BotBot | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.txt')).read()\nCHANGES = open(os.path.join(here, 'CHANGES.txt')).read()\n\nrequires = [\... | python | edit | 1 | 0 | bsd-3-clause | d4edbdcc631a14112b88810de3382f147f5a13c9 | rob-b/belt,rob-b/belt,rob-b/belt | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport os\n\nversion = '0.1.0dev'\n\nsetup(\n name='FrappeClient',\n version=version,\n author='Rushabh Mehta',\n author_email='<EMAIL>',\n download_url='https://github.com/jevonearth/frappe-... | python | edit | 1 | 0 | mit | da063ba3936cf37bd53c3ba089173e96916339bf | frappe/frappe-client | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n######################################################################\n# Copyright (C) 2011-2013 Jaakko Luttinen\n#\n# This file is licensed under Version 3.0 of the GNU General Public\n# License. See LICENSE for a text of the license.\n##... | python | edit | 6 | 0 | mit | 45da9e9d3eb2d8bba089c9a064e1a7c259da131a | fivejjs/bayespy,bayespy/bayespy,jluttine/bayespy,SalemAmeen/bayespy | bayespy/__init__.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Copyright (C) 2013 SignalFuse, Inc.\n# Setuptools install description file.\n\nimport os\nfrom setuptools import setup, find_packages\n\nrequirements = ['docker-py==0.2.2']\n\nsetup(\n name='maestro',\n vers... | python | edit | 3 | 0 | apache-2.0 | c384b335d9b55a1fc7c1eaa20f909eecca1a7f9f | Anvil/maestro-ng,signalfx/maestro-ng,ivotron/maestro-ng,jorge-marques/maestro-ng,zsuzhengdu/maestro-ng,signalfuse/maestro-ng,ivotron/maestro-ng,signalfuse/maestro-ng,signalfx/maestro-ng,Anvil/maestro-ng,zsuzhengdu/maestro-ng,jorge-marques/maestro-ng | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nINSTALL_REQUIRES = ['python_cjson', 'requests >=1.0.3']\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name = \"qds_sdk\",\n version =... | python | edit | 1 | 1 | apache-2.0 | 848a9efae2f331dd35e495a945bb62146f00fd30 | tanishgupta1/qds-sdk-py-1,jainavi/qds-sdk-py,vrajat/qds-sdk-py,adeshr/qds-sdk-py,qubole/qds-sdk-py,rohitpruthi95/qds-sdk-py,yogesh2021/qds-sdk-py,prakharjain09/qds-sdk-py,msumit/qds-sdk-py | setup.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.