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\nimport datetime\nfrom importlib import import_module\n\nfrom django.conf import settings\nfrom django.test import TestCase\nfrom django.test.utils import override_settings\nfrom django.utils import timezone\n\nfrom session_cleanup.tasks imp...
python
edit
1
6
bsd-2-clause
dfac2339c1d667beef5df5e11b74e451e3e35a02
sandersnewmedia/django-session-cleanup
tests/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nShow chrome with extension loaded.\nUseful for DOM HTML tree elements inspection with\n chrome extension loaded, like when running the tests.\n\n\"\"\"\n\nfrom tests.base import TestBaseTouchscreen\nfrom tests.base import MAPS_UR...
python
edit
2
0
apache-2.0
2bdc9561461dbd830285ca1478f828b0b89ac727
EndPointCorp/appctl,EndPointCorp/appctl
tests/extensions/functional/show_chrome.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .base_settings import *\nimport dj_database_url\nimport os\n\nDEBUG = os.environ.get(\"DJANGO_ENABLE_DEBUG\").lower() == \"true\"\nSECRET_KEY = os.environ.get(\"DJANGO_SECRET_KEY\")\nDATABASES = {'default': dj_database_url.config(conn_...
python
edit
2
0
mit
61574797dd211773cc065c73df450e76d930b698
dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server,dlareau/puzzlehunt_server
puzzlehunt_server/settings/env_settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom annotypes import Anno\n\nfrom malcolm.core import Part, PartRegistrar, StringMeta\nfrom ..infos import LabelInfo\nfrom ..util import set_tags\n\n\nwith Anno(\"Initial value of Block label\"):\n ALabelValue = str\n\n\nclass LabelPart...
python
edit
3
1
apache-2.0
b2d2f4e4bde02570e51537d4db72cebcba63c1f5
dls-controls/pymalcolm,dls-controls/pymalcolm,dls-controls/pymalcolm
malcolm/modules/builtin/parts/labelpart.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Tests for go.api.go_api.action_dispatcher.\"\"\"\n\nfrom twisted.trial.unittest import TestCase\n\nfrom go.api.go_api.action_dispatcher import (\n ActionDispatcher, ActionError, ConversationActionDispatcher,\n RouterActionDispat...
python
edit
1
1
bsd-3-clause
22b87959099056e8189f40805bb8320c2cfbfb57
praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go
go/api/go_api/tests/test_action_dispatcher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nfrom networktables import NetworkTables\n\nrioIP = '10.58.06.2' # this shouldn't change\ntableName = 'JetsonToRio' # should be same in rio's java NT program\n\ndef initTable():\n\tNetworkTables.initialize(server=rioIP)\n\tretur...
python
edit
8
1
mit
d3f72f3ded76fb49eedb0c93c58211aab0231b97
frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks,frc5806/Steamworks
jetson/networkTable.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom warnings import catch_warnings, simplefilter\n\n\ndef test_filter_import():\n with catch_warnings():\n simplefilter('ignore')\n from skimage import filter as F\n\n assert('sobel' in dir(F))\n assert any(['has bee...
python
edit
1
2
bsd-3-clause
046fe99e4e2de0503c44555287eedaedc56ef280
bennlich/scikit-image,vighneshbirodkar/scikit-image,ofgulban/scikit-image,youprofit/scikit-image,pratapvardhan/scikit-image,robintw/scikit-image,ofgulban/scikit-image,GaZ3ll3/scikit-image,Midafi/scikit-image,Britefury/scikit-image,pratapvardhan/scikit-image,ofgulban/scikit-image,Hiyorimi/scikit-image,Britefury/scikit-i...
skimage/filters/tests/test_filter_import.py
rejected_duplicate
Near-duplicate of sample 3540
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport requests\nfrom plotly.offline import plot\nimport plotly.graph_objs as go\n\nr = requests.get('http://localhost:8081/monitor_results/1')\nprint(r.json())\n# build traces for plotting from monitoring data\nrequest_times = list()\ntime...
python
edit
1
2
mit
02ac5dcfa6bdaf9b8152ef2f49fd61afe9faf8ab
gernd/simple-site-mon
client/python/plot_request_times.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom dataverse.utils import sanitize\n\n\nclass DataverseFile(object):\n def __init__(self, dataset, name, file_id=None):\n self.dataset = dataset\n self.name = sanitize(name)\n ...
python
edit
1
2
apache-2.0
e17d8f9b8bd09b1b96cad3e61961f3833d2e486c
CenterForOpenScience/dataverse-client-python,IQSS/dataverse-client-python
dataverse/file.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom changes.api.base import APIView\nfrom changes.models import Project, Revision\n\n\nclass ProjectCommitDetailsAPIView(APIView):\n def get(self, project_id, commit_...
python
edit
1
3
apache-2.0
1c9eed527c60666f43d807be786ad3be5499282e
dropbox/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,bowlofstew/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes
changes/api/project_commit_details.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Prints the current view controller hierarchy.\n\nUsage: pvc\n\"\"\"\ndef print_view_controller_hierarchy(debugger, command, result, internal_dict):\n debugger.HandleCommand('po [[[UIWindow keyWindow] rootViewController] _printHierarc...
python
edit
1
1
mit
a7f5315633b5b3787593205cc7dc540023baf7ad
mrhappyasthma/happydebugging,mrhappyasthma/HappyDebugging
scripts/print_view_controller_hierarchy.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport PIL.Image\n\nfrom wagtail.wagtailimages.backends.base import BaseImageBackend\n\n\nclass PillowBackend(BaseImageBackend):\n def __init__(self, params):\n super(PillowBackend, self)....
python
edit
1
3
bsd-3-clause
876d995967c5f8e580fc8e89fff859860b648057
jorge-marques/wagtail,gasman/wagtail,mikedingjan/wagtail,takeflight/wagtail,nimasmi/wagtail,chimeno/wagtail,kurtrwall/wagtail,Pennebaker/wagtail,mephizzle/wagtail,zerolab/wagtail,gogobook/wagtail,inonit/wagtail,m-sanders/wagtail,mikedingjan/wagtail,nealtodd/wagtail,timorieber/wagtail,takeshineshiro/wagtail,nutztherooki...
wagtail/wagtailimages/backends/pillow.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nfrom os.path import dirname, abspath, join\n\nimport time\nimport sys\nimport logging\nimport subprocess\nimport settings\nimport schedule\n\nimport cron\nimport github_api as gh\...
python
edit
9
2
mit
a2d373ac4cedbfa556b54f8a29382554290d7532
mpnordland/chaos,g19fanatic/chaos,rudehn/chaos,Chaosthebot/Chaos,g19fanatic/chaos,amoffat/Chaos,mark-i-m/Chaos,chaosbot/Chaos,chaosbot/Chaos,eamanu/Chaos,amoffat/Chaos,botchaos/Chaos,phil-r/chaos,eukaryote31/chaos,Chaosthebot/Chaos,eukaryote31/chaos,hongaar/chaos,mark-i-m/Chaos,eamanu/Chaos,mark-i-m/Chaos,mark-i-m/Chao...
chaos.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom PySide import QtGui, QtCore\n\n\nclass Tree(QtGui.QTreeView):\n\tdef __init__(self, parent=None):\n\t\tsuper(Tree, self).__init__(parent)\n\n\tdef load_from_path(self, path):\n\t\t\"\"\" Load directory containing file into the tree. \"...
python
edit
3
2
bsd-3-clause
b79108c849b5b729eaf35c9c217e04e974474753
techdragon/sphinx-gui,audreyr/sphinx-gui,audreyr/sphinx-gui,techdragon/sphinx-gui
tree.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nc = get_config()\napp = c.InteractiveShellApp\n\n# This can be used at any point in a config file to load a sub config\n# and merge it into the current one.\nload_subconfig('ipython_config.py', profile='default')\n\nc.InteractiveShell.promp...
python
edit
3
0
bsd-3-clause
00cffc4197d393e6fc8d8031a4d1f8e78d5c532c
ipython/ipython,ipython/ipython
IPython/config/profile/pysh/ipython_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"7_remove_name_from_measurement\n\nRevision ID: 71213454a09a\nRevises: f16c6875f138\nCreate Date: 2017-05-11 14:25:08.256463\n\n\"\"\"\nfrom alembic import op\nimport sqlalchemy as sa\n\n\n# revision identifiers, used by Alembic.\nrevi...
python
edit
3
1
mit
1324bec259bc8c0dd041d293a2ef60350c7a1f3c
atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api,atlefren/pitilt-api
db/alembic/versions/71213454a09a_7_remove_name_from_measurement.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom argyle.base import upload_template\nfrom fabric.api import sudo, task\n\n\n@task\ndef create_db_user(username, password=None, flags=None):\n \"\"\"Create a databse user.\"\"\"\n\n flags = flags or u'-D -A -R'\n sudo(u'createus...
python
edit
4
4
bsd-2-clause
ac088c3278e509bfaf6fa7b86af1831c7fbb010d
mlavin/argyle,mlavin/argyle,mlavin/argyle
argyle/postgres.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport boto\n\nprint 'Security group information:\\n'\n\nec2 = boto.connect_ec2()\nsgs = ec2.get_all_security_groups()\n\nfor sg in sgs:\n instances = sg.instances()\n print 'id: %s, name: %s, count: %s' % (sg.i...
python
edit
3
0
mit
24e9cd06f56f4b825a9e22b1974e573b34edb8b9
thinhpham/aws-tools
ec2_security_group_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import serializers\nfrom rest_framework.reverse import reverse\n\nfrom chat.models import Member\nfrom chat.models import Message\nfrom chat.models import ChatRoom\n\n\nclass MemberSerializer(serializers.HyperlinkedModel...
python
edit
1
1
bsd-3-clause
bf557dc589a776b432c1a43a96a09d93aa2b0a1e
mlalic/TumCampusAppBackend,mlalic/TumCampusAppBackend
tca/chat/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport argparse\n\nfrom server import *\nfrom commandRunner import *\n\nclass App:\n def __init__(self, baseurl, clientid):\n self.server = Server(baseurl, clientid)\n\n def run(self):\n runner = CommandRun...
python
edit
5
2
mit
725b3a9db33c90187b913123deefeb180c7fee4c
CaminsTECH/owncloud-test
client/app.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"The services that can be shown on a Flash dashboard.\"\"\"\n\nfrom collections import OrderedDict\nimport logging\nfrom uuid import uuid4\n\nfrom flask import Blueprint\n\nfrom .codeship import Codeship\nfrom .github import GitHub\nfr...
python
edit
1
3
isc
5ac6e5db05a81cc6f5b1b1fc4850424d526774c8
textbook/flash_services,textbook/flash_services,textbook/flash_services
flash_services/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"taOonja URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/1.11/topics/http/urls/\nExamples:\nFunction views\n 1. Add an import: from my_app im...
python
edit
1
0
mit
42b797b5a8eca483f68ca9b8e6fc123bc8f4cf9c
Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja
taOonja/taOonja/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom django.core.management.base import BaseCommand\n\nfrom ...settings import create_saml_settings, get_settings_dir_and_path\n\n\nclass Command(BaseCommand):\n \"\"\"\n Command to create the saml_settings.json file.\n ...
python
edit
1
3
mit
b214a69136225459b514cbf6f3eb503228ae4ec4
jwinzer/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,jwinzer/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,FinnStutzenstein/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,CatoTH/OpenSlides,jwinzer/OpenSlides,CatoTH/OpenSlides,FinnStutzenstein/OpenSlides
server/openslides/saml/management/commands/create-saml-settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport config\nfrom flask import Flask, request\nimport json\nimport os\nimport requests\nimport modules\n\nACCESS_TOKEN = os.environ.get('ACCESS_TOKEN', config.ACCESS_TOKEN)\nVERIFY_TOKEN = os.environ.get('VERIFY_TOKEN', config.VERIFY_TOKE...
python
edit
4
7
mit
222ac5f16004f45b17b0b04f71104eac9b2fd3d4
ZuZuD/JARVIS-on-Messenger,jaskaransarkaria/JARVIS-on-Messenger,swapagarwal/JARVIS-on-Messenger,edadesd/JARVIS-on-Messenger
jarvis.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function, absolute_import, unicode_literals, division\n\n\"\"\" Compatability module for different Python versions. \"\"\"\n\ntry:\n import unittest2 as unittest\nexcept ImportError: # pragma: no cover\n ...
python
edit
4
0
apache-2.0
a0f31dc83ce36823022b5e26c85ad03fe639e79f
ImmobilienScout24/afp-alppaca,ImmobilienScout24/afp-alppaca,ImmobilienScout24/alppaca,ImmobilienScout24/alppaca
src/main/python/alppaca/compat.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nBriCA\n=====\n\nBrain-inspired Cognitive Architecture\n\nA scalable, general purpose computing platform for cognitive architectures.\n\n\"\"\"\n\n__all__ = [\"component\", \"connection\", \"module\", \"por...
python
edit
18
0
apache-2.0
7d4f345443575974825ebc9bac8a274632ccb99d
wbap/BriCA1
python/brica1/__init__.py
rejected_lint
Too many lint violations: 18
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\n\nfrom corehq.util.io import ClosingContextProxy\nfrom kafka import KafkaConsumer\nfrom kafka.client import KafkaClient, SimpleClient\n\nGENERIC_KAFKA_CLIENT_ID = 'cchq-kafka-client'\n\n\ndef get_simple_kaf...
python
edit
1
1
bsd-3-clause
34d10f364518805f7e7918e62d4f7aecc4f472dc
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
corehq/apps/change_feed/connection.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Blueprint\n\nmain = Blueprint('main', __name__)\n\nfrom . import errors\nfrom .views import (\n crown_hosting, digital_services_framework, g_cloud, login, marketplace, suppliers,\n digital_outcomes_and_specialists\n)...
python
edit
9
0
mit
9516621f2b4cfc5b541c3328df95b62111e77463
alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend
app/main/__init__.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='openarc',\n version='0.5.0',\n description='Functional reactive graph backed by PostgreSQL',\n classifiers=[\n 'Development Status :: 3 - Alpha',\n 'License :: OSI App...
python
edit
1
0
bsd-3-clause
d050210f3e5d8a6f119c89f24751604956af3e16
kchoudhu/openarc
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport datetime\ntry:\n import iso8601\nexcept:\n raise ImportError(\"iso8601 package is required for DateTime Scalar.\\nYou can install it using: pip install iso8601.\")\nfrom graphql.languag...
python
edit
1
2
mit
907a09311718859184a8e4015b35bde62efe47f7
graphql-python/graphene,graphql-python/graphene,Globegitter/graphene,Globegitter/graphene,sjhewitt/graphene,sjhewitt/graphene
graphene/types/datetime.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nimport setuptools\n\nfrom keystoneclient.openstack.common import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nrequires = setup.parse_requirements()\ndepend_lin...
python
edit
3
1
apache-2.0
ba063bd052284571ab6e51b0fcebe238c415071f
jamielennox/keystoneauth,sileht/keystoneauth,citrix-openstack-build/keystoneauth
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport os\nfrom cx_Freeze import setup, Executable\n\npaths = []\npaths.extend(sys.path)\npaths.append('whacked4')\n\nbuild_exe_options = {\n\t'packages': [],\n\t'path': paths,\n\t'include_files': ['res', 'cfg', 'docs', 'LICENSE...
python
edit
1
0
bsd-2-clause
301f23067dde512f56ba5bf2201b666d125ffc96
GitExl/WhackEd4,GitExl/WhackEd4
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\nsetup(\n name='cheetah_lint',\n description='Linting tools for the Cheetah templating language.',\n url='https://github.com/asottile/c...
python
edit
1
0
mit
eb95c0f631e9f309aa6bbde82df84c05b55a357d
asottile/cheetah_lint
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.test import TransactionTestCase\n\nfrom nose.util import resolve_name\n\n\n__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')\n\n\nIP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')\nPORT = getat...
python
edit
2
0
bsd-3-clause
cff9bc4b1967ded65ca580ec74842de0d3774cd3
playpauseandstop/tddspry,playpauseandstop/tddspry
tddspry/django/settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom setuptools import setup, find_packages\n\nfrom prince import __author__, __license__, __title__, __version__\n\n\nsetup(\n author=__author__,\n author_email='<EMAIL>',\n description='Factor analysis for i...
python
edit
1
0
mit
3bb0f94161966d04ab29fd1cd0b3e4ec34586c8c
MaxHalford/Prince
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2014 - Rackspace Hosting\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# http://ww...
python
edit
1
1
apache-2.0
bfbe61ed014ad80ca80cd9fc15d961f4b969eeb8
stackforge/solum,ed-/solum,openstack/solum,ed-/solum,devdattakulkarni/test-solum,ed-/solum,stackforge/solum,openstack/solum,devdattakulkarni/test-solum,ed-/solum
solum/tests/uploaders/test_common.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='playlistfromsong',\n packages=['playlistfromsong'],\n version='0.22',\n description='An offline music station generator',\n author='schollz',\n url='https://github.com/schollz...
python
edit
1
0
mit
3c722947d8ece448dec7ce9f82c2a477c667c4a8
schollz/playlistfromsong
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nversion=__import__('sendfile').__version__\n\n\nsetup(\n name='django-sendfile',\n version=version,\n description='Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfil...
python
edit
1
0
bsd-3-clause
431d3e960962543fd162770475a488bd9e21217e
karyon/django-sendfile,nathanielvarona/django-sendfile,joshcartme/django-sendfile,NotSqrt/django-sendfile,johnsensible/django-sendfile,joshcartme/django-sendfile
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\nMETADATA = dict(\n name='django-socialregistration',\n version='0.4.2',\n author='Alen Mujezinovic',\n author_email='<EMAIL>',\n description='Django applica...
python
edit
1
0
mit
3fc93588ad319d8f709d89b32782e530725db1ca
coxmediagroup/django-socialregistration,coxmediagroup/django-socialregistration
setup.py
rejected_duplicate
Near-duplicate of sample 2099
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 Robin Deits\n# Copyright (c) 2014 Robin Deits\n#\n# License: MIT\n#\n\n\"\"\"This module exports the Mlint plugin class.\"\"\"\n\nfro...
python
edit
3
0
mit
54d06439fd21f58208ddcf8583d070aba2674243
rdeits/SublimeLinter-contrib-mlint
linter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='passphrase',\n version='0.0.2',\n author='Rob Martin @version2beta',\n author_email='<EMAIL>',\n packages=['passphrase'],\n scripts=[],\n url='http://pypi.python.org/py...
python
edit
1
0
bsd-3-clause
7c5518b8aa6c1f4421aac7b8a652d737a17c4e86
Version2beta/passphrase
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom nose.tools import eq_, raises\nfrom mock import MagicMock, patch\n\nfrom buffer.models.profile import Profile, PATHS\n\nmocked_response = {\n 'name': 'me',\n 'service': 'twiter',\n 'id': 1\n}\n\ndef test_profile_sched...
python
edit
5
1
mit
fda08d81e3b6a4aae5610973053890bf8b283bf0
vtemian/buffpy,bufferapp/buffer-python
buffer/tests/test_profile.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport logging\nfrom django import template\nfrom django.template.loader import render_to_string\nfrom cio.pipeline import pipeline\nfrom ..auth import has_permission\n\nregister = template.Library()\nlogger = logging.getLogger...
python
edit
1
3
bsd-3-clause
232bffd6e41b87b05d9e0c65401ace3163bfc799
joar/djedi-cms,andreif/djedi-cms,joar/djedi-cms,5monkeys/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms,joar/djedi-cms,andreif/djedi-cms,5monkeys/djedi-cms
djedi/templatetags/djedi_admin.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 Ilya Akhmadullin\n# Copyright (c) 2013 Ilya Akhmadullin\n#\n# License: MIT\n#\n\n\"\"\"This module exports the jscs plugin class.\"\"...
python
edit
1
0
mit
d600cea1c86c3c3e56b41a7b57191ae35fea51b9
SublimeLinter/SublimeLinter-jscs,roberthoog/SublimeLinter-jscs
linter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom kokki import *\n\napt_list_path = '/etc/apt/sources.list.d/cloudera.list'\napt = (\n \"deb http://archive.cloudera.com/debian {distro}-cdh3 contrib\\n\"\n \"deb-src http://archive.cloudera.com/debian {distro}-cdh3 contrib\\n\"\...
python
edit
3
0
bsd-3-clause
13d8160aecb8abbd981b62cd3a06d5b2b6c964f8
samuel/kokki
kokki/cookbooks/cloudera/recipes/default.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nimport telebot\nimport timer\nimport bot\nimport os\n\nlogging.basicConfig(level=logging.DEBUG,\n format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n\nlogging.info(\"Begin start server.\")\ntg...
python
edit
1
0
mit
5f64b609b621626e04516cac1c3313a3f948f19e
ITelegramBot/PackageTrackerBot
main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n# (Force the script to use the latest build.)\n#\n# test_parser.py\n\nimport parser, traceback\n\n_numFailed = 0\n\ndef testChunk(t, fileName):\n global _numFailed\n print '----', fileName,\n try:\n ...
python
edit
6
3
mit
4346c52d8ec3497279fa4ce16b4ab2e4e51c82bd
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Demo/parser/test_parser.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nA basic example of how to use SPDY.\n\nThis example is currently incomplete, but should remain current to the state of\nthe library. This means that it enumerates the full state of everything\nSPDYPy can do....
python
edit
1
0
mit
da67df77831223692176088373a99cb02fe948ab
Lukasa/spdypy
examples/basic.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/env python2\n\"\"\"\nmoref: more for FASTA files\n\"\"\"\nimport sys\nimport os\nfrom Bio import SeqIO\n\ndef main():\n \"\"\"moref main\"\"\"\n # Check for input file\n if len(sys.argv) < 2:\n print(\"No input file ...
python
edit
1
7
bsd-2-clause
d2764161f0f11b07a28d64517cd0315a90aa8856
khughitt/cats
moref.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n VERSION = __import__('pkg_resources') \\\n .get_distribution(__name__).version\nexcept Exception as e:\n VERSION = 'unknown'\n\nfrom .service import Esios\n\n```\n\nApply this change: Enforce absolute imports through __f...
python
edit
4
0
mit
5dd81b09db46927cb7710b21ab682a6c3ecc182e
gisce/esios
esios/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom functools import wraps\nfrom flask import session, redirect, url_for, request, abort\nfrom alexandria import mongo\n\ndef not_even_one(f):\n @wraps(f)\n def decorated_function(*args, **kwargs):\n if mongo.Books.find_one() ...
python
edit
2
7
mit
c7761a3b8a090e24b68b1318f1451752e34078e9
citruspi/Alexandria,citruspi/Alexandria
alexandria/decorators.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.auth import get_user_model\nfrom django.core.management.base import BaseCommand\n\nfrom pucas.ldap import LDAPSearch, LDAPSearchException, \\\n user_info_from_ldap\n\n\nclass Command(BaseCommand):\n help = 'Initial...
python
edit
1
3
apache-2.0
ddc184cdced8c393822ce4ec14900db7fe16a492
Princeton-CDH/django-pucas,Princeton-CDH/django-pucas
pucas/management/commands/createcasuser.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python3\n\n\"\"\"Setup.py for dirbrowser.\"\"\"\n\nfrom setuptools import setup, find_packages\n\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Ge...
python
edit
1
0
bsd-3-clause
36a7588db397954f89032e90e7568605db27d055
campenr/dirbrowser
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import find_packages, setup\n\n\nVERSION = '2.0.dev0'\n\n\ninstall_requires = [\n 'django-local-settings>=1.0a13',\n 'stashward',\n]\n\nif sys.version_info[:2] < (3, 4):\n install_requires.append('enum...
python
edit
1
0
mit
79254ad18a68dc85c84f65a7382e58357833046e
wylee/django-arcutils,PSU-OIT-ARC/django-arcutils,wylee/django-arcutils,PSU-OIT-ARC/django-arcutils
setup.py
rejected_duplicate
Near-duplicate of sample 5712
true
[ { "role": "user", "content": "Here is the current file:\n```python\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='porick',\n version='0.1',\n ...
python
edit
1
0
apache-2.0
f4d894222d596760a62f22d43379f93a827e9ef2
kopf/porick,kopf/porick,kopf/porick
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\n\nsetup(\n name='ghostly',\n version='0.7.1',\n description='Create simple browser tests',\n author='Brenton Cleeland',\n url='https://github.com/sesh/ghostly',\n inst...
python
edit
1
0
isc
2c0cc47936204cdadf3f4dd5ce3b1535e2fb14b7
sesh/ghostly,sesh/ghostly
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n\nfrom distutils.core import setup\n\n# python setup.py sdist --formats=bztar\n# python setup.py sdist --formats=bztar upload\n\ndescription = 'National characters transcription module.'\n\nimport trans\nlong_description = ...
python
edit
1
0
bsd-2-clause
d6f4afa82118d8c1ced7ddc8152f7b31b4cb898a
zzzsochi/trans
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport populous\n\nrequirements = [\n \"click\",\n \"cached-property\",\n \"fake-factory\",\n \"dateutils\"\n]\n\nif sys.version_info < (3, 2):\n requirements.appen...
python
edit
1
0
mit
827daa59517fcc3712c079c29a4ef6342412668d
novafloss/populous
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess as sp\n\nprint('Warning: this setup.py uses flit, not setuptools.')\nprint('Behavior may not be exactly what you expect. Use at your own risk!')\n\nsp.check_call(['flit', 'install', '--deps', 'production'])\n\n```\n\nApply...
python
edit
1
0
bsd-3-clause
c0169c5073e4a83120f4d6860258c3085b4c1cf5
jupyter/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,EdwardJKim/nbgrader,dementrock/nbgrader,jupyter/nbgrader,MatKallada/nbgrader,MatKallada/nbgrader,jupyter/nbgrader,ellisonbg/nbgrader,jhamrick/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,jhamrick/nbgrader,ellisonbg/nbgrader,jup...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"python-dispatch\",\n version = \"v0.1.31\",\n author = \"Matthew Reid\",\n author_email = \"<EMAIL>\",\n description = \"Lightweight Event Handling\...
python
edit
3
0
mit
d27d90b71378eaac1f9be6bdf683ddb7a800759d
nocarryr/python-dispatch
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nsetup(\n name='ActionCableZwei',\n version='0.1.2',\n license='MIT',\n description='Action Cable Client for Python 3',\n author='Tobias Feistmantl',\n author_email='<EMAIL>'...
python
edit
1
0
mit
d8ea2e73e3085541256288a4b65c8659918cdf33
tobiasfeistmantl/python-actioncable-zwei
setup.py
rejected_duplicate
Near-duplicate of sample 953
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distribute_setup import use_setuptools\n\nuse_setuptools()\n\nfrom setuptools import setup\nfrom pudb import VERSION\n\ntry:\n readme = open(\"README.rst\")\n long_description = str(readme.read())\nfinall...
python
edit
1
0
mit
f15ff23d706b035e045fd8fc653ca9996565526b
albfan/pudb,albfan/pudb,amigrave/pudb,amigrave/pudb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\n properties: Fancy properties for Python.\n\"\"\"\n\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nCLASSIFIERS = [\n 'Development Status :: 4 - Beta',\n 'Programming Langua...
python
edit
1
0
mit
bda09e9dbf00dc164cb1d6b108da3d5982ad668a
3ptscience/properties,aranzgeo/properties
setup.py
rejected_duplicate
Near-duplicate of sample 14983
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='eventum',\n version='0.2.6',\n description='A content management system for event-driven Flask apps',\n url='http://github.com/danrschlosser/eventum',\n author='Dan Schlosser',...
python
edit
1
0
mit
1fc8690d0d8929f9ede38aca01ad928ce64589cb
danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\nsetup(\n name='shampoo',\n packages=['shampoo'],\n package_data={'shampoo': ['schemas/*.json']},\n version='0.1.0b7',\n description='Shampoo is a asyncio websocket protocol implementation...
python
edit
1
0
mit
7f41bffe2f1d838331c3d4340f4b46e816e779b7
wendbv/shampoo,wendbv/shampoo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read()\n\nwith open('HISTORY.rst') as history_file:\n history = history_file.read()\n\nre...
python
edit
1
0
mit
ae3fd153350c9ef8faef73d257fffee4d3abdf0f
kdelwat/boomerang
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(\n name='screenplain',\n version='0.7.0',\n description='Convert text file to viewable screenplay.',\n author='Martin Vilcans',\n author_email='<EMAIL>',\n ...
python
edit
1
0
mit
e6c4d40f0eaa6c93cac88582d862aa8393a3cc10
vilcans/screenplain,vilcans/screenplain,vilcans/screenplain
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n'''FiscalHr Setup'''\n\nfrom distutils.core import setup\n\nimport fiscalhr\n\nsetup(\n name=fiscalhr.__title__,\n version=fiscalhr.__version__,\n author=fiscalhr.__author__,\n author_email=fiscalhr.__au...
python
edit
1
0
mit
7bdf12d0b54b0b6c628acfee1a2fadda2ba542af
vingd/fiscal-hr-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\nconsole_scripts = [\n 'makiki = makiki.cli:main_parser',\n]\n\nrequires = [\n 'blinker>=1.4',\n 'gevent==1.1.2',\n 'gunicorn>=19.0',\n 'Jinja2>=2.8.1',...
python
edit
1
0
mit
dc6ea10b3da3f84280d8f8b41cf665440d60b12e
faith0811/makiki,faith0811/makiki
setup.py
rejected_duplicate
Near-duplicate of sample 15950
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\nfrom setuptools import setup\n\nfrom hsluv import __version__\n\nsetup(\n name='hsluv',\n version=__version__,\n description='Human-friendly HSL',\n long_description=open('README.md').read(),\n long_d...
python
edit
1
0
mit
e3479ec893cf525642bdd94f0a6dd32d897465a4
husl-colors/husl.py,hsluv/hsluv-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nrequirements = [\n]\n\ntest_requirements = [\n]\n\nsetup(\n name='adb_android',\n version='1.0.0',\n descri...
python
edit
1
0
bsd-3-clause
335033e9542f0d69ef6612a5b37d0b41f68b99b7
vmalyi/adb_android
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Setup script for `kozai`.\"\"\"\n\nfrom setuptools import setup\n\n\ndef readme():\n with open('README.md') as f:\n return f.read()\n\n\nsetup(\n author='Joseph O\\'Brien Antognini',\n author_email='<EMAIL>',\n clas...
python
edit
1
1
bsd-2-clause
6f4f0b636844c6e6b555e73c69f846507cb49608
joe-antognini/kozai
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom __future__ import with_statement\nfrom setuptools import setup, find_packages\nimport re\n\nversion = \"0.0.1.dev.0\"\nwith open(\"tdclient/version.py\") as fp:\n m = re.search(r\"^__version__ *= *\\\"([^\\\...
python
edit
1
0
apache-2.0
f0bd3c9ffffa69f5b8851cecdb1375d94e51a965
treasure-data/td-client-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(\n name='ChatExchange6',\n version='0.0.1',\n url='https://github.com/ByteCommander/ChatExchange6',\n packages=[\n 'chatexchange6'\n ],\n install_requires=[\n 'beautifuls...
python
edit
1
0
apache-2.0
56519d58cc98ddce4f9a887d1fc4646e7614b712
ByteCommander/ChatExchange6,ByteCommander/ChatExchange6,Charcoal-SE/ChatExchange,Charcoal-SE/ChatExchange
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom setuptools import find_packages, setup\n\n\ndef get_version(filename):\n content = open(filename).read()\n metadata = dict(re.findall(\"__([a-z]+)__ = '([^']+)'\", content))...
python
edit
1
1
apache-2.0
07800eb26817458d2d12afeb3f670a2119533639
pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient,woutervanwijk/Mopidy-MusicBox-Webclient,pimusicbox/mopidy-musicbox-webclient
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\nsetup(name='igtdetect',\n version='1.1.0',\n description='Line-level classifier for IGT instances, part of RiPLEs pipeline.',\n author='Ryan Georgi',\n author_email=...
python
edit
1
0
mit
b64d1a7948759eb22d6c5ddbfb2521ad07962c08
xigt/igtdetect
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\n\nclass Browser:\n def __init__(self, actors, subreddit, db, cursor):\n self.actors = actors\n self.subreddit = subreddit\n self.db = db\n self.cursor = cursor\n\n def check_command(self, ...
python
edit
1
4
mit
3085dc4992cf31c061d9cee5a9b6ff5abbf85e42
leviroth/bernard
bernard/browser.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2010 KenTyde\n# All rights reserved.\n#\n# This software is licensed as described in the file LICENSE,\n# which you should have received as part of this distribution.\n\nfro...
python
edit
1
0
bsd-3-clause
d544510736b132d81f774f60fe3729a128ed2e26
djc/fixlib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom celery.task import task\n\nfrom django.conf import settings\nfrom django.utils import translation\nfrom django.db import transaction\n\nfrom .crawler import crawl_source_by_id\nfrom .models import Article\n\n\n@task\ndef ...
python
edit
1
1
mit
6ba8e942edaf424c7b20983a5e829736c38b8110
ryankanno/froide,stefanw/froide,ryankanno/froide,CodeforHawaii/froide,LilithWittmann/froide,ryankanno/froide,CodeforHawaii/froide,stefanw/froide,LilithWittmann/froide,fin/froide,LilithWittmann/froide,catcosmo/froide,catcosmo/froide,stefanw/froide,CodeforHawaii/froide,ryankanno/froide,fin/froide,stefanw/froide,catcosmo/...
froide/foiidea/tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport PyWXSB.XMLSchema as xs\n\nimport sys\nimport traceback\nfrom xml.dom import minidom\nfrom xml.dom import Node\n\nfiles = sys.argv[1:]\nif 0 == len(files):\n files = [ 'schemas/XMLSchema.xsd' ]\n\nfor file in files:\n wxs = xs.s...
python
edit
6
0
apache-2.0
f0f8652f67f0b09a1133f477b27b6d399621790f
jonfoster/pyxb2,CantemoInternal/pyxb,jonfoster/pyxb-upstream-mirror,balanced/PyXB,jonfoster/pyxb2,CantemoInternal/pyxb,pabigot/pyxb,balanced/PyXB,CantemoInternal/pyxb,jonfoster/pyxb1,balanced/PyXB,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb1,pabigot/pyxb,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb2
pywxsb.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\n\"\"\"Main executable for ShivyC compiler\n\n\"\"\"\n\nimport argparse\n\ndef get_arguments():\n \"\"\"Set up the argument parser and return an object storing the\n argument values.\n\n return - An object ...
python
edit
1
1
mit
9f0618d39dad2438a29964e706d916953a96a5fb
ShivamSarodia/ShivyC,ShivamSarodia/ShivyC,ShivamSarodia/ShivyC
shivyc.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\n:Author Patrik Valkovic\n:Created 31.08.2017 11:18\n:Licence GNUv3\nPart of grammpy\n\n\"\"\"\n\nfrom weakreflist import WeakList\nfrom .IsMethodsRuleExtension import IsMethodsRuleExtension\n\n\nclass Instanti...
python
edit
1
1
mit
179bd5a7df7858eda2674b7913b6e446ab12d9bb
PatrikValkovic/grammpy
grammpy/Rules/InstantiableRule.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom socket import htonl, inet_ntoa\n\nimport pytest\n\nfrom arpreq import arpreq\n\n\ndef test_localhost():\n assert arpreq('127.0.0.1') == '00:00:00:00:00:00'\n\n\ndef decode_address(value):\n return inet_ntoa(htonl(int(...
python
edit
3
5
mit
c89e9cee709790d99013d77889bac208a8bdeb12
sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq,sebschrader/python-arpreq
tests/test_arpreq.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python2\n\nimport pstack\nimport json\n\nthreads, text = pstack.JSON([\"tests/thread\"])\nresult = json.loads(text)\n# we have 10 threads + main\nassert len(threads) == 11\nentryThreads = 0\nfor thread in threads:\n assert thr...
python
edit
2
0
bsd-2-clause
4c20c2137eb1cee69511ecd8a83a499147b42373
peadar/pstack,peadar/pstack,peadar/pstack,peadar/pstack
tests/thread-test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nDB_USER = ''\nDB_HOST = ''\nDB_PASSWORD = ''\nDB_NAME = ''\n\n```\n\nApply this change: Allow for representative view display with sample configuration" }, { "role": "assistant", "content": "DB_USER = ''\nDB_HOST = ''\nDB_PASSWO...
python
edit
1
0
mit
52fa6cff088e2032fc8a3a9d732bf8affb9bccae
AKVorrat/ueberwachungspaket.at,AKVorrat/ueberwachungspaket.at,AKVorrat/ueberwachungspaket.at
config/template.py
rejected_duplicate
Near-duplicate of sample 309
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# File: rail_fence_cipher.py\n# Purpose: Implement encoding and decoding for the rail fence cipher.\n# Programmer: Amal Shehu\n# Course: Exercism\n# Date: Friday 30 September 2016, 08:35 PM\n\n```\n\nApply this chang...
python
edit
1
2
mit
20b1505a316fc47049470f998741f00569df818f
amalshehu/exercism-python
rail-fence-cipher/rail_fence_cipher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest, time\n\nimport ocookie\n\nclass OcookieTest(unittest.TestCase):\n def test_foo(self):\n pass\n\nclass CookieParserTest(unittest.TestCase):\n def test_parsing(self):\n text = 'foo=bar'\n cookie = o...
python
edit
3
1
bsd-2-clause
c544afed5c8d961db0d34b7f73313699ce3bf656
p/ocookie
test/ocookie_test.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add shared db connection to the package" }, { "role": "assistant", "content": "import mongoengine\n\n# Open a connection to the MongoDB database, to be shared throughout the\n# application.\ndb = mongoengine.connect('lazy', hos...
python
new_file
1
0
mit
cb461f4422e43058cf12c2605a8a1312ffd79c04
Zillolo/lazy-todo
app/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom TestStack.White.UIItems import TextBox\nfrom WhiteLibrary.keywords.librarycomponent import LibraryComponent\nfrom WhiteLibrary.keywords.robotlibcore import keyword\n\n\nclass TextBoxKeywords(LibraryComponent):\n @keyword\n def in...
python
edit
1
1
apache-2.0
2ee2ab8cc0b9b0fd9776571c1f4b7715d11c2ad6
Omenia/robotframework-whitelibrary,Omenia/robotframework-whitelibrary
src/WhiteLibrary/keywords/items/textbox.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pytest import mark, raises\nfrom oshino.run import main\nfrom mock import patch\n\n\n@mark.integration\n@patch(\"oshino.core.heart.forever\", lambda: False)\ndef test_startup():\n with raises(SystemExit):\n main((\"--config\"...
python
edit
1
1
mit
67f3d3db568921f8deca0f68447498b84077e13c
CodersOfTheNight/oshino
tests/test_runner.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef baseurl(request):\n \"\"\"\n Return a BASE_URL template context for the current request\n \"\"\"\n if request.is_secure():\n scheme = 'https://'\n else:\n scheme = 'http://'\n\n return {\n 'BASE_UR...
python
edit
1
2
bsd-3-clause
dfbebf26f52db94c9fc8e1056c39013d8cdb2656
unt-libraries/django-name,damonkelley/django-name,unt-libraries/django-name,damonkelley/django-name,unt-libraries/django-name,damonkelley/django-name
name/context_processors.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.views.generic import View\nfrom django.views.generic.base import TemplateView\n\nfrom braces.views import AjaxResponseMixin, JSONResponseMixin\nfrom haystack.query import SearchQuerySet\n\n\nclass SiteView(TemplateView):\n te...
python
edit
5
3
apache-2.0
edd4783d5f277e8bc456f662e66ac65eb62419b7
hello-base/web,hello-base/web,hello-base/web,hello-base/web
base/components/views.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass ListenerRegister(object):\n def __init__(self):\n self._register = {}\n\n def add_listener(self, event, listener):\n event = event.upper()\n listeners = self._register.get(event, set())\n listeners.ad...
python
edit
1
2
mit
426521115d62c664dc9139956f092a92705f7795
kashifrazzaqui/again
events.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nimport locale\nimport sys\n\n\n__all__ = ['PY2']\n\n\nPY2 = sys.version_info < (3, 0)\n\nif PY2:\n __all__ += ['str', 'pri...
python
edit
3
5
bsd-2-clause
4b448c704f69b951d19229c85debfdb5a2e122c1
jayvdb/citeproc-py
citeproc/py2compat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import template\n\nfrom ..schema import is_shared_model as _is_shared_model\nfrom ..schema import get_schema_model\n\nSchema = get_schema_model()\n\nregister = template.Library()\n\n@register.filter\ndef is_schema_aware(obj):\n ...
python
edit
1
2
bsd-3-clause
0904d8f5ca4f10b4cc7121e60c35f7560e37019c
luzfcb/django-boardinghouse,luzfcb/django-boardinghouse,luzfcb/django-boardinghouse
boardinghouse/templatetags/boardinghouse.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Create a dummy user for the app store review testing\n# This needs to be done every time we switch to a new database\n\nimport sys\nfrom dao.user import User\n\ndef create_fake_JWT_token(userEmail):\n \"\"\"\n Creates a fake JWT tok...
python
edit
4
2
bsd-3-clause
2436f1a00021baa39f3d3dfece1d44a2d3351dfd
yw374cornell/e-mission-server,joshzarrabi/e-mission-server,yw374cornell/e-mission-server,shankari/e-mission-server,joshzarrabi/e-mission-server,sunil07t/e-mission-server,e-mission/e-mission-server,shankari/e-mission-server,e-mission/e-mission-server,yw374cornell/e-mission-server,e-mission/e-mission-server,yw374cornell/...
bin/create_test_user.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, sys, time, traceback\nimport smtplib\nfrom boto.utils import ShellCommand, get_ts\nimport boto\nimport boto.utils\n\nclass ScriptBase:\n\n def __init__(self, config_file=None):\n self.instance_id = boto.config.get('Inst...
python
edit
5
4
mit
ba3544fc18d5c5e827b1c1777b7811201545a8c5
appneta/boto,dimdung/boto,j-carl/boto,ekalosak/boto,drbild/boto,acourtney2015/boto,bryx-inc/boto,darjus-amzn/boto,ddzialak/boto,alfredodeza/boto,vijaylbais/boto,clouddocx/boto,israelbenatar/boto,alex/boto,podhmo/boto,cyclecomputing/boto,shipci/boto,kouk/boto,jindongh/boto,felix-d/boto,Timus1712/boto,alex/boto,lochiicon...
boto/pyami/scriptbase.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\n ====================================================================\n Copyright (c) 2018 Barry A Scott. All rights reserved.\n\n This software is licensed as described in the file LICENSE.txt,\n which you should have received as par...
python
edit
4
1
apache-2.0
6e3d24b0594434577de6950190f0f103e08a2fbe
barry-scott/git-workbench,barry-scott/scm-workbench,barry-scott/scm-workbench,barry-scott/scm-workbench,barry-scott/git-workbench
Source/Perforce/wb_p4_credential_dialogs.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport webapp2\n\nimport handlers\n\n\ndebug = os.environ.get('SERVER_SOFTWARE', '').startswith('Dev')\n\ntask_app = webapp2.WSGIApplication([\n ('/task/index', handlers.IndexTaskHandler),\n ('/task/torrent', handlers.Torre...
python
edit
1
0
apache-2.0
810e688e8e896caf5a3c6de1c76a5bc696d918c6
notapresent/rutracker_rss,notapresent/rutracker_rss,notapresent/rutracker_rss
apps.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom keystoneclient.v2_0 import client as keystone_client\n\nfrom datetime import datetime\nfrom datetime import timedelta\n\nclass KeystoneAuth:\n\n def __init__(self, uri, username, password, tenant_id=None,\n tenant_...
python
edit
2
4
apache-2.0
2e6267c7b283fd579395fc3faac2b253ddb032fe
midonet/python-midonetclient,midonet/python-midonetclient,midokura/python-midonetclient,midokura/python-midonetclient
src/midonet/auth/keystone.py
accepted
null
true