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\ntry:\n from actstream.signals import action\nexcept:\n pass\n\nimport django\n\n__version__ = '1.4.0'\n__author__ = 'Asif Saif Uddin, Justin Quick <<EMAIL>>'\n\nif django.VERSION < (3, 2):\n default_app_config = 'actstream.apps.Act...
python
edit
3
0
bsd-3-clause
49749403321d16f14ecf0f6f95d5511e5429d7a2
justquick/django-activity-stream,pombredanne/django-activity-stream,pombredanne/django-activity-stream,justquick/django-activity-stream
actstream/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport glob\nimport time\nimport re\n\ndef readfile(fn):\n with open(fn, 'Ur', encoding='utf8') as f:\n return f.read()\n\ndef loaderString(var):\n fn = var.group(1)\n return readfile(fn).replace('\...
python
edit
1
1
isc
f34c230c93ea8c87a77c29dc1bf86aa450e87749
SpamapS/ingress-intel-total-conversion,fkloft/ingress-intel-total-conversion,Galfinite/ingress-intel-total-conversion,jonatkins/ingress-intel-total-conversion,meyerdg/ingress-intel-total-conversion,pleasantone/ingress-intel-total-conversion,MarkTraceur/ingress-intel-total-conversion,nikolawannabe/ingress-intel-total-co...
build.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.contrib import admin\n\nfrom feedback.models import Feedback\n\n\nclass FeedbackAdminForm(forms.ModelForm):\n class Meta:\n model = Feedback\n fields = '__all__'\n widgets = {\n ...
python
edit
1
1
apache-2.0
a71b60363a39414eac712210086ce51abeed41d0
prattl/teamfinder,prattl/teamfinder,prattl/teamfinder,prattl/teamfinder
api/feedback/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import division\n\n\ndef quick_sort(a_list):\n \"\"\"Quick sort algortihm with list comprehension recursion.\"\"\"\n if len(a_list) <= 1:\n...
python
edit
1
8
bsd-2-clause
9ef1c87ec752df3fb32cfe8ee94216e5eb3326fe
bowen0701/algorithms_data_structures
alg_quick_sort.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# OSU SPS Website Build Script\n\ndef loadFile( src, prefx ):\n out = \"\"\n for line in open( src, 'r' ):\n out += prefx + line\n return out\n\ndef outputFile( name, content ):\n file = open( name, 'w' )\n file.write(...
python
edit
1
2
mit
13f857978378df38a4d52cc92aec750c3804f069
GeekLogan/OSU-SPS-Website,GeekLogan/OSU-SPS-Website
build.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom django.contrib.auth.models import User\nfrom django.test import TestCase\nimport factory\nfrom faker import Faker\n\nfrom imager_profile.models import ImagerProfile\nfrom .models import Album, P...
python
edit
1
1
mit
1697d267633f981b7a6e1a14b5e5b9b05f3b8179
jesseklein406/django-imager,jesseklein406/django-imager,jesseklein406/django-imager
imagersite/imager_images/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import include, url\nfrom django.conf.urls.static import static\nfrom django.views.generic import TemplateView\nfrom django.contrib import admin\nfrom django.conf import settings\n\nimport views\n\nadmin.autodiscover()...
python
edit
1
0
mit
9537cb765776135bc6d2777b6f4f931724edea7f
tom-henderson/django-template,tom-henderson/django-template
project_name/project_name/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n marvin\n ~~~~~~\n\n This is the main entry point to marvin, the API endpoints for streamr.\n\"\"\"\n\n# pylint: disable=invalid-name\n\nfrom flask import Flask\nfrom flask.ext.sqlalchemy import SQLAlchemy\nfrom flask.ext.r...
python
edit
1
2
mit
3bceae5afd3158e98e76dd0e228efc4d1396a433
streamr/marvin,streamr/marvin,streamr/marvin
marvin/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nDataSet context\n\"\"\"\nclass DsContext(object):\n def __init__(self, config=\"okdataset.yml\"):\n self.workers = 8\n\n```\n\nApply this change: Put yaml config in Context." }, { "role": "assistant", "content"...
python
edit
1
1
mit
037fcccebae10f608f5a2711fbbc659411d6879b
anthonyserious/okdataset,anthonyserious/okdataset
okdataset/context.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- encoding: utf-8 -*-\n\n__author__ = 'kotaimen'\n__date__ = '28-Feb-2018'\n\n\"\"\"Main cli entry point, called when awscfncli is run as a package, \nimported in setuptools intergration.\n\ncli package stucture:\n\n Click main entr...
python
edit
1
1
mit
e096343aaaa916232633543d57431b7f3022215a
Kotaimen/awscfncli,Kotaimen/awscfncli
awscfncli/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nimport tables\n\nfrom metatlas.mzml_loader import mzml_to_hdf, get_test_data\n\n\ndef test_loader():\n path = get_test_data()\n out_file = 'test_loader.h5'\n\n mzml_to_hdf(path, out_file_name=...
python
edit
1
2
bsd-3-clause
63e31d0594f3813a6d49191d94c4ec7ce6b66e3b
metabolite-atlas/metatlas,metabolite-atlas/metatlas,metabolite-atlas/metatlas,aitatanit/metatlas,aitatanit/metatlas,biorack/metatlas,aitatanit/metatlas,biorack/metatlas
metatlas/tests/test_loader.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ..darkobject import DarkObject\nfrom bs4 import BeautifulSoup\nimport requests\nimport logging\nimport time\n\n\nclass Scrubber(DarkObject):\n def __init__(self):\n super(Scrubber, self).__init__()\n\n def scrub(self):\n ...
python
edit
1
6
mit
584bfedf9c71bad0715b9d167c3e90ec588d5110
AdamGagorik/pydarkstar
pydarkstar/scrubbing/scrubber.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n# Github Tray App\n\nimport rumps\nimport config\nimport contribs\n\nclass GithubTrayApp(rumps.App):\n\n def __init__(self):\n super(GithubTrayApp, self).__init__('Github')\n self.count = rumps.MenuItem('commits')\n ...
python
edit
1
3
mit
c6c189ffe13f88d7310291c785ffe363f6c04423
chrisfosterelli/commitwatch
trayapp.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom celery.result import EagerResult\n\nfrom {{ cookiecutter.project_slug }}.users.tasks import get_users_count\nfrom {{ cookiecutter.project_slug }}.users.tests.factories import UserFactory\n\n\n@pytest.mark.django_db\ndef ...
python
edit
null
null
bsd-3-clause
92bbddc2901c5720042fcadbbceaa68642e7cf3d
luzfcb/cookiecutter-django,pydanny/cookiecutter-django,trungdong/cookiecutter-django,ryankanno/cookiecutter-django,luzfcb/cookiecutter-django,pydanny/cookiecutter-django,luzfcb/cookiecutter-django,trungdong/cookiecutter-django,luzfcb/cookiecutter-django,ryankanno/cookiecutter-django,trungdong/cookiecutter-django,pydann...
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/tests/test_tasks.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom contextlib import contextmanager\nfrom pyroSAR._dev_config import ExamineExe\nfrom pyroSAR.snap.auxil import ExamineSnap\n\n@contextmanager\ndef not_raises(ExpectedException):\n try:\n yield\n\n except Expec...
python
edit
1
3
mit
a0a4ba94cc76d5c4395d869fe5ea70caae14fa36
johntruckenbrodt/pyroSAR,johntruckenbrodt/pyroSAR
pyroSAR/tests/test_snap_exe.py
rejected_duplicate
Near-duplicate of sample 1288
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport hmac, hashlib\n\nclass Authenticate:\n def __init__(self, public_key, private_key, method, url, timestamp):\n self._public_key = public_key\n self._private_key = private_key\n\n self.method = method\n s...
python
edit
1
1
mit
9b3f9b69efef93e5c56a0452ccff2e6195663c6b
imbo/imboclient-python,imbo/imboclient-python,imbo/imboclient-python
imboclient/header/authenticate.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nAdmin config for UserInfo app.\n\"\"\"\nfrom django.contrib import admin\nfrom common.utils import register_model_admins\n\nfrom .models import PledgeClass, UserInfo\n\n\nclass UserInfoAdmin(admin.ModelAdmin):\n \"\"\"\n Class...
python
edit
1
0
mit
89c97e1923ff481d82d7c6474874633a346ded1d
sigmapi-gammaiota/sigmapi-web,sigmapi-gammaiota/sigmapi-web,sigmapi-gammaiota/sigmapi-web,sigmapi-gammaiota/sigmapi-web
sigmapiweb/apps/UserInfo/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Create your views here.\nfrom django.shortcuts import render_to_response\nfrom studyplanner.courselist.models import Course\nfrom studyplanner.courselist.models import Faculty\nfrom studyplanner.courselist.models import Department\n\ndef ...
python
edit
1
1
mit
9684af3ecb0fd26deef87e2509a5de892a62e5f1
jpvanhal/cloudsizzle,jpvanhal/cloudsizzle
cloudsizzle/studyplanner/courselist/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Add application.properties to Application's S3 Bucket directory.\"\"\"\nimport logging\nimport argparse\nfrom .create_archaius import init_properties\n\nLOG = logging.getLogger(__name__)\n\n\ndef main():\n \"\"\"Create application....
python
edit
1
1
apache-2.0
19ee49c57fd17f14efffd946019734f1cb4ed18e
gogoair/foremast,gogoair/foremast
pipes/s3/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nfrom logging import *\n\n\nclass Logger26(logging.getLoggerClass()):\n\n def getChild(self, suffix):\n \"\"\"\n (copied from module \"logging\" for Python 3.4)\n\n Get a logger which is a descendant t...
python
edit
2
2
apache-2.0
fc67921095b85fc021482417415d935e8de55525
Charcoal-SE/ChatExchange,Charcoal-SE/ChatExchange,ByteCommander/ChatExchange6,ByteCommander/ChatExchange6
chatexchange6/_logging26backport.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport requests\n\n\nclass SmokeTest(unittest.TestCase):\n def test_maths(self):\n self.assertEquals(6, 2 + 4)\n\n def test_home_page_is_about_todo_lists(self):\n request = requests.get('http://localhost...
python
edit
1
1
mit
c7b7f3709fc958a2c694858c65a379cfcd54f72b
terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python,terryjbates/test-driven-development-with-python
myflaskapp/tests/test_unit.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom imagekit import ImageSpec, register\nfrom imagekit.processors import ResizeToFit\n\nfrom spectator.core import app_settings\n\n\nclass Thumbnail(ImageSpec):\n \"Base class\"\n format = \"JPEG\"\n options = {\"quality\": 60}\n\...
python
edit
1
0
mit
14462f42c8e187411e5875686ce8869bbd9b1fb7
philgyford/django-spectator,philgyford/django-spectator,philgyford/django-spectator
spectator/core/imagegenerators.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Hexagons\nHexID = 'HexID'\n\n# ProviderServiceAreas\nServiceClass = 'ServiceClass'\nProvName = 'ProvName'\n\n#Providers\nColloquial = 'Colloquial'\nCode = 'Code'\nURL = 'URL'\n\n#Utilities\nPROVIDER = 'PROVIDER'\nWEBLINK = 'WEBLINK'\n\n#R...
python
edit
1
0
mit
6ca85774de9532676b784646ecad3ef62b09ed5e
agrc/bb-econ,agrc/bb-econ,agrc/bb-econ
scripts/settings/fieldnames.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nThis class containts some frequently-used constants\n\"\"\"\n\n\nclass Environment:\n QA = \"qa\"\n STAGING = \"staging\"\n PRODUCTION = \"production\"\n MASTER = \"master\"\n LOCAL = \"local\"\n TEST = \"test\"\n\...
python
edit
1
0
mit
1a2527afdc5cb9c948ac74a9925d90709d6150cc
mdmintz/SeleniumBase,mdmintz/seleniumspot,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/seleniumspot,mdmintz/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase
seleniumbase/fixtures/constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom functools import wraps\nfrom typing import Callable\n\nfrom ._scope import Scope\n\n\nclass Injector(Callable):\n \"\"\"\n class decorator to inject dependencies into a callable decorated function\n \"\"\"\n\n def __ini...
python
edit
1
3
mit
020c13f3b39d495d50704317fe12ee4a4e735bb4
WatanukiRasadar/kylin
kylin/_injector.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport threading\nimport fresenius\nimport readline\nimport time\nimport sys\n\nprompt = '> '\n\nport = sys.argv[1]\nfresbase = fresenius.FreseniusComm(port = port)\n\nlogfile = open('seringues.log', 'w')\n\ndef printrx():\n while not lo...
python
edit
2
3
isc
7cad00f02c2f86cbeb23755f47f9bf1d45be2f8e
jaj42/infupy
logperfu.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this fi...
python
edit
1
1
apache-2.0
48be00323c57b6a61455d2591970e1380da8055c
sergiorua/libcloud,Cloud-Elasticity-Services/as-libcloud,Cloud-Elasticity-Services/as-libcloud,mbrukman/libcloud,iPlantCollaborativeOpenSource/libcloud,sfriesel/libcloud,ByteInternet/libcloud,curoverse/libcloud,cryptickp/libcloud,schaubl/libcloud,t-tran/libcloud,carletes/libcloud,MrBasset/libcloud,ninefold/libcloud,jim...
libcloud/dns/providers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .user.sequential_taskset import SequentialTaskSet\nfrom .user.task import task, TaskSet\nfrom .user.users import HttpUser, User\nfrom .user.wait_time import between, constant, constant_pacing\nfrom .event import Events\n\nevents = Even...
python
edit
11
0
mit
01551a1985064f319600732197afeb93cb64a377
mbeacom/locust,locustio/locust,mbeacom/locust,locustio/locust,locustio/locust,mbeacom/locust,mbeacom/locust,locustio/locust
locust/__init__.py
rejected_lint
Too many lint violations: 11
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\"\nBoilerplate Adventure\n\nAuthor: Ignacio Avas (<EMAIL>)\n\"\"\"\nimport codecs\nimport io\nimport sys\nimport unittest\nfrom story.adventures import AdventureVerificationError, BaseAdventure\nfrom story.translation import gettext ...
python
edit
3
2
mit
b66fc000a2d1328f557fb2c563f99b4748bf88b1
sophilabs/py101
py101/boilerplate/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport zmq\n\nfrom .databases import Databases\nfrom .worker import Worker\n\ncontext = zmq.Context()\n\nback_uri = 'inproc://workers'\n\nproxy = zmq.devices.ThreadDevice(\n device_type=zmq.QUEUE, in_type=zmq.DEALER, out_type=zmq.ROUTER\...
python
edit
1
0
mit
f3299b3108c8fab7015541e9d9b1ef220a488f87
onitu/onitu,onitu/onitu,onitu/onitu
onitu/escalator/server/__main__.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 __future__ import absolute_import\n\nimport os\nimport os.path\nfrom fabric.api import env, local, run\nfrom fabric.colors import blue\nimport fabric.contrib.project as project\n\n# Rem...
python
edit
2
4
mit
291da4afa9f359dc4cfda6a683afdcead39d557b
tankywoo/simiki,tankywoo/simiki,9p0le/simiki,9p0le/simiki,9p0le/simiki,zhaochunqi/simiki,tankywoo/simiki,zhaochunqi/simiki,zhaochunqi/simiki
simiki/conf_templates/fabfile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom keras.backend import cntk_backend as KCN\nfrom keras.backend.cntk_backend import logsumexp\nimport cntk as C\nimport numpy as np\n\n\ndef clip(x, min_value, max_value):\n \"\"\"Element-wise value clipping.\n\n If min_value > max_...
python
edit
3
3
mit
f557c20678de706d9e714e1d903b482b7e886e3b
keras-team/keras-contrib,keras-team/keras-contrib,farizrahman4u/keras-contrib,keras-team/keras-contrib
keras_contrib/backend/cntk_backend.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2012 OpenStack Foundation\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# ...
python
edit
1
1
apache-2.0
52da8be7ffe6ea2ba09acf3ce44b9a79758b115b
redhat-openstack/glance,redhat-openstack/glance
glance/version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport cherrypy\nfrom mako.lookup import TemplateLookup\n\n\nclass Tool(cherrypy.Tool):\n _lookups = {}\n\n def __init__(self):\n cherrypy.Tool.__init__(self, 'before_handler',\n self.callable,\n ...
python
edit
1
4
mit
b2ebc5878f7113756970ef52ae8e0db4cc6e5cf2
marbaloo/marbaloo_mako
marbaloo_mako/__init__.py
rejected_duplicate
Near-duplicate of sample 11665
true
[ { "role": "user", "content": "Write python code for the following: Use more consistent example for map\n\nThere is a `map` function in pythin, but for simple single expression\ncalculations, list comprehensions are much better suited.\n\nWhile map works well if there is a function, you can pass." }, { ...
python
new_file
1
0
mit
11d4059cf5c66e6de648c675bb049825901479cf
Evmorov/ruby-coffeescript,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,evmorov/lang-compare,Evmorov/ruby-coffeescript,evmorov/lang-compare,Evmorov/ruby-coffeescript,evmorov/lang-compare
code/array_map.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /bin/env python\nimport os\nfrom typing import Any, Dict, Generator, Iterable, Type\n\nfrom isort.profiles import profiles\n\nOUTPUT_FILE = os.path.abspath(\n os.path.join(os.path.dirname(os.path.abspath(__file__)), \"../docs/configur...
python
edit
5
2
mit
546ff329d4a792ddfb0576c78cf6d3e4f2321727
PyCQA/isort,PyCQA/isort
scripts/build_profile_docs.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport scrapy\n\n\nclass HackernewsScrapyItem(scrapy.Item):\n title = scrapy.Field()\n crawled_at = scrapy.Field()\n\n```\n\nApply this change: Add url field to HackernewsScrapyItem and remove \"crawled_at\"" ...
python
edit
1
0
mit
66c1bcdb242b30658d323832af04ee814432bdc9
mdsrosa/hackernews_scrapy
hackernews_scrapy/items.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom testtools.assertions import assert_that\nfrom testtools.matchers import Equals\n\nfrom seaworthy.utils import resource_name\n\n\ndef test_resource_name():\n # Dummy test so that pytest passes\n assert_that(resource_name('foo'), E...
python
edit
1
1
bsd-3-clause
75f0db346adfcf53f71ff69aa61c163a84116e0e
praekeltfoundation/seaworthy
seaworthy/tests/test_utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom google.appengine.ext.webapp import template\nimport webapp2\nimport os\n\nclass NotFound(webapp2.RequestHandler):\n def get(self):\n path = os.path.join(os.path.dirname(__file__), 'templates/notfound.html')\n self.resp...
python
edit
1
1
mit
481028f075bf46696b8adc5904663e97bc883c52
mback2k/appengine-oauth-profile,mback2k/appengine-oauth-profile
notfound.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Revert \"some random settings changes\"\n\nThis reverts commit 640eb2be2e32413718e93c1b8c77279ab5152170." }, { "role": "assistant", "content": "from .base import *\ntry:\n from .local import *\nexcept ImportError, exc:\n ex...
python
new_file
8
0
bsd-3-clause
21ab1204c1cb35a5d9b95124040e160f4f5edabd
muffinresearch/solitude,muffinresearch/solitude
solitude/settings/__init__.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport random\nimport unittest\n\nfrom .config import *\nfrom tweepy import API, OAuthHandler\n\n\nclass TweepyAuthTests(unittest.TestCase):\n\n def testoauth(self):\n auth = OAuthHandler(...
python
edit
6
1
mit
89bec483ce88fb1a310d4dd06220ace412148257
svven/tweepy,tweepy/tweepy
tests/test_auth.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom tornado import gen, ioloop\nfrom tornado.ioloop import IOLoop\nimport sys\nfrom pkg_resources import iter_entry_points\nimport json\n\n@gen.coroutine\ndef main(plugin):\n #print(\"plugin:\",plugin['receiver'])\n response = yield ...
python
edit
2
1
apache-2.0
5307e9d879a5432db5f54fd61ea0060b6526a1a6
olafura/sundaytasks-py
sundaytasks/example/test_plugin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2015 IBM Corp. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the “License”);\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https...
python
edit
1
1
apache-2.0
b77e2fa27e8e2cae133cc2bc0e2f130b999b83c5
javed120183/testingrepo,rvennam/starter-apps,javed120183/testingrepo,rvennam/starter-apps,rvennam/starter-apps,rvennam/starter-apps
pythonFlaskStarter/app/welcome.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import patterns\nfrom metashare.settings import DJANGO_BASE\n\nurlpatterns = patterns('metashare.accounts.views',\n (r'create/$',\n 'create'),\n (r'confirm/(?P<uuid>[0-9a-f]{32})/$',\n 'confirm'),\n (...
python
edit
1
0
bsd-3-clause
1db05fb528295456e2127be5ba5225d697655676
zeehio/META-SHARE,MiltosD/CEF-ELRC,zeehio/META-SHARE,MiltosD/CEFELRC,MiltosD/CEF-ELRC,zeehio/META-SHARE,MiltosD/CEFELRC,MiltosD/CEF-ELRC,MiltosD/CEF-ELRC,JuliBakagianni/CEF-ELRC,MiltosD/CEFELRC,MiltosD/CEFELRC,zeehio/META-SHARE,JuliBakagianni/META-SHARE,JuliBakagianni/CEF-ELRC,JuliBakagianni/META-SHARE,JuliBakagianni/C...
metashare/accounts/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nRicker wavelet generator for seismic simulation\n===============================================\n\n\"\"\"\n\nfrom __future__ import division, print_function, absolute_import\n```\n\nApply this change: Make ricker funciton available...
python
edit
3
0
mit
a136f7046b8df661713d3bcf6a7681894210def2
gatechzhu/ricker
ricker/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function\n\nimport json\nfrom unittest import TestCase\nimport httpretty\nfrom faker import Faker\n\nfrom polyaxon_schemas.user import UserConfig\n\nfrom polya...
python
edit
1
1
apache-2.0
f50ef6d331afa5a55467a104bc307edbdb2cd650
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
tests/test_auth.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework.exceptions import ValidationError\n\n\nclass ModelSerializerMixin(object):\n \"\"\"Provides generic model serializer classes to views.\"\"\"\n model_serializer_class = None\n\n def get_serializer_class(self):\n ...
python
edit
1
3
bsd-3-clause
d3d5c0c6d13b6cf84b8a7e12e40e9740ca960529
kuzmich/django-spillway,barseghyanartur/django-spillway,bkg/django-spillway
spillway/mixins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Minify Javascript using `UglifyJS <https://github.com/mishoo/UglifyJS/>`_.\n\nUglifyJS is an external tool written for NodeJS; this filter assumes that\nthe ``uglifyjs`` executable is in the path. Otherwise, you may define\na ``UGLIFY...
python
edit
1
3
bsd-2-clause
29978337158d06c6c761294fd1e3c5c54de847ae
scorphus/webassets,heynemann/webassets,glorpen/webassets,john2x/webassets,JDeuce/webassets,wijerasa/webassets,glorpen/webassets,0x1997/webassets,aconrad/webassets,JDeuce/webassets,aconrad/webassets,john2x/webassets,heynemann/webassets,florianjacob/webassets,wijerasa/webassets,glorpen/webassets,aconrad/webassets,heynema...
src/webassets/filter/uglifyjs.py
rejected_duplicate
Near-duplicate of sample 14796
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef test_java_exists(Command):\n version_result = Command(\"java -version\")\n\n assert version_result.rc == 0\n\n```\n\nApply this change: Add test to make sure SSL certs are installed." }, { "role": "assistant", "content...
python
edit
1
1
apache-2.0
d604128015826444be4585c7204030840e9efc88
azavea/ansible-java,flibbertigibbet/ansible-java
tests/test_java.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='discord-curious',\n version='0.2.0.post1',\n packages=['curious', 'curious.core', 'curious.http', 'curious.commands', 'curious.dataclasses', 'curious.voice',\n 'curious.ex...
python
edit
1
0
mit
00a05d86e83f95ecab589313459212a6d6ec4355
SunDwarf/curious
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport pprint\nimport requests\n\ndef sample_valid_reddit_response():\n\tr = requests.get('http://www.reddit.com/r/cscareerquestions/top.json')\n\tresponse_json = r.json()\n\n\tif 'data' not in response_json:\n\t\tprint(\"Tryin...
python
edit
3
2
mit
722228a023aca35660bc493b812727f6c665b3cb
RossCarriga/repost-data
posts.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nInterface to Redis-storage.\n\n@author: Seva Zhidkov\n@contact: <EMAIL>\n@license: The MIT license\n\nCopyright (C) 2015\n\"\"\"\n\n\nclass Storage:\n pass\n```\n\nApply this change: Create init of Stor...
python
edit
1
2
mit
7a5cb8ba82b79372226f9ac4ba3a71e4209cdd72
lises/sheldon
sheldon/storage.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# This tests that the developer doesn't pass tainted user data into the mail.send.post() method in the SendGrid library.\nimport sendgrid\nimport os\n\n\nsg = sendgrid.SendGridAPIClient(os.environ.get('SENDGRID_API_KEY'))\n\ndata = {\n \...
python
edit
3
1
mit
f4a73fcc591d877003e9963f087d2473568bfa9d
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
python/ql/test/experimental/query-tests/Security/CWE-079/sendgrid_via_mail_send_post_request_body_bad.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 distutils.core import setup\nfrom distutils.core import setup\n\nsetup(\n name='django-banking',\n version='0.1-dev',\n description='Banking (SWIFT) classes for Python/Django',...
python
edit
3
0
bsd-3-clause
6fed8b08e280b88a491ca6c04e0a2c429e7f493f
headcr4sh/django-banking
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n'''\nThis file is part of ConfigShell.\nCopyright (c) 2011-2013 by Datera, Inc\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may\nnot use this file except in compliance with the License. Yo...
python
edit
1
0
apache-2.0
bace6c5562b8c085858824168ba3ed4bf73fe3ae
agrover/configshell-fb,cvubrugier/configshell-fb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nnubo\n----\nAn easy way to deploy Linux VMs on different cloud providers.\n\nLinks\n`````\n* `GitHub Repository <https://github.com/ema/nubo>`_\n* `Development Version\n <http://github.com/ema/nubo/zipball/master#egg=nubo-dev>`_\n\...
python
edit
2
0
bsd-3-clause
7375a9c8adbc14932af2638cf1067c379457da48
ema/nubo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\nfrom setuptools import setup, Extension\n\nimport os\nfrom Cython.Build import cythonize\n\nif (os.name == \"nt\"):\n compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE']\...
python
edit
1
0
bsd-3-clause
d237dd2c68ed083d65d69b31d0a1905262a9edca
sot/Chandra.Time,sot/Chandra.Time,sot/Chandra.Time
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2.7\nfrom __future__ import print_function\nfrom distutils.core import setup\nimport os\n\nversion = '1.0.0b'\n\n# Append TeamCity build number if it gives us one.\nif 'TC_BUILD_NUMBER' in os.environ and version.endswit...
python
edit
1
0
apache-2.0
78a596ba34a3a8a7435dd6ca997e6b6cb79fbdd6
GeoscienceAustralia/fetch,GeoscienceAustralia/fetch
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom setuptools import setup, find_packages\nfrom tethys_apps.app_installation import custom_develop_command, custom_install_command\n\n### Apps Definition ###\napp_package = 'canned_gssha'\nrelease_package = 'tethysa...
python
edit
3
0
bsd-2-clause
ee4bda5802a601485027a3ea91607dc5077ca73d
CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"marshmallow-pynamodb\",\n version=\"0.7.1\",\n packages=find_packages(exclude=('*test*',)),\n package_dir={'marshmallow-pynamodb': 'marshmallow_pynamodb'},\n desc...
python
edit
1
0
mit
1d0e6420e0e37921381c30b0247c0f5f27c72a1f
mathewmarcus/marshmallow-pynamodb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\nsetup(\n name=\"django-nopassword\",\n version='1.1.0',\n url='http://github.com/relekang/django-nopassword',\n ...
python
edit
1
0
mit
0ae34253829e0d51049edf5f7d270b404bc22354
relekang/django-nopassword,smajda/django-nopassword,relekang/django-nopassword,mjumbewu/django-nopassword,smajda/django-nopassword,mjumbewu/django-nopassword
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom os import path\n\nwith open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f:\n readme = f.read()\n\nsetup(\n name='ghstats',\n version='1.1.1',\n packages=['ghstats'],\n ...
python
edit
1
0
mit
766e33416df08b6cdcdb236a335afbc6bd7acc06
kefir500/ghstats
setup.py
rejected_duplicate
Near-duplicate of sample 5731
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\nimport os.path\n\nimport versioneer\nversioneer.versionfile_source = \"circuit/_version.py\"\nversioneer.versionfile_build = \"circuit/_version.py\"\nversioneer.tag_prefix = \"\"\nv...
python
edit
1
0
apache-2.0
8f86b354b3ceff46363e3121bb1f553a8ff8b301
edgeware/python-circuit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# Copyright © 2013 Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see LICENSE.txt for details)\n\n__version__ = '0.2.dev0'\n\n# ====================================================...
python
edit
1
0
mit
3766a8638094fc7bbf8bfb529312a0741049376b
jitseniesen/spyder-memory-profiler,spyder-ide/spyder.memory_profiler,jitseniesen/spyder-memory-profiler
spyder_memory_profiler/__init__.py
rejected_duplicate
Near-duplicate of sample 11676
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\nfrom setuptools import setup\n\n__version__,= re.findall('__version__ = \"(.*)\"', open('mappyfile/__init__.py').read())\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\nsetup(name='mappyfile',\n ...
python
edit
1
1
mit
c529b8d4979f5fae6984d2bcd6d2aa40d181e097
geographika/mappyfile,geographika/mappyfile
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom setuptools import setup\n\nsetup(name=\"catsnap\",\n version=\"6.0.0\",\n description=\"catalog and store images\",\n author=\"Erin Call\",\n author_email=\"<EMAIL>\",\n url=\"https://githu...
python
edit
1
0
mit
d978f9c54d3509a5fd8ef3b287d2c3dfa7683d77
ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap
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\nimport os\nfrom distutils.core import setup\n\nsetup(\n name='regulations-parser',\n url='https://github.com/cfpb/regulations-parser',\n author='CFPB',\n author_email='<EMAIL>',\...
python
edit
1
0
cc0-1.0
e05b6484938f65338882a86c9ce2d71df6e5272b
grapesmoker/regulations-parser
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\n\nwith open('README.rst') as readme_f:\n README = readme_f.read()\n\nwith open('tests/requirements.txt') as test_requirements_f:\n TEST_REQUIREMENTS = test_requirements_f.readli...
python
edit
1
0
isc
0e801cf96a7dee047f935b32c931eabe135035ea
garg10may/yturl
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name=\"zutil\",\n version='0.1.5',\n description=\"Utilities used for generating zCFD control dictionaries\",\n author=\"Zenotech\",\n author_email=\"<EMAIL>\",\n url=\"http...
python
edit
1
0
mit
137d3c0394309dfb22a407eda5b80bc312482c1d
zCFD/zutil
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\ndescription = \"\"\"\nA python module for calculating riichi mahjong hands: yaku, han and fu.\n\nYou can find usage examples here https://github.com/MahjongRepository/mahjong\n\"\"\"\n\nsetup(\n name='...
python
edit
1
0
mit
83f62bd5993ba253183f120567a2a42108c4b7b4
MahjongRepository/mahjong
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\nfrom catplot import __version__ as version\n\nmaintainer = 'Shao-Zheng-Jiang'\nmaintainer_email = '<EMAIL>'\nauthor = maintainer\nauthor_email = maintainer_email\ndescription = __do...
python
edit
1
0
mit
9af9144f9026e84ce04f9cdd5ce738b015247c12
PytLab/catplot
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(use_scm_version=True)\n\n```\n\nApply this change: Add package name for github usage report" }, { "role": "assistant", "content": "#!/usr/bin/env python\nfrom setuptoo...
python
edit
1
0
mit
976167045131263dc52ff57315f08783a318a9df
codingjoe/django-s3file,codingjoe/django-s3file,codingjoe/django-s3file
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# This file specifies the Eve configuration.\nimport os\n\n# The run environment default is production.\n# Modify this by setting the NODE_ENV environment variable.\nenv = os.getenv('NODE_ENV') or 'production'\n# The MongoDB database.\nif e...
python
edit
1
0
bsd-2-clause
cc92b1770acdc5a34eb32c596c0b2ece6bf32b0f
ohsu-qin/qirest,ohsu-qin/qiprofile-rest
qiprofile_rest/server/settings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README')).read()\nCHANGES = open(os.path.join(here, 'CHANGES')).read()\n\nrequires = [\n ...
python
edit
1
0
isc
4bf26b6d976171b5a388134ad9716af639f15a3b
GuardedRisk/Google-Apps-Auditing
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='sheetsu',\n version='0.0.4',\n description='Sheetsu Python client',\n url='http://github.com/andreffs18/sheetsu-python',\n author='Andre Silva',\n author_email=...
python
edit
1
0
mit
70189c54cfbe07b819fcd23fbe213be9de5b4db2
andreffs18/sheetsu-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2.7\n# -*- coding: utf-8 -*-\n\n#\n# Copyright (c) 2011-2015 Genestack Limited\n# All Rights Reserved\n# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF GENESTACK LIMITED\n# The copyright notice above does not evidence a...
python
edit
2
0
mit
05bfc141b279dc8f30089e8b72502f9042a2ff3b
genestack/python-client
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\ndef get_package_data():\n return {\n _ASTROPY_PACKAGE_NAME_ + '.tests': ['data/*.fits', 'data/*.npz']\n }\n\n```\n\nApply this change: Add coveragerc to package data" }, { "role": "assistant", "content": "\ndef ge...
python
edit
2
1
mit
8cab1d360218f6d8075bad08fd38ef90c75e5549
e-koch/TurbuStat,Astroua/TurbuStat
turbustat/tests/setup_package.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Implement a very basic plugin to add an option" }, { "role": "assistant", "content": "# -*- coding: utf-8 -*-\n\nimport pytest\n\n\ndef pytest_addoption(parser):\n group = parser.getgroup('{{cookiecutter.plugin_name}}')\n g...
python
new_file
3
1
mit
9371b962e43d6876ff8f902283d3fb1963c076d3
luzfcb/cookiecutter-pytest-plugin,s0undt3ch/cookiecutter-pytest-plugin,pytest-dev/cookiecutter-pytest-plugin
pytest-{{cookiecutter.plugin_name}}/pytest_{{cookiecutter.plugin_name}}.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport itertools\n\nwith open('products.json') as data_file:\n data = json.load(data_file)\n products = data['products']\n\n\nproducts_temp = []\n\nfor index, item in enumerate(products):\n products_temp.append(item)\n...
python
edit
3
0
mit
6d1626327f3577a86cdd3c54e5732b65e59a3402
zhang96/JSONWithPython
test2.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport sys\n\ndef find_literals(literals, node):\n '''Recursively find STRING literals in the grammar definition'''\n\n if type(node) is dict:\n if 'type' in node and node['type'] == 'STRING' and 'value' in node:\n li...
python
edit
2
8
mit
f019cb2f0e3604b264aeb55a3a01641f998d27d7
tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter,tree-sitter/tree-sitter
test/fuzz/gen-dict.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy\nimport sys\n\nfrom typing import (Iterator,\n Tuple,\n Mapping,\n Union,\n Iterable,\n List,\n Any)\n\nif sys.ve...
python
edit
1
1
mit
6dd5a006892b1ba51c7f4f338693bf780293b897
dedupeio/dedupe,dedupeio/dedupe
dedupe/_typing.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.contrib import admin\nfrom django import forms\n\nfrom opps.core.models import Post, PostImage\nfrom opps.core.models import Image\n\nfrom redactor.widgets import RedactorEditor\n\n\n\nclass PostImageInl...
python
edit
4
2
mit
476338ba2edce4ff78f9451ae9cca6a2c91f787b
YACOWS/opps,jeanmask/opps,opps/opps,jeanmask/opps,opps/opps,opps/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,williamroot/opps
opps/core/admin/article.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport tabula\n\ntry:\n FileNotFoundError\n from unittest.mock import patch, MagicMock\n from urllib.request import Request\nexcept NameError:\n FileNotFoundError = IOError\n from mock import patch, MagicMock...
python
edit
3
1
mit
6d942a84da5f9a07ea1fac96ec0667ded623be60
chezou/tabula-py
tests/test_util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Pixel\n\nA pixel data structure with it's own uid that makes a Pixelmap.\nLast updated: March 7, 2017\n\"\"\"\n\nfrom itertools import count\n\n\nclass Pixel:\n new_id = count(1)\n\n def __init__(self):\n \"\"\"Pixel cons...
python
edit
1
1
mit
c9ed6fe84b7f55ba2e9dc75d9ddf8cb0e7f9eb8c
yebra06/pixelmap
pixelmap/pixel.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport sys\nimport os\n\nsys.path.append('../nsmaps')\n\nimport nsmaps\n\n\nDATA_DIR = './website/nsmaps-data'\n\n\ndef test():\n stations = nsmaps.station.Stations(DATA_DIR)\n\n departure_station_name = 'Utr...
python
edit
3
3
mit
117c3e6c1f301c4e5c07e22b3c76f330b18ea36e
bartromgens/nsmaps,bartromgens/nsmaps,bartromgens/nsmaps
bin/create_contour_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nProxy Server \"Phone Book\".\n\nSimplify running browser tests through a proxy server\nby adding your frequently-used proxies here.\n\nNow you can do something like this on the command line:\n\"pytest SOME_TEST.py --proxy=proxy1\"\n...
python
edit
1
0
mit
a28c3e9614cc8ab82ed0d1796d68a5b03906f801
mdmintz/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase
seleniumbase/config/proxy_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\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://www.apache.org/licenses/LICENSE...
python
edit
1
1
apache-2.0
8a7b6be29b3a839ba8e5c2cb33322d90d51d5fc4
openstack/smaug,openstack/smaug
karbor/tests/unit/conf_fixture.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nReturn data to a Cassandra ColumFamily\n\nHere's an example Keyspace/ColumnFamily setup that works with this\nreturner::\n\n create keyspace salt;\n use salt;\n create column family returns\n with key_validation_class='UT...
python
edit
1
3
apache-2.0
46c7798003ce2eef60440860cc305372bd73a57d
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
salt/returners/cassandra_return.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Runtime for managing the interactive component of the game. Allows user to play the game\n# through a text based interface.\n\nfrom game import DiscState\n\nclass TextualRuntime:\n\n def __init__(self, game):\n self.game = game\n s...
python
edit
3
6
mit
8c97ffed1531315dd50639c40b0bccad0fc1ef2d
misterwilliam/connect-four
textual_runtime.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom __future__ import absolute_import\nfrom fig.packages.docker import Client\nfrom fig.service import Service\nfrom fig.cli.utils import docker_url\nfrom . import unittest\n\n\nclass DockerClientTe...
python
edit
2
7
apache-2.0
5d4210ceb34773dffce7d0bb27f38115bb8e1a9f
mosquito/docker-compose,thaJeztah/docker.github.io,thaJeztah/docker.github.io,bsmr-docker/compose,gdevillele/docker.github.io,BSWANG/denverdino.github.io,jiekechoo/compose,jgrowl/compose,docker/docker.github.io,brunocascio/compose,ZJaffee/compose,gdevillele/docker.github.io,LuisBosquez/docker.github.io,kojiromike/compo...
tests/testcases.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom flask import Response as SimpleResponse\n\nfrom .status_codes import HTTP_200_OK\nfrom .serializers import BaseSerializer\n\n\nclass Response(SimpleResponse):\n\n def __init__(self, data, headers=None, status_code=HTT...
python
edit
1
2
mit
44faefd4bd0bfa3dede8686903759a033c1072d6
marcosschroh/Flask-Simple-Serializer
flask_simple_serializer/response.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom itertools import combinations\n\nimport numpy as np\n\nfrom ..tape9utils import origen_to_name\n\nDATA_DIR = os.path.abspath(os.path.join(__file__, os.path.pardir,\n os.path.pardir, os.path.pardir, 'docker', 'data'))\n\nd...
python
edit
3
5
bsd-3-clause
3f17f454172d15e9279e00ccc2acfb931bf685f1
ergs/transmutagen,ergs/transmutagen
transmutagen/tests/test_origen.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#**********************************************************************************************#\n#********* Return the top most group name of an object ****************************************#\n#********* by Djordje Spasic ***************...
python
edit
3
5
unlicense
e2541a9de3b4239f8f3cb7cc06dd9e7f48dd18a9
stgeorges/pythonscripts
objectTopGroup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"An overview window showing thumbnails of the image set.\n\"\"\"\n\nfrom __future__ import division\nimport math\nfrom PySide import QtCore, QtGui\n\n\nclass ThumbnailWidget(QtGui.QLabel):\n\n def __init__(self, image, scale):\n ...
python
edit
3
2
apache-2.0
0e2635c01205c3359c3eabf7369453c3886c304a
RKrahl/photo-tools
photo/qt/overviewWindow.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport base64\n\ntry:\n import json\nexcept ImportError:\n try:\n import simplejson as json\n except ImportError:\n import django.utils.simplejson as json\n\nimport boto.sqs.message\n\nfrom django.contrib.contenttypes...
python
edit
4
4
bsd-3-clause
3a8ff4ce62c2a0f3e7ebc61284894fc69ec36b79
mpasternacki/django-sqs
django_sqs/message.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport audfprint\nimport cProfile\nimport pstats\n\nargv = [\"audfprint\", \"match\", \"-d\", \"tmp.fpdb\", \"--density\", \"200\", \"query.mp3\", \"query2.mp3\"]\n\ncProfile.run('audfprint.main(argv)', 'fpmstats')\n\np = pstats.Stats('fpms...
python
edit
3
0
mit
905690beacad9731bb113bdbeedf0ed2c7df3160
dpwe/audfprint
profile_audfprint_match.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport glob\nimport logging\nimport os\nimport sys\nimport unittest\n\nfrom trace import fullmodname\ntry:\n from tests.utils import cleanup\nexcept:\n def cleanup():\n pass\n\nsys.path.insert(0, os.getcw...
python
edit
4
3
apache-2.0
50dce60963c6817eb0dded8c4fc23047e7b54d6e
google/oauth2client,clancychilds/oauth2client,google/oauth2client,clancychilds/oauth2client,googleapis/google-api-python-client,googleapis/oauth2client,googleapis/oauth2client,jonparrott/oauth2client,jonparrott/oauth2client,googleapis/google-api-python-client
runtests.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport os\n\nfrom elasticsearch import Elasticsearch\nfrom elasticsearch_dsl import Index\nfrom model import APIDoc\n\n\ndef exists():\n return Index(APIDoc.Index.name).exists()\n\n\ndef setup():\n \"\"\"\n Setup Elast...
python
edit
1
2
mit
e7998648c42d5bcccec7239d13521a5b77a738af
Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI
src/utils/indices.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2012-2013, Mark Peek <<EMAIL>>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject, AWSProperty\ntry:\n from awacs.aws import Policy\n policytypes = (dict, Policy)\nexcept Import...
python
edit
10
0
bsd-2-clause
4c11a3c8f0cd82ebee3269e76450562aa8d2b8c3
johnctitus/troposphere,ikben/troposphere,cloudtools/troposphere,johnctitus/troposphere,ikben/troposphere,cloudtools/troposphere,pas256/troposphere,pas256/troposphere
troposphere/sns.py
rejected_lint
Too many lint violations: 10
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport rcsensor\n\nprint(rcsensor.get_count(200, 10, 22))\n\n```\n\nApply this change: Create a RC sensor class object" }, { "role": "assistant", "content": "#!/usr/bin/env python\n\nfrom common.rcsensor...
python
edit
1
2
mit
3c7e6e1f02b9d73497cb49359d542d3fa4c9a85f
mecworks/garden_pi,mecworks/garden_pi,mecworks/garden_pi,mecworks/garden_pi
utils/rc_sensor.py
accepted
null
true