messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nusage: python -m sha1 <filename>\n\"\"\"\nimport sys\nimport hashlib\n\n# --- these fields are required for packaging\n__version__ = '1.0'\n__author__ = 'anatoly techtonik <<EMAIL>>'\n__license__ = 'Public Dom...
python
edit
1
0
unlicense
eb7201789bc5ce03ca415fc4c208ce5a41bfc249
techtonik/sha1
sha1.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db.models import Q\nfrom le_utils.constants import content_kinds\n\nfrom kolibri.core.content.hooks import ContentRendererHook\nfrom kolibri.core.content.models import ContentNode\n\n# Start with an empty queryset, as we'll be u...
python
edit
1
0
mit
3f1c988830b7b5128c8da141326ecbf7234a791a
mrpau/kolibri,lyw07/kolibri,lyw07/kolibri,learningequality/kolibri,mrpau/kolibri,learningequality/kolibri,indirectlylit/kolibri,learningequality/kolibri,indirectlylit/kolibri,mrpau/kolibri,lyw07/kolibri,indirectlylit/kolibri,lyw07/kolibri,learningequality/kolibri,indirectlylit/kolibri,mrpau/kolibri
kolibri/core/content/utils/content_types_tools.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom __future__ import print_function, absolute_import, division\nimport screed\nimport docopt\n\nCLI = \"\"\"\nUSAGE:\n fasplit <fasta> <prefix>\n\"\"\"\n\nopts = docopt.docopt(CLI)\nprefix = opts['<prefix>']\n\nw...
python
edit
1
0
mit
756456992247bf8dbb0731556e37ecd0cf32e3ab
kdmurray91/kwip-experiments,kdmurray91/kwip-experiments,kdmurray91/kwip-experiments
scripts/splitfa.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom casexml.apps.case.mock import CaseFactory\nfrom casexml.apps.case.signals import cases_received\nfrom casexml.apps.case.xform import process_cases_with_casedb\nfrom corehq.form_processor.backends.sql.d...
python
edit
1
2
bsd-3-clause
e8880d6a4fb96722551bdc50274cdfddc2bd41d2
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
corehq/ex-submodules/casexml/apps/case/tests/test_signals.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2016 The Kubernetes Authors 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...
python
edit
1
0
apache-2.0
081b1cd60e363adf941ba511c7683c0ed2843a97
mikedanese/test-infra,gmarek/test-infra,mindprince/test-infra,shashidharatd/test-infra,cblecker/test-infra,rmmh/kubernetes-test-infra,mikedanese/test-infra,jlowdermilk/test-infra,shyamjvs/test-infra,mikedanese/test-infra,girishkalele/test-infra,grodrigues3/test-infra,monopole/test-infra,foxish/test-infra,mikedanese/tes...
gubernator/appengine_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport simuvex\n\n######################################\n# NoReturnUnconstrained\n# Use in places you would put ReturnUnconstrained as a default action\n# But the function shouldn't actually return\n######################################\n...
python
edit
1
1
bsd-2-clause
0d135a746dd79ad1b703570e2bb3b27a694c67b0
iamahuman/angr,iamahuman/angr,f-prettyland/angr,chubbymaggie/simuvex,chubbymaggie/angr,schieb/angr,angr/angr,tyb0807/angr,f-prettyland/angr,tyb0807/angr,axt/angr,tyb0807/angr,chubbymaggie/angr,angr/angr,angr/angr,iamahuman/angr,axt/angr,f-prettyland/angr,chubbymaggie/angr,angr/simuvex,chubbymaggie/simuvex,zhuyue1314/si...
simuvex/procedures/stubs/NoReturnUnconstrained.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n__all__ = [\"csiro\", \"extras\"]\n__authors__ = 'Filipe Fernandes'\n__created_ = \"14-Jan-2010\"\n__email__ = \"<EMAIL>\"\n__license__ = \"MIT\"\n__maintainer__ = \"Filipe Fernandes\"\n__modified__ = \"16-Mar-201...
python
edit
2
0
mit
ff2d9b276928d2bf06ae81b1fa243ee2816cd694
ocefpaf/python-seawater,pyoceans/python-seawater,pyoceans/python-seawater,ocefpaf/python-seawater
seawater/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\n\nfrom board import Board, BoardView\nfrom utils import clear, getch\n\n\ndef main():\n board = Board(19, 19)\n view = BoardView(board)\n\n def move():\n board.move(*view.cursor)\n ...
python
edit
1
5
mit
e8e326fe39623ea04082553d1293b1e79c3611f6
davesque/go.py
proto/ho.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# vim: set ts=4\n\n# Copyright 2014 Rémi Duraffort\n# This file is part of Artifactorial.\n#\n# Artifactorial is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General P...
python
edit
3
0
mit
bc399ed6902f6ba3d24e1ce1a8ff88a259793c3a
ivoire/Artifactorial,ivoire/Artifactorial,ivoire/Artifactorial
Artifactorial/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nQuests\n - questcache.wdb\n\"\"\"\n\nfrom .. import *\n\n\nclass Quest(Model):\n\tdef getTooltip(self):\n\t\treturn QuestTooltip(self)\n\nclass QuestTooltip(Tooltip):\n\tdef tooltip(self):\n\t\t\n\t\tself.ap...
python
edit
5
1
cc0-1.0
5e736819e35efaad8568bb0782af3d256d55963d
jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow
game/quests/__init__.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nDEBUG = True\nDEBUG_TEMPLATE = True\nSITE_ID = 1\nDATABASE_ENGINE = 'sqlite3'\nDATABASE_NAME = '/tmp/asgard-blog-devel.db'\nINSTALLED_APPS = [\n\t'django.contrib.auth',\n\t'django.contrib.comments',\n\t'django.contrib.contenttypes',\n\t'dja...
python
edit
1
0
bsd-3-clause
9e8093fe66da557ca9e976e600b8977c002f5241
myles-archive/asgard-blog,asgardproject/asgard-blog,asgardproject/asgard-blog,asgardproject/asgard-blog,myles-archive/asgard-blog,myles-archive/asgard-blog
blog/testsettings.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2013. Amazon Web Services, Inc. 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 Li...
python
edit
7
0
apache-2.0
dd400066927e70e43001e3c3172241579a314b60
ceizner/codechallenge,awslabs/aws-python-sample,noahchense/aws-python-sample
s3_sample.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\nfrom rply import LexerGenerator\n\nop_map = {\n 'NUMBER': r'\\d[\\d\\s]*',\n 'PLUS': r'\\+',\n 'MINUS': r'-',\n 'MUL': r'\\*',\n 'NUMBER_SEP': r'/',\n 'EXP...
python
edit
1
0
mit
130dbb5003273e0681b35aa171c8c7e235fbbe59
bibim-lang/pybibim,rishubil/pybibim,bibim-lang/pybibim
src/bibim/lexer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport aqt\n\nfrom golden_dict_media.AddonInitializer import init_addon\n\nif aqt.mw is not None:\n init_addon()\n\n```\n\nApply this change: Use relative paths in golden_dict_media" }, { "role": "assistant", "content": "impo...
python
edit
1
0
mit
d617ce484c1c85032f6c792b7f03d7710df97acf
searene/Anki-Addons,searene/Anki-Addons
GoldenDictMedia/2.1/golden_dict_media/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2017 \"Shopify inc.\" All rights reserved.\n# Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.\nfrom __future__ import unicode_literals\n\nfrom pylint import lint\nfrom shopif...
python
edit
3
1
mit
c96b4de722e412f288b16dc8685c2556e3d801b1
Shopify/shopify_python
shopify_python/__init__.py
rejected_duplicate
Near-duplicate of sample 653
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom us_ignite.apps.models import Application, ApplicationMembership, Page\nfrom us_ignite.profiles.tests.fixtures import get_user\n\n\ndef get_application(**kwargs):\n defaults = {\n 'name': 'Gigabit app',\n }\n if not 'own...
python
edit
1
2
bsd-3-clause
d2e3fcedb5a228a234d5b564cca391214f95e617
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
us_ignite/apps/tests/fixtures.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#-*- encoding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom core import *\n\ndef handle_bandiera(template):\n return template.get(1)\n\ndef handle_citazione(template):\n if template.params:\n return '« ' + sp(temp...
python
edit
4
3
mit
938840b27fd218eeaf9c253e9162392e653dff0b
guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt
snippet_parser/it.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom threading import Thread\nfrom watchdog.events import FileSystemEventHandler\nfrom watchdog.observers import Observer\nimport os\nimport requests\nimport time\n\nFRAMES_PATH = os.getenv(\"FRAMES_PATH\", 'frames')\nPUBLISH_URL = os.geten...
python
edit
4
2
mit
f7ae0b3663f9fabd312f1f07c544ac9122241fc4
jbochi/live_thumb,jbochi/live_thumb,jbochi/live_thumb
broadcaster.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .key_value_filter import KeyValueFilter\nfrom .key_value_regex_filter import KeyValueRegexFilter\nfrom .no_filter import NoFilter\nfrom .pythonexp_filter import PythonexpFilter\n\n__all__ = ['KeyValueFilter', 'KeyValueRegexFilter', 'No...
python
edit
1
0
bsd-3-clause
c30ef8dba42dcc16eb7bf9e126d4551db30c06eb
scrapinghub/exporters
exporters/filters/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2017 Cisco Systems, Inc.\n# All Rights Reserved.\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 o...
python
edit
1
1
apache-2.0
a4a6c637615b561c7fef62aaa17deee7e0991436
noironetworks/networking-cisco,Tehsmash/networking-cisco,Tehsmash/networking-cisco,openstack/networking-cisco,openstack/networking-cisco,noironetworks/networking-cisco
networking_cisco/services/trunk/trunkstubs.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport cv2\nimport numpy\n\n\ndef LAPV(img):\n \"\"\"Implements the LAPV focus measure algorithm.\n\n :param img: the image the measure is applied to as a numpy matrix\n \"\"\"\n return numpy.std(cv2.Laplacian(img, cv2.CV_64F)) ...
python
edit
1
1
mit
d6bc89c7f2372a623de42232b47c417be0620c45
vismantic-ohtuprojekti/image-filtering-suite,vismantic-ohtuprojekti/qualipy
imgfilter/analyzers/blur_detection/focus_measure.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom vcontrol.rest.commands import info\nfrom vcontrol.rest.commands.plugins import add\n\nimport requests\n\ndef test_info_command_r():\n \"\"\" tests the InfoCommandR class \"\"\"\n r = requests.get('http://localhost:8080/v1/command...
python
edit
3
1
apache-2.0
b78d0fa67ad19d4090a5b67668f621aa3b58e8ea
CyberReboot/vcontrol,cglewis/vcontrol,CyberReboot/vcontrol,cglewis/vcontrol,cglewis/vcontrol,CyberReboot/vcontrol
tests/test_rest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n\ndef horizontal_bar(sorted_streaks, sort):\n \"\"\"\n Render a horizontal bar chart of streaks.\n\n Values have already been sorted by sort.\n \"\"\"\n # Only extract th...
python
edit
1
4
mit
7d714f0e19ceaa72e186674302549c176e98f442
supermitch/streak-podium,jollyra/hubot-commit-streak,jollyra/hubot-commit-streak,jollyra/hubot-streak-podium,jollyra/hubot-streak-podium,supermitch/streak-podium
streak-podium/render.py
rejected_duplicate
Near-duplicate of sample 13734
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Command-line interface for citenet.\"\"\"\n\ndef main():\n \"\"\"Run the CLI.\"\"\"\n print('CiteNet CLI')\n\n```\n\nApply this change: Add rudimentary JSON configuration to CLI" }, { "role": "assistant", "content": ...
python
edit
3
2
mit
c424744af801241fbdced0e3344c1f9b6f2c6416
Pringley/citenet
citenet/cli.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\" HTTPS Transport Adapter for python-requests, that allows configuration of\n SSL version\"\"\"\n# -*- coding: utf-8 -*-\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n# @author: Sanju Abraham, Juniper Networks, OpenContrail\nfrom re...
python
edit
1
1
apache-2.0
94f5edd9b2f693b48181ddefa7af725be854c49e
tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller,tcpcloud/contrail-controller
src/config/common/ssl_adapter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2015 Thierry Carrez <<EMAIL>>\n# All Rights Reserved.\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 ...
python
edit
1
0
apache-2.0
aaa468b458b0ec73d4c175993674835c9bdd0df8
ttx/summitsched,ttx/summitsched
cheddar/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nCompile script for py2exe.\n\nIn order to compile this you need to install py2exe.\nFrom here: http://sourceforge.net/projects/py2exe/files/py2exe/\n\nCompile environment must be win32 (Win XP, Win Server and so on...)\n\nAnd you'll...
python
edit
3
0
bsd-3-clause
a6bab1368f5f6514ed6b3ac5abe38d6dea0c8cca
adlibre/dms-client
compile_w32.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os.path\n\nimport pytest\nfrom alembic.command import upgrade\nfrom alembic.config import Config\n\nfrom app.database import sa, create_engine, create_db_session\nfrom app.models import Base\n\n\nHERE = os.path.dirname(os.path.abspat...
python
edit
5
1
mit
4dbeb34c0ca691ff4a9faf6d6a0fa9f67bacba5a
PsyBorgs/redditanalyser,PsyBorgs/redditanalyser
app/tests/conftest.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.utils.safestring import mark_safe\nfrom django.template.loader import render_to_string\n\n\ndef get_layout_template_name(model, name):\n ret = []\n for a in model.__class__.mro():\n if not hasattr(a, \"_meta\"):\n ...
python
edit
1
3
apache-2.0
34513dd1716f7299b2244d488055e82da1aea080
armstrong/armstrong.core.arm_layout,armstrong/armstrong.core.arm_layout
armstrong/core/arm_layout/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport sys\nimport warnings\n\n# This function is from https://github.com/python/cpython/issues/67998\n# (https://bugs.python.org/file3...
python
edit
1
4
bsd-3-clause
f83d6e0848d2b2a9f1cff4938b315c41d01ce092
jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets
python/ipywidgets/ipywidgets/widgets/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Test out the utility functions.\"\"\"\n\nfrom malt import json\n\n\ndef test_json():\n resp = json({'greeting': 'Hello World!'})\n\n assert resp.headers['Content-Type'] == 'application/json; charset=utf-...
python
edit
1
1
mit
85300e02c65fc6a611b9bdd0722c965d53be8d52
nickfrostatx/malt
tests/test_util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom PyQt4 import uic\nimport os.path\nimport sys\n\n\ndef resource_path(path):\n try:\n return os.path.join(sys._MEIPASS, path)\n except:\n return os.path.join(os.path.dirname(__file__), path)\n\n\ndef load(path, widget...
python
edit
3
4
mit
96b283adbb3156e77aee012a9fb8aba9d67343a9
mailchuck/PyBitmessage,mailchuck/PyBitmessage,mailchuck/PyBitmessage,mailchuck/PyBitmessage
src/bitmessageqt/widgets.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport neo4j\n\nclass SubTopics(neo4j.Traversal):\n \"\"\"Traverser that yields all subcategories of a category.\"\"\"\n types = [neo4j.Incoming.is_a]\n returnable = neo4j.RETURN_ALL_BUT_START_NODE\n order = neo4j.BREADTH_FIRST\...
python
edit
1
3
mit
501dd023eb1b8c868808fe5151dc865e5e84859c
peplin/trinity
stats/topics.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.comments.models import Comment\nfrom django.contrib.comments.signals import comment_was_posted\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.db import models\n\nimport markdown\n\nclass OslComm...
python
edit
1
3
bsd-3-clause
1666a48ccaef30d5d1dbceb3212160991beecbd5
jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website,jeffcharles/Open-Source-at-Laurier-Website
wluopensource/osl_comments/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom unittest import TestCase\n\nfrom pytest import deprecated_call\n\nfrom w3lib.util import str_to_unicode, to_native_str, unicode_to_str\n\n\nclass StrToUnicodeTestCase(TestCase):\n\n def test_deprecation(self):\n with deprecat...
python
edit
1
1
bsd-3-clause
31b8ecda3d6b34428180b45e49489ebefc8a57e3
scrapy/w3lib
tests/test_util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"OpenAPI core wrappers module\"\"\"\nfrom openapi_core.wrappers.base import BaseOpenAPIRequest, BaseOpenAPIResponse\n\n\nclass FlaskOpenAPIRequest(BaseOpenAPIRequest):\n\n def __init__(self, request):\n self.request = request...
python
edit
1
2
bsd-3-clause
3ef0c6adcfa74877245f586618c4592b308976cd
p1c2u/openapi-core
openapi_core/wrappers/flask.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import http\nfrom django.conf import settings\nfrom django.views.generic import RedirectView, View\n\nfrom requests_oauthlib import OAuth2Session\n\n\nCLIENT_ID = settings.HELLO_BASE_CLIENT_ID\nCLIENT_SECRET = settings.HELLO_BAS...
python
edit
3
1
apache-2.0
481f580b30efe0cf6f46081c098e2a174444a10b
hello-base/web,hello-base/web,hello-base/web,hello-base/web
base/components/accounts/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.11.11 on 2018-04-08 15:49\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\nfrom django.db.models import F\nfrom django.db.backends.postgresql_psycopg2.sch...
python
edit
1
1
apache-2.0
3853e133f420320c8fa475cafd62356179f6ef5c
jackrzhang/zulip,zulip/zulip,synicalsyntax/zulip,kou/zulip,jackrzhang/zulip,showell/zulip,kou/zulip,dhcrzf/zulip,timabbott/zulip,tommyip/zulip,brainwane/zulip,dhcrzf/zulip,timabbott/zulip,andersk/zulip,brainwane/zulip,synicalsyntax/zulip,rishig/zulip,tommyip/zulip,rishig/zulip,punchagan/zulip,showell/zulip,jackrzhang/z...
zerver/migrations/0167_custom_profile_fields_sort_order.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\nimport sys\nimport os.path\nimport optparse\nimport json\n\nimport requests\n\nfrom acmd import tool, log\nfrom acmd import OK, SERVER_ERROR, USER_ERROR\nfrom acmd.props import parse_properties\n\nparser = optparse.OptionPa...
python
edit
2
3
mit
21dea82cd8fc2b7d8889013dfd827f59cc8ceb58
darashenka/aem-cmd,darashenka/aem-cmd,darashenka/aem-cmd
acmd/tools/assets.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport tensorflow as tf\nfrom neuralmonkey.nn.projection import linear, multilayer_projection\n\n\nclass MultilayerPerceptron(object):\n \"\"\" General implementation of the multilayer perceptron. \"\"\"\n\n # pylint: disable=too-many...
python
edit
1
2
bsd-3-clause
2d99984303da47b23b1a790b1f0c51f9aa28e415
bastings/neuralmonkey,juliakreutzer/bandit-neuralmonkey,bastings/neuralmonkey,ufal/neuralmonkey,ufal/neuralmonkey,ufal/neuralmonkey,juliakreutzer/bandit-neuralmonkey,bastings/neuralmonkey,ufal/neuralmonkey,bastings/neuralmonkey,bastings/neuralmonkey,juliakreutzer/bandit-neuralmonkey,juliakreutzer/bandit-neuralmonkey,uf...
neuralmonkey/nn/mlp.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom graphql.pyutils import Path\n\n\ndef describe_path():\n def add_path():\n path = Path(None, 0, None)\n assert path.prev is None\n assert path.key == 0\n prev, path = path, Path(path, 1, None)\n ass...
python
edit
1
1
mit
4fb6cd2b73deb500d664c1a0d2d6c57b11626a7e
graphql-python/graphql-core
tests/pyutils/test_path.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport timeit\r\nsetup=\"\"\"\r\nfrom _ppeg import Pattern\r\n\r\ntext = open('kjv10.txt').read()\r\n\r\npat = Pattern()\r\npat.setdummy()\r\npat.dump()\r\n\"\"\"\r\n\r\nt = timeit.Timer(stmt='print pat.match(text)', setup=setup)\r\nN=5\r\n...
python
edit
2
0
mit
a9f5603b9134a6daa757fd85c1600ac3aa67f5df
moreati/ppeg,moreati/ppeg
time_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom twisted.internet import reactor, task\n\n\ndef test_deferred():\n return task.deferLater(reactor, 0.05, lambda: None)\n\n\n```\n\nApply this change: Add an example Twisted test that expects failure." }, { "role": "assistant"...
python
edit
3
1
mit
8df7c4b2c008ce6c7735106c28bad1f7326f7012
CheeseLord/warts,CheeseLord/warts
tests/smoketests/test_twisted.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, shutil\n\ndef atomic_write_file(path, data):\n temp = os.path.join(os.path.dirname(path), \".tmpsave.\" + os.path.basename(path))\n try:\n with open(temp, \"wb\") as out:\n try:\n shutil.cop...
python
edit
1
4
mit
967795c9005b7ccdacdb17c461a86cda68409785
shaurz/devo
fileutil.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask, jsonify\nfrom flask import render_template\nimport urllib2\nimport json\n\napp = Flask(__name__)\n\n#@app.route(\"/\")\n#def hello():\n# return render_template('index.html')\n#\n#@app.route(\"/dream/<dream>\")\n#...
python
edit
3
1
apache-2.0
16c8880c2b3d5f68ee25093057f949ed0f2e7a5c
whiskeylover/idreamoftoast,whiskeylover/idreamoftoast,whiskeylover/idreamoftoast
toast/app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .rest import RestClient\n\n\nclass DeviceCredentials(object):\n\n def __init__(self, domain, jwt_token):\n url = 'https://%s/api/v2/device-credentials' % domain\n\n self.client = RestClient(endpoint=url, jwt=jwt_token)...
python
edit
1
2
mit
df8f5e0a6be5f3de31d61810b1624175b2d105ec
auth0/auth0-python,auth0/auth0-python
auth0/v2/device_credentials.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# this contains imports plugins that configure py.test for astropy tests.\n# by importing them here in conftest.py they are discoverable by py.test\n# no matter how it is invoked within the source tree.\n\nfrom astropy.tests.pytest_plugins ...
python
edit
2
0
bsd-3-clause
64f3e09eb74158233af37513d0cedf75b8d62aae
alexrudy/Zeeko,alexrudy/Zeeko
packagename/conftest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!usr/bin/env python\nimport ui_logic_mainwindow as uv\nfrom PyQt4 import QtGui\nimport sys\n\ndef main():\n \n app = QtGui.QApplication(sys.argv)\n ex = uv.UiMainWindow()\n ex.show()\n \n sys.exit(app.exec_())\n\nif __nam...
python
edit
1
1
mit
acfa9a206e803ad41565f6f3a678d9e1130948d8
bibsian/database-development
test/runmain.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nimport sys\nimport subprocess\nimport os\n\n@given('a system executable {exe}')\ndef step_impl(context, exe):\n binary = None\n if sys.platform.startswith('win'):\n try:\n binar...
python
edit
7
5
bsd-3-clause
ada71c4aa8e96e71b90c205fbfec9079ffa29142
hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure,hotgloupi/configure
test/features/steps/system.py
rejected_lint
Too many lint violations: 7
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom gaidaros.gaidaros import *\nserver = Gaidaros()\n#TODO: run a client to do a request against a one-time handle action\n#server.handle()\n\n```\n\nApply this change: Make the actual change to testfile mentioned ...
python
edit
3
0
mit
aa0065ef79fd3763c201cdd9b92b64f8f48ff732
rowanthorpe/gaidaros
test/test_basic.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom wcontrol.conf.config import BMI, BFP, MUSCLE\n\n\nclass results(object):\n def __init__(self, control, gender):\n self.bmi = self.get_bmi(control.bmi)\n self.fat = self.get_fat(control.fat, gender)\n self.muscle...
python
edit
1
6
mit
d68a7f9c42220d6497fe87cc8426ce8ff8098c30
pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control
wcontrol/src/results.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass Currency(models.Model):\n code = models.CharField(_('code'), max_length=3)\n name = models.CharField(_('name'), max_length=35)\n symbol...
python
edit
1
3
bsd-3-clause
19e0b3f089c684fe4aaaed8a06b4baad31de2f41
marcosalcazar/django-currencies,jmp0xf/django-currencies,ydaniv/django-currencies,ydaniv/django-currencies,barseghyanartur/django-currencies,panosl/django-currencies,pathakamit88/django-currencies,bashu/django-simple-currencies,mysociety/django-currencies,pathakamit88/django-currencies,racitup/django-currencies,panosl/...
currencies/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport PyDSTool as dst\nfrom PyDSTool.Toolbox.phaseplane import Point2D\nfrom matplotlib import pyplot as plt\n\nfrom fovea.graphics import *\n\n# ISSUE: fix to use new argument format for function (no global)\nplotter.domain={'x': [-1,1], ...
python
edit
15
0
bsd-3-clause
5fe3187ba546bea4d948914b2eb5cf9953a5bee6
robclewley/fovea,akuefler/fovea
tests/clip_test.py
rejected_lint
Too many lint violations: 15
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/python\n\nimport json\n\nimport requests\n\nclass Callback(object):\n def __init__(self, url, method='GET', req_kwargs={}, **kwargs):\n \n assert isinstance(url, (str, unicode))\n assert isinstance(method...
python
edit
3
2
unlicense
bc576b0284ebf49e105af678b483173084068bfb
timeartist/ufyr
ufyr/utils/http.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom numpy import all, array\n\nfrom avena import flip\n\n\ndef test_flip_vertical():\n x = array([[1], [2], [3]])\n assert all(flip._flip_vertical(flip._flip_vertical(x)) == x)\n y = array([[3], [2], [1]])...
python
edit
1
1
isc
2e6ff15fed8eda23b141a81264929bfb83d4fcb8
eliteraspberries/avena
avena/tests/test-flip.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nfrom tornado.httpserver import HTTPServer\nfrom tornado.web import URLSpec\nimport tornado.ioloop\nimport tornado.web\nfrom tornado.options import define, options\n\nfrom orders import Book, Buy, Sell\n\ndefine(\"port\", defau...
python
edit
3
3
mit
d6444cd75c8ce6babd373989abd3507dd14923bb
eigenholser/ddme,eigenholser/ddme
api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\n\n\nclass Author(models.Model):\n author_name = models.CharField(max_length=200, unique=True)\n author_link = models.URLField()\n\n def __str__(self):\n return str(self.name)\n\n\nclass Reason(m...
python
edit
1
1
mit
7f412fef594a514d13519a0f048c55b293fd84b3
Kunstmord/abandoned,Kunstmord/abandoned,Kunstmord/abandoned
abandoned/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.auth.models import Group\nfrom django.db import models\n\nfrom jsonfield import JSONField\n\n\nclass KeyValue(models.Model):\n group = models.ForeignKey(Group, on_delete=models.CASCADE)\n key = models.CharField(max...
python
edit
1
1
isc
0cb295e80fbf8d08276166d8005722918012ca83
CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer
wafer/kv/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport mopidy\nfrom mopidy import ext\n\n\n__doc__ = \"\"\"A backend for playing music from a local music archive.\n\nThis backend handles URIs starting with ``file:``.\n\nSee :ref:`music-from-loca...
python
edit
1
1
apache-2.0
74adefcad1fe411b596981da7d124cda2f8e936d
jmarsik/mopidy,jmarsik/mopidy,jodal/mopidy,rawdlite/mopidy,ali/mopidy,SuperStarPL/mopidy,jcass77/mopidy,adamcik/mopidy,pacificIT/mopidy,diandiankan/mopidy,tkem/mopidy,swak/mopidy,diandiankan/mopidy,bacontext/mopidy,mokieyue/mopidy,pacificIT/mopidy,swak/mopidy,ZenithDK/mopidy,vrs01/mopidy,bencevans/mopidy,bacontext/mopi...
mopidy/backends/local/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport psycopg2\nimport os\nimport getpass\n\n\ndef get_pg_connection():\n return psycopg2.connect(\n \"dbname=bedquilt_test user={}\".format(getpass.getuser())\n )\n\n```\n\nApply this change: Add the sql to create the test da...
python
edit
3
1
mit
ed350a7387c376538f51a8a7a8cfde5469baba8a
BedquiltDB/bedquilt-core
tests/testutils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2014 - 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# h...
python
edit
1
2
apache-2.0
27a24e265737c0d67ed5d93e705d250a9e6b855a
openstack/python-mistralclient,openstack/python-mistralclient,StackStorm/python-mistralclient,StackStorm/python-mistralclient
mistralclient/api/v2/tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from unittest2 import TestCase\nexcept ImportError:\n from unittest import TestCase # flake8: noqa\n\nimport six\nfrom mock import patch\n\nfrom daybed.backends.id_generators import KoremutakeGenerator\n\n\nclass KoremutakeGen...
python
edit
2
1
bsd-3-clause
61e792e1c4d41d2a0e3f3433b39f364a5c1df144
spiral-project/daybed,spiral-project/daybed
daybed/tests/test_id_generators.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom jsk_data import download_data\n\n\ndef main():\n PKG = 'jsk_apc2016_common'\n\n download_data(\n pkg_name=PKG,\n path='trained_data/vgg16_96000.chainermodel',\n url='https://drive.goo...
python
edit
1
1
bsd-3-clause
aeb43ef66c0dc16d020b941e71fa19d357016e02
pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc,pazeshun/jsk_apc
jsk_apc2016_common/scripts/install_trained_data.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom twisted.words.protocols import irc\nfrom txircd.modbase import Command\n\nclass PingCommand(Command):\n\tdef onUse(self, user, data):\n\t\tif data[\"params\"]:\n\t\t\tuser.sendMessage(\"PONG\", \":{}\".format(data[\"params\"][0]), to=s...
python
edit
1
2
bsd-3-clause
db8b85e2c5789b91a1d50a902f626fba95a4f4cc
Heufneutje/txircd,ElementalAlchemist/txircd,DesertBus/txircd
txircd/modules/cmd_ping.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"<project_name> URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/1.9/topics/http/urls/\nExamples:\nFunction views\n 1. Add an import: from my_...
python
edit
1
0
mit
28ce9a3316bbbb58a244dc6ed5cd43bc13dca01b
nkhumphreys/django_docker_template,nkhumphreys/django_docker_template,nkhumphreys/django_docker_template
project_dir/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport six\n# only run for python 3, or else syntax errors\nif six.PY3:\n from ._partial_run import *\n\n```\n\nApply this change: Update to use ipython kernel extension" }, { "role": "assistant", "content": "import six\n\n\n...
python
edit
1
2
mit
6ecabe1e20ef7d82651bf91ccfc30bcb77bcb968
dalejung/nbx,dalejung/nbx,dalejung/nbx,dalejung/nbx
nbx/extensions/partial_run.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport eventlet\neventlet.monkey_patch() # NOLINT\n\n\nimport importlib\nimport sys\nfrom weaveserver.main import create_app\nfrom weaveserver.core.logger import configure_logging\n\n\ndef handle_launch():\n import signal\n from weav...
python
edit
1
1
mit
d31bb7014a58eb90ffb3dd25d136595c24c47e68
supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer
app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Module: docs\n# Date: 03rd April 2013\n# Author: James Mills, j dot mills at griffith dot edu dot au\n\n\"\"\"Documentation Tasks\"\"\"\n\nfrom fabric.api import lcd, local, task\n\nfrom .utils import pip, requires\n\n\nPACKAGE = ...
python
edit
1
2
mit
a7481dea799117199af4e48526a007194c8d3220
eriol/circuits,treemo/circuits,treemo/circuits,treemo/circuits,nizox/circuits,eriol/circuits,eriol/circuits
fabfile/docs.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n README = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.ab...
python
edit
1
0
apache-2.0
7734721ebf956c994de289b43523681e42897ad4
Hipo/drf-extra-fields,Hipo/drf-extra-fields
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\nimport tornado\nfrom tornado import autoreload\nfrom tornado.wsgi import WSGIContainer\nfrom tornado.httpserver import HTTPServer\nfrom tornado.ioloop import IOLoop\nfrom tornado.log import enable_pr...
python
edit
4
0
mit
4237d5cb9d430c71089e3fe5965e5d83af9f97df
jochasinga/rpg-x,jochasinga/rpg-x,jochasinga/rpg-x,jochasinga/rpg-x
run.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\nfrom . import AbstractTranslationProvider\nfrom google.cloud import translate\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass GoogleTranslate(AbstractTranslationProvider):\n def translate(self, strings, target_lang...
python
edit
1
1
mit
ae433a0ed222d3540581b2b49c9a49a8ad16819c
marteinn/wagtail-alt-generator,marteinn/wagtail-alt-generator,marteinn/wagtail-alt-generator
wagtailaltgenerator/translation_providers/google_translate.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\ninstall_requires = [\n 'dill==0.2.5',\n 'easydict==1.6',\n 'h5py==2.6.0',\n 'jsonpickle==0.9.3',\n 'Keras==1.2.0',\n 'nflgame==1.2.20',\n 'numpy==1.11.2',\n 'pandas==0...
python
edit
1
0
mit
c9d3acd0e404a60a3bb31dd49aadcca7c67ffa55
kahnjw/wincast
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pip.req import parse_requirements\nfrom setuptools import setup\n\nsetup(name='psc_konvertor',\n version='0.1.0',\n description='PSČ Konvertor',\n long_description='',\n classifiers=[\n 'Development Status ::...
python
edit
1
0
mit
3881bc75b43fc109e27348a41724311300039a15
petrbel/psc_konvertor
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nrequires = ['requests', 'requests-oauthlib']\n\ntry:\n from setuptools import setup\n kw = {'entry_points':\n \"\"\"[console_scripts]\\nopenphoto = openphoto.main:main\\n\"\"\",\n 'zip_safe':...
python
edit
1
0
apache-2.0
e8e65f082ba73277cd99a02ede4d3f019a585088
photo/openphoto-python,photo/openphoto-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport subprocess\nfrom setuptools import setup, find_packages\nimport os\n\n\ndef git_version():\n def _minimal_ext_cmd(cmd):\n # construct minimal environment\n env = {}\n for k in ['SYSTEM...
python
edit
1
3
mit
7ca0d0d23587814f7bdc8e4d5de4c1182b516b3b
davidbrough1/pymks,davidbrough1/pymks
setup.py
rejected_duplicate
Near-duplicate of sample 4216
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.d...
python
edit
1
0
mit
4eb9d9ce241c32ee3fbef58be3ef4a52b7ab10e0
rabbitt/artifactory,Parallels/artifactory,rabbitt/artifactory
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='skyarea',\n packages=['sky_area'],\n scripts=['bin/make_search_map', 'bin/process_areas', 'bin/run_sky_area'],\n version='0.1',\n description='Compute credible regions on the sky...
python
edit
1
0
mit
ffe963385ed5f8f1011b40df4fdc0cfa0794abaf
farr/skyarea,lpsinger/skyarea
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\nfrom setuptools import setup\nfrom io import open\n\n__version__, = re.findall('__version__ = \"(.*)\"',\n open('mappyfile/__init__.py').read())\n\ndef readme():\n with open('README.rst', \"r\", encodi...
python
edit
1
1
mit
60a7b2c7a438cd3fb08e418e9e7d1ffb62fe1c89
geographika/mappyfile,geographika/mappyfile
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Use setuptools if we can\ntry:\n from setuptools.core import setup\nexcept ImportError:\n from distutils.core import setup\n\nPACKAGE = 'django-render-as'\nVERSION = '1.1'\n\npackage_data = {\n 'render_as': [\n 'templates/...
python
edit
1
0
mit
b51e0ff9407f8a609be580d8fcb9cad6cfd267d8
jaylett/django-render-as,jaylett/django-render-as
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nfrom sys import version\nif version < '2.6.0':\n raise Exception(\"This module doesn't support any version less than 2.6\")\n\nimport sys\nsys.path.append(\"./test\")\n\nwith open('README.rst', 'r') as f:\...
python
edit
1
0
bsd-3-clause
e7677e76e22e5cba305ba218676a5c870b940e7a
keitaoouchi/seleniumwrapper
setup.py
rejected_duplicate
Near-duplicate of sample 14184
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='pil-compat',\n version='1.0.0',\n packages=['Image',\n 'ImageDraw'],\n description='Compatibility modules, bridging PIL -> Pillow',\n author='Alistair Lynn',\n ...
python
edit
1
0
mit
aabc64d9e7dc2a4f2189650dac643781cc0f3e14
prophile/pil-compat,coxmediagroup/pil-compat
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
fa773ead3f83e1674a428cb35c499a572ed50250
ErinCall/catsnap,ErinCall/catsnap,ErinCall/catsnap
setup.py
rejected_duplicate
Near-duplicate of sample 17428
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\nimport os.path as op\nimport uuid\nimport configparser\n\n\nver_file = os.path.join('popylar', 'version.py')\nwith open(ver_file) as f:\n exec(f.read())\n\npopylar_path = op.join(op...
python
edit
16
0
bsd-2-clause
3feb567a74042e1174d8206b5f8cb945499b8ced
popylar/popylar
setup.py
rejected_lint
Too many lint violations: 16
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#########\n# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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...
python
edit
1
0
apache-2.0
2ce76787e2a827525615508a087e5e17d22534a9
kemiz/tosca-vcloud-plugin,nmishkin/tosca-vcloud-plugin,denismakogon/tosca-vcloud-plugin,vmware/tosca-vcloud-plugin,cloudify-cosmo/tosca-vcloud-plugin
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\n\ndef get_description():\n try:\n with open(\"README.md\") as f:\n return f.read()\n except IOError:\n return \"\"\n\n\nsetup(n...
python
edit
1
2
mit
23b5b79fc0a107881d563221e7c7d284e6761868
victal/ulp,victal/ulp
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf8 -*-\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='django-revisionfield',\n version='0.2.2',\n description = 'An model field that auto increments every time the model is'\n ' sa...
python
edit
1
0
bsd-2-clause
e0a468f8e7d56bd46a4e12af8959587dde8a7654
bradleyayers/django-revisionfield
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nfrom savanna.openstack.common import setup as common_setup\n\nrequires = common_setup.parse_requirements()\ndepend_links = common_setup.parse_dependency_links()\nproject = 'savanna'\n\nsetuptools.setup(\n name=projec...
python
edit
1
0
apache-2.0
336bfa47f24c01c8033c88d4dc60cfb3f117b7dd
zhujzhuo/Sahara,matips/iosr-2015,bigfootproject/sahara,bigfootproject/sahara,zhangjunli177/sahara,keedio/sahara,esikachev/scenario,henaras/sahara,xme1226/sahara,egafford/sahara,esikachev/sahara-backup,bigfootproject/sahara,tellesnobrega/storm_plugin,xme1226/sahara,esikachev/sahara-backup,mapr/sahara,tellesnobrega/sahar...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ntry:\n import pypandoc\n long_description=pypandoc.convert('README.md', 'rst')\nexcept (IOError, ImportError):\n long_description = \"Whitespace interpreter written in Python 3\"\n\nse...
python
edit
3
0
apache-2.0
3e89599b12cb3a39528d1d3835241066412e3a29
yasn77/whitepy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='django-waffle',\n version='0.1.1',\n description='A feature flipper for Django.',\n long_description=open('README.rst').read(),\n author='James Socol',\n author_email='<EMAIL>...
python
edit
1
0
bsd-3-clause
1f3c60342d1599faf245377d753aa53f15f6805c
VladimirFilonov/django-waffle,isotoma/django-waffle,willkg/django-waffle,hwkns/django-waffle,VladimirFilonov/django-waffle,engagespark/django-waffle,ekohl/django-waffle,webus/django-waffle,rlr/django-waffle,engagespark/django-waffle,styleseat/django-waffle,ilanbm/django-waffle,safarijv/django-waffle,isotoma/django-waff...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf8\n\n# Copyright 2013-2015 Vincent Jacques <<EMAIL>>\n\nimport setuptools\n\nversion = \"0.5.0\"\n\n\nsetuptools.setup(\n name=\"MockMockMock\",\n version=version,\n description=\"Mocking library...
python
edit
1
0
mit
dde846475bc3584e4269300b754573a0c4a34170
jacquev6/MockMockMock
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README file than to p...
python
edit
1
1
mit
14a4bb5db566c5027d1b6fa9f715e1c984442137
trimailov/timeflow
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\n\nversion = \"0.1.1\"\n\nsetup(name=\"riemann-sumd\",\n version=version,\n description=\"Python agent for scheduling event generating processes and sending the results to Ri...
python
edit
1
0
mit
003034caa0072d3e13b997df219b6612ae4b128e
crashlytics/riemann-sumd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n'''Implementation of a simple stack data structure.\nThe stack has push, pop, and peek methods.\n'''\n\n\nclass Item(object):\n def __init__(self):\n pass\n\n\nclass Stack(object):\n def __init__(self):...
python
edit
1
1
mit
5d7057bc34e10070a5b3f825618e87ad91fcbfea
jwarren116/data-structures-deux
stack.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nfrom withtool import __version__\n\n\ndef read(fname):\n path = os.path.join(os.path.dirname(__file__), fname)\n with open(path, encoding='utf-8') as f:\n return f.read()\n\n\nsetup(...
python
edit
1
1
mit
e16a6c3012dfc8138b889e539c62eb391ce847e2
renanivo/with
setup.py
rejected_duplicate
Near-duplicate of sample 12411
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"images_of\",\n version = \"0.1.0\",\n\n author = \"acimi-ursi\",\n description = \"Tools for managing the ImagesOfNetwork on reddit\",\n ...
python
edit
1
0
mit
d1125a4b1a73277f783225bdf2c04a722332bc91
scowcron/ImagesOfNetwork,amici-ursi/ImagesOfNetwork
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nfrom setuptools import setup, find_packages\nfrom version import get_git_version\n\nVERSION, SOURCE_LABEL = get_git_version()\nPROJECT = 'yakonfig'\nAUTHOR = 'Diffeo, Inc.'\nAUTHOR_EMAIL = '<EMAIL>'\nURL = ...
python
edit
1
1
mit
412e195da29b4f4fc7b72967c192714a6f5eaeb5
diffeo/yakonfig
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2015 Bloomberg Finance L.P.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
python
edit
1
0
apache-2.0
9ae2abd28cfc1d913791b1548677d98081777489
SylvainCorlay/bqplot,SylvainCorlay/bqplot,ChakriCherukuri/bqplot,rmenegaux/bqplot,rmenegaux/bqplot,bloomberg/bqplot,dmadeka/bqplot,ChakriCherukuri/bqplot,SylvainCorlay/bqplot,ChakriCherukuri/bqplot,ssunkara1/bqplot,ssunkara1/bqplot,bloomberg/bqplot,bloomberg/bqplot,dmadeka/bqplot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n__version__ = \"unknown\"\n\n# \"import\" __version__\nfor line in open(\"sfs/__init__.py\"):\n if line.startswith(\"__version__\"):\n exec(line)\n break\n\nsetup(\n name=\"...
python
edit
1
0
mit
de276ee4b006b1f207a0692c1cfda3ecbd9b38fd
sfstoolbox/sfs-python,sfstoolbox/sfs-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\ninstall_requires = [\n 'MySQL-python>=1.0.0',\n 'SQLAlchemy>=1.1.0',\n]\n\nf = open('README.rst')\nreadme = f.read()\nf.close()\n\nsetup(\n name='sqldd',\n ve...
python
edit
1
0
bsd-3-clause
f293f162e0dcec88cbfbb9ae691bc2deb4c3ba26
rkeilty/sql-data-dependency,rkeilty/sql-data-dependency
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\r\n\r\nCONSOLE_SCRIPTS = ['pordego = pordego.cli:main']\r\n\r\n\r\nsetup(name=\"pordego\",\r\n version=\"1.0.0\",\r\n description=\"Command line tool for running configurable static anal...
python
edit
1
0
mit
250d04c162c018227e13aa6cf6285c3121f0a687
ttreptow/pordego
setup.py
accepted
null
true