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 markdown import markdown\nimport docutils.core\nfrom docutils.writers.html4css1 import Writer as rst_html_writer\n\nclass Renderer(object):\n extensions = []\n\n @classmethod\n def render(cls, plain):\n return plain\n\n...
python
edit
1
1
mit
482bcbaeddf3d18c445b780a083d723a85a6dd88
wummel/wok,mythmon/wok,ngokevin/wok,matt-garman/wok,Avaren/wok,algor512/wok,edunham/wok,ngokevin/wok,chrplace/wok,moreati/wok,mythmon/wok,algor512/wok,vaygr/wok,vaygr/wok,edunham/wok,algor512/wok,moreati/wok,abbgrade/wok,edunham/wok,gchriz/wok,abbgrade/wok,matt-garman/wok,chrplace/wok,chrplace/wok,matt-garman/wok,jneve...
wok/renderers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport string\nimport textwrap\n\nfrom veryprettytable import VeryPrettyTable\n\nfrom plugins import BasePlugin\n\n\n__author__ = 'peter'\n\n\nclass BasicInfoPlugin(BasePlugin):\n short_description = 'List some basic info about the strin...
python
edit
1
8
mit
6cce924d849f209fb8251acd4c21d65ad0daa24c
Sakartu/stringinfo
plugins/basic_info_plugin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# pylint: disable=line-too-long\n\"\"\" Handles docker compose \"\"\"\n\nfrom lib.docker_tools import docker_compose\nfrom lib.tools import show_status\n\n\ndef set_up(pg_version, es_version):\n \"\"\" Start containers \"\"\"\n\n comp...
python
edit
1
2
mit
dad05c2eff78383e3179fd1f4a4502fe553afecd
matthewfranglen/postgres-elasticsearch-fdw
tests/lib/docker_compose_tools.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n\nimport pickle, sys\nsys.path.append('../')\nfrom lewas.parsers import UnitParser, AttrParser, field_rangler\nimport lewas.datastores\nimport lewas.models\n\nconfig = \"../config\"\nconfig = lewas.readConfig(config)...
python
edit
2
0
mit
1e82bf0e23775dfc2541dc8c2dec4447c20f2cda
LEWASatVT/lewas
tests/submitsaved.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nWSGI application target.\n\nThis module is designed for use when running the Jacquard server from a WSGI\nweb server such as waitress or gunicorn. `jacquard.wsgi` would be the module\nto target, picking up the WSGI application from ...
python
edit
1
0
mit
7fd5db30d8ce8b6ecc8fdb87f695f484e5e9f38f
prophile/jacquard,prophile/jacquard
jacquard/wsgi.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.conf.urls.defaults import patterns, include\nfrom django.contrib.staticfiles.urls import staticfiles_urlpatterns\nfrom django.http import HttpResponse\n\nfrom funfactory.monkeypatches import pat...
python
edit
1
0
bsd-3-clause
5d44e71da2835ff9cdeb9fa21d0fcd8645c4365a
lgp171188/fjord,rlr/fjord,DESHRAJ/fjord,hoosteeno/fjord,lgp171188/fjord,staranjeet/fjord,lgp171188/fjord,mozilla/fjord,Ritsyy/fjord,DESHRAJ/fjord,mozilla/fjord,mozilla/fjord,hoosteeno/fjord,rlr/fjord,mozilla/fjord,hoosteeno/fjord,rlr/fjord,staranjeet/fjord,Ritsyy/fjord,DESHRAJ/fjord,Ritsyy/fjord,hoosteeno/fjord,staranj...
fjord/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport pytest\n\nfrom bugbuzz import BugBuzzClient\n\n\n@pytest.fixture\ndef bugbuzz_client(base_url='http://localhost'):\n return BugBuzzClient(base_url)\n\n\ndef test_random_access_key():\n ...
python
edit
1
2
mit
d8a2eb66521f49c535d54cfa8a66965bc0fc8caf
victorlin/bugbuzz-python,victorlin/bugbuzz-python
tests/test_client.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport requests\n\n\nclass HackerNews():\n\n def __init__(self):\n self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'\n\n def request(self, method, uri):\n url = self.url.format(uri=uri)\n return requests.re...
python
edit
1
1
mit
1598c699dc6bdf5d6edd700b70e11df207412dcd
abrinsmead/hackernews-python
hackernews.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Based on \"Flask is Fun\" demo from Flask documentation.\n\nimport os\n\nfrom flask import Flask\napp = Flask(__name__)\n\n@app.route(\"/\")\ndef hello():\n return \"Hello World!\"\n\nif __name__ == \"__main__\":\n app.config.update...
python
edit
1
1
mit
538a48b0ec6589d4d8fcf1c4253898a0fd3367e3
smartmob-project/strawboss-demo,smartmob-project/strawboss-demo
hello.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import request\nfrom flaskext.genshi import render_response\n\nfrom yoi.app import app\n\n@app.route('/')\ndef get_index():\n return render_response('index.html')\n\n@app.route('/home')\ndef get_home():\n return render_resp...
python
edit
3
1
mit
904644ba540fbf6dcd47fb5a006d03a64d299fb2
doptio/you-owe-it,doptio/you-owe-it,doptio/you-owe-it,doptio/you-owe-it
src/yoi/pages.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Tests for SecretStorage\n# Author: Dmitry Shachnev, 2013\n# License: BSD\n\n# Various exception tests\n\nimport unittest\nimport secretstorage\nfrom secretstorage.exceptions import ItemNotFoundException\n\nclass ExceptionsTest(unittest.Te...
python
edit
1
1
bsd-3-clause
7d266a2e0f9d636272f60636d79703166b6377d2
mitya57/secretstorage
tests/test_exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom conans import ConanFile\nfrom conans.tools import download, unzip\nimport os\n\nVERSION = \"0.1.2\"\n\n\nclass CMakeIncludeGuardConan(ConanFile):\n name = \"cmake-include-guard\"\n version = os.environ.get(\"CONAN_VERSION_OVERRID...
python
edit
1
2
mit
8b7a7e09a53d23b37266c67995756cf1dadf520d
polysquare/cmake-include-guard
conanfile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2011 OpenStack LLC.\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 ...
python
edit
1
2
apache-2.0
4b926ab5de00bc4885021fff0b2ac3679703707a
klmitch/nova,hanlind/nova,aristanetworks/arista-ovs-nova,fajoy/nova,dawnpower/nova,gooddata/openstack-nova,joker946/nova,shail2810/nova,orbitfp7/nova,jeffrey4l/nova,zaina/nova,tianweizhang/nova,ruslanloman/nova,mgagne/nova,yosshy/nova,cloudbase/nova,paulmathews/nova,JioCloud/nova_test_latest,savi-dev/nova,russellb/nova...
nova/db/sqlalchemy/migrate_repo/versions/034_change_instance_id_in_migrations.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2020, Mark Peek <<EMAIL>>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject\n\n\nclass Graph(AWSObject):\n resource_type = \"AWS::Detective::Graph\"\n\n props = {\n }\n\n\nc...
python
edit
5
0
bsd-2-clause
cd9c6f96f68391cf333b68e1ea28e513e869aca3
cloudtools/troposphere,cloudtools/troposphere
troposphere/detective.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import serializers\nfrom django.contrib.auth.models import User, Group\n\n\nclass GroupSerializer(serializers.ModelSerializer):\n class Meta:\n model = Group\n fields = ('name',)\n\n\nclass UserSerialize...
python
edit
1
0
mit
70686bc62b85d36894b6e7909ceaa25d122ffe95
fernandolobato/balarco,fernandolobato/balarco,fernandolobato/balarco
users/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom framewirc import exceptions\n\n\nclass MissingAttributesTest:\n def test_message(self):\n attrs = ['some', 'attrs']\n expected = 'Required attribute(s) missing: {}'.format(attrs)\n\n exception = exceptions.Missi...
python
edit
1
1
bsd-2-clause
c86ccf75fdf49115697548bb046bc83f348a1aba
meshy/framewirc
tests/test_exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport httplib as http\n\nfrom framework import request\nfrom framework.auth.decorators import must_be_logged_in\nfrom framework.exceptions import HTTPError\n\nfrom website.project.decorators import must_have_addon\...
python
edit
1
3
apache-2.0
31c79697db0d5c973cff9b845ed28845695ecb02
CenterForOpenScience/osf.io,revanthkolli/osf.io,jnayak1/osf.io,mluo613/osf.io,caneruguz/osf.io,alexschiller/osf.io,adlius/osf.io,himanshuo/osf.io,CenterForOpenScience/osf.io,samanehsan/osf.io,jeffreyliu3230/osf.io,cslzchen/osf.io,cwisecarver/osf.io,billyhunt/osf.io,SSJohns/osf.io,cosenal/osf.io,GageGaskins/osf.io,kushG...
website/addons/twofactor/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask.ext.wtf import Form\nfrom wtforms import SelectField, BooleanField, IntegerField, TextField, \\\n validators\n\n\n# TODO add vailidation\nclass TeamForm(Form):\n number = IntegerField(\"Number\", [validators.Required(),\n ...
python
edit
1
0
mit
1c58cdadb93180557275682fa34433de2b736445
rtfoley/scorepy,rtfoley/scorepy,rtfoley/scorepy
forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.urls import reverse\n\nfrom rest_framework import serializers\n\nfrom .models import Tafseer, TafseerText\n\n\nclass TafseerSerializer(serializers.ModelSerializer):\n\n class Meta:\n model = Tafseer\n fields = [...
python
edit
1
1
mit
08a1bfc233dc44f40ee0b8a5950eda19bca1d6a6
EmadMokhtar/tafseer_api
quran_tafseer/serializers.py
rejected_duplicate
Near-duplicate of sample 726
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport flask\nimport sqlalchemy\n\nfrom Donut import config, constants\nfrom Donut.modules import example\n\napp = flask.Flask(__name__)\napp.debug = False\napp.secret_key = config.SECRET_KEY\n\n# Maximum file upload size, in bytes.\napp.co...
python
edit
4
1
mit
efb636d392dab44fcc110b8d17933476ba90996d
ASCIT/donut,ASCIT/donut-python,ASCIT/donut,ASCIT/donut-python,ASCIT/donut
Donut/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n # # #### ##### # # ##### # # # #\n # # # # # ## ## # # # ## # #\n ### #### #### # # # # # # # # #####\n # # # # # # # # ## # # #\n...
python
edit
1
1
bsd-2-clause
9e42514ac030cc2fa3aab89addfa48cf0342f991
glasnost/kremlin,glasnost/kremlin,glasnost/kremlin
kremlin/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/env python\n\nimport os\nimport sys\n\ndef main():\n if len(sys.argv) == 1 or sys.argv[1].lower() == \"-h\" or sys.argv[1].lower() == \"--help\":\n print(\"Syntax: fenum.py [files...]\")\n print(\"\\tEnumerate the gi...
python
edit
1
8
mit
6e6c5bb9f02a4f9d380ee20216f710a6de0b0583
mphe/scripts,mphe/scripts,mall0c/scripts,mall0c/scripts
fenum.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pax import plugin, units\n\n\nclass AdHocClassification(plugin.TransformPlugin):\n\n def transform_event(self, event):\n\n for peak in event.peaks:\n\n # Don't work on noise and lone_hit\n if peak.type i...
python
edit
1
6
bsd-3-clause
c1008646ad8eac1de30d0c1bfd95caebd66f7fa1
XENON1T/pax,XENON1T/pax
pax/plugins/peak_processing/ClassifyPeaks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nimport time\n\n# -----------------------------------------------------------------------------\n\nroot = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\nsys.pat...
python
edit
1
0
mit
8ce2cbff7063b97e249dd87dd2acb8d83bdbf509
tritoanst/ccxt,tritoanst/ccxt,ccxt/ccxt,ccxt/ccxt,tritoanst/ccxt,ccxt/ccxt,ccxt/ccxt,ccxt/ccxt,tritoanst/ccxt
examples/py/fetch-ohlcv-sequentially.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python3\n\nimport argparse\nimport os\n\nimport icon_lib\n\n\nparser = argparse.ArgumentParser(description='iconograph persistent')\nparser.add_argument(\n '--chroot-path',\n dest='chroot_path',\n action='store',\n re...
python
edit
1
1
apache-2.0
e0af42d5431c42ee5e12fb228978ac8ce9c62807
robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph,robot-tools/iconograph
server/modules/persistent.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef pytest_addoption(parser):\n parser.addoption(\"--domain\", action=\"append\", default=[],\n help=\"list of stringinputs to pass to test functions\")\n\ndef pytest_generate_tests(metafunc):\n if 'domain' in metafunc.fixturen...
python
edit
1
3
mit
a2530b9cd2baf70591e377b6eb7d5104493989a1
HIIT/mediacollection
test/conftest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.utils.translation import ugettext_lazy as _ # noqa\n\nfrom horizon import exceptions\nfrom openstack_dashboard import api\n\n\ndef get_interfaces_data(self):\n try:\n router_id = self.kwargs['router_id']\n rout...
python
edit
1
5
apache-2.0
12d2e8033c46f06f5442cba40a7c2c673196ad1c
dreamhost/akanda-horizon,dreamhost/akanda-horizon
akanda/horizon/routers/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom random import randint\n\n\nclass BackoffTimer(object):\n def __init__(self, ratio=1, max_interval=None, min_interval=None):\n self.c = 0\n self.ratio = ratio\n\n self.max_interval = max_interval\n self.mi...
python
edit
1
3
bsd-3-clause
0b49114a6b0830fa0b05d32803ae52526b8e48ca
hiringsolved/gnsq,wtolson/gnsq,wtolson/gnsq
gnsq/backofftimer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nclass InvalidPDFError(ValueError):\n pass\n\n\nclass FieldParseError(Exception):\n pass\n\n```\n\nApply this change: Add new exception type for unknown variants" }, { "role": "assistant", "content": "\nclass InvalidPDFEr...
python
edit
1
0
mit
ec2092c683f721e32a2d1d9792f296e140d6ba45
loanzen/zen_document_parser
paperwork_parser/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\r\n\r\nfrom . import activations\r\nfrom . import applications\r\nfrom . import backend\r\nfrom . import datasets\r\nfrom . import engine\r\nfrom . import layers\r\nfrom . import preprocessing\r\nfrom ...
python
edit
20
0
apache-2.0
d498a9846567e4986ba2a2541b2b4e4719c2c83f
keras-team/keras,keras-team/keras
keras/__init__.py
rejected_lint
Too many lint violations: 20
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport serial\nimport os\nimport sys\nimport time\n\n# Make and flash the unit test\nFILE_LOCATION = os.path.dirname(os.path.abspath(__file__))\nos.chdir(FILE_LOCATION + \"/../\")\nprint os.system(\"make flash_unit...
python
edit
6
0
mit
1d74b003818e260ae1f453cb26f1c9efc29e8ba2
fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project,fnivek/eecs567-final-project
scripts/run_unit_test.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport click\nfrom spanky.cli import pass_context\nfrom spanky.lib.users import UserInit\n\n\n@click.command('users', short_help='creates users base on /etc/spanky/users')\n@pass_context\ndef cli(ctx):\n config = ctx.config.load('users.y...
python
edit
1
2
bsd-3-clause
8e20b56c4b91f673429697232926115db46e0c2d
pglbutt/spanky,pglbutt/spanky,pglbutt/spanky
spanky/commands/cmd_users.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom openerp import models, fields, api\n\n\nclass Course(models.Model):\n '''\n This class creates a model for courses\n '''\n _name = 'openacademey.course'\n\n name = fields.Char(string='Title', required=True)\n descript...
python
edit
3
0
mit
727b94078ab15d04a65adbd57fe6962949bda97e
tebanep/odoo_training_addons
openacademy/model/openacademy_course.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\n\nfrom config import config\n\nfrom . import extensions, modules\n\n\ndef create_app(config_name):\n config_obj = config[config_name]()\n app = Flask(__name__, static_url_path='/static')\n\n # Initializes c...
python
edit
1
4
mit
9970faa24d9f27817c7e9c9e88869bb415d6926c
ellmetha/morganaubert-resume,ellmetha/morganaubert-resume,ellmetha/morganaubert-resume,ellmetha/morganaubert-resume
main/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport os\nsys.path.insert(0, os.path.join(\n os.path.dirname(os.path.realpath(__file__)), '..'))\n\nfrom crnpy.crn import CRN, from_react_file\n\n__author__ = \"Elisa Tonello\"\n__copyright__ = \"Copyright (c) 2016, Elisa To...
python
edit
2
0
bsd-3-clause
d0e139d286b18c9dcdc8c46161c4ebdf0f0f8d96
etonello/crnpy
examples/cooperative_binding.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom os.path import dirname, abspath\n\nsys.path.insert(0, dirname(dirname(abspath(__file__))))\n\nfrom django.conf import settings\n\nsettings.configure()\n\nproject = 'django-slack'\nversion = ''\nrelease = ''\ncopyright = '...
python
edit
1
0
bsd-3-clause
88e99caf6c426cdee602157f9aee120ecf822cad
lamby/django-slack
docs/conf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import render_template\n\nfrom app import app\n\n@app.route('/')\ndef index():\n return render_template('index.html', active='index')\n\n@app.route('/contact/')\ndef contact():\n return render_template('contact.html', activ...
python
edit
1
2
mit
67d3193683d2215fdd660bdc086801fe761c7db7
matachi/MaTachi.github.io,matachi/MaTachi.github.io
src/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(name=\"zutil\",\n version='0.1.4',\n description=\"Utilities used for generating zCFD control dictionaries\",\n author=\"Zenotech\",\n author_email=\"<EMAIL>\",\n url=\"http...
python
edit
1
0
mit
0cda8950a661a0d994d7b5824af949ec1e40f584
zCFD/zutil
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"django-service-rating-store\",\n version=\"0.3.0\",\n url='https://github.com/praekelt/django-service-rating-store',\n license='BSD',\n description=(\n \"D...
python
edit
1
0
bsd-3-clause
55851fc7fadd4b6a0241e63e6b708f9b5d4e253d
praekelt/django-service-rating-store
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n return ''\n\nsetup(\n name='todoist-python',...
python
edit
1
2
mit
845ed2a406baf333cd289f789aed0089b3ec3be9
Doist/todoist-python
setup.py
rejected_duplicate
Near-duplicate of sample 2235
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nsettings = dict()\n\n# Publish\nif sys.argv[-1] == 'publish':\n ...
python
edit
1
0
bsd-3-clause
334ccd245997373c4ddc21c03657339c4ca20192
dirn/When.py
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom setuptools import setup\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n# The packages we depend on\ndependencies = [\n ...
python
edit
1
1
apache-2.0
e00f59a20c3efa6a8db307f482d54a99f5b1f643
pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics,pegasus-isi/pegasus-metrics
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nwith open('README.md') as fp:\n long_description = fp.read()\n\nsetup(\n name='sendwithus',\n version='1.6.6',\n author='sendwithus',\n author_email='<...
python
edit
1
0
apache-2.0
c3ad61a642e0e1149ae7ea1e8bde2efa6bbc9263
mefyl/sendwithus_python,sendwithus/sendwithus_python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom os.path import dirname\n\nfrom puresnmp.pdu import PDU\nfrom puresnmp.test import readbytes_multiple\nfrom puresnmp.x690.types import pop_tlv\n\nHERE = dirname(__file__)\n\nfor row in readbytes_multiple('authpriv.hex', HERE):\n prin...
python
edit
3
0
mit
ea9847a31eb4441415f1c11ddf57056f206fc375
exhuma/puresnmp,exhuma/puresnmp
reverse-engineering/reveng.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup, find_packages\n\nclassifiers = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: System Administrators\",\n \"License :: OSI Approved :: Apache Software License\...
python
edit
1
0
apache-2.0
9f50db5179886770178a07a1167b40f3d17ccbd9
tk0miya/diff-highlight
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport sys\n\nfrom setuptools import Command, setup\n\n\nclass RunTests(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_options(self):\n pass\n\n def run(s...
python
edit
1
1
bsd-3-clause
20c0466c951864da74b250c0eeb907ad1dc209b9
consbio/parserutils
setup.py
rejected_duplicate
Near-duplicate of sample 5411
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nsetup(\n version='0.4.0',\n name='incuna-groups',\n packages=find_packages(),\n include_package_data=True,\n install_requires=[\n 'django_crispy_forms==1.4.0',\n ...
python
edit
1
0
bsd-2-clause
cf49c86c6e0966061ab7756a9922c12430ade35f
incuna/incuna-groups,incuna/incuna-groups
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Setuptools file for a MultiMarkdown Python wrapper.\"\"\"\nfrom codecs import open\nfrom os import path\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nhere = path.abspath(path.dirname(__file__))\n\nwith ope...
python
edit
3
0
mit
710dbd42142f4f3ea0f02b1924f518b3cb38b79f
jasedit/scriptorium,jasedit/papers_base
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\n from setuptools.command.test import test\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import set...
python
edit
3
0
mit
14a59d3b1d440d20c1df9b6e43c45657d8a60774
Tivix/django-common,Tivix/django-common,WikiRealtyInc/django-common,WikiRealtyInc/django-common,Tivix/django-common,WikiRealtyInc/django-common
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom django.conf import settings\nfrom django.views.decorators.http import require_http_methods\nfrom django.http import HttpResponse, HttpResponseServerError\n\nfrom healthcheck.healthcheck import (\n DjangoDBsHealthCheck...
python
edit
1
4
mit
e893a860f4a8ad9682f400507948ee20fce1c328
yola/healthcheck
healthcheck/contrib/django/status_endpoint/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nsetup script\n\n\"\"\"\n\nfrom setuptools import setup, find_packages\n\n_VERSION = '0.7'\n\nsetup(\n name='jut-tools',\n version=_VERSION,\n author='Rodney Gomes',\n author_email='<EMAIL>',\n url='https://github.com/...
python
edit
1
0
mit
b6b8c8e12b18515591c0b053cac9e515314b819e
jut-io/jut-python-tools
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport astral\nimport os\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\nlong_description = open(os.path.join(ROOT_PATH, 'README.rst')).read()\n\nsetup(name='astral',\n version=as...
python
edit
1
0
mit
9eb09bcece4a92f06c55078d2cd0e19e872c2794
peplin/astral
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\n\"\"\" Install the `arte_plus7` script \"\"\"\n\n\nfrom setuptools import setup\n\nNAME = 'arte_plus7'\n\n\ndef get_version(module):\n \"\"\" Extract package version without importing fil...
python
edit
1
3
mit
6dd3946a0ecf63d913efc71150d753895710001e
cladmi/arte_plus7
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\nsetup(\n name = \"pyscribe\",\n version = \"0.1.1\",\n author = \"Alexander Wang\",\n author_email = \"<EMAIL>\",\n description = (\"PyScribe makes print debugging easier and more effi...
python
edit
3
0
mit
433c041e3016fce0f1e3edbb9dae980f69071f3b
alixander/PyScribe
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='pypif',\n version='2.0.1',\n url='http://github.com/CitrineInformatics/pypif',\n description='Python tools for working with the Physical Information File (PIF)',\n ...
python
edit
1
0
apache-2.0
3ed73321bb70817faa87d31ec8b588857b204634
CitrineInformatics/pypif
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom jamo import __version__\nimport sys\n\nif sys.version_info <= (3, 0):\n print(\"ERROR: jamo requires Python 3.0 or later \"\n \"(bleeding edge preferred)\", file=sys.stderr)\n ...
python
edit
1
0
apache-2.0
300415c30dab2f8d2622c8b8de03f433bf6d5960
JDongian/python-jamo
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom app_data import AppDataContainer, app_registry\nfrom cms.apphook_pool import apphook_pool\nfrom django.core.urlresolvers import resolve\n\n\ndef get_app_instance(request):\n \"\"\"\n Returns a tuple conta...
python
edit
1
7
bsd-3-clause
be2cd54386c0fb9c407ac5dc7da467547b0b426e
aldryn/aldryn-apphooks-config,aldryn/aldryn-apphooks-config,aldryn/aldryn-apphooks-config
aldryn_apphooks_config/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom distutils.core import setup\n\nsetup(\n name='LoadStone',\n version='0.1',\n description='Interface for FFXIV Lodestone',\n author='Sami Elahmadie',\n author_email='<EMAIL>',\n url='https://g...
python
edit
1
0
mit
7941c60ba5a52ead654e5816ee39e48b9e927a21
Demotivated/loadstone
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nwith open('README.rst') as README:\n long_description = README.read()\n long_description = long_description[long_description.index('Description'):]\n\nsetup(name='wos',\n version='0.1.2',\n de...
python
edit
1
0
mit
d96b8f237e79c924865b429b5e8a725630537d2b
enricobacis/wos
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nsetup(\n name='publish-aws-lambda',\n version='0.3',\n description='Publish a Python module as a set of AWS lambda f...
python
edit
1
0
mit
9cb532115f44b25101efa7d448328e35ca51c37c
ophirh/publish-aws-lambda
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\nsetup(name='sophiabus230',\n version='0.4',\n description='Module to get the timetable of the Sophia Antipolis bus line 230',\n url='http://git...
python
edit
1
0
mit
a5c0f5c46c64e56e0a4a0791b86b820e8ed0241b
paraita/sophiabus230,paraita/sophiabus230
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, find_packages\n\nsetup(\n name='django-ical',\n version='1.4',\n description=\"iCal feeds for Django based on Django's syndication feed \"\n \"framework.\",\n ...
python
edit
1
0
mit
f80ef1738608ececd6fb2b6a034ca9263f06ae17
Pinkerton/django-ical
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom os import path\nfrom setuptools import find_packages, setup\n\nREADME_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')\n\nwith open(README_rst, 'r') as f:\n long_description = f.read()\n...
python
edit
1
0
mit
8ccc50c222163b76e2284438ab3779de13ba5c6d
jfhbrook/pyee
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport codecs\nfrom setuptools import setup\n\n\nlines = codecs.open('README', 'r', 'utf-8').readlines()[3:]\nlines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines()[1:])\ndesc = ''.join(lines).lstrip()\n\nimport translitcodec\nversio...
python
edit
1
0
mit
351815d8da1dc1b2227e8fd832e690f8aee47747
claudep/translitcodec,claudep/translitcodec
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: UTF-8 -*-\nfrom distutils.core import setup\n\nfrom setuptools import find_packages\n\nfrom dodgy import __pkginfo__\n\n_packages = find_packages(exclude=[\"*.tests\", \"*.tests.*\", \"tests.*\", \"tests\"])\n\n_short_descript...
python
edit
1
0
mit
17ed284dd2c084d95fdbae221cbf9e701827f16d
landscapeio/dodgy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Run with `python viewer.py PATH_TO_RECORD_JSON.\n\nimport json\nimport sys\n\nfrom flask import Flask, jsonify\nfrom flask.templating import render_template\n\n\napp = Flask(__name__, template_folder='.')\n# app.debug = True\n\n# `main` i...
python
edit
1
1
mit
a7b47737be5e0ad674025348ce938a81058c85f6
mihneadb/python-execution-trace,mihneadb/python-execution-trace,mihneadb/python-execution-trace
viewer/viewer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nCELERY_BACKEND = \"mongodb\"\n\nAMQP_SERVER = \"localhost\"\nAMQP_PORT = 5672\nAMQP_VHOST = \"celeryvhost\"\nAMQP_USER = \"celeryuser\"\nAMQP_PASSWORD = \"celerypw\"\n\nCELERYD_LOG_FILE = \"celeryd.log\"\nCELERYD_PI...
python
edit
1
0
apache-2.0
212bf2f97a82ebe28431ff3d8f64affaf45fd55e
Bitergia/allura,apache/incubator-allura,apache/allura,apache/incubator-allura,lym/allura-git,lym/allura-git,apache/incubator-allura,leotrubach/sourceforge-allura,lym/allura-git,heiths/allura,apache/allura,heiths/allura,apache/allura,heiths/allura,Bitergia/allura,apache/incubator-allura,leotrubach/sourceforge-allura,lym...
pyforge/celeryconfig.py
accepted
null
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 name = 'spotter',\n version = '1.7',\n url = \"http://github.com/borntyping/spotter\",\n\n author = \"S...
python
edit
1
0
mit
51356be94e251b75b8262170ac2f8c2c3a2c5ba6
borntyping/spotter
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\n\nfrom invoke import task, util\n\n\nin_ci = os.environ.get(\"CI\", \"false\") == \"true\"\nif in_ci:\n pty = False\nelse:\n pty = util.isatty(sys.stdout) and util.isatty(sys.stderr)\n\n\n@task\ndef reformat(c):...
python
edit
1
3
apache-2.0
d8588d31f23377f27b81e62f5471997271ae0ca2
paddycarey/mopidy-webhooks
tasks.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\nsetup(\n name=\"txyam\",\n version=\"0.4+weasyl.1\",\n description=\"Yet Another Memcached (YAM) client for Twisted.\",\n author=\"Brian Muller\",\n author...
python
edit
1
0
mit
bec0984d0fe1cd6820f9e10dbc97b5c872c41a87
Weasyl/txyam2
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport os.path\n\n# atrocious and unholy!\ndef get_my_path():\n import fake\n return os.path.dirname(str(fake).split()[3][1:])\n\nlibpath = os.path.abspath(get_my_path())\n#print \"libpath =\", libpath\nos.environ['PATH'] =...
python
edit
2
1
mit
e68836173dec1e1fe80e07cca8eb67ebe19e424e
ruleless/CEGUI,OpenTechEngine/CEGUI,ruleless/CEGUI,ruleless/CEGUI,ruleless/CEGUI,OpenTechEngine/CEGUI,OpenTechEngine/CEGUI,OpenTechEngine/CEGUI
cegui/src/ScriptingModules/PythonScriptModule/bindings/distutils/PyCEGUI/__init__.py
rejected_duplicate
Near-duplicate of sample 1425
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom data_importers.management.commands import BaseDemocracyCountsCsvImporter\n\n\nclass Command(BaseDemocracyCountsCsvImporter):\n council_id = \"BAR\"\n addresses_name = \"2021-03-08T19:54:15.110811/Barrow in Furness Democracy Club ...
python
edit
1
3
bsd-3-clause
d3ef281b8e64ede5076aa58e47016b3252c2c181
DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations
polling_stations/apps/data_importers/management/commands/import_barrow_in_furness.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\n\nfrom cactus.listener.polling import PollingListener\n\n\nlogger = logging.getLogger(__name__)\n\n\ntry:\n from cactus.listener.mac import FSEventsListener as Listener\nexcept (ImportError, OSError):\n logger.warnin...
python
edit
1
0
bsd-3-clause
63f8f15d359fd12827ef41def4faf72a5e998640
chaudum/Cactus,Knownly/Cactus,Knownly/Cactus,koenbok/Cactus,koenbok/Cactus,chaudum/Cactus,chaudum/Cactus,koenbok/Cactus,eudicots/Cactus,ibarria0/Cactus,Knownly/Cactus,eudicots/Cactus,ibarria0/Cactus,eudicots/Cactus,ibarria0/Cactus
cactus/listener/__init__.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Create all of the tasks needed for developing in Armstrong" }, { "role": "assistant", "content": "import pkg_resources\npkg_resources.declare_namespace(__name__)\n\n\nfrom contextlib import contextmanager\ntry:\n import covera...
python
new_file
3
8
apache-2.0
e6a3e0c77ada592c06394af2e235b3528a61202a
armstrong/armstrong.dev
armstrong/dev/tasks/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom common.methods import set_progress\nfrom azure.common.credentials import ServicePrincipalCredentials\nfrom botocore.exceptions import ClientError\nfrom resourcehandlers.aws.models import AWSHandler\nimport boto3\n\ndef run(job, **kwarg...
python
edit
4
2
apache-2.0
86dca4a7d3c1574af9da85e5a2f10b84d18d28c0
CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge,CloudBoltSoftware/cloudbolt-forge
blueprints/aws_backup_plans/delete.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf8\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\nfrom django.conf import settings\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n migrations.swappable_depend...
python
edit
1
0
bsd-2-clause
a37db382c69293953c709365cd2c64c4a99f419e
James1345/django-rest-framework,wzbozon/django-rest-framework,rhblind/django-rest-framework,ajaali/django-rest-framework,tcroiset/django-rest-framework,hunter007/django-rest-framework,hunter007/django-rest-framework,wwj718/django-rest-framework,kennydude/django-rest-framework,jpadilla/django-rest-framework,kezabelle/dj...
rest_framework/authtoken/migrations/0001_initial.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.cache import cache\n\n#get the cache key for storage\ndef cache_get_key(*args, **kwargs):\n import hashlib\n serialise = []\n for arg in args:\n serialise.append(str(arg))\n for key,arg in kwargs.items():...
python
edit
1
4
mit
6f5c1aa40181d5f9cc34bf85fd03e8e5758a9183
daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban
libs/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\ndef sorted_walk(rootpath):\n # report this\n dirpath, dirs, files = next(os.walk(rootpath))\n yield (dirpath, dirs, files)\n for ndir in sorted(dirs):\n ndirpath = os.path.join(rootpath, ndir)\n for _,...
python
edit
4
3
mit
7f796b74b8996bda7d31184e6c580d2a3e4f7e18
inker610566/python-improve-libs
os.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nose.tools import assert_in, assert_equal\nfrom bluesky.run_engine import RunEngine\nfrom bluesky.examples import *\n\n\nRE = None\n\n\ndef setup():\n global RE\n RE = RunEngine()\n\n\ndef test_main_thread_callback_exceptions():\...
python
edit
18
2
bsd-3-clause
d4171faa21324cc8d23b5e0352932e3d1769f58a
klauer/bluesky,ericdill/bluesky,sameera2004/bluesky,klauer/bluesky,dchabot/bluesky,ericdill/bluesky,dchabot/bluesky,sameera2004/bluesky
bluesky/tests/test_callbacks.py
rejected_lint
Too many lint violations: 18
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n#...
python
edit
1
0
apache-2.0
77c6fd50fdc2bd7e716ecfba30e8e18e27b3c0eb
openstack/oslo.concurrency,varunarya10/oslo.concurrency,JioCloud/oslo.concurrency
oslo/__init__.py
rejected_duplicate
Near-duplicate of sample 397
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.conf import settings\nfrom allauth.account.adapter import DefaultAccountAdapter\nfrom allauth.socialaccount.adapter import DefaultSocialAccountAdapter\n\n\nclass AccountAdapter(DefaultAccountAdapter):\n ...
python
edit
1
1
mit
c974c7a73e8ef48ea4fb1436b397f2973d8048c7
LucianU/bud,LucianU/bud,LucianU/bud
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/apps/users/adapter.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.views.generic import DetailView, ListView\nfrom lab_members.models import Scientist\n\nclass ScientistListView(ListView):\n model = Scientist\n queryset = Scientist.objects.all()\n\nclass ScientistDetailView(DetailView):\n...
python
edit
1
1
bsd-3-clause
e7278521d8ee387acc5bc94c39f041c7e08c6cc6
mfcovington/django-lab-members,mfcovington/django-lab-members,mfcovington/django-lab-members
lab_members/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport re\n\nversionPattern = re.compile(r\"\"\"^__version__ = ['\"](.*?)['\"]$\"\"\", re.M)\nwith open(\"axiom/_version.py\", \"rt\") as f:\n version = versionPattern.search(f.read()).group(1)\n\nsetup(...
python
edit
1
0
mit
681326cb6b070c84f5d84064f3d8925dd2762065
twisted/axiom,hawkowl/axiom
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(name='windpowerlib',\n version='0.1.2dev',\n description='Creating time series of win...
python
edit
1
1
mit
7a4f8b1456183d48f508086887d7bb79a1f24dff
wind-python/windpowerlib
setup.py
rejected_duplicate
Near-duplicate of sample 5713
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_args = []\n self.te...
python
edit
1
1
mit
a95f74e926a9381e16688fbebd017f676d19b7a5
teozkr/Flask-Pushrod,UYSio/Flask-Pushrod,teozkr/Flask-Pushrod
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools.core import setup\nexcept ImportError:\n from distutils.core import setup\nimport sys\n\n\nsvem_flag = '--single-version-externally-managed'\nif svem_flag in sys.argv:\n # Die, setuptools, die.\n sys.argv....
python
edit
1
0
bsd-3-clause
4adb9f2f526970ee40ee26c5969fc58db1a6b04e
Calysto/metakernel
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, find_packages\n\nfrom pydy_code_gen import __version__\n\nsetup(\n name='pydy-code-gen',\n version=__version__,\n author='Jason K. Moore',\n author_email='<EMAIL>',\n url...
python
edit
1
0
bsd-3-clause
cdf98c02f8c7590931e732226a65f2e15daa7500
Shekharrajak/pydy,skidzo/pydy,oliverlee/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,pydy/pydy-code-gen,Shekharrajak/pydy,pydy/pydy-code-gen,skidzo/pydy,jcrist/pydy,jcrist/pydy,skidzo/pydy,jcrist/pydy,Shekharrajak/pydy,Shekharrajak/pydy,jcrist/pydy,oliverlee/pydy,jcrist/pydy,oliverlee/pydy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(name='pytest-cov',\n version='1.7.0',\n description='py.test plugin for coverage reporting with '\n 'support for both centralised and distributed testing,...
python
edit
1
0
mit
1f484b5001e53955a85bed2a8ea5da3ed3fde139
ionelmc/pytest-cover,pytest-dev/pytest-cov,opoplawski/pytest-cov,schlamar/pytest-cov,moreati/pytest-cov
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom numpy.distutils.core import setup, Extension\nimport os\n\n\nif os.name == 'nt':\n # If OS is Windows, don't compile Fortran code\n ext = []\nelse:\n # If OS is OS X or Linux, assume Fortran compilers are available\n ext = ...
python
edit
1
0
bsd-3-clause
fc8b5e8744ba8fe26d12788829eac90dcb6ea87e
SMTorg/smt,bouhlelma/smt,bouhlelma/smt,hwangjt/SMT,SMTorg/smt,relf/smt,hwangjt/SMT,relf/smt
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport re\nfrom setuptools import setup, find_packages\n\nwith open(os.path.join(os.path.dirname(__file__), 'jsondiff', '__init__.py')) as f:\n version = re.compile(r\".*__version__ = '(.*?)'\", re.S).match(f.read()).group(1)\...
python
edit
1
0
mit
0ef82c3b6b98da84f423a61482969cb1cdb64681
ZoomerAnalytics/jsondiff
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\r\nfrom distutils.core import setup\r\nimport fedex\r\n\r\nLONG_DESCRIPTION = open('README.rst').read()\r\n\r\nCLASSIFIERS = [\r\n 'Development Status :: 5 - Production/Stable',\r\n 'Intended Audience :: Develope...
python
edit
1
0
bsd-3-clause
5d9032fc79466880c28b4472f152d517c027ab40
gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex,python-fedex-devs/python-fedex,gtaylor/python-fedex
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nclassifiers = [\n 'License :: OSI Approved :: BSD License',\n 'Intended Audience :: Developers',\n 'Programming Language :: Python :: 3',\n 'Programming Language :: Python :: 3.5'...
python
edit
1
0
bsd-3-clause
5b862e4c7ae236eb8fb476bb10eef2985c9e3bac
rrader/aio_manager
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\nimport sys\nfrom setuptools import setup\n\nif 'upload' in sys.argv:\n if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']:\n raise SystemExit('Refusing to upload unsigned packages.')\n\n...
python
edit
1
0
mit
5af8feb0372ef6bb33b4fd686a30da95cabb6840
nejucomo/preconditions
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup, find_packages\nimport re\n\nversion = re.search(\n r'__version__\\s*=\\s*[\\'\"]([^\\'\"]+)[\\'\"]',\n open('wdmapper/version.py').read()\n).group(1)\n\nsetup(\n name='wdmapper...
python
edit
1
0
mit
4a5496fc655818cfe87934c91c9be206957d221e
gbv/wdmapper
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2010-2014, MIT Probabilistic Computing Project\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# ...
python
edit
1
0
apache-2.0
242c302f110fef9f2016d76c5e5b05a0c929497e
probcomp/bdbcontrib,probcomp/bdbcontrib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/\n# http://peterdowns.com/posts/first-time-with-pypi.html\n# Upload to PyPI Live\n# python setup.py sdist upload -r pypi\n\nfrom setuptools import setup\n\...
python
edit
1
0
mit
1c7cac04f9398abb824a7591caa381bcc495dcfe
Kane610/axis
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\ntry:\n import robofab\nexcept:\n print \"*** Warning: defcon requires RoboFab, see:\"\n print \" robofab.com\"\n\n\nsetup(name=\"fontMath\",\n version=\"0.2\",\n ...
python
edit
3
0
mit
d6dcc2162ad24cd46b1b2661f996e6a90f77da94
typesupply/fontMath,anthrotype/fontMath,moyogo/fontMath
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\n\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))\nexecfile('kronos/version.py')\n\nreadme = open('README.rst').read()\nhistory = open('HISTORY.r...
python
edit
2
0
mit
4f672bd867e1e94b8b78f0f50d3da1be93af84d2
joshblum/django-kronos,jgorset/django-kronos,jgorset/django-kronos,joshblum/django-kronos,jeanbaptistelab/django-kronos,jeanbaptistelab/django-kronos
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nLONG_DESC = \"\"\"\nUnicode URLS in django.\"\"\"\n\nsetup(\n name='unicode_urls',\n packages=['unicode_urls', 'unicode_urls.django', 'unicode_urls.cms'],\n version='0.0.1',\n long_description...
python
edit
1
0
mit
370aa8094a9a2cc67acc414ceb7f24dd33fd7e68
Alexx-G/django-unicode-urls
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf-8\n\nfrom setuptools import setup, find_packages\nsetup(\n name=\"bentoo\",\n description=\"Benchmarking tools\",\n version=\"0.15\",\n packages=find_packages(),\n scripts=[\"scripts/bento...
python
edit
1
0
mit
c62a0ceecd9067dad757d3def34ce747557b2509
ProgramFan/bentoo
setup.py
accepted
null
true