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 django.contrib import admin\n\nfrom .models import Build, BuildResult, Project\n\n\nclass BuildResultInline(admin.StackedInline):\n model = BuildResult\n readonly_fields = ('result_log', 'succeeded', 'retu...
python
edit
1
2
mit
4cfd8771b91c7c2b9f28ca4b9776e9770683093b
frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq
frigg/builds/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Aligner for texts and their segmentations.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\n__all__ = ['AlignmentFailed', 'Aligner']\n\n\nclass Alignmen...
python
edit
1
3
apache-2.0
d52f59911929eda6b8c0c42837ae9c19b9e133e4
nryant/twokenize_py
twokenize_py/align.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass TransformerTestCase(object):\n def get_pattern_for_spec(self, patterns, spec):\n for pattern in patterns:\n if pattern.search(spec):\n return pattern\n\n\n```\n\nApply this change: Improve our custo...
python
edit
3
5
mit
6dbd72af13f017d9b1681da49f60aaf69f0a9e41
mbooth101/spec2scl,sclorg/spec2scl
tests/transformer_test_case.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#\n# linter.py\n# Linter for SublimeLinter3, a code checking framework for Sublime Text 3\n#\n# Written by Hardy Jones\n# Copyright (c) 2013\n#\n# License: MIT\n#\n\n\"\"\"This module exports the Hlint plugin class.\"\"\"\n\nfrom SublimeLin...
python
edit
1
0
mit
17ddcb1b6c293197834b3154830b9521769d76fb
SublimeLinter/SublimeLinter-hlint
linter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nGewebehaken\n~~~~~~~~~~~\n\nCommand-line interface\n\n:Copyright: 2015-2021 Jochen Kupperschmidt\n:License: MIT, see LICENSE for details.\n\"\"\"\n\nfrom argparse import ArgumentParser\n\nfrom .app import create_app\n\n\nDEFAULT_HOS...
python
edit
1
1
mit
069a29351e228996a465b962b1dffed5581685de
homeworkprod/gewebehaken
src/gewebehaken/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2015 Yelp Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.or...
python
edit
1
0
apache-2.0
9d93a7a5d474a8725125077ae888f2d586955489
Yelp/paasta,gstarnberger/paasta,somic/paasta,somic/paasta,Yelp/paasta,gstarnberger/paasta
tests/cli/fsm/fsm_test.py
rejected_duplicate
Near-duplicate of sample 3094
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/python\n\nimport removinator\nimport subprocess\n\n# This example cycles through each card slot in the Removinator. Any\n# slots that have a card present will then have the certificates on the\n# card printed out using the pkcs15-to...
python
edit
1
0
apache-2.0
bec498894ebd612058f905e1cfe4f5230df91841
nkinder/smart-card-removinator
client/examples/cycle-cards.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom automatron.backend.plugin import PluginManager\nfrom automatron.controller.controller import IAutomatronClientActions\nfrom automatron.core.controller import BaseController\n\n\nclass BackendController(BaseController):\n def __init_...
python
edit
1
1
mit
b501ee5dc2a41bf51f9f91c29501792338bf7269
automatron/automatron
automatron/backend/controller.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\n\nfrom flask import url_for\n\nfrom npactflask import app\n\n\n# TODO: I think this is more simply a template_global:\n# http://flask.pocoo.org/docs/0.10/api/#flask.Flask.template_global\n@app.context_processor\ndef vSTATIC...
python
edit
1
2
bsd-3-clause
f9d1bd9471196d5706c063a5ba3d3ca0531fbd1e
NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact,NProfileAnalysisComputationalTool/npact
npactflask/npactflask/helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nName: Paul Briant\nDate: 12/11/16\nClass: Introduction to Python\nAssignment: Final Project\n\nDescription:\nTests for Final Project\n\"\"\"\n\nimport clean_data as cd\nimport pandas\nimport io\n\ndef get_data():\n \"\"\"\n\n ...
python
edit
1
1
unlicense
3c7641c3380acab821dcbf2ae274da4fb8fade96
weidnem/IntroPython2016,UWPCE-PythonCert/IntroPython2016,UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016,weidnem/IntroPython2016,UWPCE-PythonCert/IntroPython2016
students/psbriant/final_project/test_clean_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n\nfrom pathlib import Path\nfrom typing import Callable, Optional, List, Union\n\nfrom il2fb.parsers.events.events import Event\n\n\nEventOrNone = Optional[Event]\nEventHandler = Callable[[Event], None]\n\nIntOrNone = Optio...
python
edit
1
0
mit
41209aa3e27673f003ed62a46c9bfae0c19d0bf3
IL2HorusTeam/il2fb-ds-airbridge
il2fb/ds/airbridge/typing.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"spinoff\",\n version=\"0.3dev\",\n packages=find_packages(),\n\n data_files=[('twisted/plugins', ['twisted/plugins/startnode.py'])],\n\n install_requires=[\n ...
python
edit
1
0
bsd-2-clause
4a28457070e2aaa08eced2651bc437ca052af739
eallik/spinoff
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom subprocess import call, check_output\nimport sys\nimport os\n\nisPython3 = sys.version_info.major == 3\n\n# https://stackoverflow.com/a/3357357\ncommand = 'git log --format=%B -n 1'.split()\nout = check_output(command)\n\nif b'build wh...
python
edit
1
0
bsd-3-clause
445b80562e038bc3749930d44e00eda55edaa180
jr-garcia/AssimpCy,jr-garcia/AssimpCy
ci_scripts/buildLinuxWheels.py
rejected_duplicate
Near-duplicate of sample 558
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" Module for helper functions used inside jinja2 templates \"\"\"\n\n# NB, each blueprint must individually load any functions defined below\n# for them to appear in the namespace when invoked from respective blueprint\n# See @<bluepri...
python
edit
1
2
bsd-3-clause
f3fb5bd0dbb3e19e58558af015aaee5ec120af71
uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal,uwcirg/true_nth_usa_portal
portal/template_helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import BaseCommand\n\nfrom syntacticframes.models import VerbNetClass\nfrom parsecorrespondance import parse\nfrom loadmapping import mapping\n\nclass Command(BaseCommand):\n def handle(self, *args, **opt...
python
edit
3
6
mit
95542ab1b7c22a6e0160e242349c66f2cef7e390
aymara/verbenet-editor,aymara/verbenet-editor,aymara/verbenet-editor
syntacticframes_project/syntacticframes/management/commands/check_correspondance_errors.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nA collection of Django extensions that add content-management facilities to Django projects.\n\nDeveloped by Dave Hall.\n\n<http://etianen.com/>\n\"\"\"\n\nVERSION = (1, 8, 5)\n\n```\n\nApply this change: Update version number to 1....
python
edit
1
0
bsd-3-clause
4dfa90cee753f6ef937a7a75aa347ec429fa1720
danielsamuels/cms,danielsamuels/cms,jamesfoley/cms,jamesfoley/cms,jamesfoley/cms,dan-gamble/cms,dan-gamble/cms,lewiscollard/cms,lewiscollard/cms,jamesfoley/cms,lewiscollard/cms,dan-gamble/cms,danielsamuels/cms
cms/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom django import forms\nfrom django.db import transaction, IntegrityError\n\nfrom sentry.models import (\n AuditLogEntry, AuditLogEntryEvent, OrganizationMember,\n OrganizationMemberType\n)\...
python
edit
1
3
bsd-3-clause
538acc8a114c9fda8489dc5fe91fed2314a37c9b
ifduyue/sentry,jean/sentry,gg7/sentry,daevaorn/sentry,Kryz/sentry,songyi199111/sentry,felixbuenemann/sentry,vperron/sentry,looker/sentry,jean/sentry,looker/sentry,hongliang5623/sentry,alexm92/sentry,daevaorn/sentry,pauloschilling/sentry,fuziontech/sentry,TedaLIEz/sentry,mvaled/sentry,beeftornado/sentry,pauloschilling/s...
src/sentry/web/forms/invite_organization_member.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Development automation.\"\"\"\n\nimport nox\n\n\ndef _install_this_editable(session, *, extras=None):\n if extras is None:\n extras = []\n\n session.install(\"flit\")\n session.run(\n \"flit\",\n \"instal...
python
edit
1
2
mit
723d7410b48fd4fc42ed9afe470ba3b37381599a
GaretJax/sphinx-autobuild
noxfile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport attr\n\n__all__ = [\"make_tohu_items_class\"]\n\n\ndef make_tohu_items_class(clsname, field_names):\n \"\"\"\n Parameters\n ----------\n clsname: string\n Name of the class to be created.\n\n field_names: list o...
python
edit
3
4
mit
3d2f19ff097cf144efd9135c52e4d584193f9ddb
maxalbert/tohu
tohu/v7/custom_generator/tohu_items_class.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom django.http import HttpResponse\nfrom django.contrib.auth import authenticate\n\nfrom piston.handler import BaseHandler as Handler\n\nfrom opps.api.models import ApiKey\n\n\nclass BaseHan...
python
edit
1
5
mit
720c6dbf9831b2b2ff701d0ca88303189583b9c4
YACOWS/opps,opps/opps,jeanmask/opps,opps/opps,williamroot/opps,YACOWS/opps,williamroot/opps,opps/opps,YACOWS/opps,williamroot/opps,williamroot/opps,YACOWS/opps,opps/opps,jeanmask/opps,jeanmask/opps,jeanmask/opps
opps/api/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport pytest\nfrom os.path import basename\nfrom helpers import utils, fixture\n\n\n@pytest.mark.skipif(pytest.config.getoption(\"--application\") is not False, reason=\"application passed; skipping base module tes...
python
edit
1
1
mit
2f16eb25db856b72138f6dfb7d19e799bd460287
percyfal/snakemake-rules,percyfal/snakemake-rules,percyfal/snakemakelib-rules,percyfal/snakemakelib-rules,percyfal/snakemakelib-rules
tests/test_helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Case Conductor is a Test Case Management system.\n# Copyright (C) 2011 uTest Inc.\n# \n# This file is part of Case Conductor.\n# \n# Case Conductor is free software: you can redistribute it and/or modify\n# it under the terms of the GNU G...
python
edit
1
4
bsd-2-clause
aef51ce5ece86d054f76d86dafca9667f88d3b1a
shinglyu/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,mccarrmb/moztrap,mccarrmb/moztrap,mozilla/moztrap,shinglyu/moztrap,bobsilverberg/moztrap,mozilla/moztrap,bobsilverberg/moztrap,mozilla/moztrap,mccarrmb/moztrap,shinglyu/moztrap,mozilla/moztrap,mccarrmb/moztrap,bobsilverberg/moztrap,mccarrmb/moztrap,shinglyu/moztra...
ccui/testexecution/templatetags/results.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport kamboo\n\n\nrequires = ['boto3']\n\nif sys.version_info[:2] == (2, 6):\n # For python2.6 we have to require argparse since it\n # was not in st...
python
edit
1
0
apache-2.0
83b40ad7c62becd316cf54aba90e31bd6ef29b21
henrysher/kamboo,henrysher/kamboo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Create IAM Instance Profiles, Roles, Users, and Groups.\"\"\"\nimport argparse\nimport logging\n\nfrom .create_iam import create_iam_resources\n\nLOG = logging.getLogger(__name__)\n\n\ndef main():\n \"\"\"Command to create IAM Inst...
python
edit
1
1
apache-2.0
408ec05722cacd1e8574d9af206bffcf319c23b2
gogoair/foremast,gogoair/foremast
pipes/iam/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import template\nfrom django.conf import settings\nfrom socialregistration.utils import _https\n\nregister = template.Library()\n\n@register.inclusion_tag('socialregistration/facebook_js.html')\ndef facebook_js():\n return {'...
python
edit
2
3
mit
dc186adbb1b49c821911af724725df4512fbf9f5
bopo/django-socialregistration,bopo/django-socialregistration,bopo/django-socialregistration,kapt/django-socialregistration,lgapontes/django-socialregistration,mark-adams/django-socialregistration,0101/django-socialregistration,praekelt/django-socialregistration,flashingpumpkin/django-socialregistration,itmustbejj/djan...
socialregistration/templatetags/facebook_tags.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Use API defaults. This allows these settings to work with API tests\nfrom api.base.settings.defaults import * # noqa\n\nDEBUG_PROPAGATE_EXCEPTIONS = True\n#DATABASES = {\n# 'default': {\n# 'CONN_MAX_AGE': 0,\n# 'ENGINE':...
python
edit
2
0
apache-2.0
4f730cb70fc4e65b568732fdcbb7f0209870bfca
cwisecarver/osf.io,chennan47/osf.io,mfraezz/osf.io,Johnetordoff/osf.io,cslzchen/osf.io,monikagrabowska/osf.io,baylee-d/osf.io,baylee-d/osf.io,crcresearch/osf.io,saradbowman/osf.io,monikagrabowska/osf.io,mattclark/osf.io,CenterForOpenScience/osf.io,Nesiehr/osf.io,brianjgeiger/osf.io,CenterForOpenScience/osf.io,Nesiehr/o...
osf_tests/settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nfrom . import settings\n\n# for development/debugging\ndef report_time(f):\n def wrap(*args, **kwargs):\n t = time.time()\n r = f(*args, **kwargs)\n if settings.DEBUG:\n print '%s.%s: %.4f' % (f.__module__, f.fun...
python
edit
2
2
mit
d93f1ff0b226d2e85cefc02afd0d5c44571f70ce
ginkgobioworks/curious,benjiec/curious,benjiec/curious,ginkgobioworks/curious,benjiec/curious,ginkgobioworks/curious
curious/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nintegration_test = True\n\ntimeout = 2\n\nSLEEP_INTERVAL = int(100e6)\n\ndef check_state(state):\n import re\n from functools import partial\n from operator import is_not\n\n r = re.compile('^(\\d+) \\[.*\\] Hello World!')\n ...
python
edit
1
2
bsd-2-clause
dc883b81a2c5714d9401fb113101639e13e396f5
unigornel/unigornel,unigornel/unigornel
integration_tests/tests/hello_world_sleep_and_time.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n\tname=\"arxiv\",\n\tversion=\"0.2.1\",\n\tpackages=[\"arxiv\"],\n\n\t# dependencies\n\tinstall_requires=[\n\t\t'feedparser',\n\t\t'requests',\n\t],\n\n\t# metadata for upload to PyPI\n\tauthor=\"Luka...
python
edit
1
0
mit
cf8dc3b9ff61b045233b252f20e2f68587911514
lukasschwab/arxiv.py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\nimport sys, os\n\n\ndef main():\n django_env_dir = os.path.abspath('%s/../' % os.path.dirname(__file__))\n workon_home = os.environ.get('WORKON_HOME')\n if not workon_home:\n print \"ERROR: The $WO...
python
edit
3
3
bsd-3-clause
c7e9b65d7951b9757f907da9e4bf35e43dbdbd88
epicserve/django-environment,epicserve/django-environment
django_env/bin/install.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework.fields import SerializerMethodField\nfrom rest_framework.serializers import ModelSerializer, CharField, UUIDField\n\nfrom alexa.settings import RADIO_LINK_BASE\nfrom yle.models import News\n\n\nclass NewsSerializer(Model...
python
edit
1
1
mit
471681cc25f44f31792813a968074b6813efb38c
anttipalola/alexa
yle/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals, absolute_import\nfrom django.core.management.base import BaseCommand\nfrom ci import models, views, TimeUtils\nfrom datetime import timedelta\n\nclass Command(BaseCommand):\n help = 'Cancel old Ci...
python
edit
1
5
apache-2.0
05151bb3ccd018b37097ddf5288e9984f5b45716
idaholab/civet,brianmoose/civet,idaholab/civet,brianmoose/civet,brianmoose/civet,idaholab/civet,idaholab/civet,brianmoose/civet
ci/management/commands/cancel_old_jobs.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom opps.boxes.models import OPPS_APPS\n\n\nFIELD_TYPE = (\n ('checkbox', _('CheckBox')),\n ('ra...
python
edit
1
1
mit
8fea58292e41352b0b58947f4182dd32ff4f225d
williamroot/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,williamroot/opps,opps/opps,opps/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,YACOWS/opps,opps/opps,williamroot/opps,YACOWS/opps,opps/opps
opps/fields/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='tldr',\n version=\"0.1.3\",\n author='Felix Yan',\n author_email='<EMAIL>',\n url='https://github.com/felixonmars/tldr-python-client',\n description='command line client for t...
python
edit
1
0
mit
67e53d151971a56c1375c2fa9a8afcb1bfd609d5
Anmol-Singh-Jaggi/tldr-python-client,tldr-pages/tldr-python-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom nodes import Node\n\nclass FloorDiv(Node):\n char = \"f\"\n args = 2\n results = 1\n \n @Node.test_func([3,2], [1])\n @Node.test_func([6,-3], [-2])\n def func(self, a:Node.number,b:Node.num...
python
edit
1
5
mit
54e5ee0cb6df1f47a1a6edd114c65ad62fd0c517
muddyfish/PYKE,muddyfish/PYKE
node/floor_divide.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\ndef fragment(sequence, size=5):\n \"\"\"\n Fragment a string sequence using a sliding window given by size\n\n :param sequence: String containing the sequence\n :param size: Size of the window\n\n :return: a fragment of the...
python
edit
1
3
mit
d407f1bcd95daf4f4bd8dfe8ae3b4b9e68061cb5
mchelem/cref2,mchelem/cref2,mchelem/cref2
cref/sequence/fragment.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Debugging/cleanup checks.\"\"\"\n\nimport itertools\nimport chen_2009_original_sbml\n\nmodel = chen_2009_original_sbml.get_model()\n\n# determine truly redundant species -- same name, same compartment\nsa = sorted(model.species, key=l...
python
edit
6
2
mit
66f6bb4b64ec13412edeef77c6db2f0a2e1932ba
johnbachman/rasmodel,jmuhlich/rasmodel,subkar/rasmodel,johnbachman/ras_model,sorgerlab/rasmodel,jmuhlich/ras_model,jmuhlich/ras_model,jmuhlich/rasmodel,sorgerlab/ras_model,johnbachman/rasmodel,johnbachman/ras_model,sorgerlab/rasmodel,sorgerlab/ras_model
src/sbml_model_checkup.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: UTF-8\nimport random\nfrom . import config\n\ndef sampler(source):\n def reshuffle():\n copy = list(source)\n random.shuffle(copy)\n return copy\n\n stack = reshuffle()\n lastitem = ''\n\n while ...
python
edit
1
4
cc0-1.0
8b7aa0a540c7927b53adf6368e9cb8476816d941
jnv/asciibooth,jnv/asciibooth
asciibooth/statuses.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport importlib\nfrom cx_Freeze import setup, Executable\n\nbackend_path = importlib.import_module(\"bcrypt\").__path__[0]\n\nbackend_path = backend_path.replace(\"bcrypt\", \".libs_cffi_backend\")\n\n# Dependencies are automatically detec...
python
edit
1
0
mit
df0efa079afbda84b1c09bc4895c84c0ec70861d
igboyes/virtool,virtool/virtool,igboyes/virtool,virtool/virtool
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='prompt_toolkit',\n author='Jonathan Slenders',\n version='0.25',\n license='LICENSE.txt',\n url='https://github.com/jo...
python
edit
1
0
bsd-3-clause
b5898dc6d16868cd7908872916fa6099ad85049f
melund/python-prompt-toolkit,ALSchwalm/python-prompt-toolkit,niklasf/python-prompt-toolkit,amjith/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit,jaseg/python-prompt-toolkit,ddalex/python-prompt-toolkit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom subprocess import call, check_output\nimport sys\nfrom shutil import copy2\n\n\ndef checkAndInstall():\n try:\n check_output('pandoc -v'.split())\n except OSError:\n cudir = os.path.abspath(os.curdir)\n ...
python
edit
1
3
bsd-3-clause
8db4213d20486a60abda1ba486438f54c3b830c0
jr-garcia/AssimpCy,jr-garcia/AssimpCy
ci_scripts/installPandoc.py
rejected_duplicate
Near-duplicate of sample 527
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nThis is an example of a python test\nthat compares a diff function (in this case\na hardcoded one that doesn't work) to the\nreference JSON to check compliance.\n'''\nfrom nose.tools import eq_\nimport json\n\ndef diff(before, after):\...
python
edit
1
2
mit
8187591a0f8255487f4b16b653ba5070bfffe739
tarmstrong/nbdiff,tarmstrong/nbdiff,tarmstrong/nbdiff,tarmstrong/nbdiff
specs/test_diff.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport datetime as dt\n\nimport humanize\n\n\ndef test_i18n():\n three_seconds = dt.timedelta(seconds=3)\n\n assert humanize.naturaltime(three_seconds) == \"3 seconds ago\"\n\n humanize.i18n.activate(\"ru_RU\")\n assert humanize...
python
edit
1
2
mit
2d8ddb4ab59bc7198b637bcc9e51914379ff408b
jmoiron/humanize,jmoiron/humanize
tests/test_i18n.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup, Command\nfrom distutils.extension import Extension\nimport os\nimport numpy as np\nfrom Cython.Distutils import build_ext\n\n\nos.environ['TEST_DATA_ROOT'] = os.path.abspath(\"tests...
python
edit
1
2
mit
d73ff1c66925613646495a22018e8c8a6ce139a7
echlebek/15puzz,echlebek/15puzz
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name='pyresttest',\n version='0.1',\n description='Python Rest Testing',\n maintainer='Naveen Malik',\n maintainer_email='<EMAIL>',\n url='https://github.com/svanoort/pyresttest',\n ...
python
edit
1
0
apache-2.0
ee2d27eca45768a07a562405cf4431cb8d2b09bf
sunyanhui/pyresttest,satish-suradkar/pyresttest,suvarnaraju/pyresttest,wirewit/pyresttest,netjunki/pyresttest,MorrisJobke/pyresttest,wirewit/pyresttest,suvarnaraju/pyresttest,svanoort/pyresttest,alazaro/pyresttest,sunyanhui/pyresttest,TimYi/pyresttest,MorrisJobke/pyresttest,holdenweb/pyresttest,TimYi/pyresttest,alazaro...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom operator import methodcaller\n\nimport requests\nfrom furl import furl\n\n\nclass Client(object):\n\n def __init__(self, access_token, base_url='https://api.annict.com', api_version='v1'):\n self.acce...
python
edit
1
4
mit
9361af556cfa7f4fb6bb3c53b4e74e2c115cd7d7
kk6/python-annict
annict/client.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom passwd_change import passwd_change, shadow_change, mails_delete\n\nfrom unittest import TestCase, TestLoader, TextTestRunner\nimport subprocess\n\n\nclass PasswdChange_Test(TestCase):\n def setUp(self):\n ...
python
edit
1
5
mit
ff50b3e43de0c083cd8c3daaa7644394daadc1a0
maxsocl/oldmailer
test_passwd_change.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Python script to run all tests\"\"\"\nimport pytest\n\nif __name__ == '__main__':\n pytest.main()\n\n```\n\nApply this change: Allow Jenkins to actually report build failures" }, { "role": "assistant", "content": "\"\"\...
python
edit
1
0
mit
131f0d3a67bc6ba995d1f45dd8c85594d8d8e79c
gatkin/declxml
tests/run_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ._version import get_versions\n\n__version__ = get_versions()['version']\ndel get_versions\n\n__all__ = ['__version__']\n\n# We first need to detect if we're being called as part of the skmisc\n# setup procedure itself in a reliable ma...
python
edit
1
3
bsd-3-clause
2015233d252e625419485c269f1f70a7e0edada8
has2k1/onelib,has2k1/onelib,has2k1/onelib
skmisc/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:\n README = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path...
python
edit
1
0
mit
c2bd843cd383cb55c3a74f48612a4969c893a42e
mverteuil/widget-party,mverteuil/widget-party,mverteuil/widget-party
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\nfrom .models import Game, Framework, Release, Asset\n\n\nclass GameAdmin(admin.ModelAdmin):\n pass\n\n\nclass FrameworkAdmin(admin.ModelAdmin):\n pass\n\n\nclass ReleaseAdmin(admin.ModelAdmin):\n ...
python
edit
1
0
mit
463e0ab2a77734cf6787d9cb788a57e7dd53ff06
stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb
games/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\n\n@pytest.mark.parametrize(\"name\", [\n (\"apt-file\"),\n (\"apt-transport-https\"),\n (\"atom\"),\n (\"blktrace\"),\n (\"ca-certificates\"),\n (\"chromium-browser\"),\n (\"cron\"),\n (\"curl\"),\n (\"diod\"),\n (\...
python
edit
1
1
mit
6453baefa8c2f6ab9841efd3961da0a65aaa688f
wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build
test/test_packages.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages\nfrom setuptools import setup\nfrom pip import req\n\n_install_requirements = req.parse_requirements('requirements.txt')\n\n\nsetup(\n name='jetway',\n version=open('VERSION').read().strip(),\n ...
python
edit
1
0
mit
453bd468d9de609999ef814f24111923177374fe
grow/webreview-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport collections\nfrom stock import Stock\n\n# simple structure to keep track of a specific piece\nPiece = collections.namedtuple('Piece', 'id, length')\n\nclass Planner(object):\n\n def __init__(self, sizes, needed, loss=0.25):\n ...
python
edit
3
3
mit
78ca616d611a6c9b8364cf25a21affd80e261ff8
alanc10n/py-cutplanner
cutplanner/planner.py
rejected_duplicate
Near-duplicate of sample 763
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- encoding: utf-8 -*-\n\nfrom django.core.management.base import BaseCommand\n\nfrom django.apps import apps\n# from reversion import revisions as reversion\nfrom reversion.models import Version\nfrom reversion.errors import Registratio...
python
edit
1
6
apache-2.0
42b4837570fd936c5a7593026fc4868c38d4b09d
pkimber/base,pkimber/base,pkimber/base,pkimber/base
base/management/commands/revision_count.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n=================================\nCompare (:mod:`macroeco.compare`)\n=================================\n\nThis module contains functions that compare the goodness of fit of a\ndistribution/curve to data or the fit of two distributi...
python
edit
2
0
bsd-2-clause
a83dd9bfce43a898cf71c9e66192ad589a02b6c8
jkitzes/macroeco
macroeco/compare/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\n# Copyright 2012 Software Freedom Conservancy.\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 L...
python
edit
1
1
apache-2.0
06d1039ccbf4653c2f285528b2ab058edca2ff1f
misttechnologies/selenium,markodolancic/selenium,uchida/selenium,yukaReal/selenium,mestihudson/selenium,alb-i986/selenium,jabbrwcky/selenium,krmahadevan/selenium,jabbrwcky/selenium,AutomatedTester/selenium,s2oBCN/selenium,asolntsev/selenium,twalpole/selenium,o-schneider/selenium,jsakamoto/selenium,compstak/selenium,tku...
py/test/selenium/webdriver/common/proxy_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-treemenus',\n version='0.8.8-pre',\n description='Tree-structured menuing application for Django.',\n author='Julien Phalip',\n author_email='<EMAIL>',\n ...
python
edit
1
0
bsd-3-clause
ee2d37cd2d088f1bc1aface2322d7216a258754b
artscoop/django-treemenus-plus,artscoop/django-treemenus-plus,jphalip/django-treemenus
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nimport random\nfrom tornado import gen\nfrom zoonado import exc\n\nlog = logging.getLogger()\n\n\ndef arguments(parser):\n parser.add_argument(\n \"--path\", \"-p\", type=str, default=\"/examplewatcher\",\n ...
python
edit
1
4
apache-2.0
e7cb5b0be49bc5e811809c56eb4ad3c0dc861cdf
wglass/zoonado
examples/child_watcher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nfrom setuptools import setup, find_packages\n\nreqs_file = os.path.join(os.path.dirname(os.path.realpath(__file__))\n , \"requirements.txt\")\n\nreqs = None\nwith open(reqs_file) as f:\n ...
python
edit
3
1
mit
03875be96ba09a252a05ba0ea84a3558c6428011
mediachain/mediachain-client,mediachain/mediachain-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nBOARDS = {\n 'arduino': {\n 'digital': tuple(x for x in range(14)),\n 'analog': tuple(x for x in range(6)),\n 'pwm': (3, 5, 6, 9, 10, 11),\n 'use_ports': True,\n 'disabled': (0, 1) # Rx, Tx, Crystal\n ...
python
edit
1
0
mit
e5b98d072017c8a70cf033cdb34233b2d0a56b2e
JoseU/pyFirmata,tino/pyFirmata
pyfirmata/boards.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Update the version to 1.5.0 to prepare for next release\n\nUpdate the _pkg_meta version to 1.5.0 to prepare for the next release." }, { "role": "assistant", "content": "version_info = (1, 5, 0)\nversion = '.'.join(map(str, versio...
python
new_file
1
0
apache-2.0
4257910deffdb624c0c8faf325933fb5e775d9e6
andreleblanc-wf/furious,Workiva/furious,andreleblanc-wf/furious,Workiva/furious,beaulyddon-wf/furious,beaulyddon-wf/furious
furious/_pkg_meta.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom asyncaws import SQS\nfrom tornado.testing import AsyncTestCase, gen_test\n\naws_key_id = os.environ['AWS_ACCESS_KEY_ID']\naws_key_secret = os.environ['AWS_SECRET_ACCESS_KEY']\naws_region = os.environ['AWS_REGION']\n\n\nclass...
python
edit
5
1
mit
6953b831c3c48a3512a86ca9e7e92edbf7a62f08
MA3STR0/AsyncAWS
tests/integration/test_sqs.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport re\n\nfrom paver.easy import *\nfrom paver.setuputils import setup\n\ndef get_version():\n \"\"\"\n Grab the version from irclib.py.\n \"\"\"\n here = os.path.dirname(__file__)\n irclib = os.path.join(here, ...
python
edit
4
1
mit
d63905158f5148b07534e823d271326262369d42
jaraco/irc
pavement.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Luhn Algorithm Validator -- long description\nwith open(path.join(here, 'DESCRIPTION.rst'), enco...
python
edit
4
0
mit
21b3a79db94903d18671c58619601022b0277ccd
garwoodpr/LuhnAlgorithmProof,garwoodpr/LuhnAlgorithmProof
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, absolute_import\n\nimport os\nfrom cryptography.fernet import Fernet, MultiFernet\n\nfernet = Fernet(os.environ['KOMBU_FERNET_KEY'])\nfallback_fernet = None\ntry:\n fallba...
python
edit
2
2
mit
37c59a8535ac0d68a995af378fcb61f03070e018
heroku/kombu-fernet-serializers
kombu_fernet/serializers/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom flask import Flask\n\n\n__version__ = '0.1.5'\n\n\ndef create_app(name=__name__):\n app = Flask(name)\n app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DB_URI']\n\n from web.main import main_module\n from w...
python
edit
1
1
bsd-3-clause
965ff5b8fb83891a04c1601ceb3dc11f255dcb53
suminb/tldr-web,suminb/tldr-web,suminb/tldr-web
web/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.contrib import admin\n\nfrom .models import Game, Platform\n\n\nclass GameAdmin(admin.ModelAdmin):\n list_display = ['name', 'platform', 'gbid', 'is_abandoned', 'is_completed']\n\n raw_id_fields = ...
python
edit
1
0
apache-2.0
8ed2aa1a8108ae3a678ff18f4e8fda3539f4b603
bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv
avalonstar/components/games/admin.py
rejected_duplicate
Near-duplicate of sample 3572
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='firebase-token-generator',\n version='1.2',\n author='Greg Soltis',\n author_email='<EMAIL>',\n py_modules=['firebase_token_generator'],\n license='LICENSE',\n url='htt...
python
edit
1
0
mit
3d888afa88326c97246947141c357509c2f72bbc
googlearchive/firebase-token-generator-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom paver.easy import task, needs, path, sh, cmdopts\nfrom paver.setuputils import setup, install_distutils_tasks, find_package_data\nfrom distutils.extension import Extension\nfrom optparse import make_option\nfrom Cython.Build import cyt...
python
edit
7
1
bsd-3-clause
bf2502fc45854db8ce7666c9fa511d487eccfb2e
cfobel/si-prefix
pavement.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#\n# Copyright 2014 Major Hayden\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 Licens...
python
edit
1
0
apache-2.0
c8a47fe44ca4ecbf98cccec166a5d22a2597b577
major/rpc_differ
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport sys\nimport os\nimport argparse\nimport re\n\nreago_dir = '/tools/rna_manipulation/reago/reago/'\n\ndef add_read_pair_num(input_filepath, output_filepath, read_pair_num):\n to_add = '....
python
edit
5
4
apache-2.0
a977908efcc176e1e5adbd82843033805953c6cb
ASaiM/galaxytools,ASaiM/galaxytools
tools/reago/format_reago_input_files.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.views.generic import TemplateView\nfrom django.views.generic.list import MultipleObjectMixin\nfrom django.utils.translation import ugettext as _\n\nfrom .models import Wel...
python
edit
1
3
apache-2.0
73d4aa7fa41117bbbe6447466cf453153f76b5ba
armstrong/armstrong.core.arm_wells,armstrong/armstrong.core.arm_wells,texastribune/armstrong.core.arm_wells,texastribune/armstrong.core.arm_wells,armstrong/armstrong.core.arm_wells
armstrong/core/arm_wells/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2017 Virgil Dupras\n\n# This software is licensed under the \"BSD\" License as described in the \"LICENSE\" file,\n# which should be included with this package. The terms are also available at\n# http://www.hardcoded.net/license...
python
edit
1
0
bsd-3-clause
9b0d5796c1e48a3bf294971dc129499876936a36
hsoft/send2trash
send2trash/plat_osx.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup\n\n\n# Be verbose about Python < 3.4 being deprecated.\nif sys.version_info < (3, 4):\n print('\\n' * 3 + '*' * 64)\n print('lastcast requires Python 3.4+, and might be broken if run with\\n'\n...
python
edit
1
0
mit
f52c77b746ca98ed06df293ba142a5ecf2577a62
erik/lastcast
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom CITests import CITests\n\n# Libs in Application Examples\nappExamples = {\n#\"KundurSMIB\":\"/ApplicationExamples/KundurSMIB/package.mo\",\n#\"TwoAreas\":\"/ApplicationExamples/TwoAreas/package.mo\",\n#\"SevenBus\":\"/Appli...
python
edit
1
0
bsd-3-clause
73dd57a0d27b08089f91f303d3d36e428b108618
SmarTS-Lab/OpenIPSL,OpenIPSL/OpenIPSL,SmarTS-Lab/OpenIPSL,tinrabuzin/OpenIPSL
CI/syntaxCheck.py
rejected_duplicate
Near-duplicate of sample 3407
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='dcp',\n version='0.3',\n description='Basic DCP client',\n author='Couchbase',\n author_email='<EMAIL>',\n packages=['dcp'],\n classifiers=[\n 'Programming Language ...
python
edit
1
0
apache-2.0
58619ac341bd552594772be9c03aa73c75b55d0b
mattcarabine/python-dcp-client,jbmcgill/python-dcp-client,couchbaselabs/python-dcp-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2.7\n\n#import argparse\nfrom telnetlib import Telnet\n\ndef main(in_path, out_path):\n with open(in_path) as f:\n lines = f.read().split('\\n')\n tn = Telnet('horizons.jpl.nasa.gov', 6775)\n out = open(...
python
edit
1
2
mit
af2885d2bc9d2dfefd39e5d1dab53da137c793c2
GuidoBR/python-skyfield,exoanalytic/python-skyfield,ozialien/python-skyfield,exoanalytic/python-skyfield,skyfielders/python-skyfield,skyfielders/python-skyfield,ozialien/python-skyfield,GuidoBR/python-skyfield
builders/horizons_telnet.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\nfrom setuptools import setup\nfrom dictorm.dictorm import __version__, __doc__ as ddoc\n\nconfig = {\n 'name':'dictorm',\n 'version':str(__version__),\n 'author':'rolobio',\n 'author_email':'<EMAIL>',\n ...
python
edit
1
0
apache-2.0
80980383c32b8e02dc33a6218b734e7073edd43f
rolobio/DictORM,rolobio/pgpydict
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport operator\nimport itertools\n\nclass OptionalExtensionNotSupported(unittest.SkipTest):\n def __str__(self):\n return 'Unsupported extension: {}'.format(self.args[0])\n\nclass OptionalSaslMechanismNotSupporte...
python
edit
1
4
mit
c7143cd725fc829c33ad9f9150e5975deb7be93a
ProgVal/irctest
irctest/optional_extensions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Zap .pyc files\nimport os\nimport sys\n\ndoit = 1\n\ndef main():\n\tif os.name == 'mac':\n\t\timport macfs\n\t\tfss, ok = macfs.GetDirectory('Directory to zap pyc files in')\n\t\tif not ok:\n\t\t\tsys.exit(0)\n\t\tdir = fss.as_pathname()\...
python
edit
3
5
mit
aed82bc0995cf4175c0ab8c521dfc8e89d776a7e
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Mac/scripts/zappycfiles.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name=\"pocketlint\",\n description=\"Pocket-lint a composite linter and style checker.\",\n version=\"0.5.7\",\n maintainer=\"Curtis C. Hovey\",\n maintainer_email=\"<EMAIL>\",\n ...
python
edit
1
0
mit
3a3c1491cf185899a5e5b6288ae0a3542b536dee
chevah/pocket-lint,chevah/pocket-lint
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Add a manual scheduler for building release candidates\nrc_scheduler = ForceScheduler(\n name=\"rc build\",\n builderNames=[\"package_osx10.9-x64\", \"package_win6.2-x64\", \"package_win6.2-x86\", \"package_tarball64\", \"package_ta...
python
edit
7
0
mit
dcc5c7be6f8463f41e1d1697bdba7fd576382259
staticfloat/julia-buildbot,staticfloat/julia-buildbot
master/rc_force.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\nfrom setuptools import setup, find_packages\n\n__version__ = \"1.0\"\n\nsetup(\n name=\"awsenv\",\n version=__version__,\n description=\"Opinionated configuration\",\n author=\"Location Labs\",\n auth...
python
edit
1
0
apache-2.0
1f9c09b52269b2c0310317ff252dfdd702fe3462
locationlabs/awsenv
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nDefinition of the plugin.\n\"\"\"\nfrom django.apps import apps\nfrom django.conf import settings\nfrom django.db.models.loading import get_model\nfrom django.utils.translation import ugettext_lazy as _\nfrom fluent_contents.extensi...
python
edit
1
0
mit
ee53ec51d98802bf0bc55e70c39cc0918f2bb274
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
icekit/plugins/blog_post/content_plugins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nfrom buildcmds.addon import addon\n\nsetup(\n name='io_scene_previz',\n\n # Versions should comply with PEP440. For a discussion on single-sourcing\n # the version across setup.py and...
python
edit
1
0
mit
b0e44fcca09a2d62ea0dc217d1538e03d48e2558
Previz-app/io_scene_dnb_previz,Previz-app/io_scene_previz,Previz-app/io_scene_previz,Previz-app/io_scene_dnb_previz
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# import boto3\n\n\ndef lambda_handler(event, context):\n pass\n\n```\n\nApply this change: Add S3 static deploy custom resource Lambda function" }, { "role": "assistant", "content": "# Invoked by: CloudFormation\n# Returns: ...
python
edit
3
6
mit
4e3f10cc417f28badc34646cc89fcd9d0307b4be
PRX/Infrastructure,PRX/Infrastructure,PRX/Infrastructure,PRX/Infrastructure,PRX/Infrastructure
utility/lambdas/s3-static-site-deploy/lambda_function.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'pycolors2',\n py_modules = ['colors',],\n version = '0.0.3',\n author = 'Chris Gilmer',\n author_email = '<EMAIL>',\n maintainer = 'Chris Gilmer',\n maintainer_email ...
python
edit
1
0
mit
de3f474502e781dacc0b182ee8d50d729468c576
chrisgilmerproj/pycolors2
setup.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Revert \"bump version\" -- Not ready to release yet\n\nThis reverts commit 60e383ce1e4432c360e615598813e3b1747befb8." }, { "role": "assistant", "content": "version_info = (0, 1, 0)\n__version__ = \".\".join(map(str, version_info)...
python
new_file
1
0
mit
819ed0ededbdc8ebe150e5ce9f507c9607e2b724
meebo/greins,meebo/greins,harrisonfeng/greins,harrisonfeng/greins
greins/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nDEBUG_MODULES = [\n # 'pytui',\n]\n\nVERSION = '0.3.1b'\n\n```\n\nApply this change: Repair version, beta needs a number." }, { "role": "assistant", "content": "from __future__ import ...
python
edit
1
0
mit
273dd930836345fccc42e8f1a6720f04b29a46f1
martinsmid/pytest-ui
pytui/settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2017 Objectif Libre\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 at\n#\n# ht...
python
edit
1
1
apache-2.0
261c294690427b57d111c777cdc4d13b9c84f9d2
stackforge/cloudkitty-dashboard,openstack/cloudkitty-dashboard,openstack/cloudkitty-dashboard,openstack/cloudkitty-dashboard,stackforge/cloudkitty-dashboard,stackforge/cloudkitty-dashboard
cloudkittydashboard/dashboards/admin/modules/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nTest lldb 'process connect' command.\n\"\"\"\n\nimport os\nimport unittest2\nimport lldb\nimport pexpect\nfrom lldbtest import *\n\nclass ConnectRemoteTestCase(TestBase):\n\n mydir = TestBase.compute_mydir(__file__)\n\n def te...
python
edit
10
4
apache-2.0
77744d61918510fcd943d9420ce4c61717a0711b
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb
test/functionalities/connect_remote/TestConnectRemote.py
rejected_lint
Too many lint violations: 10
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\ntry:\n\tfrom setuptools import setup\nexcept:\n\tfrom distutils.core import setup\nfrom distutils.command.build_py import build_py\n\npath, script = os.path.split(sys.argv[0])\nos.chdir(os.path.abspath(path))\n\nVERSI...
python
edit
1
0
bsd-2-clause
a25f36c76301f67beab29dc2a273d819c49cd8eb
imgix/imgix-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\nimport pydicom\n\nlogger = logging.getLogger(__name__)\n\n\nclass UID(pydicom.uid.UID):\n\n \"\"\"Unique DICOM identifier with a highdicom-specific UID prefix.\"\"\"\n\n def __new__(cls: type) -> str:\n prefix...
python
edit
1
1
mit
316323387c508c88595f205182ea2436c271621d
MGHComputationalPathology/highdicom
src/highdicom/uid.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom django.conf.urls import url\n\nfrom admin.meetings import views\n\nurlpatterns = [\n url(r'^$', views.MeetingListView.as_view(), name='list'),\n url(r'^create/$', views.MeetingCreateFormV...
python
edit
1
0
apache-2.0
d267b3a52e28b31f4a9d5d99f4ae0742b0f8cca7
caseyrollins/osf.io,binoculars/osf.io,chennan47/osf.io,CenterForOpenScience/osf.io,mfraezz/osf.io,cslzchen/osf.io,TomBaxter/osf.io,HalcyonChimera/osf.io,brianjgeiger/osf.io,caneruguz/osf.io,chrisseto/osf.io,chennan47/osf.io,cslzchen/osf.io,chrisseto/osf.io,mfraezz/osf.io,aaxelb/osf.io,binoculars/osf.io,felliott/osf.io,...
admin/meetings/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nDEFAULT_LOGGING_CONF = {\n 'version': 1,\n 'disable_existing_loggers': False,\n 'formatters': {\n 'default': {'format': '%(asctime)s %(module)s %(message)s'},\n },\n 'filters': {\n 'logger_filter': {\n ...
python
edit
1
0
mit
58eede75663fda02a7323fa6579a6ca8ac83f2fd
georgeyk/belogging
belogging/defaults.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom utils import CanadianJurisdiction\nfrom opencivicdata.divisions import Division\nfrom pupa.scrape import Organization\n\n\nclass OntarioEnglishPublicSchoolBoards(CanadianJurisdiction):\n classification = 'legislature' # just to avo...
python
edit
1
3
mit
ad761908537b63c2d262f69a75e7b221f84e8647
opencivicdata/scrapers-ca,opencivicdata/scrapers-ca
ca_on_school_boards_english_public/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom optparse import make_option\nfrom optparse import OptionParser\nfrom scaffolder.core.template import TemplateManager\nfrom scaffolder.core.commands import BaseCommand\n\nclass InstallCo...
python
edit
1
1
mit
6f822cf46957d038588e7a71eb91f8ca9f9c95f1
goliatone/minions
scaffolder/commands/install.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.shortcuts import render\nfrom django.views.decorators.csrf import ensure_csrf_cookie\n\n\n@ensure_csrf_cookie\ndef app(request):\n return render(request, 'html.html')\n\n```\n\nApply this change: Stop inserting the CSRF token...
python
edit
1
1
mit
ea164b66cc93d5d7fb1f89a0297ea0a8da926b54
Techbikers/techbikers,mwillmott/techbikers,mwillmott/techbikers,Techbikers/techbikers,mwillmott/techbikers,Techbikers/techbikers,Techbikers/techbikers,mwillmott/techbikers
server/core/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding:utf-8 -*-\n\n\"\"\"\nInformation about this package.\n\"\"\"\n\n__author__ = 'Yan QiDong'\n__version__ = '0.2.2'\n__email__ = '<EMAIL>'\n__url__ = 'https://github.com/yanqd0/csft'\n__copyright__ = 'Copyright (C) 2017 ' + __auth...
python
edit
1
0
mit
f29630aa08bfc86953f40f0b3166a0b9a074122c
yanqd0/csft
csft/__info__.py
accepted
null
true