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 python3\n\nfrom setuptools import setup\n\nsetup(\n name='todoman',\n description='A simple CalDav-based todo manager.',\n author='Hugo Osvaldo Barrera',\n author_email='<EMAIL>',\n url='https://git.barrera.io/...
python
edit
1
0
isc
aa9829567f65c36c5c7356aa5e7d6ac1762f62aa
AnubhaAgrawal/todoman,asalminen/todoman,hobarrera/todoman,pimutils/todoman,Sakshisaraswat/todoman,rimshaakhan/todoman
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"ghostwriter\",\n version=\"0.0.1\",\n packages=find_packages(),\n include_package_data=True,\n install_requires=[\n 'flask', \"six\", \"enum34\", 'flask_lo...
python
edit
null
null
mit
33eb1ea53c3f999a1134dd180bc4b1d8e38d6a80
arthurmco/ghostwriter,arthurmco/ghostwriter
setup.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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='ppp_nlp_ml_standalone',\n version='0.1',\n description='Compute triplets from a question, with an ML approach',\n url='https://github.com/Pr...
python
edit
3
0
mit
df90163e41633769c749401bfe175cc66da7eb27
ProjetPP/PPP-QuestionParsing-ML-Standalone,ProjetPP/PPP-QuestionParsing-ML-Standalone
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nVERSION = '0.1.2'\n\n\nsetup(\n name='tree_extractor',\n version=VERSION,\n description=\"Lib to extract html elements by preserving ancestors and cleaning CSS\",\n author...
python
edit
1
0
mit
889174cf77f31b7a683085dffb109c1ca8445ae4
jurismarches/chopper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nsetup(\n name='aws-helpers',\n description='Set of AWS helper scripts',\n url='https://github.com/otype/aws-helpers',\n author='Hans-Gunther Schmidt',\n author_email='<EMAIL>',\n version='0.1'...
python
edit
1
0
mit
47be6e5d55f3891d1051efd6c29559f569128c04
otype/aws-helpers,otype/aws-helpers
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:\n README = readme.read()\n\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))\n\nsetup(na...
python
edit
1
0
mit
52f936b943471fae3f320da1eaeabd49ab0ed959
farrepa/django-autocert
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nif __name__ == \"__main__\":\n\n with open('README.rst', 'r') as f:\n long_description = f.read()\n\n setup(\n classifiers=[\n 'Environment :: Web Environment',\n 'In...
python
edit
1
0
mit
eba11d1cf17a6e240ac89edebe0e7835a6273cc4
joac/klein,joac/klein
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom tumblr_reader import __version__\n\nsetup(\n name='django-tumblr-reader',\n version=__version__,\n author='Zach Snow',\n author_email='<EMAIL>',\n packages=['tumblr_reader', 'tumblr_reader.t...
python
edit
1
0
mit
a1b3d04d33d3b59b2829e552747f6113241fdd7a
zachsnow/django-tumblr-reader,zachsnow/django-tumblr-reader
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\nimport versioneer\n\n\nsetup(\n name=\"bmipy\",\n version=versioneer.get_version(),\n description=\"Basic Model Interface for Python\",\n author=\"Eric Hutton\",\n author_email=\...
python
edit
1
0
mit
9745638bbb58b0ccef543a76d1f0677d4dda6c03
csdms/bmi-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import setup\n\nmeta = dict(\n name=\"stacklogger\",\n version=\"0.1.0\",\n description=\"A stack-aware logging extension\",\n author=\"Will Maier\",\n author_email=\"<EMAIL>\",\n py_modules=[...
python
edit
1
0
isc
c133da4e7bd64143551e750762a3079b7761706e
whilp/stacklogger
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n# Match releases to redis-py versions\n__version__ = '2.7.2'\n\n# Jenkins will replace __build__ with a unique value.\n__build__ = ''\n\nsetup(name='mockredis',\n ...
python
edit
1
0
apache-2.0
cc9bfdb3185c2fbb6c7d0f6f2cb8b36f8e5024ed
yossigo/mockredis,matejkloska/mockredis,path/mockredis,locationlabs/mockredis,optimizely/mockredis
setup.py
rejected_duplicate
Near-duplicate of sample 4223
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='pytest-ui',\n description='Text User Interface for running python tests',\n version='0.1',\n license='MIT',\n platforms=['linux', 'osx', 'win32'],\n packages=['pytui'],\n u...
python
edit
1
0
mit
7fbee246eab2baac089c37a8949f1fd5835c9c98
martinsmid/pytest-ui
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport ez_setup\nez_setup.use_setuptools()\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name = \"clamped\",\n version = \"0.1\",\n packages = find_packages(),\n package_data = {\n \"clamped\": [\"data/*.tx...
python
edit
1
0
apache-2.0
e6d42d647bd919f178066d8278c649858a164e5e
jimbaker/clamped,jimbaker/clamped
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! usr/bin/env python3\nfrom docopt import docopt\nfrom matplotlib import pyplot\n\n\nclass Schema:\n \"\"\"\n Wraps the SQL source code for a schema and provides methods to get information about that schema.\n \"\"\"\n\n def __...
python
edit
4
1
mit
19db38abd7390c69192c7ead259b821a19ec97fe
hawkw/sqlviz
sqlviz.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name = 'saml2idp',\n version = '0.18',\n author = 'John Samuel Anderson',\n author_email = '<EMAIL>',\n description = 'SAML 2.0 IdP for Django',\n long_description = 'SAML 2.0 Ident...
python
edit
1
0
mit
9bc84f3be08aa97e68e567e5aa78c3edd23f2b5a
mobify/dj-saml-idp,mobify/dj-saml-idp,mobify/dj-saml-idp
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport os\n\nclass PHPLint:\n def __init__(self):\n self.silent = False\n\n def setSilentLint(self, isSilent):\n self.silent = isSilent\n\n def lint(self, path):\n if os.path.isfile(path):\n ...
python
edit
3
4
mit
6715e42b5a3e0b8b9caea853a073d1aac0495885
nelsonsar/phplinter
phplint.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nlogger = logging.getLogger(__name__)\n\ndef strspn(source, allowed):\n newchrs = []\n for c in source:\n if c in allowed:\n newchrs.append(c)\n return u''.join(newchrs)\n\ndef check_cell_phone_numb...
python
edit
3
7
bsd-3-clause
de3161d66ab0a5661d98ace04f5f0ae7c01062bf
peterayeni/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway
smsgateway/utils.py
rejected_duplicate
Near-duplicate of sample 18806
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\n\nfrom .. import base\n\n\n@base.bootstrapped\n@pytest.mark.asyncio\nasync def test_offer(event_loop):\n async with base.CleanModel() as model:\n application = await model.deploy(\n 'cs:~jameinel/ubuntu-l...
python
edit
1
3
apache-2.0
857350154e11f09a1b4aeecd411ab41df2acf378
juju/python-libjuju,juju/python-libjuju
tests/integration/test_crossmodel.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nA print function that pretty prints SymPy objects.\n\n:moduleauthor: Brian Granger\n\nUsage\n=====\n\nTo use this extension, execute:\n\n %load_ext sympy.interactive.ipythonprinting\n\nOnce the extension is loaded, SymPy Basic ob...
python
edit
1
1
bsd-3-clause
22888f6731cf7e6ab0a6cb14088075cf7061d310
wanglongqi/sympy,meghana1995/sympy,skirpichev/omg,ga7g08/sympy,jamesblunt/sympy,Shaswat27/sympy,amitjamadagni/sympy,saurabhjn76/sympy,shikil/sympy,ga7g08/sympy,kevalds51/sympy,maniteja123/sympy,sampadsaha5/sympy,postvakje/sympy,debugger22/sympy,emon10005/sympy,farhaanbukhsh/sympy,diofant/diofant,sunny94/temp,souravsing...
sympy/interactive/ipythonprinting.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Query the datapath about its current state.\"\"\"\n\n# System imports\n\n# Third-party imports\n\nfrom pyof.foundation.base import GenericMessage\nfrom pyof.foundation.basic_types import ConstantTypeList, UBInt16\n# Local imports\nfro...
python
edit
1
1
mit
ae78e44461ec710c65479b094dcff257944e1f83
cemsbr/python-openflow,kytos/python-openflow
pyof/v0x01/controller2switch/stats_request.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom twisted.words.protocols import irc\nfrom txircd.modbase import Mode\n\nclass SecretMode(Mode):\n def checkPermission(self, user, cmd, data):\n if cmd != \"NAMES\":\n return data\n remove = []\n for ch...
python
edit
1
6
bsd-3-clause
10a5f15b1a7703179edac113dcdadd6042fb29f8
DesertBus/txircd,Heufneutje/txircd,ElementalAlchemist/txircd
txircd/modules/cmode_s.py
rejected_duplicate
Near-duplicate of sample 14236
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright © 2009 Ben Finney <<EMAIL>>\n# Copyright © 2006 Robert Niederreiter\n#\n# This is free software: you may copy, modify, and/or distribute this work\n# under the terms of the Python Software Foundation L...
python
edit
3
0
apache-2.0
490f2b1f31fb1ec99bdd09db0e3806fc070ea32a
wting/python-daemon,eaufavor/python-daemon
daemon/__init__.py
rejected_duplicate
Near-duplicate of sample 17017
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\nsetup(\n name=\"bentoo\",\n description=\"Benchmarking tools\",\n version=\"0.14\",\n packages=find_packages(),\n scripts=[\"scripts/bento...
python
edit
1
0
mit
a6dd042ecc79cef66ab04704c88e30097e981aba
ProgramFan/bentoo
setup.py
rejected_duplicate
Near-duplicate of sample 17869
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport sys\n\n# The argparse module was introduced in python 2.7 or python 3.2\nREQUIRES = [\"argparse\"] if sys.version[:3] in ('2.6', '3.0', '3.1') else []\nREQUIRES = REQUIRES + [\"wand>=0.4.0\"]\n\nsetup(\n...
python
edit
1
0
mit
addc581df4fd58522329ca6febe6bd82e77938a5
musically-ut/anki-slides-import
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom parsable import parsable\nfrom setuptools import setup\n\nwith open('README.md') as f:\n long_description = f.read()\n\nsetup(\n name='treecat',\n version='0.0.1',\n description='A tree-of-mixtures nonparametric Bayesian mo...
python
edit
1
0
apache-2.0
36909f73f0d59fdf3e919805e7dc19b66484549f
posterior/treecat,posterior/treecat
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport sys\n\nimport crabpy\n\nfrom setuptools import setup, find_packages\n\npackages = [\n 'crabpy',\n]\n\nrequires = [\n 'suds-jurko>=0.6.0',\n 'dogpile.cache'\n]\n\nsetup(\n name='crabpy',...
python
edit
5
0
mit
588a4ebcc5cf3a01b6769f1ae1a4df50d50f9010
OnroerendErfgoed/crabpy
setup.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='aJohnShots',\n version=\"1.0.0\",\n description='Python module/library for saving Security Hash Algorithms into JSON format.',\n author='funilrys',\n author_email='<EMAIL>',\...
python
edit
1
0
mit
ceee44182b24ecdc0563a9e9a6841993d1978d0c
funilrys/A-John-Shots
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Tools for type checking\n\ndef assertListOf(lst, typ):\n assert isinstance(lst, list), lst\n for idx, value in enumerate(lst):\n #assert isinstance(value, typ), (idx, value)\n assert value is None or isinstance(value, ...
python
edit
1
5
apache-2.0
e2bc8b6010e979a9c00851d21ee783c8e8e27a55
datawire/adaptive
adaptive/typecheck.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nentry_points = {\n 'console_scripts': [\n 'whatportis=whatportis.cli:run',\n ]\n}\nreadme = open('README.rst').read()\n\nsetup(\n name=\"whatportis\",\n version=\"0.6\",\n url='http://gi...
python
edit
1
0
mit
469016385d0fe11c397b6d0b4c5ce531a515dfe2
ncrocfer/whatportis
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nPYPI_RESTRUCTURED_TEXT_INFO = \\\n\"\"\"\nBasic Example\n-------------\n\n::\n\n\tfrom assembla import API\n\n\tassembla = API((\n '', # Username\n '', # Password\n ...
python
edit
3
0
mit
485a5ffe382e45766c60d7b3f35d12c58d8cf2c3
markfinger/assembla
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"lightmatchingengine\",\n url=\"https://github.com/gavincyi/LightMatchingEngine\",\n license='MIT',\n\n author=\"Gavin Chan\",\n author_email=\"<EMAIL>\",\n\n d...
python
edit
1
0
mit
a42ec3c9f01897d1309e1abc05e30e0ff396162e
gavincyi/LightMatchingEngine
setup.py
rejected_duplicate
Near-duplicate of sample 20971
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\n\nsetup(name='check_ruckus_vsz',\n\tversion='0.13',\n\tdescription='Nagios Check for Ruckus SCG',\n\tauthor='Lukas Schauer',\n\tauthor_email='<EMAIL>',\n\tlicen...
python
edit
1
0
apache-2.0
0dbc27a762c60c7c38af8ea3ee3c463431269309
CygnusNetworks/check_ruckus_vsz,CygnusNetworks/check_ruckus_vsz,CygnusNetworks/check_ruckus_vsz
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\nsetup(\n name='django-...
python
edit
1
0
bsd-2-clause
b4b2eeb7c5782a638d80acce369e920d671134f3
python-force/django-bleach
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Setup for PyPi\"\"\"\n\nfrom setuptools import setup\nsetup(\n name='nik',\n packages=['nik'],\n version='1.0',\n description='Nifty tools and containers',\n author='Nik Vanderhoof',\n author_email='<EMAIL>',\n url='https://git...
python
edit
1
0
mit
8c73f1845a1807b506cac1797e2f1247cde5a164
nvander1/skrt
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#\n# Copyright 2011-2012 Splunk, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"): you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License...
python
edit
1
0
apache-2.0
5b598ac0a950652a5eb13985b9fd2df23149931c
kkirsche/splunk-sdk-python,kkirsche/splunk-sdk-python,sullivanmatt/splunk-sdk-python,kkirsche/splunk-sdk-python,splunk/splunk-sdk-python,kkirsche/splunk-sdk-python,splunk/splunk-sdk-python,ww9rivers/splunk-sdk-python,lowtalker/splunk-sdk-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nwith open('README.rst') as f:\n long_desc = f.read()\n\nsetup(\n name='ttrss-python',\n version='0.1.4',\n description='A client library for the Tiny Tiny RSS web API',\n long_d...
python
edit
1
0
mit
242d9dcb77f627852599381246bbf355a18b585d
Vassius/ttrss-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Configuration for Django system.\"\"\"\n\n__version__ = \"0.13.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\...
python
edit
1
0
mit
48918fce2706a6f7a9aa0b001f8f1634a49972c8
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\n# -*- coding: utf-8 -*-\n\nfrom django import forms\n\nfrom apps.posters.models import Poster\n\n\nclass AddPosterForm(forms.ModelForm):\n when = forms.CharField(label=u\"Event start\", widget=forms.TextInput(attrs={'type': 'datetime-loc...
python
edit
1
0
mit
febb5d9890b074985ca99f05c5b8ffc2572d2652
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
apps/posters/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install as Install\nimport re\n\nversionPattern = re.compile(r\"\"\"^__version__ = ['\"](.*?)['\"]$\"\"\", re.M)\nwith open(\"axiom/_version.py\", \"rt\") a...
python
edit
1
1
mit
91a5221c1f9c81ef9c430daf25839f76b676ebe1
twisted/axiom,hawkowl/axiom
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\nimport os\n\n\n# Utility function to read README file\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name='iss',\n version='...
python
edit
1
1
mit
a5e3b1d45857feec1a7d0bfbfea2ba47e2e27e12
AASHE/iss
setup.py
rejected_duplicate
Near-duplicate of sample 18147
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport click\n\nfrom globus_cli.parsing import common_options, task_id_arg\nfrom globus_cli.helpers import outformat_is_json, print_table\n\nfrom globus_cli.services.transfer import print_json_from_iterator, get_client\n\n\n@click.command('...
python
edit
1
6
apache-2.0
88451dba53aaf2257ece516d027bdbb0449cb8b4
globus/globus-cli,globus/globus-cli
globus_cli/commands/task/event_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom datetime import datetime\nfrom django.utils import timezone\n# Create your models here.\n\nclass Book(models.Model):\n\ttitle = models.CharField(max_length=200)\n\tauthor = models.CharField(max_length=200)...
python
edit
1
4
mit
5ad5bcef00c807dadd9c829f1eb459c4cc73cb5f
melkisedek/sen_project,melkisedek/sen_project,melkisedek/sen_project
src/books/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport flask\nimport json\nfrom flask import jsonify\n\nfrom donut.modules.groups import blueprint, helpers\n\n\n@blueprint.route(\"/1/groups/\")\ndef get_groups_list():\n # Create a dict of the passed in attribute which are filterable\n...
python
edit
1
5
mit
3d4ec635c04a48fea8c2909c1a6630f89e6abba4
ASCIT/donut,ASCIT/donut-python,ASCIT/donut-python,ASCIT/donut,ASCIT/donut
donut/modules/groups/routes.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nA utility to package subsets of large ASPECT PVD files to visualize elsewhere\nwithout access to the original filesystem.\n\"\"\"\n\nfrom setuptools import find_packages, setup\n\npackage = 'sci_parameter_utils'\nversion = '0.2.0'\n...
python
edit
1
0
mit
89f3cd5367c537b19e0da495892eb7cd8a42390a
class4kayaker/Parameter_Utils
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setuptools import find_packages\nfrom pip.req import parse_requirements\nimport pip\nimport xblog\n\nREQUIREMENTS_FILE = \"xblog/requirements.txt\"\n\nrequirements = [str(ir.req) for ir in parse_requiremen...
python
edit
1
0
bsd-2-clause
0443e6f70a8c2c072a4d80bac6aa4a0cc99df51d
rubeon/django-xblog,rubeon/django-xblog,rubeon/django-xblog
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nREPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'\n\n\nsetup(\n author='Serenata de Amor',\n author_email='<EMAIL>',\n classifiers=[\n 'Development Status :: 4 - Beta',\n 'I...
python
edit
1
0
mit
860de1e0d027dc8cd8b67ae9924ff181d234c22f
datasciencebr/serenata-toolbox
setup.py
rejected_duplicate
Near-duplicate of sample 14964
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom guano import __version__\n\n\nsetup(\n name='guano',\n version=__version__,\n description='GUANO, the \"Grand Unified\" bat acoustics metadata format',\n long_description=open('README.md').re...
python
edit
1
0
mit
44ac6ece920bb1602a053b31b78326a3f30be151
riggsd/guano-py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!python\nimport os\nimport sys\nimport json\nimport requests\n\nif __name__ == '__main__':\n version = sys.argv[1]\n filepath = sys.argv[2]\n filename = filepath.split('/')[-1]\n github_token = os.environ['GITHUB_TOKEN']\n auth = (git...
python
edit
1
1
bsd-2-clause
1d83021ab395804020d1907db7b6db897dbd1efd
moritz9/redash,pubnative/redash,ninneko/redash,hudl/redash,pubnative/redash,vishesh92/redash,imsally/redash,easytaxibr/redash,jmvasquez/redashtest,guaguadev/redash,vishesh92/redash,jmvasquez/redashtest,easytaxibr/redash,44px/redash,amino-data/redash,chriszs/redash,jmvasquez/redashtest,jmvasquez/redashtest,amino-data/re...
bin/upload_version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nversion = \"0.6.0\"\nurl = \"https://github.com/AndyDeany/pygame-template\"\n\nwith open(\"requirements.txt\", \"r\") as requirements_file:\n requirements = requirements_file.read().split()\n\nsetup(\n ...
python
edit
1
0
mit
29236db6d20d9039b5c32f34b1046466c86e3cf5
AndyDeany/pygame-template
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='Resizer',\n version='0.0.1',\n description='Resizer helps you generate thumbnails and '\n 'load images from various sources.',\n packages=['resizer'],\n platforms=...
python
edit
1
0
mit
155729f74a5bf54d9b4c5d4ed813849023af0157
FelixLoether/Resizer,FelixLoether/Resizer
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport functools\n\n\ndef coroutine(fn):\n def wrapper(*args, **kwargs):\n generator = fn(*args, **kwargs)\n next(generator)\n return generator\n\n return wrapper\n\n\nclass CollectionPipelineProcessor:\n sink ...
python
edit
3
3
mit
af7122220447b1abe771f37400daeb4370603dd4
povilasb/pycollection-pipelines
collection_pipelines/core.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n__author__ = 'sandlbn'\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom utils import datetime_to_timestamp\n\n\nclass CalendarEvent(models.Model):\n \"\"\"\n Calen...
python
edit
1
1
bsd-3-clause
4dd28beddc2df9efeef798491d1963800113f801
sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar
django_bootstrap_calendar/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom money_conversion.money import Money\nimport unittest\n\n\nclass MoneyClassTest(unittest.TestCase):\n def setUp(self):\n self.twenty_euro = Money(20, 'EUR')\n\n def test_convert_euro_to_usd(self):\n twenty_usd = self...
python
edit
3
1
mit
8259a733e1f039cea55cfc5aad7d69e0fb37c43c
mdsrosa/money-conversion-py
tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nAutomation tasks, aided by the Invoke package.\n\"\"\"\nimport os\nimport webbrowser\n\nfrom invoke import task, run\n\n\nDOCS_DIR = 'docs'\nDOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build')\n\n\n@task\ndef docs(output='html', rebu...
python
edit
1
4
bsd-3-clause
60e208200970201f37b0eb4f85b6008681e1f35d
Xion/callee
tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# ############# version ##################\nfrom pkg_resources import get_distribution, DistributionNotFound\nimport os.path\ntry:\n _dist = get_distribution('devp2p')\n # Normalize case for Windows systems\n ...
python
edit
1
0
mit
72f763d9759438abd731585a1b5ef67e62e27181
gsalgado/pyethapp,RomanZacharia/pyethapp,ethereum/pyethapp,RomanZacharia/pyethapp,ethereum/pyethapp,changwu-tw/pyethapp,changwu-tw/pyethapp,gsalgado/pyethapp
pyethapp/__init__.py
rejected_duplicate
Near-duplicate of sample 4956
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom optparse import make_option\n\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.db import transaction\n\nfrom jenkins.management.helpers import import_jenkinsserver...
python
edit
1
2
mit
93358a04380f427f3ac1cea84689a430bcb0c883
timrchavez/capomastro,caio1982/capomastro,caio1982/capomastro,caio1982/capomastro,timrchavez/capomastro
jenkins/management/commands/import_jenkinsserver.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport ast\nimport os\n\n\nclass Parser(object):\n\n def __init__(self, repo_path):\n if not os.path.isabs(repo_path):\n raise ValueError('Repository path is not absolute: %s' % repo_path)\n self.repo_path = repo...
python
edit
4
4
isc
0c2dc7714f2dbb1140f8c03b2181f1fd15c434bf
alfredhq/djlint
djlint/parsers.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\ntry:\n from shutil import which as _which\nexcept ImportError:\n from distutils.spawn import find_executable as _which\n\n\ndef which(binary):\n path = _which(binary)\n if path:\n realpath = os.path...
python
edit
1
2
mit
13e141c1686198deaccc6c38d14cdbde8c4c8fb4
marcwebbie/passpie,eiginn/passpie,scorphus/passpie,marcwebbie/passpie,eiginn/passpie,scorphus/passpie
passpie/_compat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport click\nfrom tabulate import tabulate\n\nfrom EasyEuler import data\n\n\n@click.command()\n@click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']),\n default='id', help='Sort the list by problem attribute.')...
python
edit
1
2
mit
cea4e45dc95310993e3b23ceadf83cbda810f536
Encrylize/EasyEuler
EasyEuler/commands/list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport lxml.html\nfrom lxml.cssselect import CSSSelector\nimport requests\nimport json\n\nclass EndpointIdentifier:\n _page = 'https://www.reddit.com/dev/api/oauth'\n _no_scope = '(any scope)'\n\n def __in...
python
edit
1
5
mit
b91b0d667f64960fd1f07b7dc42290f287ab4c5b
thatJavaNerd/JRAW,ccrama/JRAW,fbis251/JRAW,fbis251/JRAW,fbis251/JRAW,thatJavaNerd/JRAW,Saketme/JRAW,hzsweers/JRAW,hzsweers/JRAW,ccrama/JRAW,thatJavaNerd/JRAW,ccrama/JRAW,Saketme/JRAW,hzsweers/JRAW,Saketme/JRAW
scripts/endpoints_json.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/python\n\n# See README.txt for information and build instructions.\n\nimport addressbook_pb2\nimport sys\n\n# Iterates though all people in the AddressBook and prints info about them.\ndef ListPeople(address_book):\n for person...
python
edit
9
7
bsd-3-clause
b5653ac28ac8358127943bd1f40c22dfd8a274f3
malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf
examples/list_people.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/python\n\n# See README.txt for information and build instructions.\n\nimport addressbook_pb2\nimport sys\n\n# Iterates though all people in the AddressBook and prints info about them.\ndef ListPeople(address_book):\n for person...
python
edit
9
7
bsd-3-clause
b5653ac28ac8358127943bd1f40c22dfd8a274f3
malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf
examples/list_people.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\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 ret...
python
edit
7
3
mit
812fd79675590659b3dc4251ed998f84c4bf2395
Stryn/citationhunt,Stryn/citationhunt,Stryn/citationhunt,Stryn/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt
utils.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Copyright (c) 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\nimport os\n\n\nTEMPLATE_DIRS = os.path.join(os...
python
edit
1
0
bsd-3-clause
02f5da04b6082462adf07d2c29dbb36d88197047
Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Ti...
ct/py/csv-django-settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. 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 cop...
python
edit
1
1
apache-2.0
8f14ff9ec7c011c2e08f5eba1e87f03fbfede24c
fernandopinhati/oppia,danieljjh/oppia,Atlas-Sailed-Co/oppia,felipecocco/oppia,dippatel1994/oppia,sdulal/oppia,directorlive/oppia,virajprabhu/oppia,brylie/oppia,sbhowmik89/oppia,MAKOSCAFEE/oppia,himanshu-dixit/oppia,terrameijar/oppia,michaelWagner/oppia,gale320/oppia,sbhowmik89/oppia,kingctan/oppia,Dev4X/oppia,sunu/oppi...
extensions/rules/code_evaluation.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .helpers import BaseApplicationTest\n\n\nclass TestApplication(BaseApplicationTest):\n def test_index(self):\n response = self.client.get('/')\n assert 200 == response.status_code\n\n def test_404(self):\n re...
python
edit
1
1
mit
2456af37c33cd1c7903c3641f8cc61550f6a113c
alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace...
tests/app/test_application.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import template \n\nregister = template.Library()\n\ndef parse_ttag(token):\n bits = token.split_contents()\n tags = {}\n possible_tags = ['as', 'for', 'limit', 'exclude']\n for index, bit in enumerate(bits):\n ...
python
edit
2
5
mit
27844c3a386616834f92cd34f4790b3117e7ac05
frac/django-test-utils,ericholscher/django-test-utils,frac/django-test-utils,acdha/django-test-utils,ericholscher/django-test-utils,acdha/django-test-utils
test_utils/templatetags/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\r\n\r\nimport py2exe\r\nimport sys\r\n\r\nsetup(console=['..\\src\\omni-configure.py'],\r\n name=\"omni-configure\",\r\n\r\n py_modules=['sfa','ConfigParser','logging','optparse',\r\n ...
python
edit
4
0
mit
0a119e379150a8c1bbbd412d2b0734dd9748cf77
ahelsing/geni-tools,plantigrade/geni-tools,tcmitchell/geni-tools,tcmitchell/geni-tools,ahelsing/geni-tools,plantigrade/geni-tools
windows_install/omni-config-setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.9.4 on 2016-09-28 19:30\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('api', '0010...
python
edit
1
0
apache-2.0
e229779753f3c5f44319d882d19feab324abe119
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
api/migrations/0011_user_preferences_update_troposphere_user.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2021 Google LLC\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# https://www.apache....
python
edit
1
1
apache-2.0
088e30bd675e2102f62493fd295808a7a48ae615
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
project/functions/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n:Copyright: 2006-2018 Jochen Kupperschmidt\n:License: Modified BSD, see LICENSE for details.\n\"\"\"\n\nfrom byceps.services.board.models.topic import Topic\n\nfrom testfixtures.board import create_board, create_category, create_top...
python
edit
1
1
bsd-3-clause
4e2fd5e78922eea0f6a65afd6d50ed4b0f03448c
homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps
tests/blueprints/board/topic_moderation_base.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom pox.core import core\nimport pox.openflow.openflow\nimport pox.topology.topology\nimport pox.openflow.of_01\nimport pox.dumb_l3_switch.dumb_l3_switch\n\n# Set default log level\nimport logging\nlogging.basicConfig(...
python
edit
1
1
apache-2.0
1c32ccaf09db53192f5341ca5b0c443faf1a0ee6
kulawczukmarcin/mypox,adusia/pox,pthien92/sdn,xAKLx/pox,xAKLx/pox,carlye566/IoT-POX,diogommartins/pox,waltznetworks/pox,denovogroup/pox,kpengboy/pox-exercise,jacobq/csci5221-viro-project,andiwundsam/_of_normalize,chenyuntc/pox,kpengboy/pox-exercise,kulawczukmarcin/mypox,kulawczukmarcin/mypox,kavitshah8/SDNDeveloper,kav...
pox.py
rejected_duplicate
Near-duplicate of sample 17571
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os, sys, re, shutil\nos.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\nimport django\nfrom django.core.management import call_command\n\nnames_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 't...
python
edit
1
0
bsd-3-clause
fd6f45aa96599a90d9ece06ffa71d8612f9f64a7
whyflyru/django-cacheops,Suor/django-cacheops,andwun/django-cacheops,rutube/django-cacheops,bourivouh/django-cacheops,ErwinJunge/django-cacheops,LPgenerator/django-cacheops
run_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django_hosts import patterns, host\n\n\nhost_patterns = patterns(\n '',\n host(r'www', 'icekit.project.urls', name='www'),\n host(r'api', 'icekit.api.urls', name='api'),\n)\n\n```\n\nApply this change: Use project ROOT_URLCONF...
python
edit
1
0
mit
06d3aeda83e54edf7a2b972b9b44ae9bfa7f7178
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
icekit/project/hosts.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import viewsets, permissions\n\nfrom rest_framework_word_filter import FullWordSearchFilter\n\nfrom quotedb.models import Quote\nfrom quotedb.permissions import IsOwnerOrReadOnly\nfrom quotedb.serializers import QuoteSer...
python
edit
1
1
mit
6ee7d39c7c39a018a71cbb028dd847e3da521263
kfdm/django-qdb,kfdm/django-qdb
views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .models import Employee, BioData, Payroll\nfrom django.http import HttpResponse\nfrom django.shortcuts import render, get_object_or_404\n\ndef list(request):\n employees = Employee.objects.all()[:20]\n return render(request, 'emp...
python
edit
6
1
mit
682ca50c6eb01ce39937fcceee6f0ae010055663
newrelic/newrelic-python-kata,tebriel/newrelic-python-kata,tebriel/newrelic-python-kata,tebriel/newrelic-python-kata,newrelic/newrelic-python-kata,newrelic/newrelic-python-kata
employees/views.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nimport sys\nimport depio\n\nsentnum = int(sys.argv[2])\nfnames = [sys.argv[1]]\nfor fname in fnames:\n\tsents = list(depio.depread(fname))\n\ti=0\n\tout = open(\"%d.%s\" % (sentnum,fname),'w')\n\tfor outl in sents[sentn...
python
edit
1
0
apache-2.0
4208538a2b7c5f2280f67520a73bd87b74de26dd
habeanf/yap,habeanf/yap
scripts/getsent.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom aws_lambda.helpers import LambdaContext\nimport time\nimport unittest\n\nclass TestLambdaContext(unittest.TestCase):\n\n\tdef test_get_remaining_time_in_millis(self):\n\t\tcontext = LambdaContext('function_name',2000)\n\t\ttime.sleep(....
python
edit
1
1
isc
c6e1774c8c8d9b41509e183df2177f32427274df
nficano/python-lambda
tests/unit/test_LambdaContext.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# This file is closely based on tests.py from matplotlib\n#\n# This allows running the matplotlib tests from the command line: e.g.\n#\n# $ python tests.py -v -d\n#\n# The arguments are identical to the arguments ac...
python
edit
1
0
bsd-3-clause
78e7fd90db429793c2b4ceee34f5296484bb0fd4
NSLS-II/metadatastore,hhslepicka/metadatastore,arkilic/metadatastore,arkilic/metadatastore,ericdill/databroker,NSLS-II/metadatastore,ericdill/databroker,tacaswell/metadataStore,tacaswell/metadataStore,hhslepicka/metadatastore
run_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest2\n\nfrom google.appengine.ext import testbed\n\nfrom models.account import Account\nfrom models.suggestion import Suggestion\n\nfrom helpers.suggestions.suggestion_fetcher import SuggestionFetcher\n\n\nclass TestEventTeamRep...
python
edit
3
1
mit
e6206c2bdacfbd2632beb6ed56ccb6856d299e08
phil-lopreiato/the-blue-alliance,jaredhasenklein/the-blue-alliance,fangeugene/the-blue-alliance,tsteward/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,synth3tk/the-blue-alliance,synth3tk/the-blue-alliance,nwalters512/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeuge...
tests/test_suggestion_fetcher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.utils.translation import ugettext_lazy as _\n\n\ndef boolean_coerce(value):\n if value in {1, '1'}:\n return True\n if value in {0, '0'}:\n return False\n\n\nclass BooleanChoiceField...
python
edit
1
3
bsd-3-clause
fdbac9531215233b3ed5424401779c8edc33f16b
goodtune/vitriolic,goodtune/vitriolic,goodtune/vitriolic,goodtune/vitriolic
touchtechnology/common/fields.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Representation of a period of time.\"\"\"\n\n\nclass Period(object):\n\n def __init__(self, start, end):\n self.start = start\n self.end = end\n\n def __repr__(self):\n return \"%s-%s\" % (self.start, self.e...
python
edit
1
2
mit
d65643e1bb74210a458b370aca5343f5c7059022
Commonists/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics
wm_metrics/period.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- test-case-name: vumi.middleware.tests.test_session_length -*-\n\nimport time\n\nfrom twisted.internet.defer import inlineCallbacks, returnValue\n\nfrom vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE\nfrom vumi.mid...
python
edit
1
4
bsd-3-clause
fe3e43e4d894a0d7009dcbfcafb2546d12cb6296
vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,harrissoerja/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,harrissoerja/vumi,TouK/vumi
vumi/middleware/session_length.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom .models import Event\n\nclass EventTestCase(TestCase):\n def setUp(self):\n events = (\n {\n \"fellow\": 1,\n \"category\": \"O\",\n ...
python
edit
1
2
bsd-3-clause
7a7059a28a43e736d963f83b4ea42b08e9200691
softwaresaved/fat,softwaresaved/fat,softwaresaved/fat,softwaresaved/fat
fellowms/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Helpers for WebOb requests and responses.\"\"\"\n\nimport webob\n\n\ndef webob_to_django_response(webob_response):\n \"\"\"Returns a django response to the `webob_response`\"\"\"\n from django.http import HttpResponse\n djang...
python
edit
1
2
apache-2.0
f3a8c5504d75bde7fe66aeb736f4d45aa24bf6f7
nagyistoce/edx-XBlock,edx-solutions/xblock-sdk,Pilou81715/hackathon_edX,EDUlib/XBlock,jamiefolsom/xblock-sdk,nagyistoce/edx-xblock-sdk,edx/xblock-sdk,lovehhf/XBlock,lovehhf/xblock-sdk,mitodl/XBlock,lovehhf/xblock-sdk,lovehhf/xblock-sdk,jamiefolsom/xblock-sdk,edx/XBlock,cpennington/XBlock,nagyistoce/edx-xblock-sdk,edx/X...
workbench/request.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# This software is distributed under the two-clause BSD license.\n# Copyright (c) The django-ldapdb project\n\nfrom django.conf import settings\nimport ldap.filter\n\n\ndef escape_ldap_filter(value):\n return lda...
python
edit
2
2
bsd-2-clause
31ddb8ec0cba2afd4787906c6b6e299df33a8714
django-ldapdb/django-ldapdb,jlaine/django-ldapdb
ldapdb/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\r\nfrom __future__ import print_function\r\n\r\nimport pynbs\r\n\r\n\r\nmy_file = pynbs.read('demo_song.nbs')\r\n\r\nprint(my_file.header.song_length)\r\nprint(my_file.header.description)\r\n\r\nprint(my_file.notes)\r\nprint(my_file.layers...
python
edit
1
0
mit
1607a12c80b09616f7607e167de8ebb720fb0f3d
fizzy81/pynbs
demo.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.views.generic.list import ListView\nfrom django.views.generic.detail import DetailView\nfrom django.views.generic.edit import CreateView\nfrom django.shortcuts import redirect, render\nfrom django.http import HttpResponse\n\nfro...
python
edit
4
2
mit
66c341ecb6d93758bbccfd65dae6317fce8ed8f5
pythonph/jobs-board,pythonph/jobs-board,pythonph/jobs-board
jobsboard/jobs/views.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom scoring_engine.celery_app import celery_app\nfrom billiard.exceptions import SoftTimeLimitExceeded\nimport subprocess\n\nfrom scoring_engine.logger import logger\n\n\n@celery_app.task(name='execute_command', soft_time_limit=30)\ndef ex...
python
edit
1
3
mit
b1380edda27c021c67cfd686a30410c15c1f023e
pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine
scoring_engine/engine/execute_command.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom backend import SESBackendTest\nfrom commands import SESCommandTest\nfrom stats import StatParsingTest\nfrom configuration import SettingsImportTest\n\n\n```\n\nApply this change: Make sure to load *all* tests" }, { "role": "ass...
python
edit
5
0
mit
a2a1e53d289d39d4df6c6552f89602e96e4775c6
smaato/django-ses,django-ses/django-ses,ticosax/django-ses,piotrbulinski/django-ses-backend,ticosax/django-ses,brutasse/django-ses,grumbler/django-ses,brutasse/django-ses,django-ses/django-ses,grumbler/django-ses,350dotorg/django-ses,smaato/django-ses
django_ses/tests/__init__.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport datetime\nimport os\nimport requests\n\n\ndef update():\n requests.packages.urllib3.disable_warnings()\n resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json()\n\n return {el['id']: el['lineStatuses'][0]['...
python
edit
4
3
mit
41ad0f842320161c45079f7a75d64df6c8716e5d
noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit
london_commute_alert.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom argparse import ArgumentParser\n\n\ndef cached_property(func):\n cach_attr = '_{}'.format(func.__name__)\n\n @property\n def wrap(self):\n if not hasattr(self, cach_attr):\n value = func(self)\n if...
python
edit
4
3
bsd-2-clause
61bbfbcdd2b23b24233ea6543cbfc880b6b01ea9
husk/husk
husk/decorators.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\ndef findFirst(data, target):\n for idx, value in enumerate(data):\n if value >= target:\n return idx\n\n return None\n\ntarget = 34000000\n\n# Target is achieved at itself/10,...
python
edit
1
3
mit
7a59999961b67dbd480c80a4a4f95fa6738b2949
bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adv...
day-20/solution.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Move eventlent monkeypatch out of cmd/\n\nCompleting a #TODO that I left for myself months ago,\nnow that we are using PBR for our build system,\nmove the eventlent monkey patching out of ironic/cmd/__init__\nand into ironic/__init__\n\nChan...
python
new_file
1
0
apache-2.0
ff31630a582ae2353e18e67cdcfc5495672bd423
faizan-barmawer/elytics,NaohiroTamura/ironic-lib,openstack/ironic-lib,citrix-openstack-build/ironic-lib,faizan-barmawer/ironic-lib
ironic/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from collections import OrderedDict\nexcept ImportError:\n from ordereddict import OrderedDict\n\n\nclass ChoicesDict(OrderedDict):\n \"OrdereDict that yields the key and value on iteration.\"\n def __iter__(self):\n ...
python
edit
1
2
bsd-2-clause
8e2a42369228f3d19b046a610c93de4bec06d5bf
murphyke/avocado,murphyke/avocado,murphyke/avocado,murphyke/avocado
avocado/core/structures.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pkg_resources\nimport unittest\n\n\nclass CodeStyleTestCase(unittest.TestCase):\n def test_code_style(self):\n flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8')\n try:\n flake8...
python
edit
1
3
mit
cd2e4cce080413feb7685ec9a788327b8bca9053
ministryofjustice/bai2
tests/test_style.py
rejected_duplicate
Near-duplicate of sample 3007
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport datetime\nimport zeit.cms.celery\nimport zeit.cms.testing\n\n\n@zeit.cms.celery.CELERY.task()\ndef task(context, datetime):\n pass\n\n\nclass CeleryTaskTest(zeit.cms.testing.ZeitCmsTestCase):\n\n def test_registering_task_witho...
python
edit
1
1
bsd-3-clause
f1754acb58fe9088e90692f5200babff3fa49bdf
ZeitOnline/zeit.cms,ZeitOnline/zeit.cms,ZeitOnline/zeit.cms,ZeitOnline/zeit.cms
src/zeit/cms/tests/test_celery.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\nfrom django.core.management.base import BaseCommand\nfrom django.conf import settings\n\n\nfrom projects import tasks\nfrom projects.models import ImportedFile\nfrom builds.models import Version\n\nlog = logging.getLogger(...
python
edit
5
5
mit
2b9828541066ec4adb09f80fe29468cb0ce2a1e0
SteveViss/readthedocs.org,takluyver/readthedocs.org,VishvajitP/readthedocs.org,davidfischer/readthedocs.org,stevepiercy/readthedocs.org,fujita-shintaro/readthedocs.org,espdev/readthedocs.org,royalwang/readthedocs.org,raven47git/readthedocs.org,royalwang/readthedocs.org,agjohnson/readthedocs.org,pombredanne/readthedocs....
readthedocs/core/management/commands/build_files.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom grandchallenge.core.models import UUIDModel\nfrom grandchallenge.cases.models import Image\nfrom grandchallenge.patients.models import Patient\n\n\nclass Archive(UUIDModel):\n \"\"\"\n Model for arch...
python
edit
1
1
apache-2.0
93ba327a3198c587d791aeb1d285f6e7f339df20
comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django,comic/comic-django
app/grandchallenge/archives/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\nimport subprocess, sys, re\n\ntry:\n classfile = sys.argv[1]\n functionRE = re.compile(sys.argv[2])\n toSearch = re.compile(sys.argv[3])\nexcept (re.error, IndexError) as e:\n print(\"\"\"usage: %s clas...
python
edit
3
0
apache-2.0
056c2922bd8304d054915bca10c9510148d96398
FAU-Inf2/AuDoscore,FAU-Inf2/AuDoscore
isAccessedInFunction.py
accepted
null
true