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# coding: utf8\nfrom __future__ import unicode_literals\n\nimport pytest\n\n\n@pytest.mark.xfail\n@pytest.mark.models('en')\ndef test_issue704(EN):\n \"\"\"Test that sentence boundaries are detected correctly.\"\"\"\n\n text = '“Attic...
python
edit
1
2
mit
51d7414e94981dc530d9f8be427ac9942ee263d7
aikramer2/spaCy,spacy-io/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,explosion/spaCy,recognai/spaCy,honnibal/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,aikramer2/spaCy,spacy-io/spaCy,recognai/spaCy,aikramer2/spaCy,recognai/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spa...
spacy/tests/regression/test_issue704.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\n\nsetup(\n name='Scrapper',\n version='0.9.5',\n url='https://github.com/Alkemic/scrapper',\n license='MIT',\n author='Daniel Alkemic Czuba',\n author_email='<EMAIL>',...
python
edit
1
0
mit
efe28fd251a399229156d1a0a1d2abf96dc288fe
Alkemic/scrapper,Alkemic/scrapper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\" Simple urls for use in testing the gcframe app. \"\"\"\n\nfrom __future__ import unicode_literals\n\n# The defaults module is deprecated in Django 1.5, but necessary to\n# support Django 1.3. drop ``.defaul...
python
edit
1
0
bsd-3-clause
89193a6571dd74501533160b409cad8835c51625
benspaulding/django-gcframe
gcframe/tests/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages\nfrom distutils.core import setup\n\nsetup(\n name='skipper',\n version='0.0.1',\n url='http://github.com/Stratoscale/skipper',\n author='Adir Gabai',\n author_mail='<EMAIL>',\n package...
python
edit
1
0
apache-2.0
a185f70b64986b2e98457e18b0a420cf2b97688b
Stratoscale/skipper,Stratoscale/skipper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport argparse\nimport sys\n\n\ndef main(raw_args=sys.argv[1:]):\n \"\"\"\n A tool to automatically request, renew and distribute Let's Encrypt\n certificates for apps running on Marathon and served by marathon-lb.\n \"\"\"\n ...
python
edit
1
1
mit
db4ecaba64a4fbd9d432b461ca0df5b63dd11fb4
praekeltfoundation/certbot,praekeltfoundation/certbot
marathon_acme/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Session management utilities for Google Cloud Platform (GCP).\"\"\"\nfrom typing import Optional, Any\n\ntry:\n import google.auth\n from google.auth.transport import requests as google_requests\nexcept ImportError:\n raise I...
python
edit
1
2
mit
1a2cabca5be1b9682e39db12bd52c26f5bb8b5b9
MGHComputationalPathology/dicomweb-client
src/dicomweb_client/ext/gcp/session_utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport unittest\nimport doctest\n\n# Read in the version number\nexec(open('src/nash/version.py', 'r').read())\n\nrequirements = [\"numpy==1.11.2\"]\n\ndef test_suite():\n \"\"\"Discover all t...
python
edit
2
1
mit
eee5008d5e8f7ae29405491962d3adb1af375e44
drvinceknight/Nashpy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n###############################################################################\n# Copyright 2015-2020 University of Florida. All rights reserved.\n# This file is part of UF CTS-IT's NACCulator project.\n# Use of this source code is governe...
python
edit
1
0
bsd-2-clause
edf32f4ac0527fbe97cd4ccf2a87f22e503e3111
ctsit/nacculator,ctsit/nacculator,ctsit/nacculator
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\n\nfrom stock_awesome.obj import market\n\n\n\ndef main():\n \"\"\"\n Algorithm: Wait for an ask, then send a fill or kill for the quantity of the ask at the ask\n price.\n \"\"\"\n m = market.StockAPI('WEB2997826...
python
edit
5
4
mit
e0b82cf9ed24870cb313328e5539acc5fe7f6508
ForeverWintr/stock_awesome
stock_awesome/levels/chock_a_block.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom operator import itemgetter\n\nmapping = {\n 'has_header': True,\n 'currency': 'EUR',\n 'delimiter': ';',\n 'bank': 'GLS Bank',\n 'account': itemgetter('Kontonummer'),\n 'date': lambda r: r['Buchungstag'][3:5] + '/' + ...
python
edit
1
0
mit
ae5db950c683501c1ec77fee430b818293e6c603
reubano/csv2ofx,reubano/csv2ofx
csv2ofx/mappings/gls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nu\"\"\"\n.. module:: fabfile\nBe aware, that becaus fabric doesn't support py3k You need to execute this\nparticular script using Python 2.\n\"\"\"\n\nimport contextlib\n\nfrom fabric.api import cd\nfrom fabric.ap...
python
edit
1
1
mit
848c3a8b754d7a359da94c211f58d16bdf34c804
komitywa/wysadzulice.pl,magul/wysadzulice.pl,magul/wysadzulice.pl,magul/wysadzulice.pl,komitywa/wysadzulice.pl,komitywa/wysadzulice.pl
fabfile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nimport inbox\n\nrequirements = [\n \"click\",\n]\n\nsetup(\n name=\"inbox\",\n version=inbox.__version__,\n url='TODO',\n description=inbox.__doc__,\n author=inbox.__author__,...
python
edit
1
0
mit
6adf64a1f39e9455851ba93fa6fcae8e02b0b3ea
k4nar/inbox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- encoding: utf-8 -*-\nfrom django import template\n\nfrom applications.models import Score\n\n\nregister = template.Library()\n\n@register.filter\ndef scored_by_user(value, arg):\n try:\n score = Score.objects.get(application...
python
edit
1
3
bsd-3-clause
d041ab4a09da6a2181e1b14f3d0f323ed9c29c6f
DjangoGirls/djangogirls,patjouk/djangogirls,DjangoGirls/djangogirls,DjangoGirls/djangogirls,patjouk/djangogirls,patjouk/djangogirls,patjouk/djangogirls
applications/templatetags/applications_tags.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Specific PyGrid exceptions.\"\"\"\n\n\nclass PyGridError(Exception):\n def __init__(self, message):\n super().__init__(message)\n\n\nclass AuthorizationError(PyGridError):\n def __init__(self, message=\"\"):\n if n...
python
edit
1
2
apache-2.0
8be6b576007f89fad50ea1dfacad46614c0a97c5
OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft
apps/domain/src/main/core/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.exceptions import ValidationError\nfrom django.core.validators import MinValueValidator, MaxValueValidator\nfrom django.db import models\nfrom netaddr import AddrFormatError, EUI, mac_unix_expanded\nimport pprint\n\n\nclass...
python
edit
3
3
apache-2.0
c03241320138fe7b545b43514e93615473270b0d
lampwins/netbox,digitalocean/netbox,lampwins/netbox,digitalocean/netbox,lampwins/netbox,digitalocean/netbox,lampwins/netbox,digitalocean/netbox
netbox/dcim/fields.py
rejected_duplicate
Near-duplicate of sample 2733
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(name = 'dreamBeam',\n version = '0.4',\n description = 'Measurement equation framework for interferometry in Radio Astronomy.',\n author = 'Tobia D...
python
edit
1
0
isc
12e374c3797cee21d1cd47bba5e7bcd11439e50c
2baOrNot2ba/dreamBeam,2baOrNot2ba/dreamBeam
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom teeminus10_helpers import *\nimport unittest\n\nclass TestInTimeOfDay(unittest.TestCase):\n def setUp(self):\n self.location = ephem.city('London')\n self.location.date = datetime(2013, 03, 14, 9, 0, 0)\n self.p...
python
edit
7
1
mit
673f4ad22ccd14f9feb68cfc3afc1f34580c0a51
jpgneves/t-10_server,jpgneves/t-10_server
test/teeminus10_helpers_test.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport io\n\n# List all of your Python package dependencies in the\n# requirements.txt file\n\n\ndef readfile(filename, split=False):\n with io.open(filename, encoding=\"utf-8\") as stream:\n ...
python
edit
1
2
apache-2.0
6c89e9a2eb6c429f9faf8f8fdbb7360239b15a61
OpenCMISS-Bindings/opencmiss.utils
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tastypie.authorization import DjangoAuthorization\nfrom tastypie import fields\nfrom tastypie.resources import ModelResource, ALL_WITH_RELATIONS\nfrom quotations.apps.quotations import models as quotations_models\nfrom quotations.libs....
python
edit
1
2
mit
006b645315190eb532ede9c36c77a7fbc4c27237
jessamynsmith/socialjusticebingo,jessamynsmith/underquoted,jessamynsmith/socialjusticebingo,jessamynsmith/underquoted,jessamynsmith/underquoted,jessamynsmith/socialjusticebingo,jessamynsmith/underquoted
quotations/apps/api/v1.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\n\nsetup(name='django-conference',\n version='0.1',\n description='A complete conference management system based...
python
edit
1
0
bsd-3-clause
533eb2c759eb58cdc483b73dd40d8a4460f44e73
MasonM/hssonline-conference,MasonM/hssonline-conference,MasonM/hssonline-conference
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.11.16 on 2018-10-11 17:28\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\n\n\ndef forwards_func(apps, schema_editor):\n User = apps.get_model('auth', 'User')\...
python
edit
1
3
mit
7cfdf48bd04ba45a962901e1778ba05bab4699e6
rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org
readthedocs/core/migrations/0005_migrate-old-passwords.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-uglifyjs',\n version='0.1',\n url='https://github....
python
edit
1
1
isc
f61d2368998a45dfda99d65d097fed5fb43ad061
gears/gears-uglifyjs,gears/gears-uglifyjs
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"Console script for postalcodes_mexico.\"\"\"\nimport sys\nimport click\n\n\n@click.command()\ndef main(args=None):\n \"\"\"Console script for postalcodes_mexico.\"\"\"\n click.echo(\"Replace this messa...
python
edit
1
1
mit
8d3931fd5effabf9c5d56cb03ae15630ae984963
FlowFX/postalcodes_mexico
postalcodes_mexico/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom buildbot.status.web.hooks.github import GitHubEventHandler\nfrom twisted.python import log\nimport abconfig\n\nclass AutobuilderGithubEventHandler(GitHubEventHandler):\n\n def handle_push(self, payload):\n # This field is unu...
python
edit
null
null
mit
b76b3cbe0d86bd5037ccfd21086ab50803606ec2
madisongh/autobuilder
autobuilder/webhooks.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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=\"chalupas-files\",\n version=\"0.1.0\",\n author=\"Antonin Messinger\",\n author_email=\"<EMAIL>\",\n des...
python
edit
1
0
mit
f09decf4d57e83c8bf13fab697bd9cfb3b983c22
Antojitos/chalupas
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Representation filters for API\"\"\"\n\nfrom flask import make_response, current_app\nfrom bson.json_util import dumps\n\n\ndef output_bson(data, code, headers=None):\n \"\"\"Makes Flask response with a BSON encoded body\n\n Cop...
python
edit
1
3
mit
9982e62981a7ec0fc7f05dcc8b5eabe11c65d2b3
surfmikko/anthology
anthology/representations.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2013 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nclass Channel(object):\n def __init__(self, name, branch, position, cate...
python
edit
1
1
bsd-3-clause
f40b42890fef78483825525dfbfdc226a50dc9c1
eunchong/build,eunchong/build,eunchong/build,eunchong/build
scripts/master/factory/dart/channels.py
rejected_duplicate
Near-duplicate of sample 3077
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nversion = ''\nwith open('koordinates/__init__.py', 'r') as fd:\n version = re.search(r...
python
edit
3
0
bsd-3-clause
eb08a3fa792e3ead859358d4038cedbd6b08d8c4
koordinates/python-client,koordinates/python-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" Filesystem utilities\n\"\"\"\nimport contextlib\nimport os\n\nRUN_RE = '\\d{6}_[a-zA-Z\\d]+_\\d{4}_[AB][A-Z\\d]{9}'\n\n@contextlib.contextmanager\ndef chdir(new_dir):\n \"\"\"Context manager to temporarily change to a new director...
python
edit
1
2
mit
7469a750a7303b346a91376ae16dc42b69208c18
SciLifeLab/TACA,SciLifeLab/TACA,kate-v-stepanova/TACA,senthil10/TACA,b97pla/TACA,guillermo-carrasco/TACA,kate-v-stepanova/TACA,SciLifeLab/TACA,senthil10/TACA,vezzi/TACA,b97pla/TACA,guillermo-carrasco/TACA,vezzi/TACA
pm/utils/filesystem.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name=\"django-twitter-bootstrap\",\n version=\"3.0.0\",\n packages=find_packages(),\n package_data={\n 'twitter_bootstrap': [\n ...
python
edit
1
0
mit
06646f5c73f886a93ed8507419a07fe69014f418
estebistec/django-twitter-bootstrap
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom collections import OrderedDict\nimport json\nimport six\n\nfrom rest_framework.relations import *\nfrom rest_framework_json_api.relations import ResourceRelatedField\n\nfrom zc_common.remote_resource.models import *\n\n\nclass RemoteRe...
python
edit
5
6
mit
dc8b2e0a68644655d95d67b3ffd6d9122e94584a
ZeroCater/zc_common,ZeroCater/zc_common
zc_common/remote_resource/relations.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Configuration for Django system.\"\"\"\n\n__version__ = \"0.8.1\"\n__version_info__ = tuple(\n [\n int(num) if num.isdigit() else num\n for num in __version__.replace(\"-\", \".\", 1).split(\".\")\n ]\n)\n\n```\n\n...
python
edit
1
0
mit
6327703fa1a0a7463facc9574bf74ef9dace7d15
uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers
dthm4kaiako/config/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nfrom Cython.Build import cythonize\n\nsetup(\n name=\"gfspy\",\n packages=[\"gtfspy\"],\n version=\"0.1\",\n description=\"Python package for analyzing public transport timetables\",\n auth...
python
edit
1
0
mit
8581cf8d2e2d38dcc5ca0bcb8821d9f5c60b00ac
CxAalto/gtfspy,CxAalto/gtfspy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom nose.tools import eq_, raises\nfrom mock import MagicMock, patch\n\nfrom buffer.managers.profiles import Profiles\nfrom buffer.models.profile import PATHS\n\nmocked_response = {\n 'name': 'me',\n 'service': 'twiter',\n...
python
edit
4
1
mit
1f2deb95ba543bf05dd78f1df2e9ee6d17a2c4c3
vtemian/buffpy,bufferapp/buffer-python
buffer/tests/test_profiles_manager.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\nfrom foliant import __version__ as foliant_version\n\n\nSHORT_DESCRIPTION = 'Modular, Markdown-based documentation generator that makes \\\npdf, docx, html, and more.'\n\ntry:\n with open('R...
python
edit
1
0
mit
995b771579b985bae2e27faaa1a7f861012edb25
foliant-docs/foliant
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport json\nfrom flask import Flask\nfrom flask import request\nfrom flask import json\n\nimport services\n\n\napp = Flask(__name__)\n\ndigitransitAPIService = services.DigitransitAPIService()\n\n\n@app.route('/')\ndef hello_wor...
python
edit
2
1
mit
6d2d915d7bec4e4a8e733a073ec3dc79a1d06812
STOP2/stop2.0-backend,STOP2/stop2.0-backend
src/stop.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# This manage.py exists for the purpose of creating migrations\nimport sys\n\nimport django\n\nfrom django.conf import settings\n\nsettings.configure(\n ROOT_URLCONF='',\n DATABASES={'default':\n ...
python
edit
3
0
mit
5780f72ff95329295c735fff61463315ec3856d7
millanp/django-paypal,millanp/django-paypal
manage.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\nfrom setuptools import setup\n\nfrom lora import VERSION\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n sys.exit()\n\nif sys.argv[-1] == 'tag':\n os....
python
edit
1
0
mit
e5fe2994b05ffbb5abca5641ae75114da315e888
jieter/python-lora
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport spacy\nimport pytest\n\n@pytest.mark.models\ndef test_beam_parse():\n nlp = spacy.load('en_core_web_sm')\n doc = nlp(u'Australia is a country', disable=['ner'])\n ents = nlp.entity(doc, beam_width=2)\n print(ents)\n\n\n``...
python
edit
1
1
mit
0adadcb3f04e2ecb98b5ca5de1afba2ba7208d23
aikramer2/spaCy,spacy-io/spaCy,recognai/spaCy,recognai/spaCy,explosion/spaCy,recognai/spaCy,explosion/spaCy,spacy-io/spaCy,recognai/spaCy,explosion/spaCy,spacy-io/spaCy,spacy-io/spaCy,aikramer2/spaCy,explosion/spaCy,spacy-io/spaCy,aikramer2/spaCy,spacy-io/spaCy,honnibal/spaCy,explosion/spaCy,honnibal/spaCy,aikramer2/sp...
spacy/tests/parser/test_beam_parse.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\nfrom setuptools import setup, find_packages\n\nsetup(\n name='reddit2Kindle',\n entry_points={\n 'console_scripts': [\n 'r2k = r2klib.cli:from_cli'\n ]\n },\n pa...
python
edit
1
0
mit
12689fdabfb89453b7289ec70a5a2bd170ce8a8f
Antrikshy/reddit2Kindle
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\nimport sys\n\nfrom direct.showbase.ShowBase import ShowBase\nimport panda3d.core as p3d\n\nimport ecs\nfrom player import PlayerController\n\nclass NodePathComponent(ecs.Component):\n __slots__ = [\n \"node...
python
edit
3
2
apache-2.0
bc50a924c50fb22a0ac03b3b696d6fba4efcd120
Moguri/sigurd
src/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass DataRecord:\n\n @classmethod\n def get_store( cls ):\n if hasattr( cls, 'store' ): return cls.store\n cls.store = {}\n return cls.store\n\n @classmethod\n def find( cls, record_id ):\n return cls.get_store().get( recor...
python
edit
1
3
mit
c1a38cb5fd2f6dd0f81515bece18a47f2b20234b
fire-uta/iiix-data-parser
data_record.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"sanitize\",\n version = \"0.33\",\n description = \"Bringing sanitiy to world of messed-up data\",\n long_description=open('README.md').read(),\n author = \"Aaron Sw...
python
edit
2
0
bsd-2-clause
e3f273509ada5632cc7110f62caebcdb982307da
Alir3z4/python-sanitize
setup.py
rejected_duplicate
Near-duplicate of sample 4295
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n return ''\n\nsetup(\n name='todoist-python',...
python
edit
1
2
mit
01bb927847de1a59adc97d9aa4bf745f4fa49ff5
Doist/todoist-python
setup.py
rejected_duplicate
Near-duplicate of sample 2235
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport argparse\nimport scanner\nimport numpy as np\nimport cv2\nfrom decode import db\n\n@db.loader('frame')\ndef load_frames(buf, metadata):\n return np.frombuffer(buf, dtype=np.uint8) \\\n .reshape((metadata.height,metadat...
python
edit
3
5
apache-2.0
5f501af61b416dae0e46236a8e1f9684dcc66e21
scanner-research/scanner,scanner-research/scanner,scanner-research/scanner,scanner-research/scanner
python/decoder_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name='fuzzywuzzy',\n version='0.2',\n description='Fuzzy string matching in python',\n author='Adam Cohen',\n author_email='<EMAIL>',\n url='https://github.com/seatgeek/fuzzywuzzy/',\...
python
edit
1
0
mit
5c5e49797358e7020d409adf74209c0647050465
jayhetee/fuzzywuzzy,salilnavgire/fuzzywuzzy,beni55/fuzzywuzzy,beni55/fuzzywuzzy,blakejennings/fuzzywuzzy,shalecraig/fuzzywuzzy,pombredanne/fuzzywuzzy,salilnavgire/fuzzywuzzy,pombredanne/fuzzywuzzy,aeeilllmrx/fuzzywuzzy,medecau/fuzzywuzzy,zhahaoyu/fuzzywuzzy,zhahaoyu/fuzzywuzzy,jayhetee/fuzzywuzzy,shalecraig/fuzzywuzzy,...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf-8\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\nimport os\n\nGENERATING_DOCUMENTATION = os.environ.get(\"IN_SPHINX_RUN\", None) == \"True\"\n\n```\n\nApply this cha...
python
edit
1
0
bsd-3-clause
5bb0259a747651290f91c0384ca93492a423c82d
ipython/ipython,ipython/ipython
IPython/utils/docs.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nModule containing functions to differentiate functions using autograd.\n\"\"\"\nimport autograd.numpy as np\nfrom autograd.core import grad\n\nfrom ._backend import Backend\n\n\ndef _hessian_vector_product(fun, argnum=0):\n \"\"\...
python
edit
1
1
bsd-3-clause
825c83697b3453644a6ec699d653ba0d4bd5d790
pymanopt/pymanopt,j-towns/pymanopt,nkoep/pymanopt,tingelst/pymanopt,nkoep/pymanopt,pymanopt/pymanopt,nkoep/pymanopt
pymanopt/tools/autodiff/_autograd.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long description from the README file\nwith open(path.join(here, 'README.rst'), encoding='...
python
edit
3
0
mit
4789e7d32bdec3afc6b76f20bf193a51410bbab1
revng/llvmcpy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport socket\nimport sys\n\n\nclass SimpleServer(object):\n \"\"\"Simple server using the socket library\"\"\"\n\n def __init__(self, blocking=False, connection_oriented=True):\n \"\"\"\n The constructor initializes soc...
python
edit
3
2
mit
9a698d1428fbe0744c9dba3532b778569dbe1dd4
facundovictor/non-blocking-socket-samples
server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n\nclass CommandRegistrar():\n \"\"\"A singleton to manage the command table and command execution\"\"\"\n\n _instance = None\n\n def __init__(self):\n self.command_table = {}\n\n @staticmethod\n def instance():\n ...
python
edit
1
2
bsd-2-clause
16fdad8ce40a539d732c8def4898aae0f2d58cd0
6180/foxybot
foxybot/registrar.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport os\nimport mock\nfrom dallinger.config import get_config\nfrom dallinger.heroku import app_name\n\n\nclass TestHeroku(object):\n\n def test_heroku_app_name(self):\n id = \"8fbe62f...
python
edit
1
2
mit
7403e79c9e3cccc7ea97e61915ec01c2176c0f57
Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger
tests/test_heroku.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'depedit',\n packages = ['depedit'],\n version = '2.1.2',\n description = 'A simple configurable tool for manipulating dependency trees',\n author = 'Amir Zeldes',\n author_email = '...
python
edit
1
0
apache-2.0
0b1bcf6305f808f3ed1b862a1673e774dce67879
amir-zeldes/DepEdit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# setup.py\n# colorific\n#\n\n\"\"\"\nPackage information for colorific.\n\"\"\"\n\nimport sys\n\n# check for the supported Python version\nversion = tuple(sys.version_info[:2])\nif version != (2, 7):\n sys....
python
edit
1
0
isc
64e515f87fa47f44ed8c18e9c9edc76fee49ce84
99designs/colorific
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom currency_rates import rates\n\n\nclass Money(object):\n\n def __init__(self, amount, currency):\n self.amount = amount\n self.currency = currency.upper()\n\n def __repr__(self):\n return \"%.2f %s\" % (self.a...
python
edit
1
1
mit
a74e91613be376d6d71fb90c15cab689af661e37
mdsrosa/money-conversion-py
money_conversion/money.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport hashlib\nimport os\nimport string\nimport random\n\nfrom django.conf import settings\n\ndef hasher(string):\n '''Helper method to hash a string to SHA512'''\n h = hashlib.sha512(settings.SECRET_KEY + string).hexdigest()\n fo...
python
edit
3
2
bsd-3-clause
843b4c4c0ec7176f4b60fc9d39e7a033c2d4ef7d
AeroNotix/django-timetracker,AeroNotix/django-timetracker,AeroNotix/django-timetracker
utils/crypto.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.contrib.auth.models import User\n\n\nclass InvitationRegistrationForm(forms.ModelForm):\n first_name = forms.CharField(max_length=30)\n last_name = forms.CharField(max_length=30)\n password = f...
python
edit
1
1
bsd-2-clause
669325d6ca93f81c4635d7d3d57120d8e23e5251
aptivate/django-organizations,arteria/django-ar-organizations,GauthamGoli/django-organizations,aptivate/django-organizations,DESHRAJ/django-organizations,DESHRAJ/django-organizations,GauthamGoli/django-organizations,st8st8/django-organizations,bennylope/django-organizations,arteria/django-ar-organizations,aptivate/djan...
organizations/backends/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"bookshop URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/1.10/topics/http/urls/\nExamples:\nFunction views\n 1. Add an import: from my_app i...
python
edit
1
0
mit
45810cb89a26a305df0724b0f27f6136744b207f
djangogirlstaipei/eshop,djangogirlstaipei/eshop,djangogirlstaipei/eshop,djangogirlstaipei/eshop
bookshop/bookshop/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport contextlib, queue, time, unittest\n\nfrom bibliopixel.util import udp\n\nTEST_ADDRESS = '127.0.0.1', 5678\nTIMEOUT = 0.2\n\n\n@contextlib.contextmanager\ndef receive_udp(address, results):\n receiver = udp.QueuedReceiver(address)\...
python
edit
3
5
mit
1c28341a4cd828de607d9cc4252f444844c0a892
rec/BiblioPixel,ManiacalLabs/BiblioPixel,rec/BiblioPixel,rec/BiblioPixel,ManiacalLabs/BiblioPixel,rec/BiblioPixel,ManiacalLabs/BiblioPixel,ManiacalLabs/BiblioPixel
test/bibliopixel/util/udp_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\nfrom paver.easy import sh, task\n\n\nconfig = \"\"\"# replace pass with values you would like to overwrite from DefaultConfig in\n# default_config.py. Values you do not explicitly overwrite will be inherited\n# from DefaultC...
python
edit
1
3
mit
7b9b1a7bb7f9e48e466bd00b3edffc67be841b4e
simon-andrews/movieman2,simon-andrews/movieman2
pavement.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\n\nfrom setuptools import find_packages, setup\n\n\nwith open('netsgiro/__init__.py') as fh:\n metadata = dict(re.findall(\"__([a-z]+)__ = '([^']+)'\", fh.read()))\n\n\nwith open('README.rst') as fh:\n long_description = fh....
python
edit
1
0
apache-2.0
43a8a83014c2d77b37615f28e695fa861350d0bf
otovo/python-netsgiro
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Family module for Wikivoyage.\"\"\"\n#\n# (C) Pywikibot team, 2012-2017\n#\n# Distributed under the terms of the MIT license.\n#\n# The new wikivoyage family that is hosted at wikimedia\nfrom __future__ import...
python
edit
1
1
mit
f0d16962b2b07e602cff15391cc44bfd199a4d43
PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core,magul/pywikibot-core,wikimedia/pywikibot-core,magul/pywikibot-core
pywikibot/families/wikivoyage_family.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import unicode_literals\n\nfrom collections import defaultdict\n\n\nclass Flowmap(dict):\n def __init__(self):\n super(Flowmap, self).__init_...
python
edit
1
6
mit
6422f6057d43dfb5259028291991f39c5b81b446
spreadflow/spreadflow-core,znerol/spreadflow-core
spreadflow_core/flow.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom tip.algorithms.dummy import dummy_add\n\n\nclass TestDummyAdd(unittest.TestCase):\n def test_lcm(self):\n r = dummy_add(2, 2)\n self.assertEqual(r, 4)\n\n```\n\nApply this change: Test PEP8 integration...
python
edit
1
1
unlicense
84a99e9557a323e094c360e748c7d7042980fc59
davidgasquez/tip
tests/test_sample.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport matplotlib.pyplot as plt\n\n\ndef imshow(*args, **kwargs):\n kwargs.setdefault('interpolation', 'nearest')\n kwargs.setdefault('cmap', 'gray')\n plt.imshow(*args, **kwargs)\n\nimread = plt.imread\nshow = plt.show\n\n\ndef _a...
python
edit
1
2
bsd-3-clause
bc78bf85442b0ffb7962a1c9c4a3560a0fd1960d
keflavich/scikit-image,GaZ3ll3/scikit-image,pratapvardhan/scikit-image,jwiggins/scikit-image,oew1v07/scikit-image,robintw/scikit-image,vighneshbirodkar/scikit-image,michaelaye/scikit-image,WarrenWeckesser/scikits-image,ofgulban/scikit-image,paalge/scikit-image,paalge/scikit-image,michaelaye/scikit-image,warmspringwinds...
skimage/io/_plugins/matplotlib_plugin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom django.core.urlresolvers import reverse\nfrom django.test import TestCase\nfrom django.test.utils import override_settings\n\nfrom . import DATA_DIR\n\n\nclass BrowserTest(TestCase):\n def test_browser(self):\n u...
python
edit
1
1
apache-2.0
ca75631f513c433c6024a2f00d045f304703a85d
EinsamHauer/graphite-web-iow,bpaquet/graphite-web,Skyscanner/graphite-web,disqus/graphite-web,synedge/graphite-web,gwaldo/graphite-web,blacked/graphite-web,cosm0s/graphite-web,brutasse/graphite-web,blacked/graphite-web,bbc/graphite-web,gwaldo/graphite-web,Invoca/graphite-web,atnak/graphite-web,deniszh/graphite-web,dhte...
webapp/tests/test_browser.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\nsetup(\n name='pusher',\n version='1.2.0',\n description='A Python library to interract with the Pusher API',\n url='https://github.com/pusher/pusher-http-python',\n auth...
python
edit
1
0
mit
797da1bd335c0d8237ff4ee4785fe7aca76f0b84
hkjallbring/pusher-http-python,pusher/pusher-http-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport hashlib\nimport itertools\nimport os\nimport time\n\nfrom django.conf import settings\nfrom django.core.files.storage import FileSystemStorage\n\nfrom storages.backends.s3boto3 import S3Boto3Storage\n\n\nDjangoStorage = S3Boto3Storag...
python
edit
1
2
bsd-3-clause
76b916c6f53d97b4658c16a85f10302e75794bcd
mozilla/kitsune,anushbmx/kitsune,mozilla/kitsune,anushbmx/kitsune,anushbmx/kitsune,mozilla/kitsune,mozilla/kitsune,anushbmx/kitsune
kitsune/upload/storage.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport hashlib\n\ndef e(s):\n if type(s) == str:\n return str\n return s.encode('utf-8')\n\ndef d(s):\n if type(s) == unicode:\n return s\n return unicode(s, 'utf-8')\n\ndef mkid(s):\n return hashlib...
python
edit
7
3
mit
d1ea64d6645f60df38221cbd194c26dff9686dcd
guilherme-pg/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt
scripts/utils.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport threading\nimport time\nimport Queue\n\nfrom mne.realtime import StimServer, StimClient\nfrom nose.tools import assert_equal\n\n\ndef test_connection():\n \"\"\"Test TCP/IP connection for StimServer <-> StimClient.\n \"\"\"\n\n...
python
edit
1
1
bsd-3-clause
2f0920d932067a8935eb6e88cc855145ff3c08e2
teonlamont/mne-python,drammock/mne-python,rkmaddox/mne-python,ARudiuk/mne-python,wmvanvliet/mne-python,agramfort/mne-python,adykstra/mne-python,Eric89GXL/mne-python,agramfort/mne-python,alexandrebarachant/mne-python,ARudiuk/mne-python,Eric89GXL/mne-python,aestrivex/mne-python,jniediek/mne-python,rkmaddox/mne-python,blo...
mne/realtime/tests/test_stim_client_server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport distarray as da\nfrom distarray.mpi.mpibase import create_comm_of_size, InvalidCommSizeError\n\n\nclass TestDistributedArrayProtocol(unittest.TestCase):\n\n def setUp(self):\n try:\n comm = creat...
python
edit
1
2
bsd-3-clause
d49d383c62233036d4195d71ba4fda78ff2278de
enthought/distarray,RaoUmer/distarray,RaoUmer/distarray,enthought/distarray
distarray/core/tests/test_distributed_array_protocol.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\r\nfrom distutils.core import setup\r\nfrom sphinx.setup_command import BuildDoc\r\n\r\nimport django_assets\r\n\r\n\r\ndef find_packages(root):\r\n # so we don't depend on setuptools; from the Storm ORM setup.py\r\n package...
python
edit
2
3
bsd-2-clause
09e6c915e668c0b41eca75e3105ebac6f8bfcf58
glorpen/webassets,glorpen/webassets,0x1997/webassets,rs/webassets,aconrad/webassets,JDeuce/webassets,scorphus/webassets,florianjacob/webassets,heynemann/webassets,aconrad/webassets,wijerasa/webassets,john2x/webassets,aconrad/webassets,heynemann/webassets,0x1997/webassets,glorpen/webassets,john2x/webassets,wijerasa/weba...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom os import listdir\nfrom os.path import isfile, join\n\n\nclass Camera(object):\n\n def __init__(self, path):\n self.files = [join(path, f) for f in listdir(path)]\n self.files = sorted([f for f in self.files if isfile(...
python
edit
1
4
apache-2.0
a53612d5f276180d204378b9e4974fcd812f6a5b
angus-ai/angus-sdk-python
tests/fake_camera.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom experiment_config_lib import ControllerConfig\nfrom sts.topology import MeshTopology\nfrom sts.control_flow import Fuzzer, Interactive\nfrom sts.input_traces.input_logger import InputLogger\nfrom sts.invariant_checker import InvariantC...
python
edit
3
0
apache-2.0
fc076d4b390c8e28fceb9613b04423ad374930e5
jmiserez/sts,jmiserez/sts,ucb-sts/sts,ucb-sts/sts
config/fuzz_pox_mesh.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\nlong_description = open(\n os.path.join(\n os.path.dirname(__file__),\n 'README.rst'\n )\n).read()\n\n\nsetup(\n name='ptpyt...
python
edit
1
0
bsd-3-clause
16e4e3155733ad8c90312414cc975315ad8566d3
jonathanslenders/ptpython
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport uuid\n\nfrom django.contrib.auth.models import User\n\n\nclass UserTestsMixin(object):\n \"\"\" Mixin base class for tests requiring users. \"\"\"\n\n def create_user(self, username=None, password=None):\n \"\"\" Create,...
python
edit
1
3
bsd-3-clause
aac08ae7dbfa8542210664922b8857de0b185b6f
onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site
apps/bluebottle_utils/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nSDN project testing topo\n s1\n / \\\n s2--s3\n | |\n host.. host...\n\n'''\nfrom mininet.topo import Topo\n\nclass LoopTopo( Topo ):\n\n\tdef __init__( self , n=2 ):\n\n\t\t# Initialize topology\n\t\tTopo.__in...
python
edit
1
1
mit
77038432486071c9459c5ce43492905e158b7713
ray6/sdn,ray6/sdn,ray6/sdn
Topo/LoopTopo.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import include, url\nfrom django.contrib import admin\nfrom django.views.generic import RedirectView\n\nfrom test_app.models import DummyModel, MushroomSpot\nfrom test_app.views import DummyDocumentOdt, DummyDocumentWe...
python
edit
1
0
bsd-3-clause
0324d220872ef063cb39ce62264bd4835f260920
makinacorpus/django-mapentity,makinacorpus/django-mapentity,makinacorpus/django-mapentity
test_project/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nForms\n=====\n\nThese three form subclasses will automatically add limitation by tenant\nto all form fields with a ``queryset`` attribute.\n\n.. warning::\n\n If you customized the dropdown using ``choices`` you have to limit the...
python
edit
1
3
bsd-3-clause
019b4ed21eddaa176c9445f40f91dc0becad7b4a
matthiask/towel,matthiask/towel,matthiask/towel,matthiask/towel
towel/mt/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-afip',\n version='0.8.0',\n description='AFIP integration for django',\n author='Hugo Osvaldo Barrera',\n author_email='<EMAIL>',\...
python
edit
1
0
isc
3de79ecba9a9bbef39cf324cc5dc62f703767cc3
hobarrera/django-afip,hobarrera/django-afip
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nThis module is used to manage optional dependencies.\n\nExample usage::\n\n from birdy.dependencies import ipywidgets as widgets\n\"\"\"\n\nimport warnings\nfrom .exceptions import IPythonWarning\n\n# T...
python
edit
1
0
apache-2.0
1f47381705e7115e6e466fb625fbb925fbd503e2
bird-house/birdy
birdy/dependencies.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.core.management.base import BaseCommand\nfrom django.utils.translation import activate\n\nfrom kirppu.accounting import accounting_receipt\n\n\nclass Command(BaseCommand):\n help = 'Dump accounting CS...
python
edit
1
2
mit
96e86fb389d67d55bf6b4e0f3f0f318e75b532dd
jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu,jlaunonen/kirppu
kirppu/management/commands/accounting_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\nfrom django.core.management import call_command\nfrom django.conf import settings\n\n\ndef add_permissions(apps, schema_editor):\n if '...
python
edit
1
0
bsd-2-clause
6632157febfed7ce99fa1aaecb72393b0301d3aa
makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,makinacorpus/Geotrek
geotrek/authent/migrations/0003_auto_20181203_1518.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 sys\nfrom args import get_args\nfrom subprocess import Popen, PIPE\n\nif __name__ == '__main__':\n # Get the arguments passed by user\n args = get_args()\n \n # TODO: Chec...
python
edit
1
0
mit
35849633c3ce751445ffca92410001513d445ce9
kfei/code2html
code2html/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README...
python
edit
1
1
apache-2.0
e74e1d9d4dbd50b37d17b4827332cb4256eb7245
matrix-org/synapse,illicitonion/synapse,matrix-org/synapse,howethomas/synapse,iot-factory/synapse,TribeMedia/synapse,rzr/synapse,matrix-org/synapse,TribeMedia/synapse,iot-factory/synapse,illicitonion/synapse,TribeMedia/synapse,matrix-org/synapse,rzr/synapse,rzr/synapse,howethomas/synapse,matrix-org/synapse,howethomas/s...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nDefine custom transformations.\n\nSee class Transformation in models.py for the base class Transformation. This\nfile stores a list of all the subclasses of Transformation made available by\ndefault. Note that they don't necessarily...
python
edit
1
0
mit
63d989821040b5b57f6c1076dd5665d1651b30bb
jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger
dallinger/transformations.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom SublimeLinter.lint import PythonLinter\n\n\nclass Pyflakes(PythonLinter):\n cmd = 'pyflakes'\n regex = r'''(?x)\n ^(?P<filename>[^:\\n]+):(?P<line>\\d+):((?P<col>\\d+):)?\\s\n\n # The rest of the line is the error m...
python
edit
1
3
mit
e19cee4b47d296967286a7f065f363f1e64e58f6
SublimeLinter/SublimeLinter-pyflakes
linter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import BaseCommand, CommandError\nfrom atlas.prodtask.open_ended import check_open_ended\n\n\nclass Command(BaseCommand):\n args = '<request_id, request_id>'\n help = 'Extend open ended requests'\n\n ...
python
edit
4
3
apache-2.0
e81b1ce7536ce32e022fb3132f8468d2472b2e31
PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas,PanDAWMS/panda-bigmon-atlas
atlas/prodtask/management/commands/extendopenended.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#--coding:utf-8--\nfrom __init__ import *\nimport json\nimport Queue\n\nopen('Chinese.bak.json', 'ab').write('[')\nopen('Foreigner.bak.json', 'ab').write('[')\nopen('Student.bak.json', 'ab').write('[')\n\nOutput = open('result.json', 'wb')\...
python
edit
2
0
mit
6c31af53cdc16d9f9cb3b643e9d7f0fee14cbc85
nday-dev/FbSpider
__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\n\nwith open('README.rst') as readme_file:\n README = readme_file.read()\n\n\ninstall_requires = [\n 'click==6.2',\n 'botocore>=1.4.8,<2.0.0',\n 'virtualenv>=1...
python
edit
1
0
apache-2.0
be8c0bf0000e10a8e33581dddd70ea5cec84ddeb
freaker2k7/chalice,awslabs/chalice
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.admin.options import ModelAdmin, HORIZONTAL, VERTICAL\nfrom django.contrib.admin.options import StackedInline, TabularInline\nfrom django.contrib.admin.sites import AdminSite, site\n\n\ndef autodiscover():\n \"\"\"\n ...
python
edit
9
4
bsd-3-clause
93f2ff45ff3d61487ed061ae3d1a65051c3d1799
svn2github/django,svn2github/django,svn2github/django
django/contrib/admin/__init__.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nexceptions.py\n\nCopyright © 2015 Alex Danoff. All Rights Reserved.\n2015-08-02\n\nThis file defines custom exceptions for the iTunes funcitonality.\n\"\"\"\n\nclass ITunesError(Exception):\n \"\"\"\n Base exception class for ...
python
edit
1
1
mit
b78c457d52702beb5067eb7c3067cb69af5e935d
adanoff/iTunesTUI
itunes/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport yaml\n\nfrom diamondash import utils\n\n\nclass ConfigError(Exception):\n \"\"\"Raised when there is an error parsing a configuration\"\"\"\n\n\nclass ConfigMetaClass(type):\n def __new__(mcs, name, bases, dict):\n cls =...
python
edit
1
3
bsd-3-clause
445f244ddac6001b65f03d058a14178a19919eed
praekelt/diamondash,praekelt/diamondash,praekelt/diamondash
diamondash/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nrequirements = [\n 'GitPython == 1.0.1',\n 'docker-py >= 1.7.0',\n 'requests ==2.7.0'\n]\n\nsetup_requirements = [\n 'flake8'\n]\n\nsetup(\n name='docker-release',\n version='...
python
edit
1
0
apache-2.0
642b2f2782bb57d64f2a5ed3f0e5c99614b8b9eb
kokosing/docker-release,kokosing/docker-release
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import generics, permissions, status\nfrom rest_framework.response import Response\nfrom social_django.utils import load_backend, load_strategy\n\nfrom djoser.conf import settings\nfrom djoser.social.serializers import P...
python
edit
1
2
mit
fdee90e6fd4669222c2da0530d9bc90131b5145e
sunscrapers/djoser,sunscrapers/djoser,sunscrapers/djoser
djoser/social/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport random\n\nfrom django.core.management.base import BaseCommand\nfrom django.contrib.auth.models import User\n\nfrom ...models import (\n Transcript, TranscriptPhraseVote\n)\nfrom ...tasks import update_transcript_stats\n\n\nclass C...
python
edit
1
3
mit
166c002f9129c9c244532f8d490b55a884c6708b
WGBH/FixIt,WGBH/FixIt,WGBH/FixIt
mla_game/apps/transcript/management/commands/fake_game_one_gameplay.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# :coding: utf-8\n# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips\n# :license: See LICENSE.txt.\n\nfrom .template import Template\n\n\n```\n\nApply this change: Add helper method to load templates from disk." }, { "role": ...
python
edit
3
9
apache-2.0
3d9d1b10149655030d172de38f9caeb5906d093c
4degrees/lucidity,nebukadhezer/lucidity,BigRoy/lucidity
source/lucidity/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) Calico Development Team.\n# Distributed under the terms of the Modified BSD License.\n# http://calicoproject.org/\n\nfrom jupyter_kernel import Magic\nimport subprocess\n\nclass ShellMagic(Magic):\n\n def line_shell(self,...
python
edit
1
4
bsd-3-clause
020e48affc34162676193ab97dad7f8ffbdaaaa6
Calysto/metakernel
jupyter_kernel/magics/shell_magic.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom abc import ABCMeta, abstractmethod\nimport uuid\n\n\nclass BaseReader(object, metaclass=ABCMeta):\n @abstractmethod\n def __init__(self):\n pass\n\n @abstractmethod\n def _to_raw_pyfrm(self...
python
edit
1
1
bsd-3-clause
e4fde66624f74c4b0bbfae7c7c11a50884a0a73c
BrianVermeire/PyFR,Aerojspark/PyFR
pyfr/readers/base.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport hummus\nfrom tempfile import NamedTemporaryFile\nimport os\n\n\ndef assert_pdf(filename):\n with open(filename, 'rb') as stream:\n assert stream.read(4) == b'%PDF'\n\n\ndef test_document_file():\n ...
python
edit
3
1
mit
4ca82986828514f26d06270477a2d243ebd91294
concordusapps/python-hummus,concordusapps/python-hummus
tests/hummus/test_document.py
accepted
null
true