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\nfrom tailor.swift.swiftlistener import SwiftListener\nfrom tailor.utils.charformat import is_upper_camel_case\n\n\nclass MainListener(SwiftListener):\n\n def enterClassName(self, ctx):\n self.__verify_upper_camel_case(ctx, 'Class ...
python
edit
1
2
mit
ba5260f5935de1cb1a068f0350cfe8d962e15805
sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor,sleekbyte/tailor
tailor/listeners/mainlistener.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport subprocess\nimport sys\nimport uuid\n\nif __name__ == '__main__':\n dir_name = sys.argv[1]\n\n for file_name in os.listdir(dir_name):\n rand_name = uuid.uuid4().hex\n src = os.p...
python
edit
1
0
mit
cb1142d5ac8d144e5ab0fc95ceed156c855b6bd2
cataliniacob/misc,cataliniacob/misc
randomize-music.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\nimport argparse\nimport sys\nfrom opencc import OpenCC\n\n\ndef main():\n parser = argparse.ArgumentParser(\n formatter_class=argparse.ArgumentDefaultsHelpFormatter)\n parser.add_argumen...
python
edit
1
4
apache-2.0
5cca245f84a87f503c8e16577b7dba635d689a26
yichen0831/opencc-python
opencc/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ed2d.physics import rectangle\nfrom ed2d.physics import quadtree\n\nclass PhysEngine(object):\n\n def __init__(self):\n # I would love to have width and height as global constants\n self.quadTree = quadtree.QuadTree(0,...
python
edit
1
3
bsd-2-clause
3966d9e77455f36a159d960242849e59ac323c0a
explosiveduck/ed2d,explosiveduck/ed2d
ed2d/physics/physengine.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses th...
python
edit
8
1
apache-2.0
de841f77f6c3eaf60e563fd5cac0d9cb73dac240
failys/CAIRIS,failys/CAIRIS,failys/CAIRIS
cairis/core/PasswordManager.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\nfrom bndl.compute.run import create_ctx\nfrom bndl.util.conf import Config\n\n\nclass ComputeTest(unittest.TestCase):\n worker_count = 3\n\n @classmethod\n def setUpClass(cls):\n config = Config()\n ...
python
edit
1
1
apache-2.0
05ec1e93e04b829b8a71f6837409de1b5c8ead5d
bndl/bndl,bndl/bndl
bndl/compute/tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# VSYNC GPIO output example.\n#\n# This example shows how to toggle a pin on VSYNC interrupt.\n\nimport sensor, image, time\nfrom pyb import Pin\n\nsensor.reset() # Reset and initialize the sensor.\nsensor.set_pixformat...
python
edit
3
0
mit
fddefb670bb3df3472c43d0298fecefcf1b02234
kwagyeman/openmv,kwagyeman/openmv,openmv/openmv,openmv/openmv,openmv/openmv,kwagyeman/openmv,kwagyeman/openmv,openmv/openmv
scripts/examples/Arduino/Portenta-H7/02-Board-Control/vsync_gpio_output.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nGet the version string from versioneer and print it to stdout\n\"\"\"\nimport versioneer\n\nversioneer.VCS = 'git'\nversioneer.tag_prefix = 'v'\nversioneer.versionfile_source = 'version.py' # This line is useless\nversioneer.parentd...
python
edit
1
0
bsd-3-clause
d901683430c8861b88b577965201bb7acf17e7f8
leouieda/tesseroids,leouieda/tesseroids,leouieda/tesseroids
print_version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pi_gpio import socketio\nfrom config.pins import PinManager\n\n\nclass PinEventManager(PinManager):\n\n def __init__(self):\n super(PinEventManager, self).__init__()\n self.socketio = socketio\n self.edge = {\n ...
python
edit
1
3
mit
7fad37d5a1121fe87db8946645043cd31a78b093
projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server
pi_gpio/events.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom straight.plugin import load as plugin_load\n\n\nclass Format(object):\n @classmethod\n def name(cls):\n \"\"\"Get the format's name.\n\n An format's canonical name is the lowercase name of the class\n impleme...
python
edit
1
3
bsd-3-clause
9fededb99a02ee38cba9b02e511b1db071f37fc4
alanbriolat/PygOut
pygout/format.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pymogilefs.response import Response\nfrom pymogilefs.request import Request\nimport socket\n\n\nBUFSIZE = 4096\nTIMEOUT = 10\n\n\nclass Connection:\n def __init__(self, host, port):\n self._host = host\n self._port = i...
python
edit
1
4
mit
8034684b9c1c798b9f825111df53415a1a3ff9eb
bwind/pymogilefs,bwind/pymogilefs
pymogilefs/connection.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\n\nclass ExampleTest(unittest.TestCase):\n def test_xample(self):\n self.assertEqual(1, 1)\n\nif __name__ == '__main__':\n unittest.main()\n\n```\n\nApply this change: Fix typo in method name" }, { "ro...
python
edit
1
1
mit
6ca530abba63376dab254d649ab568895917bfbd
pawel-lewtak/coding-dojo-template-python
tests/example.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom rest_framework import serializers\n\nclass Choice(models.Model):\n text = models.CharField(max_length=255)\n version = models.CharField(max_length=4)\n created_on = models.DateTimeField(auto_now_a...
python
edit
1
0
mit
5ae19a951081603d0132e786de041d670203327b
holycattle/pysqueak-api,holycattle/pysqueak-api
api/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom oauthlib.oauth2.draft25 import utils\nimport foauth.providers\n\n\ndef token_uri(service, token, r):\n params = [((u'access_token', token)), ((u'api_key', service.client_id))]\n r.url = utils.add_params_to_uri(r.url, params)\n ...
python
edit
1
1
bsd-3-clause
810e3516e5f466a145d649edbb00fc3ade1a7a68
foauth/foauth.org,foauth/foauth.org,foauth/oauth-proxy,foauth/foauth.org
services/disqus.py
rejected_duplicate
Near-duplicate of sample 4980
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom dateutil import relativedelta\n\n\ndef run(project_id, repo_path, cursor, **options):\n cursor.execute(\n '''\n SELECT COUNT(c.id), MIN(c.created_at), MAX(c.created_at)\n FROM commits c\n ...
python
edit
1
2
apache-2.0
8d9c973ed4091e8f0a08c4e5a62f8fe5d35f005a
RepoReapers/reaper,RepoReapers/reaper,RepoReapers/reaper,RepoReapers/reaper
attributes/history/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom hypothesis import given\nfrom hypothesis.strategies import integers\n\nfrom numba import jit\nimport numpy as np\n\n\n@jit(nopython=True, parallel=True)\ndef get(n):\n return np.ones((n,1), dtype=np.float64)\n\n\n@given(integers(m...
python
edit
1
1
mit
7a9d3373fb2e11cad694aa1c65901d6cd57beb7c
fastats/fastats,dwillmer/fastats
tests/test_numba_parallel_issues.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\napp = Flask(__name__)\n\n@app.route(\"/\")\ndef main():\n return \"Welcome!\"\n\nif __name__ == \"__main__\":\n app.run()\n\n```\n\nApply this change: Add template for parse_reflog function" }, { "role...
python
edit
1
1
bsd-3-clause
cc392b38791e465acb579a7e2f4f9b2f32c70c42
kdheepak89/c3.py,kdheepak89/c3.py
app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .models import Employee\nfrom rest_framework.test import APITestCase\n\n\nclass EmployeeTestCase(APITestCase):\n def setUp(self):\n Employee.objects.create_superuser('user1', '<EMAIL>', 'user1password')\n Employee.obje...
python
edit
1
1
apache-2.0
9da4bbe2c5d8dbfe6436ff4fe5e1387178009897
belatrix/BackendAllStars
employees/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, render_template, request, jsonify\nimport os\n\napp = Flask(__name__)\napp.config.from_object('config.Debug')\n\n@app.route('/upload', methods=['GET', 'POST'])\ndef upload():\n\n if request.method == 'GET':\n\n ...
python
edit
1
5
mit
4f9ea66c9e35dd1480986aff75997cd42c5e10f3
citruspi/Alexandria,citruspi/Alexandria
app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport exifread\nimport os\n\n\nclass TweetS3Images(object):\n def __init__(self, twitter, s3_client):\n self._twitter = twitter\n self._s3_client = s3_client\n self._file = None\n\n def send_image(self, bucket, i...
python
edit
3
2
mit
333c5131f8e85bb5b545e18f3642b3c94148708d
onema/lambda-tweet
tweet_s3_images.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom twisted.trial import unittest\n\nimport x256 \n\n\nclass Testx256(unittest.TestCase):\n \"\"\"\n Test class for x256 module.\n \"\"\"\n\n def setUp(self):\n self.rgb = [220, 40, 150]\n self.xcolor = 162\n ...
python
edit
1
1
mit
5ab1df0c4a130b4cd32b01805f5749d29795a393
magarcia/python-x256
x256/test_x256.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\nimport pytest\n\n\nsetup_py = \"\"\"\\\nfrom setuptools import setup\n\nsetup(\n name=\"test_logging\",\n version=\"0.0\"\n)\n\"\"\"\n\n\n@pytest.mark.parametrize(\n \"flag, expected_level\", [(\"--dry-run\", \"IN...
python
edit
3
2
mit
7049c7391fff858c21402c80cd49e6b729edebf7
pypa/setuptools,pypa/setuptools,pypa/setuptools
setuptools/tests/test_logging.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom currencies.models import Currency\n\n\ndef currencies(request):\n currencies = Currency.objects.all()\n\n if not request.session.get('currency'):\n request.session['currency'] = Currency.objects.get(is_default__exact=True)...
python
edit
1
2
bsd-3-clause
a8de8ebdfb31fd6fee78cfcdd4ef921ed54bf6f1
bashu/django-simple-currencies,pathakamit88/django-currencies,panosl/django-currencies,pathakamit88/django-currencies,mysociety/django-currencies,bashu/django-simple-currencies,ydaniv/django-currencies,racitup/django-currencies,marcosalcazar/django-currencies,panosl/django-currencies,jmp0xf/django-currencies,ydaniv/dja...
currencies/context_processors.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom collections import defaultdict\nfrom .utils import get_value_from_accessor\n\nclass RoleBehaviour(object):\n ids = []\n object_accessors = {}\n\n def __init__(self, user, request):\n self.user = user\n self.reque...
python
edit
1
5
bsd-3-clause
804471657da0b97c46ce2d3d66948a70ca401b65
Scholr/scholr-roles
scholrroles/behaviour.py
rejected_duplicate
Near-duplicate of sample 3474
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright Least Authority Enterprises.\n# See LICENSE for details.\n\n\"\"\"\nHelpers for Python 2/3 compatibility.\n\"\"\"\n\nfrom json import dumps\n\nfrom twisted.python.compat import unicode\n\ndef dumps_bytes(obj):\n \"\"\"\n S...
python
edit
1
3
mit
1b95ca396b79cab73849c86c6e8cb14f21eeb9a5
LeastAuthority/txkube
src/txkube/_compat.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport shutil\nimport subprocess\nimport unittest\n\nfrom stash import Stash\n\nclass StashTestCase(unittest.TestCase):\n \"\"\"Base class for test cases that test stash functionality.\n\n This base class makes sure that al...
python
edit
1
3
bsd-3-clause
342cbd0f3ed0c6c03ba6c12614f5b991773ff751
ton/stash,ton/stash
stash_test_case.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom roomcontrol.music import music_service\nfrom roomcontrol.light import light_service\nfrom roomcontrol.alarm import alarm_service\n\napp = Flask(__name__)\napp.register_blueprint(music_service, url_prefix='/musi...
python
edit
1
1
mit
5db36085a1690d96a0f1b675b2926190b94d6abf
miguelfrde/roomcontrol_backend
roomcontrol.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 sum_list(num_ls):\n \"\"\"Sum number list by recursion.\"\"\"\n if len(num_ls) == 1:\n \treturn num_ls[0]\n ...
python
edit
1
2
bsd-2-clause
d28c968088934f2aace7722ead000e8be56813ec
bowen0701/algorithms_data_structures
alg_sum_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Jinja environment filters for Pynuts.\"\"\"\n\nfrom flask import escape\nfrom flask.ext.wtf import QuerySelectField, QuerySelectMultipleField\n\n\ndef data(field):\n \"\"\"Return data according to a specific field.\"\"\"\n if is...
python
edit
1
8
bsd-3-clause
ec6c47796697ca26c12e2ca8269812442473dcd5
Kozea/Pynuts,Kozea/Pynuts,Kozea/Pynuts
pynuts/filters.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nimport re\nimport sys\n\nfrom ruuvitag_sensor.url_decoder import UrlDecoder\n\n_LOGGER = logging.getLogger(__name__)\n\nmacRegex = '[0-9a-f]{2}([-:])[0-9a-f]{2}(\\\\1[0-9a-f]{2}){4}$'\nruuviStart = 'ruuvi_'\n\nif sys.platfor...
python
edit
1
3
mit
9b0dea78611dbaba468345d09613764cd81e6fd0
ttu/ruuvitag-sensor,ttu/ruuvitag-sensor
ruuvitag_sensor/ruuvi.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013 Mirantis Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.ap...
python
edit
1
1
apache-2.0
855ace33e02f3ea40b6fe1c2a8de25daa38726e0
idegtiarov/gnocchi-rep,idegtiarov/gnocchi-rep,leandroreox/gnocchi,leandroreox/gnocchi,idegtiarov/gnocchi-rep,gnocchixyz/gnocchi,sileht/gnocchi,gnocchixyz/gnocchi,sileht/gnocchi
gnocchi/service.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n.. moduleauthor:: Adam Gagorik <<EMAIL>>\n\"\"\"\nimport pydarkstar.darkobject\nimport pydarkstar.database\n\nclass AuctionBase(pydarkstar.darkobject.DarkObject):\n \"\"\"\n Base class for Auction House objects.\n\n :param ...
python
edit
1
1
mit
91ee7fe40d345b71a39d4c07ecbdf23eb144f902
AdamGagorik/pydarkstar,LegionXI/pydarkstar
pydarkstar/auction/auctionbase.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom os import getenv\nimport sqlite3\nimport win32crypt\n\nappdata = getenv(\"APPDATA\") \nconnection = sqlite3.connect(appdata + \"\\..\\Local\\Google\\Chrome\\User Data\\Default\\Login Data\")\ncursor = connection.cursor()\ncursor.execut...
python
edit
7
0
mit
fee5cea7bf734599e374c6725fa01f3cebedd657
hassaanaliw/chromepass
chromepass.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nimport json\n\ndef storeJSON(dict, file_string):\n with open(file_string, 'w') as fp:\n json.dump(dict, fp, indent=4)\n\ndef storeTEX(dict, file_string):\n with open(file_string, 'w') as fp:\n fp.wri...
python
edit
1
5
mit
5195a9baae1a87632c55adf390ecc5f32d1a44cb
knutzk/parse_latex_table
dict_to_file.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n Watch Votes stream and update Sample ups and downs\n \"\"\"\n\nimport json\nimport boto3\nimport time\nimport decimal\nfrom boto3.dynamodb.conditions import Key, Attr\n\ndef vote_handler(event, context):\n dynamodb = boto3...
python
edit
8
6
mit
e81cf35231e77d64f619169fc0625c0ae7d0edc8
SandcastleApps/partyup,SandcastleApps/partyup,SandcastleApps/partyup
AWSLambdas/vote.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .reviewsapi import ReviewsAPI\n\n\nclass Assigner:\n\n def __init__(self):\n self.reviewsapi = ReviewsAPI()\n\n def certifications(self):\n response = self.reviewsapi.certifications()\n return [item['project_...
python
edit
1
3
mit
cf4945e86de8f8365745afa3c3064dc093d25df8
anapaulagomes/reviews-assigner
hunter/assigner.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom rest_framework import routers\n\nfrom api.views import CompanyViewSet\n\nrouter = routers.DefaultRouter()\nrouter.register(r\"companies\", CompanyViewSet)\n\n...
python
edit
3
0
mit
d95b64ded1cdb67bf80d5dae23cb6f7a31d43d03
springload/madewithwagtail,springload/madewithwagtail,springload/madewithwagtail,springload/madewithwagtail
api/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom datetime import datetime\n\nfrom django.test import TestCase\n\nfrom package.tests import data, initial_data\nfrom searchv2.utils import remove_prefix, clean_title\n\nclass UtilFunctionTest(TestCase): \n \n def test_remove_p...
python
edit
5
2
mit
a4f1fa704692894bcd568d02b23595e11910f791
pydanny/djangopackages,audreyr/opencomparison,miketheman/opencomparison,nanuxbe/djangopackages,pydanny/djangopackages,QLGu/djangopackages,pydanny/djangopackages,miketheman/opencomparison,audreyr/opencomparison,benracine/opencomparison,nanuxbe/djangopackages,benracine/opencomparison,QLGu/djangopackages,nanuxbe/djangopac...
apps/searchv2/tests/test_utils.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Write python code for the following: Switch to using Pushover's example tokens and such" }, { "role": "assistant", "content": "TEST_TOKEN = 'azGDORePK8gMaC0QOYAMyEEuzJnyUi'\nTEST_USER = 'uQiRzpo4DXghDmr9QzzfQu27cmVRsG'\nTEST_DEVICE = 'droid2'\n" } ]
python
new_file
1
0
mit
16ffb59ea744a95c7420fd8f4212d0c9a414f314
scolby33/pushover_complete
tests/constants.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add test_generic_list on tests views" }, { "role": "assistant", "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom opps.views.tests.test_generic_detail import *\nfrom opps.views.tests.test_generic_list import *\n" ...
python
new_file
3
0
mit
78df776f31e5a23213b7f9d162a71954a667950a
williamroot/opps,opps/opps,jeanmask/opps,opps/opps,YACOWS/opps,williamroot/opps,opps/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,opps/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,YACOWS/opps
opps/views/tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .utils import TemplateTestCase, Mock\n\nfrom knights import Template\n\n\nclass LoadTagTest(TemplateTestCase):\n\n def test_load_default(self):\n t = Template('{! knights.defaultfilters !}')\n self.assertIn('title', t....
python
edit
3
1
mit
9bf442c90b920b9cf24936c47bc1fe398413e7f0
funkybob/knights-templater,funkybob/knights-templater
tests/test_load.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"cell.result\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import with_statement\n\nfrom kombu.pools import producers\n\nfrom .exceptions import CellError, NoReplyError\n\n__all__ = ['AsyncResult']\n\n\nclass AsyncRe...
python
edit
1
4
bsd-3-clause
66bc45bb5cd8808bd65c4b796f3ca4d5564cccf8
celery/cell,celery/cell
cell/results.py
rejected_duplicate
Near-duplicate of sample 14588
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom sqlshare_rest.util.db import get_backend\nfrom sqlshare_rest.models import Query\nfrom django.utils import timezone\n\n\ndef process_queue():\n filtered = Query.objects.filter(is_finished=False)\n\n try:\n oldest_query = f...
python
edit
3
3
apache-2.0
e105b44e4c07b43c36290a8f5d703f4ff0b26953
uw-it-aca/sqlshare-rest,uw-it-aca/sqlshare-rest,uw-it-aca/sqlshare-rest,uw-it-aca/sqlshare-rest
sqlshare_rest/util/query_queue.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n# Copyright (c) Pymatgen Development Team.\n# Distributed under the terms of the MIT License.\n\nfrom __future__ import unicode_literals\n\n\"\"\"\nThe util package implements various utilities that are commonly used by var...
python
edit
3
0
mit
9260ae587c46f32047dbcfbe1610290282fcdf8c
gpetretto/pymatgen,ndardenne/pymatgen,vorwerkc/pymatgen,xhqu1981/pymatgen,czhengsci/pymatgen,gpetretto/pymatgen,aykol/pymatgen,dongsenfo/pymatgen,blondegeek/pymatgen,gpetretto/pymatgen,mbkumar/pymatgen,richardtran415/pymatgen,gVallverdu/pymatgen,nisse3000/pymatgen,nisse3000/pymatgen,gVallverdu/pymatgen,matk86/pymatgen,...
pymatgen/util/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport TheHitList\nfrom optparse import OptionParser\n\nif __name__ == '__main__':\n\tparser = OptionParser()\n\tparser.add_option(\"--list\", dest=\"list\", help=\"List tasks in Inbox\", default=False,action=\"store_...
python
edit
3
0
mit
379bec30964d34cde01b3a3cd9875efdaad5fc41
vasyvas/thehitlist,kfdm-archive/thehitlist
create_task.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"Extend werkzeug request handler to suit our needs.\"\"\"\n\nimport time\nfrom werkzeug.serving import BaseRequestHandler\n\nclass ShRequestHandler(BaseRequestHandler):\n \"\"\"Extend werkzeug request hand...
python
edit
1
1
bsd-3-clause
39a0094f87bf03229eacb81c5bc86b55c8893ceb
Sendhub/flashk_util
serving.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom django.core.urlresolvers import reverse\n\nclass ViewsTestCase(TestCase):\n def test_about_view(self):\n response = self.client.get(reverse('about'))\n self.assertEqual(response.status...
python
edit
1
1
mit
4a1cf52683b782b76fb75fa9254a37a804dda1ea
TomGijselinck/mywebsite,TomGijselinck/mywebsite
mywebsite/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom sympy import symbols, cos, sin\nfrom mathdeck import rand\n\nmetadata = {\n 'author': 'Bob Hope',\n 'institution': 'University of Missouri',\n 'subject': 'algebra',\n 'minor subject': 'polynomial equations',\n 'tags': ['simplify',...
python
edit
1
0
apache-2.0
9e2db322eed4a684ac9d7fe8944d9a8aff114929
patrickspencer/mathdeck,patrickspencer/mathdeck
problib/example1/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Filename: test_account.py\n\n\"\"\"\nTest the lendingclub2.accountmodule\n\"\"\"\n\n# PyTest\nimport pytest\n\n# lendingclub2\nfrom lendingclub2.account import InvestorAccount\nfrom lendingclub2.error import LCError\n\n\nclass TestInvesto...
python
edit
1
2
mit
7666a29aafe22a51abfd5aee21b62c71055aea78
ahartoto/lendingclub2
tests/test_account.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\n\n\nclass TimeWarriorConfig(object):\n def __init__(self, config=None):\n self.__config = config if config is not None else {}\n\n def update(self, other):\n if isinstance(other, TimeWarriorConfig):\n ...
python
edit
1
3
mit
d58973ff285ac2cdfae7a2e4e6dae668cf136f69
lauft/timew-report
timewreport/config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom pg_bawler import bawlerd\n\n\nclass TestBawlerdConfig:\n\n def test_build_config_location_list(self):\n assert not bawlerd.conf.build_config_location_list(locations=())\n\n user_conf = os.path.join(\n ...
python
edit
1
1
bsd-3-clause
9f3abe5077fce0a2d7323a769fc063fca5b7aca8
beezz/pg_bawler,beezz/pg_bawler
tests/test_bawlerd.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport django\n\nfrom paypal.standard.forms import PayPalStandardBaseForm\nfrom paypal.standard.pdt.models import PayPalPDT\n\n\nclass PayPalPDTForm(...
python
edit
1
0
mit
76b40a801b69023f5983dcfa4ecd5e904792f131
spookylukey/django-paypal,rsalmaso/django-paypal,spookylukey/django-paypal,rsalmaso/django-paypal,rsalmaso/django-paypal,GamesDoneQuick/django-paypal,spookylukey/django-paypal,GamesDoneQuick/django-paypal
paypal/standard/pdt/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#\n# (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1)\n# All Rights Reserved.\n#\n# You may only modify and redistribute this under the terms of any of the\n# following licenses(2): Mozilla P...
python
edit
1
0
apache-2.0
eaea19daa9ccb01b0dbef999c1f897fb9c4c19ee
sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia
Sketches/MH/pymedia/test_Input.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 TaskExecution(models.Model):\n time = models.DateTimeField(default=timezone.now)\n key = models.CharField(max_length=256)\n execution_number = models.Intege...
python
edit
1
1
apache-2.0
4b845f085c0a010c6de5f444dca0d57c0b3da3fa
stianjensen/wikipendium.no,stianjensen/wikipendium.no,stianjensen/wikipendium.no
wikipendium/jitishcron/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport argparse\n\nfrom sqf.parser import parse\nimport sqf.analyser\nfrom sqf.exceptions import SQFParserError\n\n\ndef analyze(code, writer=sys.stdout):\n try:\n result = parse(code)\n except SQFParserError as e:\...
python
edit
1
3
bsd-3-clause
bd07980d9545de5ae82d6bdc87eab23060b0e859
LordGolias/sqf
sqflint.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Remove commented out code from build/lib/__main__.py" }, { "role": "assistant", "content": "\"\"\"Simply keeps track of the current version of the client\"\"\"\n\nVERSION=\"0.10.1\"\n" } ]
python
new_file
1
0
mit
e23738a84e370ebc9c17ae2bb38d65939efde4ab
sgambino/project-packaging
version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\nfrom .models import Wine, Grape, Winery\n\nclass GrapeInline(admin.TabularInline):\n model = Grape\n extra = 0\n\n\n@admin.register(Wine)\nclass WineAdmin(admin.ModelAdmin):\n list_display = [\"_...
python
edit
1
0
mit
d21f32b8e5e069b79853724c3383af3beabc3686
ctbarna/cellar,ctbarna/cellar
app/wine/admin.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: deps: Update PROVISION_VERSION for webpack upgrade." }, { "role": "assistant", "content": "ZULIP_VERSION = \"1.5.1+git\"\nPROVISION_VERSION = '5.2'\n" } ]
python
new_file
1
0
apache-2.0
33c8488cf656ec52ad0d74a9991a2ce23af69c46
verma-varsha/zulip,hackerkid/zulip,Galexrt/zulip,rishig/zulip,eeshangarg/zulip,vabs22/zulip,tommyip/zulip,verma-varsha/zulip,mahim97/zulip,kou/zulip,eeshangarg/zulip,amanharitsh123/zulip,verma-varsha/zulip,kou/zulip,eeshangarg/zulip,shubhamdhama/zulip,brainwane/zulip,punchagan/zulip,j831/zulip,shubhamdhama/zulip,brockw...
version.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Replace Markdown README with reStructured text" }, { "role": "assistant", "content": "__version_info__ = (1, 0, 2)\n__version__ = '.'.join(map(str, __version_info__))\n" } ]
python
new_file
1
0
mit
8233bee4cf296a67fd2a86ed812557ffbf826cb8
r8/wp2github.py
wp2github/_version.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Copyright 2016 Ionuț Arțăriși <<EMAIL>>\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 Li...
python
edit
1
8
apache-2.0
641434ef0d1056fecdedbe7dacfe2d915b89408b
mapleoin/undecorated
undecorated.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Define project metadata\n\"\"\"\n\n__all__ = [\n '__title__',\n '__summary__',\n '__url__',\n '__version__',\n '__author__',\n '__email__',\n '__license__',\n]\n\n__title__ = 'pydash'\n__summary__ = 'Python port o...
python
edit
1
0
mit
444e28a332e31186971cebfd905e1aeadff1abfe
jacobbridges/pydash,bharadwajyarlagadda/pydash,dgilland/pydash
pydash/__meta__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nCommon utilities/lib for use by multiple services\n\"\"\"\n\nsubscription_types = ['policy_eval', 'tag_update', 'vuln_update', 'repo_update', 'analysis_update']\nresource_types = ['registries', 'users', 'images', 'policies', 'evalua...
python
edit
1
0
apache-2.0
761b9935d0aa9361cef4093b633c54a3ab8e132a
anchore/anchore-engine,anchore/anchore-engine,anchore/anchore-engine
anchore_engine/common/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Grab runs from S3 and do analysis\n#\n# Daniel Klein, 2015-08-14\n\nimport sys\nimport subprocess\nimport glob\n\n# Putting this in front of expensive imports\nimport argparse\nparser = argparse.ArgumentParser()\n...
python
edit
3
0
mit
b393c41bf73a492bbd4a7bc50d16dd74c126c3db
othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel
grab.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# FOGLAMP_BEGIN\n# See: http://foglamp.readthedocs.io/\n# FOGLAMP_END\n\nimport signal\nimport asyncio\nfrom aiohttp import web\n\nfrom foglamp.core import routes\nfrom foglamp.core import middleware\nfrom foglamp...
python
edit
1
2
apache-2.0
bdbd8e56dab87e0c7bd160ef91d5634064729626
foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP
src/python/foglamp/core/server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\n\nclass Wbw_list(models.Model):\n list_id = models.IntegerField(unique=True)\n name = models.CharField(max_length=200, blank=True)\n\n def __str__(self):\n return self.name\n\n\nclass Particip...
python
edit
1
1
cc0-1.0
370809a6715675aee98b05bdd3c4d0c26a5d156a
joostrijneveld/eetvoudig,joostrijneveld/eetvoudig,joostrijneveld/eetvoudig
meals/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, render_template, request, jsonify\nimport os\nimport shutil\n\napp = Flask(__name__)\napp.config.from_object('config.Debug')\n\n@app.route('/upload', methods=['GET', 'POST'])\ndef upload():\n\n if request.method ...
python
edit
2
5
mit
f4bc898b84ef516555367dde6dfdbfb249aa95ac
citruspi/Alexandria,citruspi/Alexandria
app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n\nimport sys\nfrom time import time\n\n\nclass PID(object):\n\n def __init__(self):\n \"\"\"initizes value for the PID\"\"\"\n self.kd = 0\n self.ki = 0\n self.kp = 1\n self.previous_error = 0\n ...
python
edit
4
1
bsd-2-clause
b1475056f22810912e50c62258c479acd86645a5
IEEERobotics/bot,IEEERobotics/bot,IEEERobotics/bot,deepakiam/bot,deepakiam/bot,deepakiam/bot
follower/pid.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import patterns, url\nfrom p3p.views import XmlView, P3PView\n\nurlpatterns = patterns('p3p.views',\n url(r'^p3p.xml$', XmlView.as_view(), name='p3p'),\n url(r'^policy.p3p$', P3PView.as_view(), name='pol...
python
edit
1
0
apache-2.0
cbf788d734f3a93b7f6b85269ba8f32e9be50a81
jjanssen/django-p3p
p3p/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom qiprofile_rest_client.helpers import database\nfrom qiprofile_rest_client.model.subject import Subject\nfrom qiprofile_rest_client.model.imaging import Session\nfrom . import (clinical, imaging)\n\n\ndef update(project, collection, sub...
python
edit
3
1
bsd-2-clause
bfdf65558e2f9b5b4e8d385b2911db374ffbfe03
ohsu-qin/qipipe
qipipe/qiprofile/update.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"ButtonWidget class. \n\nRepresents a button in the frontend using a widget. Allows user to listen for\nclick events on the button and trigger backend code when the clicks are fired.\n\"\"\"\n#----------------------------------------...
python
edit
1
1
bsd-3-clause
a8115391de5a4490929cacc606282852b59f54c9
ipython/ipython,ipython/ipython
IPython/html/widgets/widget_image.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nImplicit variables; perhaps in the future this will also include some implicit\nrules, at least match-anything cancellation rules.\n\"\"\"\n\nvariables = {\n 'RM': 'rm -f',\n '.LIBPATTERNS': 'lib%.so lib%.a',\n }\n\n```\n\n...
python
edit
1
0
mit
6c4343837fb3b92e0cc5db83f124a31658359c47
indygreg/pymake,mozilla/pymake,mozilla/pymake,mozilla/pymake
pymake/builtins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport hoomd\nimport io\nimport numpy\n\n\ndef test_table_pressure(simulation_factory, two_particle_snapshot_factory):\n \"\"\"Test that write.table can log MD pressure values.\"\"\"\n thermo = hoomd.md.compute.ThermodynamicQuantities...
python
edit
1
3
bsd-3-clause
fea5497e615b0b952d76c665284d4090d223fe96
joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue
hoomd/md/pytest/test_table_pressure.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np\nimport pandas as pd\nimport sys\nimport os\nfrom sklearn.externals import joblib\nimport xgboost as xgb\n\nscriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../'\nsys.path.append(os.path.abspath(scriptpath)...
python
edit
2
0
bsd-3-clause
99f7b0edf2b84658e0a03149eb3e999293aa5e95
parkerzf/kaggle-expedia,parkerzf/kaggle-expedia,parkerzf/kaggle-expedia
src/model/train_xgb_model.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='PyAuParser',\n version='0.53',\n author=\"Esun Kim\",\n author_email='veblush+git_at_gmail.com',\n url='https://github.com/veblush/PyAuParser',\n description=\"New python ...
python
edit
1
0
mit
b316988f45fed26f0694836cf9b5860b7441bc3d
veblush/PyAuParser
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom parser_tool import parse, get_parser\n\ndef test_np():\n grammar = get_parser(\"grammars/test_np.fcfg\", trace=0)\n\n f = open(\"grammars/nounphrase.sample\")\n for line in f:\n # remove newline\n actual_line = l...
python
edit
1
1
mit
af8e871eb2752f0fe75ccd7b2a12f81a5ef19d04
caninemwenja/marker,kmwenja/marker
tests/test_np.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n# -*- coding:utf-8 -*- \n\n#\n# Setup for the PyMeshToolkit package\n#\n\n# External dependencies\nfrom setuptools import setup, find_packages\n\n# Setup configuration\nsetup(\n\n name = \"PyMeshToolkit\",\n ve...
python
edit
1
0
mit
bd263dbbfe8d9dd595d7c8ab3a4a91ee73aea3cd
microy/MeshToolkit,microy/MeshToolkit,microy/PyMeshToolkit,microy/PyMeshToolkit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(\n name = \"deco\",\n version = \"0.5.1\",\n description = \"A decorator for concurrency\",\n packages = [\"deco\"],\n author='Alex Sherman',\n author_email='<EMAIL>',...
python
edit
1
0
mit
b364d648f2e4071c750d9d8fdf000f8dce936a0a
alex-sherman/deco
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nFlask-Selfdoc\n-------------\n\nFlask selfdoc automatically creates an online documentation for your flask app.\n\"\"\"\nfrom setuptools import setup\n\n\ndef readme():\n with open('README.md') as f:\n return f.read()\n\n\...
python
edit
1
1
mit
2102a955dd5bdceca00a087e1613e2974b54cf8e
jwg4/flask-autodoc,jwg4/flask-autodoc
setup.py
rejected_duplicate
Near-duplicate of sample 738
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n\tname = \"jpb\",\n\tversion = \"0.0.1\",\n\tpackages = find_packages(),\n\t#package_dir = {'':\"lib\"},\n\tzip_safe = False,\n\tentry_points = {\n\t\t'console_...
python
edit
1
0
mit
e4cb8bbffd6f60002cff8f37d42f576ba6f1891c
bmiklautz/jenkins-package-builder
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='nnpy',\n version='1.1',\n url='https://github.com/nanomsg/nnpy',\n license='MIT',\n author='Dirkjan Ochtman',\n author_email='<EMAIL>',\n description='cffi-based Python bin...
python
edit
1
0
mit
96a0175f897621b8e828293c6e3ba089eb50ba4e
nanomsg/nnpy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport pkg_resources\n\nimport sys\n\nrequires = None\nif sys.version_info < (2, 7):\n requires = ['argparse']\n\nversion = pkg_resources.require(\"fitparse\")[0].version\n\nsetup(\n name='fitparse',\...
python
edit
1
0
isc
48539fdd2a244218a1ee2a59d026d3759b9e3475
K-Phoen/python-fitparse
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom distutils.extension import Extension\nfrom Cython.Build import cythonize\n\nextension_defaults = {\n 'extra_compile_args': [\n '-std=gnu++11',\n '-O3',\n '-Wall',\n ...
python
edit
1
0
bsd-3-clause
a670ec2aa1f136155d483cb8697f0613962e604a
stephan-hof/pyrocksdb,stephan-hof/pyrocksdb
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='lcinvestor',\n version=open('lcinvestor/VERSION').read(),\n author='Jeremy Gillick',\n author_email='<EMAIL>',\n packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.setti...
python
edit
1
0
mit
e32d470ba47973f3827a5f85e701826bbb08b621
jgillick/LendingClubAutoInvestor,ilyakatz/LendingClubAutoInvestor,ilyakatz/LendingClubAutoInvestor
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nsetup_args = dict(\n name='furious',\n version='0.1',\n license='Apache',\n description='Furious is a lightweight library that wraps Google App Engine'\n 'taskqueue...
python
edit
1
0
apache-2.0
aa09ffc91c7cb1e54512132320b78776227b6417
rosshendrickson-wf/furious,mattsanders-wf/furious,mattsanders-wf/furious,andreleblanc-wf/furious,Workiva/furious,beaulyddon-wf/furious,rosshendrickson-wf/furious,andreleblanc-wf/furious,Workiva/furious,beaulyddon-wf/furious
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, Command\n\n\nclass TestDiscovery(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(...
python
edit
1
1
bsd-3-clause
3cc90bb8ccce7b2feefe95173f095a71996d2633
gulopine/steel
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nfrom setuptools import setup, find_packages\nimport sys\n\nv = sys.version_info\nif v[:2] < (3, 5):\n error = \"ERROR: jupyterhub-kubespawner requires Python version 3.5 or above.\"\n print(error...
python
edit
1
0
bsd-3-clause
643a01b56ebdbb706e3079122f570d450464f440
jupyterhub/kubespawner,yuvipanda/jupyterhub-kubernetes-spawner
setup.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__))\n\ntry:\n README = open(os.path.join(here, 'README.txt')).read()\n CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()\...
python
edit
1
0
bsd-3-clause
0991a4207c7b737186c188719c4dd21c76f3528b
vsobolmaven/pyramid_simpleform
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\nimport os\n\nfrom setuptools import setup, find_packages\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\nwith open('abakus/__init__.py', 'r') as fd:\n version = re.search(\n r'^__version__\\s*=\\s*[\\'\"](...
python
edit
1
0
mit
84c0a5fc9bea997964e4e4da63151717a11aaf14
webkom/django-auth-abakus
setup.py
rejected_duplicate
Near-duplicate of sample 11750
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\ndef readme():\n with open('README.rst') as f:\n return f.read()\n\nsetup(name='prettystring',\n version='0.1.0',\n description='Build ANSI color encoded strings with ease.',\n long_de...
python
edit
1
1
mit
26cbf83b8d7665a48a399e5af59f784fba4b9463
robolivable/prettystring
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='mezzanine-openshift',\n version='1.1',\n description='Mezzanine configured for deployment on OpenShift.',\n author='Isaac Bythewood',\n author_email='<EM...
python
edit
1
0
mit
668f84625189853dbe6caab9a1e5e84a12d108ed
chiora93/WavelenBlog,chiora93/WavelenBlog,chiora93/WavelenBlog
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport ephem\nfrom sr_lib import altazimuth, almanac, ha, ho\n\ndatelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00',\n '2016/01/12 20:00:00', '2016/01/12 21:00:00']\n\njackson = ephem.Observer()\njac...
python
edit
5
0
mit
e11c58495dfebf18763db308f55c75564a52c195
zimolzak/Sight-reduction-problems
sight.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nSimple module to aid in command-line debugging of notification related issues.\n'''\n\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.conf import settings\nfrom django.core.mail import EmailMessage\n\nfr...
python
edit
4
4
bsd-3-clause
dd59a1bd6ac56fc6a8bfb8de25776000dfe39af7
AeroNotix/django-timetracker,AeroNotix/django-timetracker,AeroNotix/django-timetracker
tracker/management/commands/approval_reminders.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport cplcom\n\n\nsetup(\n name='CPLCom',\n version=cplcom.__version__,\n packages=find_packages(),\n package_data={'cplcom': ['../media/*', './*.kv']},\n install_requires=['moa',...
python
edit
1
0
mit
42f4423b8e7d39dca766afa99bd129e31500e7b0
matham/cplcom
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom .base import Always, Never\nfrom .types import SimpleFilter, CLIFilter\n\n__all__ = (\n 'to_cli_filter',\n 'to_simple_filter',\n)\n\n\ndef to_simple_filter(bool_or_filter):\n \"\"\"\n ...
python
edit
1
1
bsd-3-clause
83718336f5260e94cea32611fd7080966329ee2b
melund/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit,niklasf/python-prompt-toolkit
prompt_toolkit/filters/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport getpass\nimport random\n\n\nclass RandomSeed(object):\n \"\"\"Creates a context with a temporarily used seed for the random\n library. The state for the random functions is not modified\n outside th...
python
edit
1
4
mit
3ac41e8b32aff3cf28590c8ab1a7abeae2b563f5
redodo/shipper
shipper/helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\nimport requests\nimport lxml.html\n\n \ndef grab_cloudflare(url, *args, **kwargs):\n sess = requests.Session()\n sess.headers = {\"User-Agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firef...
python
edit
1
4
mit
22c9fb018ad1a0dca26f6e9c9bc0cc871c8dec25
AtVirus/cloudflare-scrape,Thor77/cloudflare-scrape,Muhammad-Farghaly/cloudflare-scrape,Anorov/cloudflare-scrape,nico202/cloudflare-scrape
cfscrape.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/env python\n#\n# cat_StartdLog.py\n#\n# Print out the StartdLog for a glidein output file\n#\n# Usage: cat_StartdLog.py logname\n#\n\nimport sys\nsys.path.append(\"lib\")\nimport gWftLogParser\n\nUSAGE=\"Usage: cat_StartdLog.py <logn...
python
edit
2
2
bsd-3-clause
fe296c62c1a75f89f206a0105591a274a7782b4e
holzman/glideinwms-old,holzman/glideinwms-old,holzman/glideinwms-old,bbockelm/glideinWMS,bbockelm/glideinWMS,bbockelm/glideinWMS,bbockelm/glideinWMS
factory/tools/cat_StartdLog.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/li...
python
edit
1
0
apache-2.0
73d09dfe48a4dd72080fe86e027663df6caf513a
ocadotechnology/wry
tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nclass HopDB(object):\n\n def __init__(self):\n super(HopDB, self).__init__()\n self.hops = {} # prefix -> hop\n self.installed_prefix = []\n\n def add_hop(self, prefix, next_hop):\n self.hops.setdefault(...
python
edit
1
3
mit
7d5207a493877910c4d6282cb8bb05b7a7ef6a13
sdnds-tw/Ryu-SDN-IP
sdnip/hop_db.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom bmi_tester.api import check_bmi\n\n\ndef test_bmi_check(tmpdir):\n with tmpdir.as_cwd():\n with open(\"input.yaml\", \"w\"):\n pass\n assert (\n check_bmi(\n \"bmi_tester.bmi:Bmi\",...
python
edit
1
1
mit
b494a5b2ed94c1def6fb8bbbab5df5612ef30aa7
csdms/bmi-tester
tests/test_api.py
accepted
null
true