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\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-payfast',\n version='0.3.dev',\n author='Mikhail Korobov',\n author_email='<EMAIL>',\n\n packages=find_packages(exclude=['payfast_tes... | python | edit | 1 | 0 | mit | baf03e163753a3e1d1cecc20676722e22896170a | reinbach/django-payfast | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nsrc_dir = os.path.dirname(__file__)\n\ninstall_requires = [\n \"troposphere==1.7.0\",\n \"awacs==0.6.0\",\n \"stacker==0.6.3\",\n]\n\ntests_require = [\n \"nose>=1.0\",\n... | python | edit | 1 | 1 | bsd-2-clause | 75252a9d0005cf5c42b037933c33b4270d754a66 | remind101/stacker_blueprints,remind101/stacker_blueprints | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\n\nversion = '0.3.10'\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.txt')).read()\n CHANGES = open(os.path.join(here, 'docs/H... | python | edit | 1 | 0 | mit | 110f62562a4802f99c93a53ea09e1e3deb2b3714 | pedersen/tgtools.tgext-admin,pedersen/tgtools.tgext-admin | setup.py | rejected_duplicate | Near-duplicate of sample 4265 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='django_dust', \n description='Distributed Upload STorage for Django. A file backend that mirrors all incoming media files to several servers',\n packages=[\n 'django_dust',\... | python | edit | 1 | 0 | bsd-3-clause | de613623c638b923a6bbfb6c33c373794d654000 | aaugustin/django-resto | 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='Police API',\n version='0.1',\n description='Python client library for the Police.uk API',\n author='Rock Kitchen Harris',\n packages=find... | python | edit | 1 | 0 | mit | fa4c6ba6af2f7d936f6504473ab0a2ae50043db4 | rkhleics/police-api-client-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='qual',\n version='0.1',\n description='Calendar stuff',\n url='http://github.com/jwg4/qual',\n author='Jack Grahl',\n author_email='<EMAIL>',\n license='Apache License 2.0'... | python | edit | 1 | 0 | apache-2.0 | 00900c6559c73bea982cd843ff49c7e0f5f296d3 | jwg4/qual,jwg4/calexicon | 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='pyseeyou',\n version='0.3.0',\n description='A Python Parser for the ICU MessageFormat.',\n author='Siame Rafiq',\n author_email='<EMAIL>',\n packages=find_pack... | python | edit | 1 | 0 | mit | b7cc6302904e7adbc21edf65a797ded421b35d9a | rolepoint/pyseeyou | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom StringIO import StringIO\nfrom fabric.api import local, task, run, env, sudo, get\nfrom fabric.tasks import execute\nfrom fabric.context_managers import lcd, hide\n\n\n@task\ndef apt_update():\n with hide('stdout'):\n sudo('a... | python | edit | 9 | 1 | mit | 8e980445723f3f185eb88022adbd75f1a01aaef4 | maruina/kanedias,maruina/kanedias,maruina/kanedias,maruina/kanedias | fabfile/ubuntu.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\n Provides a custom unit test base class which will log to sentry.\n\n :copyright: (c) 2010 by Tim Sutton\n :license: GPLv3, see LICENSE for more details.\n\"\"\"\nimport unittest\nimport logging\nfr... | python | edit | 1 | 1 | bsd-3-clause | 7df69e47b88988e9797d42e7329c8bfc61e2dbcc | meomancer/field-campaigner,meomancer/field-campaigner,meomancer/field-campaigner | reporter/test/logged_unittest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom celery.task import task\nfrom celery.task.sets import subtask\n\nfrom rest_api.models import Url\nfrom rest_api.backend import Request\n\n#TODO: read long_url from memcache\n#TODO: ensure with retry that if we made a resquest we have t... | python | edit | 3 | 2 | bsd-2-clause | a7c9231829e676682d7719fb94f2792c812b9b99 | victorpoluceno/shortener_worker | rest_api/tasks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\n\nfrom distutils.core import setup\n\nsetup(name='slowboy',\n version='0.0.1',\n packages=['slowboy'],\n url='https://github.com/zmarvel/slowboy/',\n author='Zack Marvel',\n author_email='zpmarvel at gmail dot com... | python | edit | 1 | 0 | mit | 0b6db0b19e9389b1c5e62ddab5cdab4886364252 | zmarvel/slowboy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\n\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom oscar_mws.fulfillment import gateway\n\nlogger = logging.getLogger('oscar_mws')\n\n\ndef submit_order_to_mws(order, user, **kwargs):\n if kwargs.get('raw',... | python | edit | 1 | 4 | bsd-3-clause | 04c82d00517428bc60e7c4204f01e55452c2c8f2 | django-oscar/django-oscar-mws,django-oscar/django-oscar-mws | oscar_mws/receivers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"sandsnake\",\n license='Apache License 2.0',\n version=\"0.1.0\",\n description=\"Manage activity indexes for objects.\",\n long_description=... | python | edit | 1 | 0 | apache-2.0 | 44766469827fb3a0966b1370022834da87d8b3e8 | numan/sandsnake | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# vim: ai ts=4 sts=4 et sw=4\n\n\nimport datetime\nfrom rapidsms.apps.base import AppBase\nfrom .models import Message\n\n\nclass App(AppBase):\n def _who(self, msg):\n to_return = {}\n if msg.contact... | python | edit | 1 | 4 | bsd-3-clause | fd98983e0880b6d2cf81a72da7d65082487359c1 | lsgunth/rapidsms,peterayeni/rapidsms,caktus/rapidsms,caktus/rapidsms,lsgunth/rapidsms,lsgunth/rapidsms,catalpainternational/rapidsms,ehealthafrica-ci/rapidsms,caktus/rapidsms,peterayeni/rapidsms,catalpainternational/rapidsms,catalpainternational/rapidsms,eHealthAfrica/rapidsms,ehealthafrica-ci/rapidsms,ehealthafrica-ci... | lib/rapidsms/contrib/messagelog/app.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-pedantic-http-methods',\n description=\"Raises an exception when attempting to perform side effects \"\n \"in GET and HEAD HTTP metho... | python | edit | 1 | 0 | bsd-3-clause | be447d2f3f9cfd059ccd30f2319fe6b54403eb78 | lamby/django-pedantic-http-methods | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"Simple utilities related to extension types\"\n\n#------------------------------------------------------------------------\n# Read state from extension types\n#------------------------------------------------------------------------\n\nde... | python | edit | 1 | 4 | bsd-2-clause | f8277d426aa88e45bf492d3d4f6dfd2703702dff | gdementen/numba,stuartarchibald/numba,stonebig/numba,stefanseefeld/numba,GaZ3ll3/numba,ssarangi/numba,stuartarchibald/numba,sklam/numba,cpcloud/numba,ssarangi/numba,sklam/numba,ssarangi/numba,gmarkall/numba,sklam/numba,stefanseefeld/numba,pitrou/numba,stonebig/numba,gdementen/numba,pitrou/numba,cpcloud/numba,pombredann... | numba/exttypes/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python3\n\"\"\"Pandoc filter to force the <img> tag for pdf images in html.\n\nUseful for integrating pandoc with Marked.\n\n\"\"\"\n\nfrom pandocfilters import toJSONFilter, RawInline, Str\nimport re\n\ndef pdf_img(key, val... | python | edit | 4 | 3 | mit | d30094e5b9881c89e3871aa30c6af639e20209b5 | scotthartley/pandoc-html-pdf-img | pandoc-html-pdf-img.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Write python code for the following: Add test for posting content to the server"
},
{
"role": "assistant",
"content": "import json\n\nfrom django.test import TestCase, Client\n\n\nclass MemeTests(TestCase):\n\n def test_can_post_to_db(self):\n response = j... | python | new_file | 3 | 1 | apache-2.0 | e18f4bd7db18743bb290fed276ff21a9e63e6922 | AutomatedTester/petulant-meme,AutomatedTester/petulant-meme,AutomatedTester/petulant-meme | petulant/meme/tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.contrib.auth.models import User\nfrom quizzardous.utils import slugify\n\nclass Question(models.Model):\n \"\"\"Represents a question asked by a user.\"\"\"\n\n class Meta:\n ordering =... | python | edit | 4 | 2 | bsd-3-clause | 499651033a8f1aaf89533e7ce2156efeca32198d | aviraldg/quizzardous,aviraldg/quizzardous,aviraldg/quizzardous | questions/models.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db.models import Q\nfrom rest_framework_json_api.django_filters import DjangoFilterBackend\n\nfrom bluebottle.assignments.transitions import ApplicantTransitions\n\n\nclass ApplicantListFilter(DjangoFilterBackend):\n \"\"\"\n... | python | edit | 1 | 2 | bsd-3-clause | 74983cc059bc3480331b0815240c579b0b4517fc | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | bluebottle/assignments/filters.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport requests\nimport time\nimport urlparse\n\nfrom paypal import exceptions\n\n\ndef post(url, params):\n \"\"\"\n Make a POST request to the URL using the key-value pairs. Return\n a set of key-value pairs.\n\n :url: URL to... | python | edit | 2 | 5 | bsd-3-clause | 9b3443186c103c5f08465773f2e34591aa724179 | bharling/django-oscar-worldpay,bharling/django-oscar-worldpay,FedeDR/django-oscar-paypal,st8st8/django-oscar-paypal,vintasoftware/django-oscar-paypal,nfletton/django-oscar-paypal,ZachGoldberg/django-oscar-paypal,lpakula/django-oscar-paypal,st8st8/django-oscar-paypal,embedded1/django-oscar-paypal,lpakula/django-oscar-pa... | paypal/gateway.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n\nfrom performanceplatform.collector.ga.core \\\n import create_client, query_documents_for, send_data\n\nfrom performanceplatform.client import DataSet\n\n\nde... | python | edit | 2 | 1 | mit | 3a03557d56b9d5591a4049d752a4c0d5089b29cf | alphagov/performanceplatform-collector,alphagov/performanceplatform-collector,alphagov/performanceplatform-collector | performanceplatform/collector/ga/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nimport testinfra.utils.ansible_runner\n\ntestinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(\n os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')\n\n\n# check if MongoDB package is installed\ndef test_mongod... | python | edit | 1 | 1 | bsd-2-clause | bf36831f062c8262e9d7f8a5f63b5b4a0f413c5f | jugatsu-infra/ansible-role-mongodb | molecule/default/tests/test_default.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\r\nlogger = logging.getLogger(__name__)\r\nlogger.addHandler(logging.NullHandler())\r\n\r\nfrom dsp_project import DSPProject\r\nfrom dsp_process import DSPProcess\r\nfrom dsp_circuit import DSPCircuit\r\nfrom dsp_buffer impo... | python | edit | 7 | 1 | bsd-3-clause | b84105415cf074e76cb2c227e81287e853acb451 | LABSN/tdtpy | tdt/__init__.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nfrom mtglib.constants import base_url, card_flags\n\nclass DescribeConstants(unittest.TestCase):\n\n def should_have_base_url(self):\n url = ('http://gatherer.wizards.com/Pages/Search/Default.aspx'\n ... | python | edit | 1 | 1 | mit | 0e7d1df97590152781e364b3acea34e0bb42bc2a | chigby/mtg,chigby/mtg | tests/constants_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__all__ = [\n 'ServiceCheckApi',\n]\n\nimport logging\nimport time\nfrom dogapi.constants import CheckStatus\nfrom dogapi.exceptions import ApiError\n\nlogger = logging.getLogger('dd.dogapi')\n\n\nclass ServiceCheckApi(object):\n def ... | python | edit | 1 | 5 | bsd-3-clause | e7c6aba7e67a1fde47471bc6fa80894869a6dfc8 | DataDog/dogapi,DataDog/dogapi | src/dogapi/http/service_check.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .mean import mean\nfrom pyramda.private.asserts import assert_equal\n\n\ndef mean_test():\n assert_equal(mean([3, 5, 7]), 5)\n\n```\n\nApply this change: Add test establishing no change in behavior for unsorted input arrays"
},
... | python | edit | 1 | 1 | mit | 6cc48b08fd0b3a0dda2a8dfdc55b8d8d3b9022b1 | jackfirth/pyramda | pyramda/math/mean_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom . import FogspoonAppTestCase, settings\nfrom fogspoon.frontend import create_app\n\n\nclass FogspoonFrontendTestCase(FogspoonAppTestCase):\n\n def test_front(self):\n r = self.get('/')\n self... | python | edit | 1 | 1 | mit | 95dd556423b0f8d8ec2df9cd7e1f494206bc2104 | tkalus/fogspoon,tkalus/fogspoon,tkalus/fogspoon,tkalus/fogspoon | tests/frontend_tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom models import Resource, ResourceCollection, Contact\nfrom django.contrib import admin\n\nclass ResourceAdmin(admin.ModelAdmin):\n list_display = ('title', 'couchDB_link', 'edit_metadata_link', 'published')\n filter_horizontal = [... | python | edit | 1 | 1 | bsd-3-clause | d6643fa72f6783fc0f92cb9d8f44daf52fc1bf5f | usgin/metadata-repository,usgin/metadata-repository,usgin/nrrc-repository,usgin/nrrc-repository | registry/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nFunctions related to the pScheduler REST API\n\"\"\"\n\ndef api_root():\n return '/pscheduler'\n\n\ndef api_url(host = None, # Don't default this. It breaks 'None' behavior.\n path = None,\n port = None,\n... | python | edit | 8 | 6 | apache-2.0 | 9f323dae623e38261a1a63016b8447c96fe021b4 | perfsonar/pscheduler,perfsonar/pscheduler,perfsonar/pscheduler,perfsonar/pscheduler,mfeit-internet2/pscheduler-dev,mfeit-internet2/pscheduler-dev | python-pscheduler/pscheduler/pscheduler/api.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport random\nimport json\n\nimport SocketExtend as SockExt\nimport config as conf\nimport parser as p\n\ndef ping(sock):\n\ttry:\n\t\trand = random.randint(1, 99999)\n\t\tdata = {'request':'ping', 'contents': {'value':rand}}\n\t\tSockExt.... | python | edit | 2 | 4 | bsd-2-clause | 2120b8ef1780c492a8f53b54baf4f2210d3515f5 | mavroudisv/Crux | components/includes/utilities.py | rejected_duplicate | Near-duplicate of sample 12379 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .command import Command\nfrom ..api.errors import BadRequest\n\nimport logging\nimport sys\nlog = logging.getLogger(__name__)\n\nclass AppsCommand(Command):\n \"\"\"\n Manage Orchard apps.\n\n Usage: apps COMMAND [ARGS...]\n\n... | python | edit | 2 | 3 | apache-2.0 | 72b55eb8aeabf73159f6b14c157a155e64427739 | orchardup/python-orchard,orchardup/python-orchard | orchard/cli/apps_command.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport time\n\nfrom django.utils import timezone\nfrom rest_framework.decorators import api_view\nfrom rest_framework.response import Response\nfrom rest_framework.status import HTTP_200_OK\n\nfrom codepot.models import Product\n\n\n@api_vi... | python | edit | 1 | 2 | mit | d843b9c51888fb0391fb303f1aa3d74e00fcd0c1 | codepotpl/codepot-backend,codepotpl/codepot-backend,codepotpl/codepot-backend | codepot/views/prices/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom django.core.management.base import BaseCommand\nfrom zephyr.models import get_user_profile_by_email\nimport os\nfrom ConfigParser import SafeConfigParser\n\nclass Command(BaseCommand):\n hel... | python | edit | 2 | 2 | apache-2.0 | 0fde64441778eb03b194b1355df9872bccbcd481 | Suninus/zulip,jphilipsen05/zulip,thomasboyt/zulip,easyfmxu/zulip,zhaoweigg/zulip,seapasulli/zulip,moria/zulip,AZtheAsian/zulip,themass/zulip,ryansnowboarder/zulip,jeffcao/zulip,MariaFaBella85/zulip,Frouk/zulip,zofuthan/zulip,zofuthan/zulip,so0k/zulip,deer-hope/zulip,MayB/zulip,RobotCaleb/zulip,mahim97/zulip,tommyip/zul... | zephyr/management/commands/sync_api_key.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright Least Authority Enterprises.\n# See LICENSE for details.\n\n\"\"\"\nHypothesis strategies useful for testing ``pykube``.\n\"\"\"\n\nfrom string import ascii_lowercase, digits\n\nfrom pyrsistent import pmap\n\nfrom hypothesis.str... | python | edit | 3 | 2 | mit | 0463adb64976c05bf22edc4d819a4ddeabc013f6 | LeastAuthority/txkube | src/txkube/testing/strategies.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom test_plus.test import TestCase\n\nfrom ..models import Scrap\n\n\nclass TestScrap(TestCase):\n\n def test__str__(self):\n scrap = Scrap(raw_title='hello')\n assert str(scrap) == 'hello'\n\n def test_html_title(self)... | python | edit | 1 | 1 | mit | a6061ef140e371101c3d04c5b85562586293eee8 | tonysyu/scrappyr-app,tonysyu/scrappyr-app,tonysyu/scrappyr-app,tonysyu/scrappyr-app | scrappyr/scraps/tests/test_models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2013 Yubico AB\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or\n# without modification, are permitted provided that the following\n# conditions are met:\n#\n# 1. Redistributi... | python | edit | 1 | 0 | bsd-2-clause | 51d50f65859d7b57fa1f653caf43707237f05cd1 | Yubico/python-u2flib-server,moreati/python-u2flib-server | u2flib_server/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom nodeconductor.core.permissions import FilteredCollaboratorsPermissionLogic, StaffPermissionLogic\nfrom nodeconductor.structure.models import ProjectRole\n\n\nPERMISSION_LOGICS = (\n ('iaas.Instance', FilteredCollaboratorsPermissionL... | python | edit | 1 | 0 | mit | e28541c00be7f02b3ca6de25e4f95ce4dd099524 | opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor | nodeconductor/iaas/perms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import division\n\nimport numpy as np\n\nimport mbuild as mb\n\n\nclass C3(mb.Compound):\n \"\"\"A tri-valent, planar carbon.\"\"\"\n def __init__(self):\n super(C3, self).__init__()\n self.add(mb.Particl... | python | edit | 1 | 1 | mit | 0a2fd079c828a8d2f48f8e2c33574aec2d416f06 | iModels/mbuild,ctk3b/mbuild,tcmoore3/mbuild,summeraz/mbuild,summeraz/mbuild,ctk3b/mbuild,iModels/mbuild,tcmoore3/mbuild | mbuild/lib/atoms/c3.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# MIT License\n# Copyright (c) 2017 MassChallenge, Inc.\n\nfrom rest_framework.response import Response\nfrom rest_framework.views import APIView\n\nfrom impact.permissions import (\n V1APIPermissions,\n)\nfrom impact.v1.metadata import ... | python | edit | 1 | 3 | mit | eabefc9c3d8502e16db0bfd07889b107ca3626ff | masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api | web/impact/impact/v1/views/base_history_view.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright (c) 2017 James Wen\n\nKEYS_DIR_NAME = './keys'\nPRIVATE_KEY_FILE = '{}/opsimulate'.format(KEYS_DIR_NAME)\nPUBLIC_KEY_FILE = '{}/opsimulate.pub'.format(KEYS_DIR_NAME)\n\nSERVICE_AC... | python | edit | 1 | 0 | mit | 1d8185ed29d448ae181779913b8a0c4f513a799c | RochesterinNYC/opsimulate,RochesterinNYC/opsimulate | opsimulate/constants.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport random\nimport pytest\nfrom Pyro4.errors import NamingError\nfrom osbrain.nameserver import NameServer\nfrom osbrain.address import SocketAddress\n\n\n@pytest.fixture(scope='function')\ndef nsaddr(request):\n while True:\n ... | python | edit | 3 | 4 | apache-2.0 | a424fa213c14a64f0f2aa54a7adba0e9710032c6 | opensistemas-hub/osbrain | osbrain/tests/common.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n_ORGANIZATION = 'mesonbuild'\n_RESTRICTED_PROJECTS = [\n 'meson',\n 'meson-ci',\n 'mesonbuild.github.io',\n 'mesonwrap',\n 'wrapdb',\n 'wrapdevtools',\n 'wrapweb',\n]\n_RESTRICTED_ORG_PROJECTS = [\n _ORGANIZATION + '... | python | edit | 1 | 1 | apache-2.0 | 80b882b3a790241d3d67ae190b0e32d7e9d7b8ed | mesonbuild/wrapweb,mesonbuild/wrapweb,mesonbuild/wrapweb | mesonwrap/inventory.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='django-extra-views',\n version='0.6.5',\n url='https://github.com/AndrewIngram/django-extra-views',\n install_requires=[\n 'Django >=1.3',\n 'six==1.5.2',\n ],\n ... | python | edit | 1 | 0 | mit | a61e2d621eb0b2c554c064739bd4c7dcf8a8797a | AndrewIngram/django-extra-views,luzfcb/django-extra-views,penta-srl/django-extra-views,AndrewIngram/django-extra-views,luzfcb/django-extra-views,penta-srl/django-extra-views | 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 | a472cf675ee91b7f0506fd7f958ebe0225e052e7 | Doist/todoist-python | setup.py | rejected_duplicate | Near-duplicate of sample 2235 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nimport populous\n\nrequirements = [\n \"click\",\n \"cached-property\",\n \"Faker\",\n \"dateutils\",\n \"PyYAML\",\n \"peloton_bloomfilters\"\n]\n\nif sys.versi... | python | edit | 1 | 0 | mit | 08c8706513953a9e323296396c9e67a45632cc13 | novafloss/populous | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ninstall_requires = ['future', 'pandas', 'requests', 'requests_cache']\n\nsetup(\n name='pybiomart',\n version='0.0.3',\n url='https://github.com/jrderuiter/pybiomart',\n download_ur... | python | edit | 1 | 0 | mit | 9a2316d292a9aed5764de85d6de1aa9391dd233a | jrderuiter/pybiomart | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# *-* coding:utf-8 *-*\n\nfrom setuptools import setup\n\nsetup(name='ie',\n version='1.0.8',\n description='Validation of brazilian state registration numbers',\n classifiers=[\n 'Development Status :: 5 - Productio... | python | edit | 1 | 0 | mit | 70d9d9f1a3d36cec951f23232ad9add09fa7d176 | matheuscas/pyIE | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='jmespath',\n version='0.0.2',\n description='JSON Matching Expressions',\n long_description=open('README.rst').rea... | python | edit | 4 | 0 | mit | 63f09024fcd936b966b29d55e05c6fb8279f723f | henrysher/jmespathv041p | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#/usr/bin/env python\nimport os\nfrom setuptools import setup, find_packages\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nversion = '2.6.dev0'\n\nsetup(\n name=\"django-photologue\",\n version=versio... | python | edit | 1 | 0 | bsd-3-clause | 0f6d9968e23a6c4f25cebe16f87bd0749863939b | MathieuDuponchelle/my_patched_photologue,rmaceissoft/django-photologue,seedwithroot/django-photologue-clone,MathieuDuponchelle/my_patched_photologue,rmaceissoft/django-photologue,jlemaes/django-photologue,seedwithroot/django-photologue-clone,rmaceissoft/django-photologue,jlemaes/django-photologue,RossLYoung/django-phot... | 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-switch-templatetag',\n\n url=\"https://chris-lamb.co.uk/projects/django-switch-templatetag\",\n version='2.0.3',\n description=\"Simpl... | python | edit | 1 | 0 | bsd-3-clause | fe6eeee9033655b08bda4a1a6a64c2741f3f5321 | lamby/django-switch-templatetag | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup\nimport numpy\nfrom numpy.distutils.core import Extension\nimport railgun\nfrom railgun import __author__, __version__, __license__\n\nsetup(\n name='railgun',\n version=__version__,\n packa... | python | edit | 1 | 0 | mit | 651275b0e3de2377637ffe200f4631e9fde91d08 | tkf/railgun,tkf/railgun | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Always prefer setuptools over distutils\nfrom setuptools import setup, find_packages\n# To use a consistent encoding\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long descriptio... | python | edit | 3 | 0 | mit | 920b8f565580f228abca43b54027fa4ec7247a34 | xandr2/blynkapi | setup.py | rejected_duplicate | Near-duplicate of sample 2750 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom setuptools import setup, find_packages\n\nsetup(name = \"django-image-cropping\",\n version = \"0.6.3\",\n description = \"A reusable app for cropping images easily and non-destructively in Djang... | python | edit | 2 | 0 | bsd-3-clause | a6bafb8af90a82ac95dfa26df24c114cb3808cb8 | henriquechehad/django-image-cropping,henriquechehad/django-image-cropping,winzard/django-image-cropping,henriquechehad/django-image-cropping,winzard/django-image-cropping,winzard/django-image-cropping | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='pattern_finder_gpu',\n version='1.0',\n description='Brute force OpenCL based pattern localization in images that supports masking and weighting.',\n url='https://github.com/HearSys... | python | edit | 1 | 0 | mit | 67061c16a730ed787699ee79f2edb62a7c9f016a | HearSys/pattern_finder_gpu,HearSys/pattern_finder_gpu | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)... | python | edit | 1 | 0 | bsd-3-clause | 13938cfd7549a59c8d5e12a0962310ae78b014d2 | mredar/django-dublincore | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='Flask-DebugToolbar',\n version='0.6dev',\n url='http://github.com/mvantellingen/flask-debugtoolbar',\n license='BSD',\n author='Michael van Tellingen',\n auth... | python | edit | 3 | 0 | bsd-3-clause | 853fd7147f6a49968d1d5a48f452e88672742981 | lepture/flask-debugtoolbar,dianchang/flask-debugtoolbar,dianchang/flask-debugtoolbar,dianchang/flask-debugtoolbar,lepture/flask-debugtoolbar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os, io\nfrom setuptools import setup, find_packages\n\nlong_description = (\n io.open('README.rst', encoding='utf-8').read()\n + '\\n' +\n io.open('CHANGES.txt', encoding='utf-8').read())\n\nsetup(name='more.jwtauth',\n ... | python | edit | 3 | 0 | bsd-3-clause | 96d19368545804bbfbcf2455bb86efa75799b439 | morepath/more.jwtauth | 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\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\n# Dynamically calculate the version based on photologue.VERSION\nversion_tuple = __... | python | edit | 1 | 0 | bsd-3-clause | ef94b8ee00d7257481cba984f75290a2e8c8ca15 | praekelt/django-photologue,praekelt/django-photologue | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom bluebottle.slides.models import Slide\nfrom bluebottle.projects import get_project_model\nfrom bluebottle.quotes.models import Quote\n\nPROJECT_MODEL = get_project_model()\n\n\nclass HomePage(object):\n def get(self, language):\n ... | python | edit | 1 | 4 | bsd-3-clause | 6fe0966cc6c0532ee6d0076ff6306ceda3418928 | jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle | bluebottle/homepage/model.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport os\nfrom setuptools import setup\n\n\ndef read(*paths):\n \"\"\" read files \"\"\"\n with open(os.path.join(*paths), 'r') as filename:\n return filename.read()\n\n\ninstall_r... | python | edit | 2 | 1 | mit | 078b6bf9d58e92742907577f62d7bd0eb752b90c | juanpabloaj/slacker-cli | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .model_policy_Slice import *\nfrom .model_policy_User import *\nfrom .model_policy_Network import *\nfrom .model_policy_Site import *\nfrom .model_policy_SitePrivilege import *\nfrom .model_policy_SlicePrivilege import *\nfrom .model_p... | python | edit | 12 | 0 | apache-2.0 | b5133e7a3e7d51a31deef46e786b241b63ebd7de | wathsalav/xos,wathsalav/xos,wathsalav/xos,wathsalav/xos | planetstack/model_policies/__init__.py | rejected_lint | Too many lint violations: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Module to handle streams of text\"\"\"\n\nimport os\nimport sys\nimport contextlib\nfrom itertools import chain\n\nfrom six import StringIO\n\nfrom pysyte import iteration\nfrom pysyte.platforms import get_clipboard_data\n\n\ndef clip... | python | edit | 3 | 3 | mit | 2392ae642e9f9dd8ede478b63f4c838cfe1dee69 | jalanb/dotsite | pysyte/text_streams.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8\nfrom __future__ import unicode_literals\nfrom django.db import models\nfrom django.utils.encoding import python_2_unicode_compatible\n\n\n@python_2_unicode_compatible\nclass Knight(models.Model):\n name = models.Char... | python | edit | 1 | 1 | bsd-2-clause | d686524149a11be5e849b449a49429416ef7005d | jambonrose/djangocon2014-updj17 | camelot/roundtable/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='s3same',\n version='0.1',\n description='Configure Travis-CI artifact uploading to S3',\n classifiers=[\n 'Development Status :: 2 - Pre-Alpha',\n 'License :: OSI Appr... | python | edit | 1 | 0 | mit | ae10f81c7da54b4eaf8305aee8118b4ee44c51ed | vokal/s3same,vokal-isaac/s3same | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Google 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# https://www.apache... | python | edit | 1 | 0 | apache-2.0 | 0b03bc03797c6d43573a3f67b9649977f9663a25 | google/python-cloud-utils | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport shutil\nimport subprocess\nimport tempfile\n\n# Import Salt Testing libs\nfrom salttesting.helpers import ensure_in_syspath\nensure_in_syspath('../../')\n\n# Import salt libs\nimport integration\n\n\nclass ... | python | edit | 1 | 2 | apache-2.0 | e70537eb2c1a8a68a6a66550e6714816e048bb5e | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | tests/integration/modules/git.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom wolis.test_case import WolisTestCase\n\nclass SearchBackendPostgresTest(WolisTestCase):\n def test_set_search_backend(self):\n self.login('morpheus', 'morpheus')\n self.acp_login('morpheus', 'morpheus')\n \n ... | python | edit | 1 | 1 | bsd-2-clause | 8a3b4dd4821f22fcb54e9da6386d5e7b90cc99cc | p/wolis-phpbb,p/wolis-phpbb | tests/search_backend_postgres.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport smtplib\nfrom email.mime.text import MIMEText\nfrom email.mime.multipart import MIMEMultipart\n\nDOMAIN = \"beta.donut.caltech.edu\"\n\n\ndef send_email(to,\n text,\n subject,\n use_prefix=Tr... | python | edit | 1 | 5 | mit | bc9289d76c5401d7b43410f2b3150a1d9824757f | ASCIT/donut,ASCIT/donut-python,ASCIT/donut-python,ASCIT/donut,ASCIT/donut | donut/email_utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nENTRY_POINT = 'conda_env.installers'\n\n\nclass InvalidInstaller(Exception):\n def __init__(self, name):\n msg = 'Unable to load installer for {}'.format(name)\n super(InvalidInstaller, self).__init__(msg)\n\n\ndef get_inst... | python | edit | 1 | 2 | bsd-3-clause | 20a2a530f797d0eb2e59b283c9c0bdff9d3bb616 | ESSS/conda-env,dan-blanchard/conda-env,mikecroucher/conda-env,ESSS/conda-env,isaac-kit/conda-env,mikecroucher/conda-env,isaac-kit/conda-env,nicoddemus/conda-env,nicoddemus/conda-env,phobson/conda-env,conda/conda-env,asmeurer/conda-env,asmeurer/conda-env,conda/conda-env,phobson/conda-env,dan-blanchard/conda-env | conda_env/installers/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport subprocess\nimport unittest\nimport os\n\nimport subprocess\nimport unittest\nimport os\n\n\nclass Doc_Test(unittest.TestCase):\n\n @property\n def path_to_docs(self):\n dirname, filename = os.path.split(os.path.abspath(... | python | edit | 5 | 1 | mit | 4b84cedd15a2774391544a6edee3532e5e267608 | simpeg/simpeg | tests/docs/test_docs.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport subprocess\nimport unittest\nimport os\n\n\nclass Doc_Test(unittest.TestCase):\n @property\n def path_to_docs(self):\n dirname, file_name = os.path.split(os.path.abspath(__file__))\n return dirname.split(os.path.s... | python | edit | 3 | 2 | mit | 6c16fb42efd148a6e99788e55e20fa7d55b15cab | simpeg/discretize,simpeg/discretize,simpeg/discretize | tests/docs/test_docs.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass LinearMemoryAllocationLayout(object):\n def __init__(self, initial=None):\n initial = initial or {}\n self.mapping = initial\n self.next_index = len(initial)\n\n def add(self, name):\n index = self.ne... | python | edit | 1 | 2 | mit | 79779ed3fdf7bbc5f248cb73c55ccc2715455fe4 | ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang | thinglang/compiler/allocation.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport time\n\nimport factory\n\nfrom fjord.heartbeat.models import Answer, Survey\n\n\nclass SurveyFactory(factory.DjangoModelFactory):\n class Meta:\n model = Survey\n\n name = 'survey123'\n enabled = True\n\n\nclass Answe... | python | edit | 1 | 0 | bsd-3-clause | 08c1b6d8523936319dee2525dc795db844432a5d | hoosteeno/fjord,hoosteeno/fjord,mozilla/fjord,mozilla/fjord,mozilla/fjord,hoosteeno/fjord,mozilla/fjord,hoosteeno/fjord | fjord/heartbeat/tests/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport unittest\n\nfrom pyaavso.formats.visual import VisualFormatWriter\n\n\nclass VisualFormatWriterTestCase(unittest.TestCase):\n def test_writer_init(self):\n writer = VisualFormatWri... | python | edit | 3 | 1 | mit | 17390cc09c7ffd8583fd170acb2a4b1e8d4efabd | zsiciarz/pyaavso | tests/formats/visual.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import patterns, url\nfrom nomadblog.views import PostList\n\n\nurlpatterns = patterns('nomadblog.views',\n # List blog posts\n url('^$', PostList.as_view(), name='list_posts'),\n # Show single post, ... | python | edit | 3 | 0 | bsd-3-clause | 9cffd831aaf1aff1dd3f655c4336c57831fef700 | Nomadblue/django-nomad-blog,Nomadblue/django-nomad-blog | nomadblog/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass Rover:\n\n compass = ['N', 'E', 'S', 'W']\n\n def __init__(self, x=0, y=0, direction='N'):\n self.x = x\n self.y = y\n self.direction = direction\n\n @property\n def position(self):\n return sel... | python | edit | 1 | 4 | mit | 3a2fc6b73aec538802adff2bd95261ffc56ca475 | authentik8/rover | rover.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.views.generic import FormView\n\nfrom braces.views import LoginRequiredMixin\n\nfrom ..mixins import BazaarPrefixMixin\nfrom . import ... | python | edit | 3 | 2 | bsd-2-clause | 1e7e103799661acfd2cd492febbcc0ef537215e1 | meghabhoj/NEWBAZAAR,evonove/django-bazaar,evonove/django-bazaar,meghabhoj/NEWBAZAAR,meghabhoj/NEWBAZAAR,evonove/django-bazaar | bazaar/warehouse/views.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\nimport os\nimport setuptools\n\nsetuptools.setup(\n name='c3d',\n version='0.2.0',\n py_modules=['c3d'],\n author='Leif Johnson',\n author_email='<EMAIL>',\n description='A library for manipulating C3D binary files',\n ... | python | edit | 1 | 0 | mit | 71d155704ba2614f27684c622863727084a4b9d1 | EmbodiedCognition/py-c3d | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='scrapy-corenlp',\n version='0.1.1',\n description='Scrapy spider middleware :: Stanford CoreNLP Named Entity Recognition',\n url='https://github.com/vu3jej/scrapy-corenlp',\n a... | python | edit | 1 | 0 | bsd-2-clause | 777e9e8d76520f1e5d35ee9e17c0f36a7609ebd0 | vu3jej/scrapy-corenlp | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='python-ev3',\n version='0.1',\n description='Python library of Lego EV3',\n author='Gong Yi',\n author_email='<EMAIL>',\n url='https://github.... | python | edit | 1 | 0 | apache-2.0 | 301593cbbd25e8cfce3998450f4954ce0610f23e | MaxNoe/python-ev3,topikachu/python-ev3,evz/python-ev3,MaxNoe/python-ev3,topikachu/python-ev3,evz/python-ev3 | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2011 gocept gmbh & co. kg\n# See also LICENSE.txt\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='zeit.content.video',\n version='2.0.5dev',\n author='gocept',\n author_email='<EMAIL>',\n ur... | python | edit | 1 | 0 | bsd-3-clause | b2e346f2f78d172bfd7f7e8b37ba0bc48f2f02eb | ZeitOnline/zeit.content.video | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='lightweight-rest-tester',\n version='1.2.0',\n description='A lightweight REST API testing framework.',\n url='https://github.com/ridibooks/lightweight-rest-tester',\... | python | edit | 1 | 0 | mit | 975c7d27d5972d92f491048add9786da50da7d71 | ridibooks/lightweight-rest-tester,ridibooks/lightweight-rest-tester | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\nINSTALL_REQUIREMENTS = [\"Pillow\"]\n\n# Allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(... | python | edit | 1 | 0 | mit | c66b4aa59fef6049433a8373d075b0c48eab021f | bettsmatt/django-initialcon | 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=\"web-stuartmccall-ca\",\n version=\"1.0\",\n author=\"Dylan McCall\",\n author_email=\"<EMAIL>\",\n url=\"http://www.stuartmccall.ca\",\n packages=find_packages... | python | edit | 1 | 0 | mit | a380e3aeef3e956efc7002b60f50b0981bd8f033 | DylanMcCall/stuartmccall.ca,DylanMcCall/stuartmccall.ca,DylanMcCall/stuartmccall.ca | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#from distutils.core import setup\nfrom setuptools import setup\n\nsetup(\n name='auth_mac',\n version='0.1',\n description=\"Basic Django implementation of the draft RFC ietf-oauth-v2-http-mac-01\",\n author='Nicholas Devenish'... | python | edit | 1 | 0 | mit | bbc1d797e8e05ec8b0f7934116bd9ca7a402ba2f | ndevenish/auth_mac | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='infosystem',\n version='0.1.37',\n summary='Infosystem Framework',\n url='https://github.com/samueldmq/infosystem',\n author='Samuel de Medeiros Queiroz, Francoi... | python | edit | 1 | 0 | apache-2.0 | f6989fe0c0af44c5edf4d5a01579c82b3273aa24 | samueldmq/infosystem | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -\n\nimport codecs\nimport os\n\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md'),\n encoding='utf-8') as f:\n long_description = f.read()\n\nsetup(\n name = '... | python | edit | 3 | 0 | apache-2.0 | 35cff34fd330ed21e6ff8d8fbe815a46e7892657 | ClodoCorp/bernhard,banjiewen/bernhard,cranti/bernhard,bmhatfield/bernhard | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n desc = f.read()\n\nsetup(\n name = \"spdx\",\n version = \"2.3.0-beta.1_2\",\n packages = ['spdx'],\n package_data = {'spdx': ['data/*.txt', 'data... | python | edit | 3 | 0 | cc0-1.0 | 68fda5f8585bbb3beb74b495a5d817eefbee634d | bbqsrc/spdx-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\ndef getVersion():\n f = open(\"sphinxarg/__init__.py\")\n _ = f.read()\n ver = _.split(\"'\")[1]\n f.close()\n return ver\n\n\nsetup(\n name='sphinx-argparse',\n version=getVersion(),\n... | python | edit | 1 | 1 | mit | 64ba6fe757351b7d94704290c74487c3344f1f2e | ribozz/sphinx-argparse | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='tangled.auth',\n version='0.1a4.dev0',\n description='Tangled auth integration',\n long_description=open('README.rst').read(),\n url='http://tangledframework.org/',\n downlo... | python | edit | 1 | 0 | mit | a7114d934514e988f8043ce655c69572e33a6357 | TangledWeb/tangled.auth | setup.py | rejected_duplicate | Near-duplicate of sample 5197 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nlong_description = \"\"\"\nThe POEditor Client is a command line tool that enables you to easily manage your translation files within a project.\n\"\"\"\n\nimport poeditor_client\n\nsetup(\n ... | python | edit | 1 | 0 | apache-2.0 | 365bbbfe7993f90003c394742ea41bf4193fdb83 | lukin0110/poeditor-client,lukin0110/poeditor-client | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nfrom __future__ import print_function, unicode_literals\nimport sys\nimport codecs\nfrom setuptools import setup, find_packages\nfrom nhentai import __version__, __author__, __email__\n\n\nwith open('requirements.txt') as f... | python | edit | 1 | 2 | mit | 0bc83982e4df8c2eb0ec88952656a40504143c83 | RicterZ/nhentai,RicterZ/nhentai,RicterZ/nhentai | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nimport sys\nimport io\ntry:\n import setuptools\nexcept ImportError:\n from distribute_setup import use_setuptools\n use_setuptools()\nfrom setuptools import setup, Extension\nfrom setuptools impor... | python | edit | 5 | 0 | apache-2.0 | 1b4fe087ca88cfcd79e33c21c514eeb26835659c | ulikoehler/cv_algorithms,ulikoehler/cv_algorithms | setup.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\nimport versioneer\n\nif __name__ == \"__main__\":\n setuptools.setup(\n name='basis_set_exchange',\n version=versioneer.get_version(),\n cmdclass=versioneer.get_cmdclass(),\n description='Th... | python | edit | 1 | 0 | bsd-3-clause | 29980772f93392c72987329c38dc0cab38251006 | MOLSSI-BSE/basis_set_exchange | 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.12\",\n packages=find_packages(),\n scripts=[\"scripts/bento... | python | edit | 1 | 0 | mit | 77806390ab03a06230ca0942e26e4086fb1a0e72 | ProgramFan/bentoo | setup.py | rejected_duplicate | Near-duplicate of sample 17869 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\n\nsetup(\n setup_requires=['pbr==1.0.1'],\n pbr=True,\n tests_require=['mock', 'nose', ],\n test_suite='nose.collector',\n platforms=['any'],\n zip_safe=False,\n)\n\n`... | python | edit | 1 | 0 | mit | e436650de6eafaa64b5d26728ba7806374960e4b | atlassian/asap-authentication-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(here, 'README.rst')) as f:\n readme = f.read()\n\nwith open(os.path.join(here, 'requirements.txt')) as ... | python | edit | 1 | 0 | bsd-2-clause | 70cb11eefe58fc02ed10d95ec4a556e7ca0895cf | praekelt/molo.commenting,praekelt/molo.commenting | 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\n\nREQUIREMENTS = [\n]\n\nDEP = [\n]\n\nTEST_REQUIREMENTS = [\n]\n\npyxed = []\npack = find_packages(exclude=[\"test\"])\n\nsetup(\n name=\"debinterface\",\n versi... | python | edit | 1 | 0 | bsd-3-clause | cf4d16e4c65edee90a9509b8feb438cc14ad63df | nMustaki/debinterface,michaelboulton/debinterface,michaelboulton/debinterface,nMustaki/debinterface | setup.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.