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#\n# linter.py\n# Markdown Linter for SublimeLinter, a code checking framework\n# for Sublime Text 3\n#\n# Written by Jon LaBelle\n# Copyright (c) 2018 Jon LaBelle\n#\n# License: MIT\n#\n\n\"\"\"This module exports the Markdownlint plugin c... | python | edit | 1 | 0 | mit | 21220dee455cb51b26a82caa1fbe11c09ac18351 | jonlabelle/SublimeLinter-contrib-markdownlint,jonlabelle/SublimeLinter-contrib-markdownlint | linter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# linter.py\n# Linter for SublimeLinter3, a code checking framework for Sublime Text 3\n#\n# Written by @kungfusheep\n# Copyright (c) 2016 @kungfusheep\n#\n# License: MIT\n#\n\"\"\"This module exports the Stylelint plugin class.\"\"\"\n\... | python | edit | 1 | 0 | mit | e6d3d60265db1947b8af2d1c59c575c632ddc20b | lzwme/SublimeLinter-contrib-stylelint,lzwme/SublimeLinter-contrib-stylelint,kungfusheep/SublimeLinter-contrib-stylelint | linter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))... | python | edit | 1 | 0 | apache-2.0 | 71073c238a3cb033183179f51d293c5e3d3eebee | uw-it-aca/mdot-rest,uw-it-aca/mdot-rest | setup.py | rejected_duplicate | Near-duplicate of sample 13319 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# linter.py\n# Linter for SublimeLinter3, a code checking framework for Sublime Text 3\n#\n# Written by Joshua Hagins\n# Copyright (c) 2015 Joshua Hagins\n#\n# License: MIT\n#\n\n\"\"\"This module exports the RubyLint plugin class.\"\"\"... | python | edit | 1 | 0 | mit | 7da1482f93090bcafc420e96aa07515be61c8c50 | jawshooah/SublimeLinter-contrib-ruby-lint | linter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-ical',\n version='1.5',\n description=\"iCal feeds for Django based on Django's syndication feed \"\n \"framework.\",\n ... | python | edit | 1 | 0 | mit | 9c2de54cd8b87a7d247f7c7acab3d0e2b9cecd34 | Pinkerton/django-ical | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n__version__ = \"0.13.0\"\n\nsetup(\n name='pyramid_zipkin',\n version=__version__,\n provides=[\"pyramid_zipkin\"],... | python | edit | 1 | 0 | apache-2.0 | cc24fdfe14e0dc65334312893f1cca0d3a879a40 | Yelp/pyramid_zipkin,bplotnick/pyramid_zipkin | 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\nwith open('README.rst', 'r') as f:\n readme = f.read()\n\nsetup(\n name='eve-auth-jwt',\n version='1.0.1'... | python | edit | 1 | 0 | mit | a4e2868ec5fd9c15814897a98e256bf662d1c4e9 | rs/eve-auth-jwt | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup\n\nimport re\nmain_py = open('flatcat/__init__.py').read()\nmetadata = dict(re.findall(\"__([a-z]+)__ = '([^']+)'\", main_py))\n\... | python | edit | 1 | 0 | bsd-2-clause | 8bc704f6272ccfebd48f7282e02420a56d8e934d | aalto-speech/flatcat | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\n\nfrom eventkit import __version__\n\nsetuptools.setup(\n name='eventkit',\n version=__version__,\n packages=setuptools.find_packages(),\n install_requires=[\n 'coverage',\n 'croniter',\n ... | python | edit | 1 | 0 | mit | b555bba2f0b2c275d5d0cb3b55a16b34d2d69047 | ic-labs/django-icekit,ic-labs/icekit-events,ic-labs/django-icekit,ic-labs/icekit-events,ic-labs/icekit-events,ic-labs/django-icekit,ic-labs/django-icekit | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom flask.ext.script import Manager, Server\nfrom massa import create_app\n\n\nmanager = Manager(create_app)\nmanager.add_option('-c', '--configfile', dest='configfile', required=False)\n\nmanager.add_command('ru... | python | edit | 1 | 2 | mit | 9272e0fb2f3c3190f53ea440a9d15610667d6072 | jaapverloop/massa | manage.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom twilio import __version__\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"twilio\",\n version = __version__,\n description = \"Twilio API client and TwiML generator\",\n author = \"Twilio\",\n author_em... | python | edit | 1 | 0 | mit | e4bf7d3f5d093a71562799af5e15081b8a0c812c | clearcare/twilio-python,Stackdriver/twilio-python,Mobii/twilio-python,supermanheng21/twilio-python,cinemapub/bright-response,cinemapub/bright-response,bcorwin/twilio-python,tysonholub/twilio-python,Stackdriver/twilio-python,twilio/twilio-python,Rosy-S/twilio-python,johannakate/twilio-python,YeelerG/twilio-python,RobSpe... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport os\n\n#Function to read README\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='clipboard_memo',\n version='0.1',\n description='A comm... | python | edit | 1 | 1 | mit | 3cbc6bdd5bcc480d105ce53bffd5b350b7dc8179 | arafsheikh/clipboard-memo | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport sys\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist bdist_wininst upload ... | python | edit | 1 | 0 | mit | 4754c220e79aba7fc4c1ab67a1e834cc306d4493 | danxshap/django-rest-surveys | setup.py | rejected_duplicate | Near-duplicate of sample 15516 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\n\nimport i18n\n\nsetup(\n name='edx-i18n-tools',\n version='0.3.3',\n description='edX Internationalization Tools',\n author='edX',\n author_email='<EMAIL>',\n url='ht... | python | edit | 1 | 0 | apache-2.0 | 882ea5cb70f75d51cc0c8305baf7380a1d7d7954 | edx/i18n-tools | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os, sys, glob\nfrom setuptools import setup, find_packages\n\nsetup(\n name='aegea',\n version='0.1.0',\n url='https://github.com/kislyuk/aegea',\n license='Proprietary',\n author='Andrey Kisly... | python | edit | 4 | 0 | apache-2.0 | 8d3f2ded898b1bfcac1f3ce407787cf5075dc383 | wholebiome/aegea,kislyuk/aegea,kislyuk/aegea,wholebiome/aegea,kislyuk/aegea,wholebiome/aegea | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import division\n\nimport itertools\n\n\ndef get_offsets(span):\n \"\"\"\n Get matrix offsets for a square of distance `span`.\n \"\"\"\n if span < 0:\n raise ValueError('Cannot return neighbours for negat... | python | edit | 4 | 5 | mit | c5783f385d406f8ccfa5e0cef6dfdf248d7ea02b | supermitch/Island-Gen | matrix.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nimport derpibooru\n\nsetup(\n name = \"DerPyBooru\",\n description = \"Python bindings for Derpibooru's API\"\n url = \"https://github.com/jos... | python | edit | 3 | 0 | bsd-2-clause | d9c3211def0141754fa05b64e06b99d3d1db0c75 | joshua-stone/DerPyBooru | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom setuptools import (\n find_packages,\n setup,\n)\n\nhere = os.path.dirname(__file__)\nrequires = [\n 'jsonschema==2.4.0',\n]\nif sys.version_info <= (3, 5):\n requires.app... | python | edit | 1 | 1 | mit | 7c88518c9447b4504efc510c70320abaac50680f | yosida95/python-jsmapper | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools.command.test import test as TestCommand\nimport sys\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_args = []\n self.test_suite = True\n ... | python | edit | 1 | 1 | mit | 2e18e3cd1a510dc9af3a4debc244006997baa1c9 | gosquadron/squadron,gosquadron/squadron | 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=\"handlebar.py\",\n version=\"0.1\",\n\n author=\"José Pedro Arvela\",\n author_email=\"<EMAIL>\",\n description=\"Debian build system with copy-on-write containers... | python | edit | 1 | 0 | mit | 10fe1c33e29d509778b4b65c00ec24a52f5d9854 | jparvela/handlebar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#coding: utf-8\n\nfrom setuptools import setup, find_packages\nfrom os.path import join, dirname\n\nsetup(\n name='mosecom_air',\n version='1.2',\n description='Web service dedicated to air pollution in Mosco... | python | edit | 4 | 0 | mit | 54456e42e2c9d90095b34a30a16940584ebdb29c | elsid/mosecom-air,elsid/mosecom-air,elsid/mosecom-air | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='ckanext-archiver',\n version='0.1',\n packages=find_packages(),\n install_requires=[\n 'celery==2.4.2',\n 'kombu==2.1.3',\n 'kombu-sqlalchemy==1.... | python | edit | 1 | 0 | mit | 345773b4ab1025ce64318014ebdbe2ec52998482 | datagovuk/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,ckan/ckanext-archiver,datagovuk/ckanext-archiver,datagovuk/ckanext-archiver,ckan/ckanext-archiver,ckan/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver | setup.py | rejected_duplicate | Near-duplicate of sample 5129 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pip import req\nimport pip\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n_install_requirements = req.parse_requirements(\n 'requirements.txt', session=pip.download.PipSession())\n\n\nsetup(\n name='grow',... | python | edit | 1 | 0 | mit | 0b324258a4872d1038ca5ef3b10d7978b6c03a22 | codedcolors/pygrow,grow/grow,codedcolors/pygrow,denmojo/pygrow,denmojo/pygrow,grow/grow,codedcolors/pygrow,grow/pygrow,denmojo/pygrow,grow/grow,grow/pygrow,grow/pygrow,denmojo/pygrow,grow/grow | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n# Match releases to redis-py versions\n__version__ = '2.8.0.4'\n\n# Jenkins will replace __build__ with a unique value.\n__build__ = ''\n\nsetup(name='mockredispy',\n ... | python | edit | 1 | 0 | apache-2.0 | 229c5be9e0ad67c7cdea8c5404efff157d996372 | yossigo/mockredis,matejkloska/mockredis,locationlabs/mockredis,path/mockredis | 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\ntests_require = []\n\nsetup(\n name='ashlar',\n version='0.0.2',\n description='Define and validate schemas for metadata for geotemporal event records',\n a... | python | edit | 1 | 0 | mit | f308ae32a372f8e288bcc4e9bed98b403795baa1 | azavea/ashlar,flibbertigibbet/ashlar,flibbertigibbet/ashlar,azavea/ashlar | setup.py | rejected_duplicate | Near-duplicate of sample 17863 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-crumbs',\n version=__import__('crumbs').__version__,\n author='Caktus Consulting Group',\n author_email='<EMAIL>',\n include_package_data=True,\n package... | python | edit | 1 | 0 | bsd-3-clause | 1d196e4f65a02bdd7437ade213fbf86c711a78d0 | caktus/django-crumbs | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport politicalplaces\n\nsetup(\n name='django-political-map',\n version=politicalplaces.__version__,\n description='Django application to store geolocalized places and organize them ac... | python | edit | 1 | 0 | mit | 2a8b2a7324682df81de91c2f9ee27bbb67a7d894 | 20tab/django-political-map,20tab/django-political-map,20tab/django-political-map | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import dirname, join\nfrom distutils.core import setup\n\nfrom colorama import VERSION\n\n\nNAME = 'colorama'\n\n\ndef get_long_description(filename):\n readme = join(dirname(__file__), filename)\n ... | python | edit | 1 | 1 | bsd-3-clause | da9628271be108b1236b9dbbcaf6cda9494b7b63 | nghung270192/colorama,nghung270192/colorama | 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='cosmo',\n version='1.0.0',\n description='Monitors for HST/COS',\n keywords=['astronomy'],\n classifiers=[\n 'Programming Language :: Python :: 3',\n ... | python | edit | 1 | 0 | bsd-3-clause | 0c470222a131b3fe8b9a7483dd039c513b29e978 | justincely/cos_monitoring | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='pygments-hackasm-lexer',\n version='0.1',\n description='Pygments lexer for the Nand2Tetris Hack Assembler',\n packages = setuptools.find_packages(),\n url='http... | python | edit | 4 | 0 | mit | 941d71ce0c7e61dc461382c3a4972aaa169e9db9 | cprieto/pygments_hack_asm | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\nimport setuptools\n\nwith open(\"README.md\", \"r\") as fin:\n long_description = fin.read()\n\nlong_description = re.sub(\n \"^(!\\[.*\\]\\()(.*\\))\",\n lambda m: m.group(1) + \"https://github.com/davidalber/geneagraph... | python | edit | 1 | 0 | mit | def100f95abe6a85301b8d9b7f31ff44353a5e27 | davidalber/Geneagrapher,davidalber/Geneagrapher | 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='icalendar',\n version='0.10',\n description='iCalendar support module',\n package_dir = {'': 'src'},\n packages=['icalendar'],\n )\n\n```\n\nAp... | python | edit | 1 | 0 | bsd-2-clause | 4c12f68e5d86acb4152acf5ace6a02b6968db925 | nylas/icalendar,geier/icalendar,untitaker/icalendar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='jinjer',\n version='0.1',\n packages=['jinjer'],\n package_dir={'': 'src'},\n url='https://github.com/andrematheus/jinjer',\n license='BSD',\n author='André Roque Matheus',... | python | edit | 1 | 0 | mit | 2c7adc6fd0a53db44951eccb8f5db3b45e4a4653 | andrematheus/jinjer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\nsetup(\n name = \"brabeion\",\n version = \"0.1.dev\",\n author = \"Eldarion\",\n author_email = \"<EMAIL>\",\n description = \"a reusable django badges application\",\n long_descripti... | python | edit | 1 | 0 | bsd-3-clause | c9ae9dc6766e94d319b5a8da16a9ed44465519eb | kinsights/brabeion | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup, find_packages\n\nif sys.version_info < (2, 7, 0):\n print(\"Error: signac requires python version >= 2.7.x.\")\n sys.exit(1)\n\nsetup(\n name='signac',\n version='0.6.2',\n packages=f... | python | edit | 1 | 0 | bsd-3-clause | 582db33a03509324c02d9861b48138c7ce54947e | csadorf/signac,csadorf/signac | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name=\"cf_app_utils\",\n version=\"1.0\",\n packages=['cf_app_utils'])\n\n\n```\n\nApply this change: Decrease version number to reflect project nascency"
},
{
"role": "assistant",... | python | edit | 1 | 0 | bsd-2-clause | 4df3209e4b0eb376f9eb1143717fb60b6d699182 | wileykestner/cf_app_utils_python | 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\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nversion = '2.6.dev0'\n\nsetup(\n name=\"django-photologue\",\n version=versio... | python | edit | 1 | 0 | bsd-3-clause | d265ec5127a8ab51b1812786f4e1eef79ef2a9a3 | rmaceissoft/django-photologue,jlemaes/django-photologue,rmaceissoft/django-photologue,seedwithroot/django-photologue-clone,rmaceissoft/django-photologue,RossLYoung/django-photologue,MathieuDuponchelle/my_patched_photologue,seedwithroot/django-photologue-clone,jlemaes/django-photologue,jlemaes/django-photologue,MathieuD... | 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\nversion = '0.5.2'\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:\n description = f.read()\n\nsetup(name='ouimeaux',\n version=version,\n ... | python | edit | 3 | 0 | bsd-3-clause | 845eb9209ebaf7f7acb9e748a94650ec74935ca2 | fujita-shintaro/ouimeaux,tomjmul/wemo,drock371/ouimeaux,sstangle73/ouimeaux,aktur/ouimeaux,sstangle73/ouimeaux,rgardner/ouimeaux,m-kiuchi/ouimeaux,tomjmul/wemo,fujita-shintaro/ouimeaux,tomjmul/wemo,rgardner/ouimeaux,bennytheshap/ouimeaux,m-kiuchi/ouimeaux,fritz-fritz/ouimeaux,sstangle73/ouimeaux,bennytheshap/ouimeaux,i... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# IdeaScaly\n# Copyright 2015 Jorge Saldivar\n# See LICENSE for details.\n\nimport six\nimport dateutil.parser\n\n\ndef parse_datetime(str_date):\n try:\n date_is = dateutil.parser.parse(str_date)\n return date_is\n exce... | python | edit | 1 | 4 | mit | 0163e8821288db826b595051a6312b19c66e05f0 | joausaga/ideascaly | ideascaly/utils.py | rejected_duplicate | Near-duplicate of sample 11379 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# from setuptools\n# import setup\nimport os\n\n__author__ = \"Andre Christoga\"\ninput = raw_input(\"> (eg plus, minus, divide...)\")\n\nif input == \"plus\":\n\tos.system(\"pymain/plus.py\")\nif input == \"minus\":\n\to... | python | edit | 2 | 0 | mit | 03d321f5700f2cd3f02de8aa2b601fa14d3de144 | codingsmartschool/PyMaIn | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\n===============================\nMisc (:mod:`macroeco.misc`)\n===============================\n\nThis module contains miscellaneous functions that support the functions of\nother modules of macroeco.\n\nSupport Functions\n==========... | python | edit | 9 | 0 | bsd-2-clause | abd5c75dbe8eab93504888c2483f63e77e72ffb2 | jkitzes/macroeco | macroeco/misc/__init__.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport rollbar\n\n\nclass ASGIMiddleware:\n def __init__(self, app):\n self.app = app\n\n async def __call__(self, scope, receive, send):\n try:\n await self.app(scope, receive, send)\n except Exception... | python | edit | 1 | 2 | mit | 5f5530205b54ca7929376c3c8e8d2c1fd68378a4 | rollbar/pyrollbar | rollbar/contrib/asgi/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add assertIdentical support from twisted.trial"
},
{
"role": "assistant",
"content": "# Copyright (c) 2007-2009 The Plasma Project.\n# See LICENSE.txt for details.\n\nimport unittest\n\n\ndef failUnlessIdentical(self, first, seco... | python | new_file | 1 | 3 | mit | edb73a4d8bba1c1265bfc00e5a765ff47c120e02 | hydralabs/plasma,hydralabs/plasma | plasma/test/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import division\r\n\r\nimport math\r\n\r\nimport numpy as np\r\n\r\n\r\n# Non-monotonic Ishigami Function (3 parameters)\r\n# Using Saltelli sampling with a sample size of ~1000\r\n# the expected first-order indices would be... | python | edit | 1 | 2 | mit | 971b36aedd700b23d791b72f60a9a534cc1be0ec | SALib/SALib,jdherman/SALib,jdherman/SALib | src/SALib/test_functions/Ishigami.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\nfrom .logger import CPNestLogger\nfrom .cpnest import CPNest\n\n# Get the version number from git tag\nfrom importlib.metadata import version, PackageNotFoundError\n\ntry:\n __version__ = version(__name__)\nexcept Package... | python | edit | 12 | 0 | mit | 504764d36344921b1c765f6ef19b21bbe0a29653 | johnveitch/cpnest | cpnest/__init__.py | rejected_lint | Too many lint violations: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sublime\nfrom ..common import util\n\n\nMYPY = False\nif MYPY:\n from typing import Sequence\n\n\nclass GitSavvyError(Exception):\n def __init__(self, msg, *args, cmd=None, stdout=\"\", stderr=\"\", **kwargs):\n # type: ... | python | edit | 3 | 3 | mit | 89720c6083312b9dbfdd7aa6ff19681c3363526d | divmain/GitSavvy,divmain/GitSavvy,divmain/GitSavvy | core/exceptions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.utils.translation import ugettext as _\nfrom django.contrib import admin\nfrom guardian.admin import GuardedModelAdmin\nfrom records.models import Record\nfrom .models import Case, PermissionGroup\n\n\nclass RecordInline(admin.S... | python | edit | 1 | 2 | mit | fa07eded66aa0d0e8d1eeb127e9d29a3df971cbc | watchdogpolska/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia.siecobywatelska.pl,rwakulszowa/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia,rwakulszowa/poradnia,watchdogpolska/poradnia.siecobywatelska.pl | poradnia/cases/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport subprocess\nimport sys\nfrom GpdbBuildBase import GpdbBuildBase\n\nclass GpBuild(GpdbBuildBase):\n def __init__(self, mode):\n self.mode = 'on' if mode == 'orca' else 'off'\n\n def configure(self):\n re... | python | edit | 4 | 3 | apache-2.0 | b1a21354735e3e4b58cf63c3fc81b6e8e2ee5ed7 | greenplum-db/gpdb,xinzweb/gpdb,adam8157/gpdb,adam8157/gpdb,greenplum-db/gpdb,lisakowen/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,lisakowen/gpdb,lisakowen/gpdb,Chibin/gpdb,lisakowen/gpdb,Chibin/gpdb,adam8157/gpdb,Chibin/gpdb,Chibin/gpdb,xinzweb/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,edespino/gpdb,janebeckman/gpdb,janebeckman/gpdb,... | concourse/scripts/builds/GpBuild.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\"\"\"Butter: library to give python access to linux's more lower level features\"\"\"\n\n__author__ = \"Da_Blitz\"\n__version__ = \"0.2\"\n__email__ = \"<EMAIL>\"\n__license__ = \"BSD (3 Clause)\"\n__url__ = \"http:/... | python | edit | 1 | 0 | bsd-3-clause | 2490cf79226c1d2729d97afb73d426ab1b5d515e | dasSOZO/python-butter,wdv4758h/butter | butter/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pyspark import SparkConf, SparkContext\r\nimport collections\r\n\r\nconf = SparkConf().setMaster(\"local\").setAppName(\"FriendsByAge\")\r\nsc = SparkContext(conf = conf)\r\n\r\ndef parseLine(line):\r\n fields = line.split(',')\r\n ... | python | edit | 2 | 1 | mit | c3876cd1ad2c73fa4278469b75c6d42b89fac8ea | tonirilix/apache-spark-hands-on | Friends-By-Age.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\n\nclass BaseConfig(object):\n DEBUG_TB_INTERCEPT_REDIRECTS = False\n\n SECRET_KEY = os.environ.get('SECRET_KEY', 'change me in production')\n\n db_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data... | python | edit | 1 | 0 | mit | d221b364b012d25bb1ff3125f4f9e36864db7995 | olin-computing/assignment-dashboard,osteele/assignment-dashboard,olin-computing/assignment-dashboard,olin-computing/assignment-dashboard,osteele/assignment-dashboard | assignment_dashboard/config.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom tastypie.authentication import Authentication\nfrom tastypie.resources import ModelResource\n\nfrom provider.oauth2.models import AccessToken\n\nfrom selvbetjening.core.members.models import SUser\n\n\nclass OAuth2Authentication(Auth... | python | edit | 1 | 5 | mit | d9fc83ec526df1bf732d8f65f445f48f1b764dfe | animekita/selvbetjening,animekita/selvbetjening,animekita/selvbetjening,animekita/selvbetjening | selvbetjening/api/rest/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Extension of flask.Response.\n\"\"\"\n\nfrom flask import Response as ResponseBase, json, current_app, request\n\n\nclass Response(ResponseBase):\n \"\"\"Extend flask.Response with support for list/dict conversion to JSON.\"\"\"\n ... | python | edit | 1 | 3 | mit | 3dbca57a197bcf3161939a748b3ced181e7a49e4 | dgilland/carafe | carafe/response.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\n\n\n# A regular expression is a string like what you see below between the quote\n# marks, and the ``re`` module interprets it as a pattern. Each regular\n# expression describes a small program that takes another string as input ... | python | edit | 1 | 2 | unlicense | 205ce071b4376872afd3d58c815a2c6804741627 | wkschwartz/first-last | names.py | rejected_duplicate | Near-duplicate of sample 5258 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\n\nclass env(object):\n def __init__(self, default=None):\n self.name = None\n self.default = default\n\n def __get__(self, obj, cls=None):\n if cls:\n return os.environ.get(self.name.upper(... | python | edit | 1 | 3 | bsd-3-clause | c2b3173a1246538d0b11a89a696288e41993eb5a | funkybob/paws | paws/conf.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy\nimport Axon\n\nclass MonoMixer(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent):\n channels = 8\n bufferSize = 1024\n\n def __init__(self, **argd):\n super(MonoMixer, self).__init__(**argd)\n for i in... | python | edit | 3 | 6 | apache-2.0 | 4653b9f493d28a6beb88a97d3d396ec1c9288f53 | sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia | Sketches/JT/Jam/library/trunk/Kamaelia/Apps/Jam/Audio/Mixer.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nimport csv\n\nfrom sqlalchemy.exc import IntegrityError\n\nfrom openledger.models import db, Image\n\nfilename = sys.argv[1]\nfields = ('ImageID', 'Subset', 'OriginalURL', 'OriginalLandingURL', 'License',\n 'AuthorProfi... | python | edit | 3 | 3 | mit | 8c8fbb8c3cf53ce0b193926fc89e426fb360eb81 | creativecommons/open-ledger,creativecommons/open-ledger,creativecommons/open-ledger | database_import.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!python\n# coding=utf-8\n\n\ndef cf_safe_name(name):\n import re\n if isinstance(name, str):\n if re.match('^[0-9_]', name):\n # Add a letter to the front\n name = \"v_{}\".format(name)\n return re... | python | edit | 1 | 3 | mit | 5386edbd7c88a1f53c88869abbf63c00ce212352 | axiom-data-science/pyaxiom,axiom-data-science/pyaxiom | pyaxiom/netcdf/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# This is a software index handler that gives a score based on the\n# number of mentions in open access articles. It uses the CORE\n# aggregator (http://core.ac.uk/) to search the full text of indexed\n# articles.\n# \n# Inputs:\n# - ident... | python | edit | 3 | 2 | bsd-3-clause | c81a5e42bdbbeda58e661667b0613e8e5f8d41c6 | softwaresaved/softwareindex,softwaresaved/softwareindex | softwareindex/handlers/coreapi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# This script uses the built-in Python module to check whether a given\n# pipeline is passing, failing, or blocked. To check for a blocked\n# pipeline, it looks through all upstream pipelines for any that are\n# faili... | python | edit | 3 | 0 | mit | 178bf48c01b61c6db15dc03020687c50962dafa8 | greenmoss/gocd-parser | bin/get_value_stream_status.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nImport the required subclasses of :class:`~qrcode.image.base.BaseImage` from the qrcode library with a fallback to SVG\nformat when the Pillow library is not available.\n\"\"\"\nimport logging\nfrom qrcode.image.svg import SvgPathIm... | python | edit | 1 | 4 | bsd-3-clause | 22225a8d8c020f49bd781f94eb3e47947f672993 | dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code | qr_code/qrcode_image.py | rejected_duplicate | Near-duplicate of sample 14890 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom django.test import SimpleTestCase\n\n\nclass CaseExtension(SimpleTestCase):\n\n _models = tuple()\n\n @classmethod\n def append_model(cls, model):\n cls._models += (model, )\n\n ... | python | edit | 1 | 4 | bsd-3-clause | eb8218de72d1789b9e054e2ee76c51558cc1a653 | erm0l0v/django-fake-model | django_fake_model/case_extension.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 | 77c69f592fe35ac4e3087366da084b7a73f21ee6 | zooniverse/panoptes-cli | setup.py | rejected_duplicate | Near-duplicate of sample 5293 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os.path as op\nimport re\nfrom setuptools import setup\n\n\ndef read(name, only_open=False):\n f = open(op.join(op.dirname(__file__), name))\n return f if only_open else f.read()\n\n\next_version = None\nwith read('flask_json.p... | python | edit | 1 | 2 | bsd-3-clause | 122bac32131b90b46673c6895dada3f01018f52b | craig552uk/flask-json | 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 | rejected_duplicate | Near-duplicate of sample 15973 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\nimport picklefield\n\nwith open('README.rst') as file_:\n long_description = file_.read()\n\nsetup(\n name='django-picklefield',\n version=picklefield.__version__,\n description='Pi... | python | edit | 1 | 0 | mit | e63ba7969fb697ee1c012f9d9f7708bf28adf9ef | gintas/django-picklefield | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# This file mainly exists to allow python setup.py test to work.\nimport os\nimport sys\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'nodeconductor.server.test_settings'\ntest_dir = os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(... | python | edit | 2 | 2 | mit | f53071faad4abb4f935425aa9b56c6dcae51abd4 | opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor | nodeconductor/server/test_runner.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ez_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup, find_packages\n\nversion = '0.1'\n\nsetup(name='zrunner',\n version=version,\n description=\"Utilities for running and benchmarking Zonation\",\n... | python | edit | 1 | 0 | mit | 8763c5aadc1a67382685a819cd7278dcf52e3513 | cbig/ztools,cbig/zrunner | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__version__ = \"0.5\"\n\nimport argparse\n\nfrom chaser import chaser\n\ndef main():\n parser = argparse.ArgumentParser()\n subparsers = parser.add_subparsers()\n\n parser_g = subparsers.add_parser('get')\n parser_g.add_argument... | python | edit | 1 | 2 | bsd-3-clause | 3088096b4a0289939c93f6dcffb3e893e30ca23c | rshipp/chaser,rshipp/chaser | chaser/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n__author__ = 'Ryan McGrath <<EMAIL>>'\n__version__ = '2.5.5'\n\nsetup(\n # Basic package information.\n name='twython',\n version=__version__,\n packages=find... | python | edit | 1 | 0 | mit | 9bda75b5200790bb2c68e256207d8fc5d45a76c6 | Oire/twython,joebos/twython,akarambir/twython,Fueled/twython,fibears/twython,ryanmcgrath/twython,vivek8943/twython,Hasimir/twython,Devyani-Divs/twython,ping/twython | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nVERSION = (1, 0, 'post-release-SVN')\n\ndef get_version():\n \"Returns the version as a human-format string.\"\n v = '.'.join([str(i) for i in VERSION[:-1]])\n if VERSION[-1]:\n from django.utils.version import get_svn_revis... | python | edit | 1 | 5 | bsd-3-clause | 8e608c2155a4a466f1a4bf87df05c4e4ebd90c1c | blindroot/django,lsqtongxin/django,jgoclawski/django,blighj/django,fenginx/django,riklaunim/django-custom-multisite,jn7163/django,alrifqi/django,ryangallen/django,charettes/django,eugena/django,AndrewGrossman/django,yakky/django,eugena/django,denys-duchier/django,EliotBerriot/django,dwightgunning/django,hassanabidpk/dj... | django/__init__.py | rejected_duplicate | Near-duplicate of sample 11354 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2011-2012 Michael Garski (<EMAIL>)\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#... | python | edit | 1 | 0 | apache-2.0 | 56e665946d6ba275dbfad45f8e11c796ee1cd257 | mgarski/stellr,mgarski/stellr | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='DStarSniffer',\n version='pre-1.0',\n description='DStar repeater controller sniffer',\n url='http://github.com/elielsardanons/dstar-sniffer',\n author='Eliel Sa... | python | edit | 1 | 0 | mit | 00e9ee41b65adc077aae0eedc0ed453fdd9bdc75 | elielsardanons/dstar_sniffer,elielsardanons/dstar_sniffer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\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# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unl... | python | edit | 1 | 0 | bsd-3-clause | 4c96280421d93a3fa851a7baa7ddb94c388c6d25 | Hasimir/cryptography,sholsapp/cryptography,dstufft/cryptography,Hasimir/cryptography,bwhmather/cryptography,sholsapp/cryptography,Lukasa/cryptography,bwhmather/cryptography,skeuomorf/cryptography,kimvais/cryptography,Lukasa/cryptography,bwhmather/cryptography,Hasimir/cryptography,Ayrx/cryptography,dstufft/cryptography,... | cryptography/hazmat/bindings/openssl/dsa.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__author__ = 's7a'\n\n# All imports\nfrom parser import Parser\nfrom breaker import Breaker\nimport re\n\n\n# The Syntactic simplification class\nclass SyntacticSimplifier:\n\n # Constructor for the Syntactic Simplifier\n def __init__... | python | edit | 1 | 4 | mit | 5439552e2e2ba0e5333b86ae23eece9edde43185 | Somsubhra/Simplify,Somsubhra/Simplify,Somsubhra/Simplify | src/syntax/syntactic_simplifier.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom setuptools import setup, find_packages, Command\n\nSEP='<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>'\n\n\nclass Doctest(Command):\n if sys.argv[-1] == 'test':\n print(SEP)\n ... | python | edit | 1 | 0 | mit | 6016b6531822615f7c697b0ac380150662d41ba0 | cemsbr/python-openflow,kytos/python-openflow | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup, find_packages\n\npeavy = __import__('peavy')\nsetup(\n author = 'Fairview Computing LLC',\n author_email = '<EMAIL>',\n classifiers = [\n 'Development Status :: 3 - Alpha',\n ... | python | edit | 3 | 0 | mit | dfe021b8833fabe9e81df2cd90889fb2ba52e2aa | fairview/django-peavy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Configuration for test environment\"\"\"\nimport sys\n\nfrom .fixtures import *\n\ncollect_ignore = []\n\nif sys.version_info < (3, 5):\n collect_ignore.append(\"test_async.py\")\n\nif sys.version_info < (3, 4):\n collect_ignore... | python | edit | 4 | 0 | mit | 3080c44c23adcb3a09fb94343da872b8b26ce9fc | timothycrosley/hug,timothycrosley/hug,timothycrosley/hug | tests/conftest.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nimport os\n\nfrom setuptools import setup\n\nlong_description = open('README.rst').read()\n\nclassifiers = [\n 'Development Status :: 4 - Beta',\n 'License :: OSI Approved :: BSD License',\n 'Programming Language :: Pyt... | python | edit | 4 | 0 | bsd-2-clause | 8af1c868b18aa7540e5a114a0a42617917bd8f88 | getwarped/powershift-cli,getwarped/powershift-cli | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_namespace_packages\n\nsetup(\n name=\"pptrees\",\n version=\"1.2.5\",\n description=\"Parallel Prefix tree generation library\",\n url=\"https://github.com/tdene/synth_opt_adders\",\n author... | python | edit | 1 | 0 | apache-2.0 | 595ef34520ffd0ec9bcc0031f34dce3e68922cf7 | tdene/synth_opt_adders | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Install Wallace as a command line utility.\"\"\"\n\nfrom setuptools import setup\nfrom wallace.version import __version__\n\nsetup_args = dict(\n name='wallace',\n version=__version__,\n description='A platform for experiment... | python | edit | 1 | 0 | mit | d4f67c1b92beaee46b38c2e5198d87076c157555 | suchow/Wallace,suchow/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,berkeley-cocosci/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,berkeley-cocosci/Wallace,berkeley-cocosci/Wallace,jcpeterson/Dallinger,suchow/Wallace,Dallinger/Dallinger,jcpeterson/Dalli... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nsetup(\n name='mozbase',\n version='0.3.0beta',\n packages=['mozbase'],\n test_suite='tests',\n install_requires=[\n 'SQLAlchemy==0.8.1',\n 'voluptuous==0... | python | edit | 1 | 0 | mit | 9b2ec353086789e5794e98db41fd2fa3b2139956 | ouihelp/yesaide,mozaiques/zombase | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='chrome_remote_shell',\n version='0.1',\n description='Client for remote debugging Google Chrome',\n url='https://github.com/tempelkim/chrome-remote-shell',\n author='Boris Kimm... | python | edit | 1 | 0 | mit | 4b3a12b39fc4fa7599f9d09ecd6d785a4ffc089d | tempelkim/chrome-remote-shell | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nsetup(name='timesynth',\n version='0.2.4',\n description='Library for creating synthetic time series',\n url='https://github.com/TimeSynth/TimeSynth',\n ... | python | edit | 1 | 0 | mit | c192977009c248473300b6dc5758e71ed47d73ca | TimeSynth/TimeSynth | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef read(filename):\n return open(os.path.join(os.path.dirname(__file__), filename)).read()\n\n\nsetup(\n name='gears-handlebars',\n version='0.1.2',\n url='https://git... | python | edit | 1 | 1 | isc | 36429980886a280f0781d9071752fbd9aad2c5a2 | gears/gears-handlebars,gears/gears-handlebars | setup.py | rejected_duplicate | Near-duplicate of sample 15434 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\n\nfrom tapioca import (\n TapiocaAdapter, generate_wrapper_from_adapter, JSONAdapterMixin)\n\nfrom requests.auth import HTTPBasicAuth\n\n\nfrom .resource_mapping import RESOURCE_MAPPING\n\n\nclass HarvestClientAdapter(JS... | python | edit | 3 | 2 | mit | e19487f21d2de5edeaa2edbb295c43d140797310 | vintasoftware/tapioca-harvest | tapioca_harvest/tapioca_harvest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\nfrom hamcrest import __version__\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name = 'PyHamcrest',\n version = __versio... | python | edit | 3 | 1 | bsd-3-clause | 4dd63d8e76c65d2899e8a4f869e8c138d3493ada | msabramo/PyHamcrest,nitishr/PyHamcrest,msabramo/PyHamcrest,nitishr/PyHamcrest | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\nif sys.version_info < (2,7,0):\n print(\"Error: signac requires python version >= 2.7.x.\")\n sys.exit(1)\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='signac',\n version='0.2.8',\n packages=f... | python | edit | 1 | 0 | bsd-3-clause | 3a328071535bc37bdd646403d663dd2a2a06c9af | csadorf/signac,csadorf/signac | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass WanderBrain(CritterBrain):\n def on_collision(self,dir,other,senses):\n pass\n def on_attack(self,dir,attacker,senses):\n pass\n def on_tick(self,senses):\n self.body.turn(uniform(-0.1,+0.1)*randrange(1,4... | python | edit | 9 | 2 | bsd-2-clause | 94ad4814f6e372374398a93db8a32ffd980a76d6 | FGCSchool-Math-Club/fgcs-math-club-2014 | battle-bots/markus_brains.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom hamcrest import *\n\nfrom test.features import BrowserTest\n\n\nclass test_create_pages(BrowserTest):\n\n def test_about_page(self):\n self.browser.visit(\"http://0.0.0.0:8000/high-volume-services/by-transactions-per-year/des... | python | edit | 8 | 1 | mit | 608a1b4c546fba8f79a30b0ed8d0629aa97d1489 | gds-attic/transactions-explorer,alphagov/transactions-explorer,gds-attic/transactions-explorer,gds-attic/transactions-explorer,alphagov/transactions-explorer,alphagov/transactions-explorer,alphagov/transactions-explorer,gds-attic/transactions-explorer,alphagov/transactions-explorer,gds-attic/transactions-explorer | test/features/test_create_pages.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__version__ = \"4.0b1\"\n__build__ = \"GIT_COMMIT\"\ntry:\n import logging\n import subprocess\n import os\n import platform\n FNULL = open(os.devnull, 'w')\n if platform.system() == \"Windows\":\n args = ['git', 'd... | python | edit | 1 | 0 | bsd-3-clause | 8a2371a74c27de5e74796d3544670dcc066ce04a | SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview,SasView/sasview | sasview/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python3\nimport sys\nfrom PyQt5.QtWidgets import QApplication\nfrom keyboard.ui.widgets import KeyboardWindow\n\nif __name__ == '__main__':\n app = QApplication([])\n window = KeyboardWindow()\n window.showMaximized()\n sys.e... | python | edit | 1 | 0 | apache-2.0 | 5f8242e8f414ab4460db116d0bb1fe3fb54a8794 | brainbots/assistant | assisstant/main.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pyqode.qt import QtCore\nfrom pyqode.qt.QtTest import QTest\nfrom pyqode.core.api import TextHelper\nfrom pyqode.core import modes\nfrom test.helpers import editor_open\n\n\ndef get_mode(editor):\n return editor.modes.get(modes.Smar... | python | edit | 1 | 1 | mit | 9567e79a5a5925b23a33c5216a9c13edf656151d | pyQode/pyqode.core,pyQode/pyqode.core,zwadar/pyqode.core | test/test_modes/test_backspace.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding=utf-8\n\nfrom __future__ import print_function, unicode_literals\n\nimport nose.tools as nose\n\nfrom tests.utils import run_filter\n\n\ndef test_ignore_case():\n \"\"\"should ignore case when querying alb... | python | edit | 1 | 1 | mit | 2618e62c210e2877600229301cf46428db04301d | caleb531/play-song,caleb531/play-song | tests/test_playalbum/test_query.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport json\nimport sys\nfrom db import dbManager\n\n\n# insert an organism into a database table\ndef insert(args):\n if hasattr(args, 'json'):\n data = json.loads(args.json)\n else:\n data = js... | python | edit | 3 | 3 | apache-2.0 | a0d007d0135f74faa10c9df1cd29320e32d317b3 | PDX-Flamingo/codonpdx-python,PDX-Flamingo/codonpdx-python | codonpdx/insert.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='aws-fuzzy-finder',\n version='1.0.0',\n url='https://github.com/pmazurek/aws-fuzzy-finder',\n description='SSH into AWS instances using fuzzy search through tags.',\n download_ur... | python | edit | 1 | 0 | mit | d28c20cf334002cad05534fdd3d0604c521f59b7 | pmazurek/aws-fuzzy-finder | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom django.test import TestCase\nfrom django.contrib.sites.models import Site\n\nfrom opps.core.models.channel import Channel\n\n\nclass ChannelModelTest(TestCase):\n\n def setUp(self):\... | python | edit | 1 | 1 | mit | 1dc11a6959616dbb0ff2bd3266223d0584bfa704 | YACOWS/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,opps/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,opps/opps,williamroot/opps,opps/opps,opps/opps | opps/core/tests/channel_models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\nsetup(\n name='blocks.contrib',\n namespace_packages=['blocks'],\n install_requires=['blocks'],\n packages=find_packages(exclude=['examples']),\n zip_safe=False)\n\n```\n\nApply ... | python | edit | 1 | 0 | mit | eed4ea2d787cf4cf07ec9d5a95b27f2c352f271a | vdumoulin/blocks-contrib | 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 pupa import __version__\n\nlong_description = ''\n\nsetup(name='pupa',\n version=__version__,\n packages=find_packages(),\n author='James Turk',\n ... | python | edit | 1 | 0 | bsd-3-clause | e3e2a6127c709982a716456206df08388b83c0b0 | mileswwatkins/pupa,rshorey/pupa,influence-usa/pupa,datamade/pupa,datamade/pupa,influence-usa/pupa,opencivicdata/pupa,rshorey/pupa,mileswwatkins/pupa,opencivicdata/pupa | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nfrom setuptools import setup\nimport os\n\nversion = __import__('timezone_utils').VERSION\n\n\nsetup(\n name='django-timezone-utils',\n version=version,\n description='',\n long_description=open(\n os.pat... | python | edit | 1 | 0 | mit | d7bdfebd137f92177976c13027ae0579bf61a71c | michaeljohnbarr/django-timezone-utils | 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.