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# Copyright 2015 - StackStorm, 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# ...
python
edit
1
0
apache-2.0
b44d34f8bc5264d495dc4c2176654b0bd53bfb8a
dennybaa/mistral,openstack/mistral,StackStorm/mistral,dennybaa/mistral,openstack/mistral,StackStorm/mistral
mistral/api/wsgi.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nimport threading\nfrom . import app, mongo, controller\nfrom bson.objectid import ObjectId\n\n\nclass Monitor(object):\n def __init__(self, timeout=10):\n self.thread = None\n self.exit_event = None\n se...
python
edit
1
3
mit
d85947ee083b0a5d7156b4e49fd5677ebeea33c7
brewpeople/brewmeister,brewpeople/brewmeister,brewpeople/brewmeister
brew/monitor.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport SimpleHTTPServer\nimport BaseHTTPServer\n\nclass Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):\n def do_POST(s):\n s.send_response(200)\n s.end_headers()\n\nif __name__ == '__main__':\n server_class = BaseHT...
python
edit
1
1
bsd-2-clause
53b9eff3ffc1768d3503021e7248351e24d59af7
chop-dbhi/django-webhooks,pombredanne/django-webhooks,pombredanne/django-webhooks,chop-dbhi/django-webhooks
tests/httpd.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .base import TestBase\nfrom nbgrader.api import Gradebook\n\nimport os\n\nclass TestNbgraderFeedback(TestBase):\n\n def _setup_db(self):\n dbpath = self._init_db()\n gb = Gradebook(dbpath)\n gb.add_assignment(\"...
python
edit
1
1
bsd-3-clause
a35b6e46bd9d443f07391f37f5e0e384e37608bb
jhamrick/nbgrader,alope107/nbgrader,ellisonbg/nbgrader,EdwardJKim/nbgrader,modulexcite/nbgrader,EdwardJKim/nbgrader,ellisonbg/nbgrader,jdfreder/nbgrader,MatKallada/nbgrader,jupyter/nbgrader,MatKallada/nbgrader,jupyter/nbgrader,dementrock/nbgrader,jhamrick/nbgrader,EdwardJKim/nbgrader,jupyter/nbgrader,jupyter/nbgrader,m...
nbgrader/tests/test_nbgrader_feedback.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport factory\n\nfrom django.contrib.sites.models import Site\n\nfrom connect.config.models import SiteConfig\n\n\nclass SiteFactory(factory.django.DjangoModelFactory):\n class Meta:\n model = Site\n\n name = factory.Sequence(...
python
edit
1
0
bsd-3-clause
87cfac55b14083fdb8e346b9db1a95bb0f63881a
nlhkabu/connect,f3r3nc/connect,f3r3nc/connect,f3r3nc/connect,nlhkabu/connect,f3r3nc/connect,nlhkabu/connect,nlhkabu/connect
connect/config/factories.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nimport virtool.file\nimport virtool.utils\nfrom virtool.handlers.utils import json_response, not_found\n\n\nasync def find(req):\n db = req.app[\"db\"]\n\n query = {\n \"ready\": True\n }\n\n file_type = req....
python
edit
1
3
mit
94ca5bc46570175a5b9577d64163cf691c787a8a
virtool/virtool,igboyes/virtool,igboyes/virtool,virtool/virtool
virtool/handlers/files.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom go.vumitools.conversation.definition import (\n ConversationDefinitionBase, ConversationAction)\nfrom go.apps.surveys.tasks import export_vxpolls_data\n\n\nclass SendSurveyAction(ConversationAction):\n action_name = 'send_survey'...
python
edit
1
2
bsd-3-clause
0624417fbac1cf23316ee0a58ae41c0519a390c4
praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go
go/apps/surveys/definition.py
rejected_duplicate
Near-duplicate of sample 2209
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n=============================\naiohttp_middlewares.constants\n=============================\n\nCollection of constants for ``aiohttp_middlewares`` project.\n\n\"\"\"\n\n#: Set of idempotent HTTP methods\nIDEMPOTENT_METHODS = frozens...
python
edit
1
0
bsd-3-clause
b38f465e512f9b7e79935c156c60ef56d6122387
playpauseandstop/aiohttp-middlewares,playpauseandstop/aiohttp-middlewares
aiohttp_middlewares/constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Blueprint, render_template\nfrom flask_login import login_required\n\nmain = Blueprint(\"main\", __name__)\n\n\n@main.route(\"/\")\n@main.route(\"/index\")\n@login_required\ndef index():\n return \"Logged in\"\n\n\n@mai...
python
edit
1
2
mit
a056c630a197a070e55cce9f76124d56ba781e52
Encrylize/MyDictionary,Encrylize/MyDictionary,Encrylize/MyDictionary
app/views/main.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add warning on running repository's tests with pytest-testdox installed\n\nFix #13" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\nimport os\nimport warnings\n\nimport pytest\n\npytest_plugins = 'pytester'\n\n\n@p...
python
new_file
1
2
mit
1d6984d31aaa87b5ed781e188b8b42221602cd3f
renanivo/pytest-testdox
tests/conftest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport collections\nimport re\nimport sys\n\n\n__version__ = '0.1.2'\n\nversion = __version__ + ' , Python ' + sys.version\n\n\nVersionInfo = collections.namedtuple('VersionInfo',\n 'major minor micro rel...
python
edit
1
3
mit
9d077b9c2d37b7cfc46849fe70c45b238806f134
aio-libs/aiorest
aiorest/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport graphs\nimport star\n\n\ndef main():\n \"\"\"\n Plots graph of black body emission wavelengths against amplitudes, then UBVR magnitudes of a star.\n \"\"\"\n graph = graphs.FunctionsGraph(x_label=\"wavelength / m\", y_lab...
python
edit
2
2
mit
87929f67c0036bf9a0a2ad237c1a03b675484a74
jackromo/GSOCMcgillApplication
mcgill_app/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\nimport boto3\nimport json\nimport os\nimport btr3baseball\n\njobTable = os.environ['JOB_TABLE']\njobQueue = os.environ['JOB_QUEUE']\nqueue = boto3.resource('sqs').get_queue_by_name(QueueName=jobQueue...
python
edit
3
6
apache-2.0
54046bfb8834f5fc2a93841ae56e2790ae82eecf
bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball,bryantrobbins/baseball
shared/api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, request, redirect\nfrom flask.ext.bootstrap import Bootstrap\nfrom config import configs\nfrom dmutils import apiclient, init_app, flask_featureflags\nfrom dmutils.content_loader import ContentLoader\n\n\nbootstrap ...
python
edit
1
4
mit
0cab34e5f87b4484e0309aba8860d651afe06fb0
mtekel/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,mtekel/digitalmarketplace-buyer-frontend,alphagov/digitalmarketplace-buyer-frontend,mtekel/digitalmarketplace-buyer-frontend,mtekel/digitalmarketp...
app/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\nfrom django.core.management.base import BaseCommand\nfrom django.template.loader import render_to_string\n\nfrom django.contrib.sites.models import Site\n\nfrom .....
python
edit
1
2
mit
3ebf82c7ef356de3c4d427cea3723737661522e8
pinax/pinax-waitinglist,pinax/pinax-waitinglist
pinax/waitinglist/management/commands/mail_out_survey_links.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom bucky.client import Client\n\n\nclass DebugClient(Client):\n out_path = None\n\n def __init__(self, cfg, pipe):\n super(DebugClient, self).__init__(pipe)\n if self.out_path:\n self.stdout = ...
python
edit
1
2
apache-2.0
86ff28441a23762d30cbab9843a7abeb67bfd028
mistio/mist.monitor,mistio/mist.monitor
src/mist/bucky_extras/clients/debug_client.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf8\n\n\"\"\"An Enigma machine simulator with rich textual display functionality.\"\"\"\n\nfrom ._version import __version__, __author__\n#__all__ = ['machine', 'components']\n\nfrom .components import *\...
python
edit
6
0
bsd-3-clause
a35d6f59d214741f554dde1363d2eac7addb04cb
orome/crypto-enigma-py
crypto_enigma/__init__.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom itertools import chain\n\nfrom django import forms\nfrom django.utils.encoding import force_text\nfrom django.utils.html import format_html\nfrom django.utils.safestring import mark_safe\n\n\n...
python
edit
1
2
bsd-3-clause
3ff91625fc99e279078547220fb4358d647c828a
jbittel/django-deflect
deflect/widgets.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\nclass MigrationHistory(models.Model):\n app_name = models.CharField(max_length=255)\n migration = models.CharField(max_length=255)\n applied = models.DateTimeField(blank=True)\n\n class Meta:\n ...
python
edit
1
2
apache-2.0
77a965f27f75a8a5268ad95538d6625cecb44bfa
matthiask/south,matthiask/south
south/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, unicode_literals\n\nfrom django.conf.urls import patterns, url\nfrom django.views.generic import TemplateView\n\nurlpatterns = patterns( # pylint: disable=invalid-name\n '',\n\n url(r'^$', 'upl...
python
edit
1
0
apache-2.0
669b95d2092f67bcc220b5fa106064d6c3df6a63
dblenkus/rolca,dblenkus/rolca,dblenkus/rolca
rolca_core/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .atflex import AtfLexer\nfrom .atfyacc import AtfParser\nfrom mako.template import Template\n\n\nclass AtfFile(object):\n\n template = Template(\"${text.serialize()}\")\n\n def __init__(self, content):\n self.content = con...
python
edit
1
2
mit
9eaba3b531d26a61ada7aabd45bc76e68d2375ec
UCL/pyoracc
pyoracc/atf/atffile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport math\n\nfrom dynamic_stack_decider.abstract_action_element import AbstractActionElement\n\n\nclass PatternSearch(AbstractActionElement):\n def __init__(self, blackboard, dsd, parameters=None):\n super(PatternSearch, self)._...
python
edit
2
1
bsd-3-clause
a35abfda8af01f3c5bab4f4122060b630c118cac
bit-bots/bitbots_behaviour
bitbots_head_behavior/src/bitbots_head_behavior/actions/pattern_search.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nThe Arcade Library\n\nA Python simple, easy to use module for creating 2D games.\n\"\"\"\nimport arcade.key\nimport arcade.color\n\nfrom .version import *\nfrom .window_commands import *\nfrom .draw_commands import *\nfrom .sprite i...
python
edit
12
0
mit
0b1f38b8354a0ad6a021f247a7bc1336ae5d50fb
mikemhenry/arcade,mikemhenry/arcade
arcade/__init__.py
rejected_lint
Too many lint violations: 12
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom fabric.api import * # noqa\n\n\nenv.hosts = [\n '104.131.30.135',\n]\nenv.user = \"root\"\nenv.directory = \"/home/django/api.freemusic.ninja\"\nenv.deploy_path = \"/home/django/django_project\"\n\n\ndef deploy():\n with cd(env....
python
edit
30
1
bsd-3-clause
a59a856a52a175ae3cbe79fcd6ea49d481aaacf3
FreeMusicNinja/api.freemusic.ninja
fabfile.py
rejected_lint
Too many lint violations: 30
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Configuration parameters.\n\nContains things such as the database to connect to.\n\"\"\"\n\nCLOUDSQL_INSTANCE = 'pmi-drc-api-test:us-central1:pmi-rdr'\nCLOUDSQL_SOCKET = '/cloudsql/' + CLOUDSQL_INSTANCE\nCLOUDSQL_USER = 'api'\n\n\nPYT...
python
edit
1
0
bsd-3-clause
640b5c45727b0c84ab77a759f8b910212762c4c6
all-of-us/raw-data-repository,all-of-us/raw-data-repository,all-of-us/raw-data-repository
rest-api/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n Simple example showing evaluating embedding on similarity datasets\n\"\"\"\nimport logging\nfrom six import iteritems\nfrom web.datasets.similarity import fetch_MEN, fetch_WS353, fetch_SimLex999\nfrom web...
python
edit
1
0
mit
1bfb33a7332cefdacb9b57137cf407ede0d8a919
kudkudak/word-embeddings-benchmarks
examples/evaluate_similarity.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\nclass Person:\n def __init__(self, first_name, last_name):\n self.first_name = first_name\n self.last_name = last_name\n\n def fullname(self):\n return \"%s %s\" % (self.first_name, self...
python
edit
1
1
mit
f3bb89a58375ac91efb1fa6f3426c0a7e7dd85d5
codeclimate/python-test-reporter,codeclimate/python-test-reporter
tests/fixtures/source.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# csv2map.py -- Convert .csv into a .map format\n# Description of MAP format: http://pngu.mgh.harvard.edu/~purcell/plink/data.shtml#map\n#\n# <EMAIL>\n\nimport sys\nimport argparse\n\ndef main():\n parser = argparse.ArgumentParser(desc...
python
edit
3
2
mit
92eaa47b70d48874da032a21fbbd924936c0d518
chagaz/sfan,chagaz/sfan,chagaz/sfan,chagaz/sfan,chagaz/sfan
code/csv2map.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nname = \"WSME\"\nversion = \"0.4\"\n\ndescription = \"\"\"Web Services Made Easy makes it easy to \\\nimplement multi-protocol webservices.\"\"\"\n\nauthor = \"Christophe de Vienne\"\nemail = \"<EMAIL>\"\n\nurl = \"http://bitbucket.org/cdev...
python
edit
1
0
mit
c3ea49a3b040dd1e5252ead1a2ae577e037b8b32
stackforge/wsme
wsme/release.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom basetypes import *\nfrom exttypes import *\nfrom closuretypes import *\nfrom ssatypes import *\nfrom templatetypes import *\nfrom typemapper import *\n\n__all__ = minitypes.__all__ + [\n 'O', 'b1', 'i1', 'i2', 'i4', 'i8', 'u1', 'u2'...
python
edit
25
3
bsd-2-clause
d98ecce6e83db415338f946bfab5191f5671550e
stefanseefeld/numba,stonebig/numba,stefanseefeld/numba,pombredanne/numba,pitrou/numba,seibert/numba,GaZ3ll3/numba,pitrou/numba,numba/numba,cpcloud/numba,IntelLabs/numba,stefanseefeld/numba,numba/numba,pombredanne/numba,stonebig/numba,jriehl/numba,GaZ3ll3/numba,gmarkall/numba,seibert/numba,stefanseefeld/numba,gmarkall/n...
numba/typesystem/__init__.py
rejected_lint
Too many lint violations: 25
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Perform alignment to the estimated rotation axis\n#\n# Developed as part of the tomviz project (www.tomviz.com).\n\n\ndef transform_scalars(dataset, SHIFT=None, rotation_angle=90.0):\n from tomviz import utils\n from scipy import nd...
python
edit
1
4
bsd-3-clause
525f7fff89e02e54ad2a731533e6b817424594f1
OpenChemistry/tomviz,OpenChemistry/tomviz,mathturtle/tomviz,mathturtle/tomviz,mathturtle/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz
tomviz/python/RotationAlign.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\nwith open('requirements.txt') as f:\n requirements = f.read().splitlines()\n\nsetup(\n name = \"docker-scripts\",\n version = \"0.3.0\",\n packages = find_packa...
python
edit
1
0
mit
570792ad4ce15ae0817b87f95e9c55be9a18451d
goldmann/docker-scripts,jpopelka/docker-scripts,TomasTomecek/docker-scripts,goldmann/docker-squash,lichia/docker-scripts
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.utils.decorators import method_decorator\nfrom django.views.decorators.csrf import csrf_exempt\nfrom rest_framework import serializers, status\nfrom rest_framework.response import Response\nfrom rest_framework.views import APIVi...
python
edit
1
5
mit
1e2086b868861034d89138349c4da909f380f19e
City-of-Helsinki/digihel,City-of-Helsinki/digihel,City-of-Helsinki/digihel,City-of-Helsinki/digihel
feedback/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Support setuptools or distutils\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from distutils.core import setup\n\n# Version info -- read without importing\n_locals = {}\nversion_...
python
edit
1
0
bsd-2-clause
06110d32be6bc52f05274318a0f5ff27828acf91
pyinvoke/invocations,alex/invocations,mrjmad/invocations,singingwolfboy/invocations
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport csv\nfrom optparse import make_option\n\nfrom django.core.management import BaseCommand\n\nfrom back2back.models import Entry\n\n\nclass Command(BaseCommand):\n option_list = BaseCommand.option_list + (\n make_option(\n ...
python
edit
1
4
bsd-2-clause
9058d2ddc9a89913710df0efc8d7c88471592795
mjtamlyn/back2back,mjtamlyn/back2back,mjtamlyn/back2back,mjtamlyn/back2back
back2back/management/commands/import_entries.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import (\n unicode_literals,\n absolute_import,\n print_function,\n division,\n )\nstr = type('')\n\n\nimport pytest\n\nfrom gpiozero.cli import pinout\n\n\ndef test_args_incorrect():\n with pytest.raises(S...
python
edit
4
1
bsd-3-clause
b7aa7e85064430dc95e74a0f676f0484fee12733
MrHarcombe/python-gpiozero,waveform80/gpio-zero,RPi-Distro/python-gpiozero
tests/cli/test_pinout.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport versioneer\n\nfrom setuptools import setup\n\nsetup(\n name='domain_events',\n version=versioneer.get_version(),\n cmdclass = versioneer.get_cmdclass(),\n desription='Ableton Domain Events via Rabbitmq',\n author='the ...
python
edit
1
0
mit
b07b4194528e08526be60b04413e40eb64d313d8
AbletonAG/domain-events
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom django.core import mail\n\nfrom oscar.core.compat import get_user_model\nfrom oscar.apps.customer.utils import Dispatcher\nfrom oscar.apps.customer.models import CommunicationEventType\nfrom oscar.test...
python
edit
1
1
bsd-3-clause
11aab47e3c8c0d4044042aead7c01c990a152bea
sonofatailor/django-oscar,solarissmoke/django-oscar,okfish/django-oscar,okfish/django-oscar,django-oscar/django-oscar,sasha0/django-oscar,sonofatailor/django-oscar,django-oscar/django-oscar,django-oscar/django-oscar,solarissmoke/django-oscar,django-oscar/django-oscar,okfish/django-oscar,sonofatailor/django-oscar,okfish...
tests/integration/customer/test_dispatcher.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport integration\n\n\nclass SysModuleTest(integration.ModuleCase):\n '''\n Validate the sys module\n '''\n def test_list_functions(self):\n '''\n sys.list_functions\n '''\n funcs = self.run_function...
python
edit
2
7
apache-2.0
107b97e952d731f8c55c9ca3208ecd2a41512b8d
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
tests/integration/modules/sysmod.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nBasic utilities for the Flask app\n\nThese are basic utilities necessary for the Flask app which are\ndisjoint from any blueprint.\n\"\"\"\nfrom flask import request, session\nfrom flask_login import Anonymo...
python
edit
1
4
mit
ecc816295154a3756e87349b4cff397ebd17b95f
lukasjuhrich/sipa,agdsn/sipa,agdsn/sipa,lukasjuhrich/sipa,lukasjuhrich/sipa,agdsn/sipa,agdsn/sipa,lukasjuhrich/sipa,MarauderXtreme/sipa,MarauderXtreme/sipa,MarauderXtreme/sipa
sipa/base.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Rachiopy setup script.\"\"\"\nfrom setuptools import find_packages, setup\n\nversion = \"0.2.0\"\n\nGITHUB_USERNAME = \"rfverbruggen\"\nGITHUB_REPOSITORY = \"rachiopy\"\n\nGITHUB_PATH = f\"{GITHUB_USERNAME}/{GITHUB_REPOSITORY}\"\nGITH...
python
edit
1
0
mit
5801bf2644b26fc93ade4651ec9b2cc4c58d25ec
rfverbruggen/rachiopy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nmusketeersName = 'Tom Dick Harry'\nprint 'Three musketeers are', musketeersName\n\nmusketeer_1 = musketeersName[0:3]\nprint 'First musketeer :', musketeer_1\n\nmusketeer_2 = musketeersName[4:8]\nprint 'Second musketeer :', musketeer_2\n\nmu...
python
edit
11
0
mit
071004d9e70b769df2303ed9be1a4d494197667c
rahulbohra/Python-Basic
39_string_slice.py
rejected_lint
Too many lint violations: 11
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom django.contrib.auth import get_user_model\n\nfrom seleniumlogin import force_login\n\npytestmark = [pytest.mark.django_db(transaction=True)]\n\n\ndef test_non_authenticated_user_cannot_access_test_page(selenium, live_ser...
python
edit
1
1
mit
1e327401d9c020bb7941b20ff51890ad1729973d
feffe/django-selenium-login,feffe/django-selenium-login
tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nconfig = {\n 'description': 'TRX',\n 'author': 'Kyle Maxwell, based on Paterva\\'s library',\n 'url': 'https://github.com/krmaxwel...
python
edit
1
0
apache-2.0
340cdd0ea77c5edb9ae6f38cf380eec1772cee66
krmaxwell/TRX
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom exp_test_helper import run_exp\n\nimport pytest\n\nclass TestRun():\n \"\"\"\n Run and check return code.\n \"\"\"\n\n @pytest.mark.fast\n def test_run(self):\n run_exp('1deg_jra55_ryf')\n\n @pytest.mark.slow...
python
edit
1
1
apache-2.0
41ba2d55ed00269465d49ba22a1cb07eb899273a
CWSL/access-om
test/test_run.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nfrom django.conf import settings\nfrom django.http import JsonResponse, HttpResponseBadRequest\nfrom django.shortcuts import redirect\nfrom django.views.decorators.csrf import csrf_exempt\nfrom rest_framework.authtoken.mo...
python
edit
1
2
apache-2.0
cc3d89d4357099ba2df1628e9d91e48c743bd471
prattl/teamfinder,prattl/teamfinder,prattl/teamfinder,prattl/teamfinder
api/common/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n# Python does not require explicit interfaces,\n# but I believe that code which does is more\n# maintainable. Thus I include this explicit\n# interface for Problems.\nclass Problem:\n def getStartState(self):\n return None\n\n ...
python
edit
4
2
mit
fc94d60066692e6e8dc496bb854039bb66af3311
SpexGuy/Scout
scout.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport ez_setup\nez_setup.use_setuptools()\n\nfrom setuptools import setup\nfrom django_allowdeny import NAME, VERSION\n\nsetup(\n name=NAME,\n version=VERSION,\n author='Nimrod A. Abing',\n author_email='<EMAIL>',\n packages...
python
edit
1
0
bsd-3-clause
07b80c15a4dc33a7cef1613845a322ee32d05d1d
rudeb0t/DjangoAllowDeny
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nimport os\n\nfrom setuptools import setup\n\nbase_dir = os.path.dirname(__file__)\n\nwith open(os.path.join(base_dir, \"README.rst\")) as f:\n long_description = f.read()\n\nsetup(\n name=\"TxSNI\",\n description=\"easy-to-use SN...
python
edit
1
0
mit
49ac4dc3e7506f35d2f3ad695afaf9c89f08720b
glyph/txsni
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport string\nimport random\nimport argparse\n\n\ndef passgen(length=8):\n \"\"\"Generate a strong password with *length* characters\"\"\"\n pool = string.ascii_uppercase + string.ascii_lowercase + string.digits\n return ''.join(r...
python
edit
2
2
mit
e3a2e65199c3d0db9576a25dc039f66e094171b6
soslan/passgen
src/passgen.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom app import app\nfrom app.slot import controller as con\nimport config\nfrom auth import requires_auth\nfrom flask import render_template\nfrom flask.ext.login import login_required\n\n\n@app.route('/dashboard')\n# @requires_auth\n@log...
python
edit
4
1
mit
d5a2a11d23b9f5393b0b39ca2f90978276311f52
nhshd-slot/SLOT,nhshd-slot/SLOT,nhshd-slot/SLOT
app/slot/routes.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# # coding: utf-8\nfrom setuptools import setup, find_packages\nlong_description = open('README.md').read()\n\nsetup(\n name='captainhook',\n description='A collection of git commit hooks',\n version='0.8.3',...
python
edit
1
0
bsd-3-clause
1e98fd8b7645d5407730e70b07fb4422d4df3e3a
pczerkas/captainhook,alexcouper/captainhook,Friz-zy/captainhook
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/python\n\nfrom os.path import abspath, join as pathjoin\nfrom shutil import copy\nfrom subprocess import call\nfrom tempfile import mkdtemp\n\ninstall_dir = mkdtemp(prefix='emcee.')\ngames_dir = abspath(pathjoin('..', 'games'))\...
python
edit
8
0
mit
34db881007bf0dad3b7e870d36ab4e4a68b0fd3d
douglassquirrel/alexandra,douglassquirrel/alexandra,douglassquirrel/alexandra
emcee/run_emcee.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pywatson.answer.answer import Answer\nfrom pywatson.question.question import Question\nimport requests\n\n\nclass Watson:\n \"\"\"The Watson API adapter class\"\"\"\n\n def __init__(self, url, username, password):\n self.u...
python
edit
1
2
mit
aceeac7e9dd2735add937bc7141cfdb29b6201c7
sherlocke/pywatson
pywatson/watson.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf-8\n\nimport json\n\n\ndef json_filter(value):\n return json.dumps(value)\n\n\ndef count_filter(value):\n if value is None:\n return \"\"\n count = float(value)\n base = 1000\n prefixes = [\n ('K'...
python
edit
1
6
mit
163cfea2a0c5e7d96dd870aa540c95a2ffa139f9
uvNikita/appstats,uvNikita/appstats,uvNikita/appstats
appstats/filters.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\n\nfrom collections import Counter\nimport pandas as pd\n\nXLS_NAME = 'startup.xls'\nSHEET_NAME = 'STARTUP_15092014'\nCOL_NAME = 'nat.giuridica'\n\ndef main():\n xls = pd.ExcelFile(XLS_NAM...
python
edit
4
9
mit
d5eccc801634f1b841fbc31de545e530b6d4bd54
jacquerie/italian-startups-report
startup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef run(seed):\n \"\"\" function to run\n\n Args:\n seed: The value of each line striped in seed file\n\n Returns:\n String, object, list, directory, etc.\n \"\"\"\n\n name, age = seed.split(',')\n return 'He...
python
edit
1
1
mit
f4adce54b573b7776cf3f56230821f982c16b49f
RickGray/cyberbot
modules/helloworld/helloworld.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\r\nCreated on Aug 12, 2017\r\n\r\n@author: Aditya\r\n\r\nThis is the main file and will import other modules/codes written for python tkinter demonstration\r\n'''\r\n\r\nimport program1 as p1\r\nimport program2 as p2\r\nimport program3 ...
python
edit
1
1
mit
2727fccdb3672e1c7b28e4ba94ec743b53298f26
deshadi/python-gui-demos
src/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n### required - do no delete\ndef user(): return dict(form=auth())\ndef download(): return response.download(request,db)\ndef call(): return service()\n### end requires\n\ndef index():\n return dict()\n\n\n```\n...
python
edit
8
1
bsd-2-clause
afa10a27aa1fe1eaa719d988902c2f3f4d5d0928
OpenTreeOfLife/opentree,OpenTreeOfLife/opentree,OpenTreeOfLife/opentree,OpenTreeOfLife/opentree,OpenTreeOfLife/opentree,OpenTreeOfLife/opentree
webapp/controllers/contact.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__all__ = ['OrderedModel', 'OrderedModelAdmin']\n\nfrom models import OrderedModel\nfrom admin import OrderedModelAdmin\n\n```\n\nApply this change: Make it easy importing of OrderableMPTTModel and OrderedMPTTModelAdmin in from orderedmodel...
python
edit
1
0
bsd-3-clause
a6e2c0fc837b17321e2979cb12ba2d0e69603eac
MagicSolutions/django-orderedmodel,MagicSolutions/django-orderedmodel
orderedmodel/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nREPO_URL = 'http://github.com/okfn-brasil/serenata-toolbox'\n\nwith open('README.rst') as fobj:\n long_description = fobj.read()\n\nsetup(\n author='Serenata de Amor',\n author_email='<EMAIL>',\n ...
python
edit
1
0
mit
5f80be3f779b6cae4c7215b26e7f5e1cf9a262ec
datasciencebr/serenata-toolbox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\nimport materializecssform\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n\n name='django-materialize...
python
edit
1
0
mit
79a6177fa8366879fbb0ed1cb0961cca6b5ab89a
florent1933/django-materializecss-form,florent1933/django-materializecss-form
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport platform\nimport sys\n\nfrom setuptools import setup\n\ninstall_requires = [\n 'msgpack-python',\n]\n\nif sys.version_info < (3, 4):\n # trollius is just a backport of 3.4 asyncio module\n install_requires.append('trollius')...
python
edit
1
0
apache-2.0
644d24ad024f0d81f49b85417fecb154a6f259a9
zchee/python-client,neovim/python-client,zchee/python-client,0x90sled/python-client,bfredl/python-client,timeyyy/python-client,Shougo/python-client,bfredl/python-client,Shougo/python-client,traverseda/python-client,brcolow/python-client,neovim/python-client,starcraftman/python-client,timeyyy/python-client,meitham/pytho...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom mdformat._cli import run\n\n\ndef test_no_files_passed():\n assert run(()) == 0\n\n```\n\nApply this change: Add a test for formatting with cli" }, { "role": "assistant", "content": "from mdformat._cli import run\n\n\nde...
python
edit
1
1
mit
99f8fc1ec43aa7a1b96b2d8446a77111dbc61195
executablebooks/mdformat
tests/test_cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport time\nfrom random import shuffle\nfrom vania.fair_distributor import FairDistributor\n\n\ndef main():\n # User input for the number of targets and objects.\n users = ['user1', 'user2']\n tasks = ['task1', 'task2'...
python
edit
5
1
mit
b7e657134c21b62e78453b11f0745e0048e346bf
Hackathonners/vania
examples/simple_distribution.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Defines Hello message.\"\"\"\n\n# System imports\n\n# Third-party imports\n\nfrom pyof.foundation.base import GenericMessage\nfrom pyof.v0x01.common.header import Header, Type\n\n__all__ = ('Hello',)\n\n# Classes\n\n\nclass Hello(Gene...
python
edit
1
0
mit
5beb443d4c9cf834be03ff33a2fb01605f8feb80
kytos/python-openflow
pyof/v0x01/symmetric/hello.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom restclients.canvas import Canvas\nfrom myuw_mobile.dao.pws import Person\nfrom myuw_mobile.logger.timer import Timer\nfrom myuw_mobile.logger.logback import log_resp_time, log_exception\nimport logging\nimport traceback\n\n\nclass Enro...
python
edit
3
3
apache-2.0
72a248416971a5765f908bfb26b28ea546d8d9bb
fanglinfang/myuw,uw-it-aca/myuw,fanglinfang/myuw,uw-it-aca/myuw,uw-it-aca/myuw,fanglinfang/myuw,uw-it-aca/myuw
myuw_mobile/dao/canvas.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nSite-specific code extension\n\"\"\"\n\nfrom __future__ import annotations\nfrom typing import Any\n\nfrom flask import g\n\nfrom byceps.services.seating import seat_service\nfrom byceps.services.ticketing import ticket_service\n\n\...
python
edit
1
2
bsd-3-clause
2651ddf1946ec489195ec9c3fb23e00e5735c79c
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps
sites/cozylan/extension.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"xoxzo.logwatch\",\n version=\"0.4\",\n packages=find_packages(),\n install_requires=[\n 'Baker==1.3',\n 'pytz==2016.3',\n ],\n entry_points={\n ...
python
edit
1
0
mit
f157ad4c971628c8fb0b1f94f6fd080c75413064
xoxzo/xoxzo.logwatch
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport os\nimport subprocess\n\n\nclass TestCommandLine(object):\n\n def setup(self):\n \"\"\"Set up the environment by moving to the demos directory.\"\"\"\n os.chdir(\"demos\")\...
python
edit
1
1
mit
fae3e55b1c472cd314676431a34fe6e160418626
jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger
tests/test_command_line.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2015 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nfrom buildbot.changes.filter import ChangeFilter\nfrom buildbot.sched...
python
edit
1
2
bsd-3-clause
04fbd65f90a3ce821fed76377ce7858ae0dd56ee
eunchong/build,eunchong/build,eunchong/build,eunchong/build
masters/master.chromium.webrtc/master_builders_cfg.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nversion = '0.2.0'\n\nsetup(\n name='scoville',\n version=version,\n description=\"A tool for attributing MVT tile size.\",\n long_description=open('README.md').read(),\n classifi...
python
edit
1
0
mit
df7ac0bb9540d6df1f770e0509085b3aeacad8af
tilezen/scoville,tilezen/scoville,tilezen/scoville
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/local/bin/python\n__version__ = '0.1'\n\nHOME_URL = 'https://raw.githubusercontent.com/ftobia/longshot/develop/longshot.py'\n\n\ndef upgrade():\n backup_self()\n download_and_overwrite()\n restart()\n\n\ndef backup_self():\n...
python
edit
2
1
bsd-3-clause
7f59bf7b24caf0ae92abadae9427d0293f4a39b7
ftobia/longshot
longshot.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='Zinc',\n version='0.1.7',\n author='John Wang',\n author_email='<EMAIL>',\n packages=['zinc'],\n package_dir={'zinc': ''},\n package_data={'zinc': ['examples/*.py', 'ex...
python
edit
1
0
mit
ccbe4a1c48765fdd9e785392dff949bcc49192a2
wangjohn/zinc_cli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nname = \"WSME\"\nversion = \"0.3\"\n\ndescription = \"Web Services Made Easy\"\n\nauthor = \"Christophe de Vienne\"\nemail = \"<EMAIL>\"\n\nurl = \"http://bitbucket.org/cdevienne/wsme\"\n\nlicense = \"MIT\"\n\n```\n\nApply this change: Chan...
python
edit
1
0
mit
8b33c216b2da4a7bf480d79675325134777db9ae
stackforge/wsme
wsme/release.py
rejected_duplicate
Near-duplicate of sample 5087
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nimport versioneer\n\n\nwith open(\"requirements.txt\") as f:\n requirements = f.read().splitlines()\n\nsetup(\n name=\"s3contents\",\n version=versioneer.get...
python
edit
1
2
apache-2.0
232eba0b7521d4fa7c005339f64690dd0b807cd2
danielfrg/s3contents
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Data sources\ndatabase(\n thermoLibraries = ['primaryThermoLibrary'],\n reactionLibraries = [],\n seedMechanisms = [],\n kineticsDepositories = ['training'],\n kineticsFamilies = ['!Intra_Disproportionation','!Substitution_...
python
edit
8
0
mit
4e727b52828122c37b8c398f16ad914898968e83
enochd/RMG-Py,nickvandewiele/RMG-Py,faribas/RMG-Py,comocheng/RMG-Py,nyee/RMG-Py,chatelak/RMG-Py,pierrelb/RMG-Py,faribas/RMG-Py,comocheng/RMG-Py,pierrelb/RMG-Py,nyee/RMG-Py,enochd/RMG-Py,nickvandewiele/RMG-Py,KEHANG/RMG-Py,chatelak/RMG-Py,KEHANG/RMG-Py
examples/rmg/minimal/input.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ._version import version_info, __version__\n\ndef _jupyter_nbextension_paths():\n return [{\n 'section': 'notebook',\n 'src': 'nbextension/static',\n 'dest': 'nb_conda',\n 'require': 'nb_conda/main'\n ...
python
edit
4
1
bsd-3-clause
f551d23531ec4aab041494ac8af921eb77d6b2a0
Anaconda-Server/nb_conda,Anaconda-Server/nb_conda,Anaconda-Server/nb_conda,Anaconda-Server/nb_conda
nb_conda/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"The testing directory contains a small set of imaging files to be used\nfor doctests only. More thorough tests and example data will be stored in\na nipy-data-suite to be created later and downloaded separately.\n\nExamples\n--------...
python
edit
6
0
bsd-3-clause
c461c57a90804558a30f3980b2608497a43c06a7
bthirion/nipy,nipy/nipy-labs,alexis-roche/register,arokem/nipy,alexis-roche/niseg,alexis-roche/nireg,alexis-roche/niseg,alexis-roche/nipy,alexis-roche/register,nipy/nipy-labs,nipy/nireg,nipy/nireg,alexis-roche/register,alexis-roche/nipy,bthirion/nipy,arokem/nipy,alexis-roche/nireg,bthirion/nipy,arokem/nipy,bthirion/nip...
nipy/testing/__init__.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport bot_mock\nfrom pyfibot.modules import module_openweather\nfrom utils import check_re\n\n\nbot = bot_mock.BotMock()\n\n\ndef test_weather():\n regex = u'Lappeenranta, FI: Temperature: \\d+.\\d\\xb0C, feels ...
python
edit
1
1
bsd-3-clause
45fc612fdc5a354dbf0bacccd345b1aebcc73e59
rnyberg/pyfibot,EArmour/pyfibot,aapa/pyfibot,aapa/pyfibot,lepinkainen/pyfibot,rnyberg/pyfibot,lepinkainen/pyfibot,huqa/pyfibot,huqa/pyfibot,EArmour/pyfibot
tests/test_openweather.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom datetime import datetime\n\nfrom django.db import models\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.template.loader import render_to_string\n\nimport feedparser\...
python
edit
3
1
bsd-3-clause
f8b8f3a223f195704f8cc9753963fbe82f1e4674
hgrimelid/feincms,joshuajonah/feincms,michaelkuty/feincms,matthiask/feincms2-content,nickburlett/feincms,michaelkuty/feincms,nickburlett/feincms,matthiask/django-content-editor,michaelkuty/feincms,nickburlett/feincms,hgrimelid/feincms,feincms/feincms,feincms/feincms,joshuajonah/feincms,matthiask/django-content-editor,m...
feincms/content/rss/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.\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 obt...
python
edit
1
0
apache-2.0
8cbbf6b4b4b1cc87f25b2047e183dd1bfd7dc8a0
Frostman/SalaryZenAggregator_Old,Frostman/SalaryZenAggregator
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom fontbakery.checkrunner import Section\nfrom fontbakery.fonts_spec import spec_factory\n\n\ndef check_filter(checkid, font=None, **iterargs):\n if checkid in (\n \"com.google.fonts/check/035\", # ftxvalidator\n \"com.google....
python
edit
1
3
apache-2.0
238578d41beec33d7428cb53d79fc21c028cfc87
moyogo/fontbakery,moyogo/fontbakery,googlefonts/fontbakery,googlefonts/fontbakery,moyogo/fontbakery,graphicore/fontbakery,graphicore/fontbakery,graphicore/fontbakery,googlefonts/fontbakery
tests/specifications/external_spec_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='ckanext-archiver',\n version='0.1',\n packages=find_packages(),\n install_requires=[\n 'celery==2.4.5',\n 'kombu==1.5.1',\n 'kombu-sqlalchemy==1....
python
edit
1
0
mit
f61b8cfcbf98da826a847981834763198db42867
datagovuk/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,ckan/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,DanePubliczneGovPl/ckanext-archiver,datagovuk/ckanext-archiver,ckan/ckanext-archiver,datagovuk/ckanext-archiver,ckan/ckanext-archiver
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom sqlalchemy import MetaData, create_engine\nfrom sqlalchemy.orm import Session\nfrom sqlalchemy.ext.automap import automap_base\n\n\nclass DB(object):\n \"\"\"Facade for the low level DB operations\"\"\"\n ...
python
edit
1
1
mit
847375a5cd6cbc160c190c9fb5e9fa2b1f0cdea9
ashwoods/lustro
lustro/db.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom indra.sources import rlimsp\n\n\ndef test_simple_usage():\n stmts = rlimsp.process_pmc('PMC3717945')\n\n```\n\nApply this change: Update test and add test for ungrounded endpoint." }, { "role": "assistant", "content": "f...
python
edit
1
1
bsd-2-clause
921225181fc1d0242d61226c7b10663ddba1a1a2
johnbachman/belpy,johnbachman/belpy,sorgerlab/indra,sorgerlab/belpy,sorgerlab/belpy,johnbachman/indra,pvtodorov/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/indra,sorgerlab/indra,bgyori/indra,pvtodorov/indra,pvtodorov/indra,johnbachman/belpy,sorgerlab/indra,bgyori/indra,bgyori/indra,pvtodorov/indra
indra/tests/test_rlimsp.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .base import *\n\nDEBUG = True\n\n# TEMPLATES[1]['DEBUG'] = True\n\nDATABASES = {\n 'default': {\n # 'ENGINE': 'django.db.backends.sqlite3',\n # 'NAME': os.path.join(BASE_DIR, '..', 'tmp', 'db.sqlite3'),\n 'ENGI...
python
edit
3
0
apache-2.0
02b67810263ac5a39882a1e12a78ba28249dbc0a
patrickspencer/compass-python,patrickspencer/compass,patrickspencer/compass-python,patrickspencer/compass-python,patrickspencer/compass-python,patrickspencer/compass-python,patrickspencer/compass,patrickspencer/compass,patrickspencer/compass,patrickspencer/compass
webapp/config/settings/development.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# --\n# Copyright (c) 2008-2020 Net-ng.\n# All rights reserved.\n#\n# This software is licensed under the BSD License, as described in\n# the file LICENSE.txt, which you should have received as part of\n# this distribution.\n# --\n\n\"\"\"I...
python
edit
1
3
bsd-3-clause
5c6f277caf3496da5f10b0150abb2c3b856e6584
nagareproject/core,nagareproject/core
nagare/services/prg.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np \nimport milk.unsupervised\n\ndef test_kmeans():\n features = np.r_[np.random.rand(20,3)-.5,.5+np.random.rand(20,3)]\n centroids, _ = milk.unsupervised.kmeans(features,2)\n positions = [0]*20 + [1]*20\n correc...
python
edit
2
3
mit
b61679efce39841120fcdb921acefbc729f4c4fd
luispedro/milk,pombredanne/milk,luispedro/milk,pombredanne/milk,luispedro/milk,pombredanne/milk
tests/test_kmeans.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright Hybrid Logic Ltd. See LICENSE file for details.\n\n\"\"\"\nProvisioning for acceptance tests.\n\"\"\"\n\nfrom ._common import PackageSource\nfrom ._install import provision\nfrom ._rackspace import rackspace_provisioner\nfrom ....
python
edit
1
0
apache-2.0
01e9df01bc17561d0f489f1647ce5e0c566372e5
wallnerryan/flocker-profiles,1d4Nf6/flocker,hackday-profilers/flocker,moypray/flocker,mbrukman/flocker,hackday-profilers/flocker,agonzalezro/flocker,1d4Nf6/flocker,w4ngyi/flocker,moypray/flocker,agonzalezro/flocker,mbrukman/flocker,adamtheturtle/flocker,moypray/flocker,AndyHuu/flocker,achanda/flocker,lukemarsden/flocke...
flocker/provision/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='mordecai',\n version='2.0.0a1',\n description='Full text geoparsing and event geocoding',\n url='http://github.com/openeventdata/mordecai/',\n author='Andy Halterman',\n a...
python
edit
1
0
mit
da58b6ec7b9b74867e7755667988d60218c9699a
openeventdata/mordecai
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\nbind = '127.0.0.1:8001'\nworkers = 6\nproc_name = 'lastuser'\n\n```\n\nApply this change: Use a different port for lastuser" }, { "role": "assistant", "content": "#!/usr/bin/env ...
python
edit
1
0
bsd-2-clause
415e34fb913feaf623320827fb7680ee56c9d335
hasgeek/lastuser,hasgeek/lastuser,sindhus/lastuser,hasgeek/lastuser,sindhus/lastuser,hasgeek/funnel,hasgeek/funnel,hasgeek/funnel,hasgeek/funnel,hasgeek/lastuser,sindhus/lastuser,sindhus/lastuser,sindhus/lastuser,hasgeek/funnel,hasgeek/lastuser
gunicorn.conf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.utils import timezone\n\n\nclass DoorStatus(models.Model):\n datetime = models.DateTimeField()\n status = models.BooleanField(default=False)\n name = models.CharField(max_length=20)\n\n ...
python
edit
1
2
mit
7fc62edee40ecedc49b0529e17ac04e4d7bf6865
hackerspace-ntnu/website,hackerspace-ntnu/website,hackerspace-ntnu/website
door/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" A startup script for IPython to patch it to 'inspect' using cinspect. \"\"\"\n\n# Place this file in ~/.ipython/<PROFILE_DIR>/startup to patch your IPython to\n# use cinspect for the code inspection.\n\nimport inspect\n\nfrom cinspec...
python
edit
1
3
bsd-3-clause
888f6b07174943ba7f3b9d187348ceeebecc4a42
punchagan/cinspect,punchagan/cinspect
utils/00-cinspect.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nose.tools import ok_, eq_\nfrom pennathletics.athletes import get_roster, get_player\n\n\nclass TestAthletics():\n def test_roster(self):\n ok_(get_roster(\"m-baskbl\", 2015) != [])\n\n def test_player_empty(self):\n ...
python
edit
1
1
mit
459546a9cedb8e9cf3bee67edb4a76d37874f03b
pennlabs/pennathletics
tests/test_athletics.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nimport django\nfrom django.conf import settings\n\nDJANGO_VERSION = float('.'.join([str(i) for i in django.VERSION[0:2]]))\n\nDIR_NAME = os.path.dirname(__file__)\nsettings.configure(\n DEBUG=True,\n DATABASES={...
python
edit
1
0
bsd-3-clause
c774093bd448b6f8bf9ceef2d68ce1033ba06640
Alir3z4/django-cuser
run_tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Experiment control functions\n\"\"\"\n\n__version__ = '1.1.0.git'\n\n# have to import verbose first since it's needed by many things\nfrom ._utils import set_log_level, set_config, \\\n get_config, get_config_path\n...
python
edit
11
0
bsd-3-clause
7f42966277eff0d16fd15d5192cffcf7a91aae2e
LABSN/expyfun,rkmaddox/expyfun,Eric89GXL/expyfun,lkishline/expyfun,drammock/expyfun
expyfun/__init__.py
rejected_lint
Too many lint violations: 11
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys, os\nfrom setuptools import setup, Extension, find_packages\n\nimport numpy\n\nkws = {}\nif not int(os.getenv( 'DISABLE_INSTALL_REQUIRES','0' )):\n kws['install_requires'] = [\n 'numpy>=1.0.4',\n ]\n\nsetup(name=...
python
edit
3
0
bsd-3-clause
e693352b2c9787748cb1dcf2bfd6e134292bfa6a
motmot/imops,motmot/imops
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nversion = \"0.10.2\"\n\n\nsetup(\n name=\"setuptools-rust\",\n version=version,\n author=\"Nikolay Kim\",\n author_email=\"<EMAIL>\",\n url=\"https://github.com/PyO3/setuptools-rust\",\n key...
python
edit
1
0
mit
913a102332e5d2caeab265f8a9980e2303f58550
PyO3/setuptools-rust,PyO3/setuptools-rust
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\nimport re\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__file__), name)\n\n\ndef read(fname):\n retu...
python
edit
1
1
apache-2.0
6123ca57cac5d61de833e1102297b0cc9d7a3e0c
crsmithdev/arrow
setup.py
accepted
null
true