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/env python\n# -*- coding: utf-8 -*-\nfrom django import template\nfrom ..generate import image_url as url\n\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef image_url(image_url, **kwargs):\n return url(image_url...
python
edit
1
5
mit
dfa144f02ac43012ea51f24b9752eabe8a1ef9b5
williamroot/opps,YACOWS/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,opps/opps,YACOWS/opps,jeanmask/opps,opps/opps,YACOWS/opps,opps/opps,williamroot/opps,opps/opps,jeanmask/opps,jeanmask/opps,williamroot/opps
opps/images/templatetags/images_tags.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nHandlebars templates use constructs like:\n\n {{if condition}} print something{{/if}}\n\nThis, of course, completely screws up Django templates,\nbecause Django thinks {{ and }} mean something.\n\nWrap {% verbatim %} and {% endve...
python
edit
1
7
mit
75eb6f93fff381953788a98aac8ee61bbf36c900
denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase
apps/storybase/templatetags/verbatim.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nfrom vext.env import findsyspy, in_venv\n\n\nclass TestVextAPI(unittest.TestCase):\n def test_findsyspy(self):\n # Stub test, checks no exceptions are thrown.\n findsyspy()\n\n def test_invenv(self):\n...
python
edit
3
1
mit
f9c98ff2c5166f113918f9dc575abcad781bce01
stuaxo/vext
tests/test-vext-api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"__init__ file for Pynuts.\"\"\"\n\nimport flask\nfrom flask.ext.sqlalchemy import SQLAlchemy\n\nimport document\nimport view\n\n\nclass Pynuts(flask.Flask):\n \"\"\"Create the Pynuts class.\n\n :param import_name: Flask applicat...
python
edit
1
3
bsd-3-clause
032256c7e13cd6630b7c6da16c083ad5b622aa64
Kozea/Pynuts,Kozea/Pynuts,Kozea/Pynuts
pynuts/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pyramid.view import view_config\n\nfrom lxml import etree\n\n@view_config(route_name='index', renderer='index.mako')\ndef my_view(request):\n smsfile = \"sms.xml\"\n with open(smsfile) as f:\n tree = etree.parse(f)\n\n ...
python
edit
1
1
mit
c8422778e31888cbc02dc764af875114916e5f88
spiffytech/smsviewer,spiffytech/smsviewer
smsviewer/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nCreated on Oct 6, 2013\n\n@author: dmaust\n'''\nimport math\n\nclass RounderBase(object):\n '''\n Abstract base class for rounding\n '''\n\n\n def __init__(self, precision=0):\n '''\n Constructor\n '''\...
python
edit
1
1
apache-2.0
0de68abab608680d4ef390fea572828fb12b6abd
dmaust/rounding
rounding/common.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom copy import deepcopy\n\nfrom simpleflake import simpleflake\n\nfrom lab_assistant import conf, utils\n\n\n__all__ = [\n 'get_storage',\n 'store',\n 'retrieve',\n 'retrieve_all',\n 'clear',\n]\n\n\ndef get_storage(path=No...
python
edit
1
3
mit
e93c29e7d3bbb66da000ec46e1908b36c2c497e1
joealcorn/lab_assistant
lab_assistant/storage/__init__.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__author__ = 'Alberto Paro'\n\n__all__ = ['NoServerAvailable',\n \"QueryError\",\n \"NotFoundException\",\n \"AlreadyExistsException\",\n \"IndexMissi...
python
edit
1
1
bsd-3-clause
baaa7e4818ac71898ff3b601d006f5e23d444bee
jayzeng/pyes,rookdev/pyes,haiwen/pyes,mavarick/pyes,haiwen/pyes,mouadino/pyes,haiwen/pyes,HackLinux/pyes,Fiedzia/pyes,jayzeng/pyes,mavarick/pyes,aparo/pyes,aparo/pyes,mouadino/pyes,Fiedzia/pyes,mavarick/pyes,HackLinux/pyes,aparo/pyes,rookdev/pyes,Fiedzia/pyes,jayzeng/pyes,HackLinux/pyes
pyes/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom minibot.bot import Bot\nfrom minibot.hardware.rpi.gpio import PWM\nfrom minibot.interface.servo import Servo\n\nimport math\nimport time\n\nL_MOTOR_PIN = 12\nR_MOTOR_PIN = 18\n\nclass GoBot(Bot):\n\n def __init__(self):\n Bot...
python
edit
1
1
apache-2.0
87b5fe729ef398722c2db1c8eb85a96f075ef82c
cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot,cornell-cup/cs-minibot
examples/GoBot/gobot.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom citrination_client.base.errors import CitrinationClientError\n\n\nclass Target(object):\n \"\"\"\n The optimization target for a design run. Consists of\n the name of the output column to optimize and the objective\n (eithe...
python
edit
1
3
apache-2.0
8639f4e32be8e264cca0831ecacec2d4a177cceb
CitrineInformatics/python-citrination-client
citrination_client/models/design/target.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from urlparse import urlparse\nexcept ImportError: # Python3\n from urllib import parse as urlparse\n\ntry:\n _xrange = xrange\nexcept NameError:\n _xrange = range\n\n```\n\nApply this change: Fix compat module for Python...
python
edit
3
0
mit
dea4ed78fef278c2cb87b052c98a67940339835a
nickstenning/tagalog,alphagov/tagalog,alphagov/tagalog,nickstenning/tagalog
tagalog/_compat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport foauth.providers\n\n\nclass Heroku(foauth.providers.OAuth2):\n # General info about the provider\n provider_url = 'https://heroku.com/'\n docs_url = 'https://devcenter.heroku.com/articles/platform-api-reference'\n categor...
python
edit
2
2
bsd-3-clause
b6a3890efc1716877eff7cce7f451df82cc3ca5c
foauth/foauth.org,foauth/foauth.org,foauth/foauth.org
services/heroku.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Restash changes.\"\"\"\n\nimport re\nimport sys\nfrom subprocess import check_output, PIPE, Popen\n\nfrom utils.messages import error\n\n\ndef restash(stash='stash@{0}'):\n \"\"\"Restashes a stash reference.\"\"\"\n\n if re.matc...
python
edit
2
3
mit
1d9b0ac91bca0dd19f83507f9e27414334fdb756
Brickstertwo/git-commands
bin/commands/restash.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/python3\n# -*- coding: utf-8 -*-\nfrom qidle import main\nimport logging\n\nif __name__ == '__main__':\n logging.basicConfig(level=logging.INFO)\n main()\n\n```\n\nApply this change: Add a log file on windows" }, { ...
python
edit
1
0
mit
bb82e3a8519009311ede80f877844565c49384b4
pyQode/pyqode.python,pyQode/pyqode.python,zwadar/pyqode.python,mmolero/pyqode.python
examples/qidle/qidle.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\n\nfrom localflavor.gb.forms import GBPostcodeField\n\n\nclass PostcodeLookupForm(forms.Form):\n postcode = GBPostcodeField(label=\"Enter your postcode\")\n\n\nclass AddressSelectForm(forms.Form):\n address = ...
python
edit
1
1
bsd-3-clause
b7438eb833887c207cc8b848e549a30c7a981373
DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations
polling_stations/apps/data_finder/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Tweepy\n# Copyright 2009-2010 Joshua Roesslein\n# See LICENSE for details.\n\n\"\"\"\nTweepy Twitter API library\n\"\"\"\n__version__ = '3.1.0'\n__author__ = 'Joshua Roesslein'\n__license__ = 'MIT'\n\nfrom tweepy.models import Status, Use...
python
edit
19
1
mit
8670dc8d6c0c920f21598b132250537a744eeebc
tweepy/tweepy,bconnelly/tweepy,kylemanna/tweepy,yared-bezum/tweepy,conversocial/tweepy,vikasgorur/tweepy,atomicjets/tweepy,iamjakob/tweepy,robbiewoods05/tweepy,arunxarun/tweepy,tsablic/tweepy,kcompher/tweepy,rudraksh125/tweepy,svven/tweepy,srimanthd/tweepy,vishnugonela/tweepy,truekonrads/tweepy,IsaacHaze/tweepy,awangga...
tweepy/__init__.py
rejected_lint
Too many lint violations: 19
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nimport pytest\n\nif sys.version_info >= (3, 3):\n from unittest.mock import Mock\n\n\nABI = [{}]\nADDRESS = '0xd3cda913deb6f67967b99d67acdfa1712c293601'\nINVALID_CHECKSUM_ADDRESS = '0xd3CDA913deB6f67967B99D67aCDFa1712C29360...
python
edit
1
3
mit
20cc6c1edca69c946261c6bd8587d6cf5bb7a6e8
pipermerriam/web3.py
tests/core/eth-module/test_eth_contract.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# --------\n# |C @ S aa|\n# --------\n\nlevel.description(\"The wall behind you feels a bit further away in this room. And you hear more cries for help.\")\nlevel.tip(\"You can walk backward by passing 'backward' as an argument to walk_. ...
python
edit
13
0
mit
e1f15a29bb947666740ec250120e3bdf451f0477
arbylee/python-warrior
pythonwarrior/towers/beginner/level_006.py
rejected_lint
Too many lint violations: 13
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\n Copyright (C) 2012 STFC\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 http://www.ap...
python
edit
9
0
apache-2.0
e5c8379c987d2d7ae60d5f9321bb96f278549167
apel/apel,tofu-rocketry/apel,tofu-rocketry/apel,stfc/apel,apel/apel,stfc/apel
apel/parsers/__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\nimport os\n\nimport requests\n\n\n# local configuration\nremote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote')\n\n\n# URLs at which data can be found\ncsv_url_summary_sta...
python
edit
1
0
mit
bab17ba4b22192848ab7e2b9649b6e83f0d947ac
devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring
src/load_remote_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, print_function, unicode_literals\n\n# NB! This is not necessarily the version scheme we want, however having a good\n# tracking of releases once we start doing lots of pre-releases is essential.\nfrom...
python
edit
1
0
mit
09db47bd68f71560cde9509472b114c9ed5a6d54
jonboiser/kolibri,mrpau/kolibri,lyw07/kolibri,DXCanas/kolibri,lyw07/kolibri,DXCanas/kolibri,indirectlylit/kolibri,jonboiser/kolibri,learningequality/kolibri,christianmemije/kolibri,learningequality/kolibri,indirectlylit/kolibri,mrpau/kolibri,lyw07/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,christianmemije/koli...
kolibri/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nfrom recipe_scrapers._exceptions import SchemaOrgException\nfrom recipe_scrapers._schemaorg import SchemaOrg\n\n\nclass TestSchemaOrg(unittest.TestCase):\n def setUp(self):\n with open(\"tests/test_data/schemaor...
python
edit
1
3
mit
0d8a9a83fdd896aa5690c1c32db1d1658748a94a
hhursev/recipe-scraper
tests/test_schemaorg.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom attest import Tests\n\n\nsuite = lambda mod: 'attest.tests.' + mod + '.suite'\n\nall = Tests([suite('asserts'),\n suite('collections'),\n suite('classy'),\n suite('reporters'),\n suite('e...
python
edit
1
0
bsd-2-clause
fdcc7f0e45fe5f0d284f47941238a92cbe9a1b36
dag/attest
attest/tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\nLOG_FORMAT = '%(asctime)s %(levelname)s: %(message)s [in %(pathname)s:%(lineno)d]'\n\ndef init_console_logger(logging_verbosity=3):\n logging_levels = [logging.ERROR, logging.WARN, logging.INFO, logging.DEBUG]\n if l...
python
edit
1
2
apache-2.0
f096b5d2944dc19de8aa79696c137fe3f45927da
peterk87/sistr_cmd
sistr/src/logger.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add metadata to ``testapp`` package." }, { "role": "assistant", "content": "__author__ = 'Igor Davydenko <<EMAIL>>'\n__description__ = 'Flask-And-Redis test project'\n__license__ = 'BSD License'\n__version__ = '0.2.3'\n" } ]
python
new_file
1
0
bsd-3-clause
4219cb35c877d7838ed5ff4483a028f05f8433bd
playpauseandstop/Flask-And-Redis,playpauseandstop/Flask-And-Redis
testapp/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\n\nurl_re = re.compile(\"(?:\\s|^)<(https?://[\\w./?+&+%$!#=\\-_]+)>(?:\\s|$)\")\n\n\ndef extract_url(message):\n \"\"\"\n Returns the first url in a message. If there aren't any returns None\n \"\"\"\n answer = url_re...
python
edit
1
2
mit
1f3f0b50d8cd740e09983b3dbd8796f1e4afa66c
iwi/linkatos,iwi/linkatos
linkatos/message.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nDEBUG = True\n\nGANGLIA_PATH = '/usr/local/etc' # where gmetad.conf is located\n\nAPI_SERVER = 'http://ganglia-api.example.com:8080' # where ganglia-api.py is hosted\nBASE_URL = '/ganglia/api/v2'\n\nLOGFILE = '/var/log/ganglia-api.log'\nP...
python
edit
1
0
apache-2.0
cbe773d051168e05118774708ff7a0ce881617f4
guardian/ganglia-api
ganglia/settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"api.api.settings\")\n\nimport django\nfrom django.test import TestCase\nfrom rest_framework.test import APIRequestFactory\n\nfrom api.webview.views import DocumentList\n\ndjango...
python
edit
1
1
apache-2.0
012f93ae03aded72b64ac9bbfb6d2995199d4d8f
erinspace/scrapi,erinspace/scrapi,felliott/scrapi,fabianvf/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi
tests/test_api_views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport site\nimport sys\nimport this\nfrom distutils.sysconfig import get_python_lib\n\nSITE_PACKAGES_PATHS = set()\nif hasattr(site, 'getsitepackages'):\n SITE_PACKAGES_PATHS.update(site.getsitepackages())\nif hasattr(site, '...
python
edit
1
0
bsd-2-clause
1ed1ac9a9a07a4b43ed1e96060a40b1ffd3fe97d
ionelmc/python-hunter
src/hunter/const.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tests import utils\n\n\ndef test_recursion():\n uwhois = utils.create_uwhois()\n expected = 'whois.markmonitor.com'\n transcript = utils.read_transcript('google.com.txt')\n # Make sure there's nothing wrong with the WHOIS t...
python
edit
1
1
mit
b1a91fc4e843197a12be653aa60d5cdf32f31423
Rafiot/uwhoisd,Rafiot/uwhoisd
tests/test_recursion.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 pytest\nimport tempfile\nfrom click.testing import CliRunner\n\nimport tbmodels\nfrom tbmodels._cli import cli\n\n\n@pytest.mark.parametrize('prefix', ['silicon', 'bi'])\ndef test_cli...
python
edit
1
1
apache-2.0
0168836c6bb2c04ac7a9d4ac6682fca47512ea4c
Z2PackDev/TBmodels,Z2PackDev/TBmodels
tests/test_cli_parse.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Tests for SecretStorage\n# Author: Dmitry Shachnev, 2018\n# License: 3-clause BSD, see LICENSE file\n\nimport unittest\n\nfrom secretstorage import dbus_init, get_any_collection\nfrom secretstorage.util import BUS_NAME\nfrom secretstorage...
python
edit
1
1
bsd-3-clause
0b32ae7a09dd961f379104b6628eaf5700cca785
mitya57/secretstorage
tests/test_unlocking.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\n\nfrom micromanager.resources import Resource\nfrom micromanager.resources import BQDataset\nfrom micromanager.resources import Bucket\nfrom micromanager.resources import SQLInstance\n\ntest_cases = [\n (\n {'resour...
python
edit
7
1
apache-2.0
754d2949ce0c2fa2b36615af755b3b8aaf9876b5
forseti-security/resource-policy-evaluation-library
tests/test_resources.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2014 OpenStack Foundation\n# All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the Li...
python
edit
3
0
apache-2.0
d59635e9542ca54b39eaa10f31b53da46df68e61
gkotton/vmware-nsx,gkotton/vmware-nsx
neutron/plugins/ml2/drivers/mlnx/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\nimport sys\n\n# This bit of evil should inject third_party into the path for relative imports.\nsys.path.append(os.path.dirname(__file__))\n\n```\n\nApply this change: Insert third_party into the second slot of sys.path rath...
python
edit
1
0
apache-2.0
bcc0fbf9d8dd75b776c6a2137975912bcd0831d5
nishad/namebench,jimb0616/namebench,cah0211/namebench,iamang/namebench,tcffisher/namebench,HerlonNascimento/namebench,RomanHargrave/namebench,tectronics/namebench,llaera/namebench,renatogames2/namebench,bluemask2001/namebench,Bandito43/namebench,ran0101/namebench,cloudcache/namebench,deepak5/namebench,thanhuwng/nameben...
third_party/__init__.py
rejected_duplicate
Near-duplicate of sample 4239
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework.routers import DefaultRouter\nfrom rest_framework_extensions.routers import NestedRouterMixin\n\n\nclass DefaultRouterWithNesting(NestedRouterMixin, DefaultRouter):\n pass\n\n```\n\nApply this change: Add documentatio...
python
edit
1
1
mit
bbeb9b780908cf1322722669f1c68259345fe261
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
readthedocs/v3/routers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport asyncio\nimport io\nimport multiprocessing\nimport urllib.request\nimport time\n\nimport grole\n\ndef simple_server():\n app = grole.Grole()\n\n @app.route('/')\n def hello(env, req):\n return 'Hello,...
python
edit
4
1
mit
20696d6f236afc1bc0e2b3db570363540e70ca84
witchard/grole
test/test_serve.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pymw\nimport pymw.interfaces\n\nimport artgraph.plugins.infobox\n\nfrom artgraph.node import NodeTypes\nfrom artgraph.node import Node\n\nclass Miner(object):\n nodes = []\n relationships = []\n master = None\n task_queue...
python
edit
1
4
mit
5e0e22eb6e709eb5291ac50a28b96c2c05909a2d
dMaggot/ArtistGraph
src/artgraph/miner.py
rejected_duplicate
Near-duplicate of sample 3860
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass Solution:\n def __init__(self, nr):\n self.nr = nr\n self.test = False\n self.input = \"\"\n self.solution = [\"(not calculated)\", \"(not calculated)\"]\n self.calculated = [False, False]\n\n ...
python
edit
1
2
mit
d34fbc70d5873d159c311caed41b745b05534ce9
unstko/adventofcode2016
lib/solution.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nclass SpamBLError(Exception):\n ''' Base exception class for spambl module '''\n \nclass UnknownCodeError(SpamBLError):\n ''' Raise when trying to use an unexpected value of dnsbl return code '''\n \nc...
python
edit
1
0
mit
06e84c25bb783490c963963ccb44cf07d521a197
piotr-rusin/spam-lists
spam_lists/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport textwrap\n\nfrom prettytable import PrettyTable\n\nfrom ..config import get_config, save_config_value\nfrom .. import constants\nfrom ..log import log_to_client\n\ndef _eligible_config_keys_for_setting():\n config = get_config()\...
python
edit
3
4
mit
bfbb1e4fb8324df9a039c18359c053190f9e7e64
gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty
dusty/commands/manage_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# This hack by: Raymond Hettinger\nclass hexdumper:\n \"\"\"Given a byte array, turn it into a string. hex bytes to stdout.\"\"\"\n def __init__(self):\n\tself.FILTER=''.join([(len(repr(chr(x)))==3) and chr(x) or '.' \\\n\t\t\t\t\t\t ...
python
edit
8
4
bsd-3-clause
0f8b6f4a12c23e5498e8135a3f39da40c4333788
gvnn3/PCS,gvnn3/PCS
tests/hexdumper.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Init file.\"\"\"\nimport os\nimport sys\n\nTHIS_DIR = os.path.dirname(os.path.realpath(__file__))\nPROTO_ROOT = os.path.realpath(os.path.join(THIS_DIR, \"service\"))\n\nsys.path.append(PROTO_ROOT)\n\n__version__ = \"0.0.3.alpha\"\n\n`...
python
edit
1
0
apache-2.0
f0766ff22a7ee7c3e9a48c468f7e1f41e9d7e92c
google/vizier,google/vizier
vizier/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, render_template, abort, redirect, url_for\nfrom flask.ext.script import Manager\n\nfrom jinja2 import TemplateNotFound\n\napp = Flask(__name__)\napp.config['TESTING'] = True\nmanager = Manager(app)\n\n\n@app.route('...
python
edit
1
2
bsd-2-clause
440fcebdcc06c0fbb26341764a0df529cec6587d
gcavalcante8808/flask-wiki,gcavalcante8808/flask-wiki,gcavalcante8808/flask-wiki
flask_wiki/frontend/frontend.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport automata.automaton as automaton\n\n\nclass NFA(automaton.Automaton):\n \"\"\"a deterministic finite automaton\"\"\"\n\n def validate_automaton(self):\n \"\"\"returns True if this NFA is internal...
python
edit
1
8
mit
1891469e5d3eb34efbe3c5feed1f7770e680120e
caleb531/automata
automata/nfa.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tddcommitmessage.messagebody import MessageBody\nfrom tddcommitmessage import Kind\n\ndef test_message_is_wrapped_in_quotes():\n msg = MessageBody(Kind.red, 'Forty-two')\n assert str(msg) == '\"RED Forty-two\"'\n\ndef test_messag...
python
edit
1
1
mit
fb6e5b11492675b7a7c94424737c91acbb541d69
matatk/tdd-bdd-commit,matatk/tdd-bdd-commit
tests/test_message_body.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom genes.posix.traits import only_posix\nfrom genes.process.commands import run\n\n\n@only_posix()\ndef chgrp(path, group):\n run(['chgrp', group, path])\n\n\n@only_posix()\ndef chown(path, user):\n run(['ch...
python
edit
1
2
mit
ef617d4e98d9c029225a32098cc81aeab1d6deb5
hatchery/Genepool2,hatchery/genepool
genes/gnu_coreutils/commands.py
rejected_duplicate
Near-duplicate of sample 4156
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass VirtualMachine:\n def __init__(self, bytecodes, ram_size=256, executing=True):\n self.bytecodes = bytecodes\n self.data = [None]*ram_size\n self.stack = []\n self.executing = executing\n self.pc =...
python
edit
1
3
bsd-3-clause
8ac142af2afc577a47197fe9bc821cb796883f38
darbaga/simple_compiler
virtual_machine.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom xml.etree import cElementTree as etree\n\nfrom conary import conarycfg\nfrom conary import conaryclient\nfrom rpath_tools.client.utils.config_descriptor_cache import ConfigDescriptorCache\n\nclass Descriptors(objec...
python
edit
2
6
apache-2.0
de60844c82c9b569228aa830d36235b5a377859d
sassoftware/rpath-tools,sassoftware/rpath-tools
rpath_tools/client/sysdisco/descriptors.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport swapper\n\nfrom datetime import (\n datetime,\n timedelta,\n)\nfrom factory import SubFactory\nfrom factory.django import DjangoModelFactory\nfrom simpleuser.tests.factories.user_factory import UserFactory\nfrom .deferrable_mod...
python
edit
1
0
mit
853744e82f2740a47a3f36e003ea8d2784bafff6
masschallenge/django-accelerator,masschallenge/django-accelerator
accelerator/tests/factories/user_deferrable_modal_factory.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom . import CookieParser, CookieDict\n\ndef parse_cookies(httplib_headers):\n cookies = [\n CookieParser.parse_set_cookie_value(\n header[1]\n ) for header in httplib_headers if header[0].lower() == 'set-cookie...
python
edit
3
2
bsd-2-clause
450b72dd97534c7317a6256ec2b2cd30bc0a0e59
p/ocookie
ocookie/httplibadapter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nversion = '1.6.6'\nrevision = ' beta 2'\nmilestone = 'Yoitsu'\nrelease_number = '89'\nprojectURL = 'https://syncplay.pl/'\n\n```\n\nApply this change: Mark build 90 as 1.6.6 final" }, { "role": "assistant", "content": "version =...
python
edit
1
0
apache-2.0
13c1745e73b7d3be162ce228d6c6ccf53f2438eb
alby128/syncplay,Syncplay/syncplay,Syncplay/syncplay,alby128/syncplay
syncplay/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Read an OCTGN deck\nfrom xml.etree import ElementTree\n\ndef read_file(filename):\n filedata = open(filename).read()\n return read(filedata)\n\ndef read(filedata):\n root = ElementTree.fromstring(filedata)\n identity = []\n cards = [...
python
edit
1
5
apache-2.0
e0b7217caaf4b94c879f43f2ee95584c469687db
mrroach/CentralServer,mrroach/CentralServer,mrroach/CentralServer
csrv/model/read_o8d.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management import call_command\nfrom django.core.management.base import BaseCommand\n\nfrom frontend.tests.test_api_spending import TestAPISpendingViewsPPUTable\n\n\nclass Command(BaseCommand):\n\n help = 'Loads sample d...
python
edit
1
1
mit
eac2211956d49d9da957492bbac1bcdc85b1e40d
ebmdatalab/openprescribing,annapowellsmith/openpresc,ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing
openprescribing/frontend/management/commands/load_development_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport struct\nfrom steel.fields import Field\n\n__all__ = ['Integer']\n\n\nclass Integer(Field):\n \"An integer represented as a sequence and bytes\"\n\n # These map a number of bytes to a struct format code\n size_formats = {\n ...
python
edit
1
2
bsd-3-clause
cebd4f1ee9a87cc2652ebf8981df20121ec257b2
gulopine/steel-experiment
steel/fields/numbers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nif sys.version_info[:2] > (2, 5):\n from tests._testwith import *\nelse:\n from tests.support import unittest2\n \n class TestWith(unittest2.TestCase):\n \n @unittest2.skip('tests using with statement...
python
edit
2
1
bsd-2-clause
a80b1292e9c9a29921a3e42c7c60d861b4bf7965
frankier/mock,dannybtran/mock,testing-cabal/mock,sorenh/mock,scorphus/mock,nett55/mock,rbtcollins/mock,fladi/mock,OddBloke/mock,derwiki-adroll/mock,kostyll/mock,pypingou/mock,lord63-forks/mock,johndeng/mock
tests/testwith.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\"\"\"Echo server in socket connection: receives and sends back a message.\"\"\"\nimport socket\n\n\nif __name__ == '__main__':\n \"\"\"Run from terminal, this will recieve a messages and send them back.\"\"\"\n ...
python
edit
2
1
mit
fc73dfb33f4e19d649672f19a1dc4cf09b229d29
bm5w/network_tools
echo_server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"\nThis subpackage contains tools to perform point-spread-function (PSF)\nphotometry.\n\"\"\"\n\nfrom .epsf import * # noqa\nfrom .epsf_stars import * # noqa\nfrom .gro...
python
edit
1
0
bsd-3-clause
fa2ecdc0bcb30415699baf4f014b390d4473d43c
astropy/photutils,larrybradley/photutils
photutils/psf/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2013 Russell Heilling\nimport logging\n\nfrom google.appengine.api import users\n\nfrom pulldb import base\nfrom pulldb import session\nfrom pulldb.models.users import User\n\nclass Profile(session.SessionHandler):\n def get(se...
python
edit
3
3
mit
32f99cd7a9f20e2c8d7ebd140c23ac0e43b1284c
xchewtoyx/pulldb
pulldb/users.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\nclass ExperimentGroup(models.Model):\n experiment = models.CharField(max_length=48)\n\n user = models.ForeignKey('auth.User', related_name=None)\n\n group = models.IntegerField()\n\n class Meta:\n...
python
edit
1
0
mit
de2e3dd947660b4b1222820141c5c7cd66098349
prophile/django_split
django_split/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom .models import Book\n\nclass ReviewForm(forms.Form):\n\t\"\"\"\n\tForm for reviewing a book\n\t\"\"\"\n\n\tis_favourite = forms.BooleanField(\n\t\tlabel = 'Favourite?',\n\t\thelp_text = 'In your top 100 books ...
python
edit
1
2
mit
4299f4f410f768066aaacf885ff0a38e8af175c9
nirajkvinit/python3-study,nirajkvinit/python3-study,nirajkvinit/python3-study,nirajkvinit/python3-study
intro-django/readit/books/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Last Change: Sat Jun 09 07:00 PM 2007 J\n\n#========================================================\n# Constants used throughout the module (def args, etc...)\n#========================================================\n# This is the defa...
python
edit
1
0
bsd-3-clause
d97144e2b45750c416d3adbf9f49f78bfa8e7e6e
scipy/scipy-svn,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,scipy/scipy-svn,lesserwhirls/scipy-cwt,scipy/scipy-svn,scipy/scipy-svn,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor
Lib/sandbox/pyem/misc.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom evolution_master.runners import pkg, download\n\n# Install for Arch\nwith pkg.pacman() as pkg_man:\n pkg_man.install('go')\n\n# Install for Debian & Ubuntu\nwith pkg.apt() as pkg_man:\n pkg_man.install('g...
python
edit
null
null
mit
8793b1a2c4adf480534cf2a669337032edf77020
hatchery/Genepool2,hatchery/genepool
golang/main.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nimport time\nimport unittest\nimport vasp_raman\n\nclass VaspRamanTester(unittest.TestCase):\n def testMAT_m_VEC(self):\n self.assertTrue(False)\n\n```\n\nApply this change: Add a test for vasp_...
python
edit
4
2
mit
a48f651435d212907cb34164470a9028ba161300
raman-sc/VASP,raman-sc/VASP
test/test_vasp_raman.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# -*- coding: utf-8 -*-\n\n\"\"\"\ntest_prompt\n--------------\n\nTests for `cookiecutter.prompt` module.\n\"\"\"\n\nimport unittest\n\nfrom cookiecutter import prompt\n\n\nclass TestPrompt(unittest.TestCase):\n de...
python
edit
2
1
bsd-3-clause
22a1e02efae195ef8f93a34eedfc28a8d9bb40ba
kkujawinski/cookiecutter,utek/cookiecutter,foodszhang/cookiecutter,audreyr/cookiecutter,alex/cookiecutter,letolab/cookiecutter,venumech/cookiecutter,dajose/cookiecutter,venumech/cookiecutter,michaeljoseph/cookiecutter,atlassian/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,vincentbernat/cookiecutter,sp1rs/cook...
tests/test_prompt.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport argparse\nfrom buildkmz import create_kmz_from_csv\n \ndef main():\n \"\"\" Build file as per user inputs\n \"\"\"\n \n args = get_cmd_args() \n iPath = args.input\n sPath = args.styles\n oDir =...
python
edit
3
1
mit
01e1900a139d7525a0803d5a160a9d91210fe219
aguinane/csvtokmz
csv2kmz/csv2kmz.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .docker_compose import DockerBaseSettings\n\nclass WebDevSettings(DockerBaseSettings):\n\n # Needed to serve 404 pages properly\n # NOTE: it may introduce some strange behavior\n DEBUG = False\n\nWebDevSettings.load_settings(_...
python
edit
1
0
mit
ddeffc09ce1eab426fe46129bead712059f93f45
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
docker/settings/web.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport click\nimport pytest\n\n\nif click.__version__ >= '3.0':\n def test_legacy_callbacks(runner):\n def legacy_callback(ctx, value):\n return value.upper()\n\n @click.command()\n @click.option('--foo', ...
python
edit
1
1
bsd-3-clause
c99bbc0a30dca8aaa72a4c79543400d9fbf97ebb
pallets/click,mitsuhiko/click
tests/test_compat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nVERSION = (1, 4, 5, 'final', 0)\n\ndef get_version(version=None):\n \"\"\"Derives a PEP386-compliant version number from VERSION.\"\"\"\n if version is None:\n version = VERSION\n assert len(version) == 5\n assert version...
python
edit
1
8
bsd-3-clause
4c6fb23dd40216604f914d4f869b40d23b13bf73
riklaunim/django-custom-multisite,riklaunim/django-custom-multisite,riklaunim/django-custom-multisite
django/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\n$ mysql\nWelcome to the MySQL monitor. Commands end with ; or \\g.\nYour MySQL connection id is 211\nServer version: 5.6.15 Homebrew\n\nCopyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.\n\nOracle is a regist...
python
edit
1
1
apache-2.0
984c395e3f43764a4d8125aea7556179bb4766dd
moritzschaefer/luigi,kalaidin/luigi,riga/luigi,foursquare/luigi,dylanjbarth/luigi,Dawny33/luigi,harveyxia/luigi,graingert/luigi,slvnperron/luigi,harveyxia/luigi,sahitya-pavurala/luigi,hadesbox/luigi,rayrrr/luigi,humanlongevity/luigi,Tarrasch/luigi,Magnetic/luigi,percyfal/luigi,torypages/luigi,stroykova/luigi,theoryno3/...
test/_mysqldb_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"GeoKey settings.\"\"\"\n\nfrom geokey.core.settings.dev import *\n\n\nDEFAULT_FROM_EMAIL = '<EMAIL>'\nACCOUNT_EMAIL_VERIFICATION = 'optional'\n\nSECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxx'\n\nDATABASES = {\n 'default': {\n 'ENG...
python
edit
8
0
mit
eed78d3a671aee0fcc0760f15087085f2918da6c
ExCiteS/geokey-epicollect,ExCiteS/geokey-epicollect
travis_ci/settings.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom blo.BloArticle import BloArticle\nfrom blo.DBControl import DBControl\n\n\nclass Blo:\n def __init__(self, db_file_path, template_dir=\"\"):\n self.template_dir = template_dir\n # create tables\n self.db_file_pa...
python
edit
1
1
mit
0e46b47a3053e63f50d6fd90b1ba810e4694c9be
10nin/blo,10nin/blo
blo/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom mollie.api.objects.issuer import Issuer\n\nfrom .utils import assert_list_object\n\n\ndef test_get_issuers(client, response):\n \"\"\"Get all the iDeal issuers via the include querystring parameter.\"\"\"\n response.get('https://...
python
edit
1
1
bsd-2-clause
a0a1606d115efd3521ac957aa9a39efec60eda8c
mollie/mollie-api-python
tests/test_issuers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef pretty_print_recursive(obj, indent=0):\n def i_print(s):\n print(' ' * indent + s)\n\n if obj is None:\n i_print('None')\n elif isinstance(obj, (int, float, str)):\n i_print(f'{obj}')\n elif isinstance(o...
python
edit
1
12
bsd-3-clause
6f24aa5e1e1ff78e95ed17ff75acc2646280bdd8
puhitaku/typedmarshal
typedmarshal/util.py
rejected_complexity
Cyclomatic complexity too high: 12
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom zfssnap import Host, Dataset\nimport subprocess\n\n\nPROPERTY_PREFIX = 'zfssnap'\n\n\nclass TestDataset(object):\n @pytest.fixture\n def fs(self):\n fs_name = 'zpool/dataset'\n host = Host()\n ...
python
edit
3
1
mit
91d24b3ce272ff166d1e828f0822e7b9a0124d2c
hkbakke/zfssnap,hkbakke/zfssnap
tests/test_dataset.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nversion = '3.7'\n\nsetup(name='jarn.mkrelease',\n version=version,\n description='Python egg releaser',\n long_description=open('README.txt').read() + '\\n' +\n ...
python
edit
1
0
bsd-2-clause
e34ce0033e1ffc3f6a81d37260056166ac5f582d
Jarn/jarn.mkrelease
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Define retry util function\n\n\nclass RetryException(Exception):\n pass\n\n\ndef retry(func, max_retry=10):\n \"\"\"\n @param func: The function that needs to be retry\n (to pass function with arguments use partia...
python
edit
4
3
mit
4c8dd2b074d2c2227729ff0bd87cf60d06e97485
duboviy/misc
retry.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n__author__ = 'Ryan McGrath <<EMAIL>>'\n__version__ = '1.5.0'\n\nsetup(\n name='twython-django',\n version=__version__,\n install_requires=['...
python
edit
1
0
mit
91682c5db1cb4267e719723a15de7b3f34393f9f
ryanmcgrath/twython-django,c17r/twython-django,aniversarioperu/twython-django,aniversarioperu/twython-django,c17r/twython-django
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, Command\nimport os\n\npackages = find_packages()\n\n\nclass PyTest(Command):\n user_options = []\n\n def initialize_options(self):\n ...
python
edit
1
1
mit
26d3b8eb1992b19aebe8f0e3eae386e8b95822fb
njvack/scorify
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\n__all__ = ['timing', 'incr']\n\nfrom django_statsd.clients import statsd\nfrom django.conf import settings\nfrom random import random\n\n\ndef _get_key(key):\n prefix = settings.SENTRY_METRICS_PR...
python
edit
1
5
bsd-3-clause
5fbb833cf5fa33f2d364d6b56fcc90240297a57b
JackDanger/sentry,zenefits/sentry,argonemyth/sentry,jean/sentry,zenefits/sentry,nicholasserra/sentry,1tush/sentry,songyi199111/sentry,JamesMura/sentry,korealerts1/sentry,gg7/sentry,jean/sentry,zenefits/sentry,argonemyth/sentry,boneyao/sentry,Kryz/sentry,jean/sentry,vperron/sentry,kevinastone/sentry,looker/sentry,ifduyu...
src/sentry/utils/metrics.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\nfrom ez_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup, find_packages\nfrom csdms.dakota import __version__, plugin_script\n\npackage_name = 'csdms.dakota'\n\nsetup(name=package_name,\n ...
python
edit
1
0
mit
6e18192da18b6d1b9c6443981f007126ea7e6927
csdms/dakota,csdms/dakota
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, unicode_literals\n\nfrom django.db import models\nfrom django.utils.encoding import python_2_unicode_compatible\n\nfrom .staff_student import StaffStudentBase\n\n\n@python_2_u...
python
edit
1
1
mit
f2eb45ea24429fd3e4d32a490dbe3f8a2f383d9f
texastribune/scuole,texastribune/scuole,texastribune/scuole,texastribune/scuole
scuole/stats/models/base.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" service_time.py \"\"\"\n\nfrom datetime import datetime\n\nfrom flask import Flask, jsonify\n\n\napp = Flask(__name__)\ncount = 0\n\n\n@app.route(\"/time\", methods=['GET'])\ndef get_datetime():\n global count\n count += 1\n ...
python
edit
1
1
mit
15b8810b3bf244295f38b628a0ebb1cb72f46bb3
danriti/short-circuit,danriti/short-circuit
service_time.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\n\"\"\"Print Python interpreter path and version.\"\"\"\n\nimport sys\n\nsys.stdout.write(sys.executable + '\\n')\nsys.stdout.write(sys.version + '\\n')\nsys.stdout.flush()\n\n```\n\nApply this change: Print ICU and...
python
edit
1
0
apache-2.0
fcd6af0a2a02ef87eedd78aa3c09836cc0799a29
googlei18n/language-resources,googlei18n/language-resources,googlei18n/language-resources,googlei18n/language-resources,google/language-resources,google/language-resources,google/language-resources,google/language-resources,googlei18n/language-resources,googlei18n/language-resources,google/language-resources,google/lan...
utils/python_version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"open511-server\",\n version = \"0.1\",\n url='',\n license = \"\",\n packages = find_packages(),\n install_requires = [\n 'open511==0.5',\n 'lx...
python
edit
1
0
mit
0f22ce31a7067386a0b29b6d107c3e9481fc1492
Open511/open511-server,Open511/open511-server,Open511/open511-server
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport argparse\n\n\nfrom .schema import SCHEMA\n\n\ndef reindex(args):\n known_entities = SCHEMA.keys()\n if args['entities'] is not None:\n entities = []\n for e in args['entities']:\n entities.extend(e.spli...
python
edit
1
4
mit
89cda8553c662ac7b435516d888706e3f3193cb7
jeffweeksio/sir
sir/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\n# Create your models here.\nclass Movie(models.Model):\n movie_id = models.IntegerField(primary_key=True)\n title = models.CharField(max_length=200)\n poster = models.ImageField(null=True, blank=True...
python
edit
1
1
mit
bcc206b46c089ea7f7ea5dfbc5c8b11a1fe72447
osama-haggag/movie-time,osama-haggag/movie-time
movie_time_app/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport sys\n\nfrom setuptools import Command, setup\n\n\nclass RunTests(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(s...
python
edit
1
1
bsd-3-clause
bf97132fd263026aea42d5af9772d378eaec67d9
consbio/gis-metadata-parser
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport sys\n\ninstall_requires = ['six']\nif sys.version_info[0] == 2 and sys.version_info[1] == 6:\n install_requires.extend(['ordereddict', 'argparse'])\n\n\nsetup(\n name='pyfaidx',\n provides='pyfa...
python
edit
1
0
bsd-3-clause
d261a41419ab1d2f0543798743ff34607d3d455f
mattions/pyfaidx
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom paperpal import __version__ as version\n\ndef slurp(filename):\n with open(filename) as opened_file:\n return opened_file.read()\n\nfrom setuptools import setup\n\nsetup(name='paperpal',\n version=version,\n descrip...
python
edit
3
1
apache-2.0
48dc523d438425b2aae9820e835f535b8783d661
eddieantonio/paperpal,eddieantonio/paperpal
setup.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
mit
8ed470f474b2cac84a18fe3709e67b3a160cfdc6
thibault/django-nexmo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\nimport glob\n\nVERSION = \"0.6.3\"\n\nsrc_dir = os.path.dirname(__file__)\n\ninstall_requires = [\n \"troposphere>=1.8.0\",\n \"boto3>=1.3.1\",\n \"botocore>=1.4.38\",\n \"...
python
edit
1
1
bsd-2-clause
798b7976084748d7966b3fc3e4ae2e9a634c99de
remind101/stacker,remind101/stacker,mhahn/stacker,mhahn/stacker
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nwith open('README.md') as file:\n long_description = file.read()\n\n\nsetup(\n name=\"guacamole-files\",\n version=\"0.1.0\",\n author=\"Antonin Messinger\",\n author_email=\"<EMAIL>\",\n de...
python
edit
1
0
mit
a2bd15575f6799a6d473c7fef9bfd4a629a8350a
Antojitos/guacamole
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import find_packages, setup\n\n\nVERSION = '2.0.dev0'\n\n\ninstall_requires = [\n 'django-local-settings>=1.0a8',\n 'stashward',\n]\n\nif sys.version_info[:2] < (3, 4):\n install_requires.append('enum3...
python
edit
1
0
mit
cd7584645548758e59e05531d44121fb29c2e27c
PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils
setup.py
rejected_duplicate
Near-duplicate of sample 10987
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nconfig = {\n 'description': 'Logging wrapper',\n 'author': 'Feth Arezki',\n 'url': 'https://github.com/majerteam/quicklogging',\...
python
edit
1
0
mit
35b49a952da9cb95fae4fd8eb25752ca9faee5ef
majerteam/quicklogging,majerteam/quicklogging
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from distutils.core import setup, find_packages\n\nDESCRIPTION = \"Convert Matplotlib plots into Leaflet web maps\"\nLONG_DESCRIPTION = DESCRIPTION\nNAME = \"mp...
python
edit
1
0
bsd-3-clause
ca06378b83a2cef1902bff1204cb3f506433f974
jwass/mplleaflet,ocefpaf/mplleaflet,jwass/mplleaflet,ocefpaf/mplleaflet
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport codecs\n\nfrom setuptools import setup, find_packages\n\n\ndef long_description():\n with codecs.open('README.rst', encoding='utf8') as f:\n return f.read()\n\nsetup(\n name='django-querysetsequence',\n packages=find_...
python
edit
3
1
isc
9b1ae7410004635dd59d07fda89c9aa93979a88f
percipient/django-querysetsequence
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup, Extension\n\nuinput = Extension('libuinput',\n sources = ['src/uinput.c'])\n\nsetup(name='python-steamcontroller',\n version='1.0',\n description='Steam ...
python
edit
1
0
mit
59761e83b240fe7573370f542ea6e877c5850907
ynsta/steamcontroller,oneru/steamcontroller,oneru/steamcontroller,ynsta/steamcontroller
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom sys import version_info\n\nfrom setuptools import find_packages, setup\n\nVERSION = open('puresnmp/version.txt').read().strip()\nDEPENDENCIES = []\nif version_info < (3, 5):\n DEPENDENCIES.append('typing')\n\nsetup(\n name=\"pure...
python
edit
1
0
mit
3c89214e45f631d8258f75e7f96c252c181dfdab
exhuma/puresnmp,exhuma/puresnmp
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nextra_setup = {}\nif sys.version_info >= (3,):\n extra_setup['use_2to3'] = True\n\nsetup(\n name='blessings',\n version='1.4',\n description='A thin, practical wrapp...
python
edit
1
0
mit
6f2690858d41a86ee1d2f3345b544a50438a493f
tartley/blessings,erikrose/blessings,jquast/blessed
setup.py
accepted
null
true