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 django.db.models import get_model\nfrom django import template\nfrom django.contrib.comments.models import Comment, FreeComment\nfrom coltrane.models import Entry, Link\n\n\nregister = template.Library()\n\n\nclass LatestFeaturedNode(t... | python | edit | 7 | 3 | bsd-3-clause | 0d59cf159d9c5f6c64c49cc7ef3cef8feaf5452d | clones/django-coltrane,mafix/coltrane-blog | templatetags/coltrane.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.utils import timezone\n\nfrom celery import Task\nfrom celery.utils.log import get_task_logger\n\nlogger = get_task_logger(__name__)\n\n\nclass PurgeUnpublishedExportsTask(Task):\n \"\"\"\n Purge u... | python | edit | 1 | 1 | bsd-3-clause | 9ea01cb2f253fefb675a0bfafd05a06f8fe2aca2 | venicegeo/eventkit-cloud,terranodo/eventkit-cloud,venicegeo/eventkit-cloud,venicegeo/eventkit-cloud,venicegeo/eventkit-cloud,terranodo/eventkit-cloud,terranodo/eventkit-cloud,venicegeo/eventkit-cloud,terranodo/eventkit-cloud,venicegeo/eventkit-cloud | eventkit_cloud/tasks/scheduled_tasks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2015 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\nfrom buildbot.changes.filter import ChangeFilter\nfrom buildbot.sched... | python | edit | 1 | 2 | bsd-3-clause | e103ac2a6df36d4236640d36da1a92b6da90e7c5 | eunchong/build,eunchong/build,eunchong/build,eunchong/build | masters/master.chromium.webrtc/master_builders_cfg.py | rejected_duplicate | Near-duplicate of sample 5120 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- encoding: utf-8 -*-\n\n#STDLIB importa\n\n#Core Django Imports\nfrom django import forms\n#Third Party apps imports\n\n#Imports local apps\nfrom .models import Menu, MenuItems\n\n```\n\nApply this change: Add ModelForm of Menu, MenuIt... | python | edit | 3 | 0 | mit | 7321ed72469ad4b9eaf7b1feda370472c294fa97 | semorale/backend-test,semorale/backend-test,semorale/backend-test | django_backend_test/noras_menu/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"URL configuration for the Django system.\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/dev/topics/http/urls/\n\"\"\"\n\nfrom django.conf import settings\nfrom d... | python | edit | 1 | 0 | mit | a191172016bd6735c5fbb80e130e931f7312e910 | uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged,uccser/cs-unplugged | csunplugged/config/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nModule for a Response object.\n\nA Response is returned by Routes when the underlying coroutine is done.\n\"\"\"\nfrom http_parser.util import IOrderedDict\n\nfrom .util import HTTP_CODES\n\n\nclass Response(object):\n \"\"\"\n ... | python | edit | 1 | 2 | mit | 949f629b349707c2f4caf0a288969b5a6143a730 | SunDwarf/Kyoukai | kyokai/response.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Adaptive configuration dialogs.\n\nAttributes:\n __version__: The current version string.\n\"\"\"\n\nimport os\nimport subprocess\n\n\ndef _get_version(version=None): # overwritten by setup.py\n if version is None:\n pkg... | python | edit | 1 | 3 | apache-2.0 | e08a382e215569b2ad147ea82d7ede1319722724 | yasserglez/configurator,yasserglez/configurator | configurator/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.utils.module_loading import import_by_path\nfrom notification.models import TaskHistory\nimport logging\n\nLOG = logging.getLogger(__name__)\n\ndef start_workflow(workflow_dict, task=None):\n\ttry :\n\t\... | python | edit | 3 | 6 | bsd-3-clause | d8c0f7cd89ec52d9ad7553a27421c899b3a94417 | globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service | dbaas/workflow/workflow.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\n\nfrom corehq.blobs.migrate import assert_migration_complete\nfrom corehq.sql_db.operations import HqRunPython\n\n\nclass Migratio... | python | edit | 3 | 0 | bsd-3-clause | a557bae533debc43053294fdb60f774ecb4f2a4e | qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | corehq/blobs/migrations/0003_auto_20161012_1358.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rest_framework.response import Response\nfrom rest_framework.views import APIView\n\nfrom gwells.settings.base import get_env_variable\n\n\nclass KeycloakConfig(APIView):\n \"\"\" serves keycloak config \"\"\"\n\n def get(self, r... | python | edit | 1 | 2 | apache-2.0 | 749181ac27583900af94feca848f3039d7c69bcc | bcgov/gwells,bcgov/gwells,bcgov/gwells,bcgov/gwells | app/backend/gwells/views/api.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\nimport tempfile\nimport shutil\nimport uuid\n\nimport groundstation.node\nimport groundstation.transfer.response\nimport groundstation.transfer.request\nfrom groundstation.station import Station\n\n\nclass MockStream(list):... | python | edit | 1 | 2 | mit | f83011c7b5fdb7c1865d04b03e44660851fc8dcd | richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation,richo/groundstation | test/handler_fixture.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport zope.interface\nimport mutagen\n\nimport jukebox.song\n\n\nclass IScanner(zope.interface.Interface):\n def scan():\n \"\"\"\n Start the scanning process. It is expected to be called at startup and\n ... | python | edit | 2 | 8 | mit | adc78d6c23b15bc06d16c7365b1875ebe39dc328 | armooo/jukebox,armooo/jukebox | jukebox/scanner.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\nfrom tornado import gen\n\n_used_fixture = False\n\n\n@gen.coroutine\ndef dummy(io_loop):\n yield gen.Task(io_loop.add_callback)\n raise gen.Return(True)\n\n\n@pytest.fixture(scope='module')\ndef preparations():\n gl... | python | edit | 1 | 1 | apache-2.0 | f1fedff9247b78120df7335b64cdf46c8f60ef03 | eugeniy/pytest-tornado | test/test_fixtures.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport rospy\n\nfrom flexbe_core.core.lockable_state import LockableState\n\nclass LoopbackState(LockableState):\n \"\"\"\n A state that can refer back to itself.\n It periodically transitions to itself while... | python | edit | 1 | 3 | bsd-3-clause | e4564e790dca3079e76540f452836353b902f5b6 | team-vigir/flexbe_behavior_engine,team-vigir/flexbe_behavior_engine | flexbe_core/src/flexbe_core/core/loopback_state.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom django.core.management import execute_manager\nimport imp\ntry:\n imp.find_module('settings') # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't fi... | python | edit | 1 | 0 | bsd-2-clause | 03e864845d0b06cfa4b6cec1adf9b08152a49f0b | iddqd1/django-forms-builder,ixc/django-forms-builder,frontendr/django-forms-builder,vinnyrose/django-forms-builder,GetHappie/django-forms-builder,Afnarel/django-forms-builder,JostCrow/django-forms-builder,GetHappie/django-forms-builder,nimbis/django-forms-builder,Afnarel/django-forms-builder,simas/django-forms-builder,... | forms_builder/example_project/manage.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rdflib import Graph, Namespace, URIRef, Literal\nfrom rdflib.compare import to_isomorphic\nimport unittest\n\n\nclass TestIssue655(unittest.TestCase):\n\n def test_issue655(self):\n PROV = Namespace('http://www.w3.org/ns/prov... | python | edit | 1 | 1 | bsd-3-clause | 3e9a90890f122090be027a3af3d6cbd8a713963c | RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib,RDFLib/rdflib | test/test_issue655.py | rejected_duplicate | Near-duplicate of sample 4606 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\n\n@pytest.mark.parametrize(\"name\", [\n (\"bash-completion\"),\n (\"bind-utils\"),\n (\"bridge-utils\"),\n (\"docker\"),\n (\"epel-release\"),\n (\"git\"),\n (\"iptables-services\"),\n (\"libnfsidmap\"),\n (\"net-to... | python | edit | 1 | 1 | mit | a66f0227946984702fe6247f64b65152774c5d06 | wicksy/vagrant-openshift,wicksy/vagrant-openshift,wicksy/vagrant-openshift | test/test_packages.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport begin\n\nimport twitterlib\n\n\n@begin.subcommand\ndef timeline():\n \"Display recent tweets from users timeline\"\n for status in begin.context.api.timeline:\n print u\"%s: %s\" % (status.user.scr... | python | edit | 4 | 2 | mit | e6d483c867687188ad89dae9ea00b0d651598605 | aliles/cmdline_examples | tw_begins.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom flask import render_template,g\nfrom flask.ext.mail import Message\nfrom app import mail, db\nfrom .models import User\nfrom config import MAIL_SENDER\n\n# Wrapper function for sending mails using flask-mail ... | python | edit | 3 | 3 | mit | 7d8283b2d233a8fbee97de122f0b4ba293cf788d | ptitoliv/cineapp,ptitoliv/cineapp,ptitoliv/cineapp | app/emails.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom SublimeLinter.lint import PythonLinter\nimport re\n\n\nclass Pyflakes(PythonLinter):\n cmd = 'pyflakes'\n regex = r'''(?x)\n ^(?P<filename>[^:\\n]+):(?P<line>\\d+):((?P<col>\\d+):)?\\s\n\n # The rest of the line is ... | python | edit | 1 | 3 | mit | 21beae1231d0d721565015bb9eba6925ad5d9fd4 | SublimeLinter/SublimeLinter-pyflakes | linter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\nimport sys\n\n\ndef load_config_file(out=sys.stdout):\n default_filepath = \"../resources/config/default-config.json\"\n user_filepath = \"../resources/config/user-config.json\"\n\n try:\n default_json = read_js... | python | edit | 1 | 4 | bsd-3-clause | 23a0db627060afc3e1563d298c733edd8bb106a1 | sky-uk/bslint | src/ConfigLoader.py | rejected_duplicate | Near-duplicate of sample 11535 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# Project: retdec-python\n# Copyright: (c) 2015 by Petr Zemek <<EMAIL>> and contributors\n# License: MIT, see the LICENSE file for more details\n#\n\n\"\"\"Tests for the :mod:`retdec.resource` module.\"\"\"\n\nimport unittest\nfrom u... | python | edit | 1 | 1 | mit | 2ac4bca0db8609bc92c9de8b1c272b2a607f6c15 | s3rvac/retdec-python | tests/resource_tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nThe django clearsessions commend internally calls:\n cls.get_model_class().objects.filter(\n expire_date__lt=timezone.now()).delete()\nwhich could lock the DB table for a long time when\nhaving a large number of records to d... | python | edit | 3 | 4 | apache-2.0 | 184e726d44d113a46ddb9cf3a5762f453ed7b512 | uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw | myuw/management/commands/clear_expired_sessions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom SublimeLinter.lint import PythonLinter\nimport re\n\n\nclass Pyflakes(PythonLinter):\n cmd = 'pyflakes'\n regex = r'''(?x)\n ^(?P<filename>.+):(?P<line>\\d+):((?P<col>\\d+):?)?\\s\n\n # The rest of the line is the e... | python | edit | 1 | 3 | mit | 3d29ca66f17bcf5dcc72f9fe12a83c4949066a8b | SublimeLinter/SublimeLinter-pyflakes | linter.py | rejected_duplicate | Near-duplicate of sample 19618 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom lingcod.features.forms import FeatureForm\nfrom lingcod.bookmarks.models import Bookmark\nfrom django import forms\n\nclass BookmarkForm(FeatureForm):\n name = forms.CharField(label='Bookmark Name')\n latitude = forms.FloatField(... | python | edit | 1 | 0 | bsd-3-clause | e822ee6fe844c18b2a459ed188f4fbae26c617e5 | underbluewaters/marinemap,underbluewaters/marinemap,underbluewaters/marinemap | lingcod/bookmarks/forms.py | rejected_duplicate | Near-duplicate of sample 17477 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n######\n# Check ExId (GUID) by Email through JDBC\n#\n# Author: Christoph Stoettner\n# Mail: <EMAIL>\n# Documentation: http://scripting101.stoeps.de\n#\n# Version: 2.0\n# Date: 2014-06-04\n#\n# License:... | python | edit | 2 | 0 | apache-2.0 | 30e1e82573437cfaf8b75ec9f42c520a5f4f60d5 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ibmcnx/doc/DataSources.py | rejected_duplicate | Near-duplicate of sample 17032 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom CommandTemplate import CommandTemplate\n\nclass Command(CommandTemplate):\n\ttriggers = ['say']\n\thelptext = \"Makes the bot say the provided text in the provided channel (format 'say [channel/user] text')\"\n\tadminOnly = True\n\tsh... | python | edit | 1 | 4 | mit | 4d2a2b3e5b9f734e688c104845d33b90dda2c159 | Didero/DideRobot | commands/say.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport inspect\nfrom collections import defaultdict\n\nimport pytest\nfrom funcy.funcmakers import *\n\n\ndef test_callable():\n assert make_func(lambda x: x + 42)(0) == 42\n\n\ndef test_int():\n assert make_func(0)('abc') == 'a'\n ... | python | edit | 19 | 1 | bsd-3-clause | f00c7f3a976ba4790963a5701c5ce13f6dcd84fa | Suor/funcy | tests/test_funcmakers.py | rejected_lint | Too many lint violations: 19 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n######\n# Check ExId (GUID) by Email through JDBC\n#\n# Author: Christoph Stoettner\n# Mail: <EMAIL>\n# Documentation: http://scripting101.stoeps.de\n#\n# Version: 2.0\n# Date: 2014-06-04\n#\n# License:... | python | edit | 5 | 0 | apache-2.0 | 57db4140237b79cc8b6958ac503bc087f57ddad2 | stoeps13/ibmcnx2,stoeps13/ibmcnx2 | ibmcnx/doc/DataSources.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nimport unittest\nfrom lastpass.account import Account\n\n\nclass AccountTestCase(unittest.TestCase):\n def setUp(self):\n self.id = 'id'\n self.name = 'name'\n self.username = 'username'\n sel... | python | edit | 1 | 1 | mit | b602e732ae091b78c1a0e7258bec878a12cf063f | konomae/lastpass-python | tests/test_account.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom inspect import getdoc\n\nimport pytest\n\n\nclass CodeCollector(object):\n\n def __init__(self):\n\n self.collected = []\n\n def __call__(self, f):\n\n self.collected.append(f)\n return f\n\n def __iter__(... | python | edit | 1 | 1 | bsd-2-clause | 236816340df75e1ef4fc3f6ee4540a02c44fc279 | proofit404/dependencies,proofit404/dependencies,proofit404/dependencies,proofit404/dependencies | tests/helpers/helpers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom django.conf.urls import patterns, url\nfrom django.contrib.sitemaps import views as sitemap_views\n\nfrom opps.sitemaps.sitemaps import GenericSitemap, InfoDisct\n\n\nsitemaps = {\n 'a... | python | edit | 1 | 0 | mit | 1f5403108a25257dfa63d235c8faf4e02f69c6bf | jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,YACOWS/opps,opps/opps,opps/opps,jeanmask/opps,opps/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,williamroot/opps,YACOWS/opps | opps/sitemaps/urls.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 django.views.generic.detail import DetailView\nfrom django.views.generic.list import ListView\n\nfrom opps.article.models import Post\n\n\nclass OppsList(ListView):\n\n context_objec... | python | edit | 1 | 2 | mit | 55d4b7b939fc218d47a920761350aee7bee91eb9 | opps/opps,williamroot/opps,williamroot/opps,opps/opps,opps/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,opps/opps,jeanmask/opps,YACOWS/opps,YACOWS/opps,YACOWS/opps,williamroot/opps | opps/article/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_relative_file(filename):\n \"\"\"Returns contents of the given file, which path is supposed relative\n to this module.\"\"\"\n with open(os.path.join(os.path.dirname(__file__), ... | python | edit | 1 | 1 | bsd-3-clause | 18946d7f464e1f71ad91229261bd8d191a16dea3 | novapost/django-generic-filters,novapost/django-generic-filters,novapost/django-generic-filters | demo/setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nfrom app import create_app, db\nfrom app.models import User, Role, Permission\nfrom flask.ext.script import Manager, Shell\nfrom flask.ext.migrate import Migrate, MigrateCommand\n\napp = create_app(os.geten... | python | edit | 1 | 1 | mit | 7148264a374301cb6cf9d35f3b17f3a02652600f | richgieg/flask-now,richgieg/flask-now | manage.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom crispy_forms.bootstrap import FormActions\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Fieldset, Layout, Submit\nfrom django import forms\nfrom django.utils.functional import cached_property\nfrom django... | python | edit | 7 | 1 | mit | 99b1e11542c7e102e9fe739ea355b84d22b913d3 | ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai,ccwang002/biocloud-server-kai | src/experiments/forms.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n#\n# USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ...\n#\n# prints out the URL associated with each item\n#\n\nimport sys\nimport svn._wc\nimport svn.util\n\ndef main(pool, files):\n for f in files:\n entry = svn._... | python | edit | 2 | 4 | apache-2.0 | 94e8b7bf8b24dfa36f240e601cb0894b10cab21a | YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion | tools/examples/geturl.py | rejected_duplicate | Near-duplicate of sample 15534 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Blueprint\nfrom models import db, Status\nimport json\n\nstatus_renderer = Blueprint('status', __name__)\n\n@status_renderer.route('/status/<int:user_id>')\ndef get_tweet(user_id):\n status = db.session.query(Status).or... | python | edit | 1 | 1 | mit | 7461666cde3c0206058d10f2341e0a57bf33e504 | ndm25/notifyable | src/renderers/status.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2015, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the BSD-style license found in the\n# LICENSE file in the root directory of this source tree. An additional grant\n# of patent rights can ... | python | edit | 1 | 1 | mit | e877f379bdb864b4f4297796b5c4ed1535354772 | easyfmxu/mcrouter,facebook/mcrouter,leitao/mcrouter,reddit/mcrouter,synecdoche/mcrouter,facebook/mcrouter,glensc/mcrouter,evertrue/mcrouter,leitao/mcrouter,leitao/mcrouter,seem-sky/mcrouter,apinski-cavium/mcrouter,apinski-cavium/mcrouter,facebook/mcrouter,reddit/mcrouter,evertrue/mcrouter,yqzhang/mcrouter,reddit/mcrout... | mcrouter/test/test_mcrouter_to_mcrouter_tko.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, url\n\nurlpatterns = patterns(\n 'us_ignite.people.views',\n url(r'^$', 'profile_list', name='profile_list'),\n url(r'^(?P<slug>[-\\w]{1,32})/$', 'profile_detail', name='profile_detail'),\n)\n... | python | edit | 1 | 0 | bsd-3-clause | 8861ff87f20de238ea3ddccd7958973dcf992e4a | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | us_ignite/people/urls.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\nfrom mod import Mod\nimport random\nimport os\n\n\nclass ModDefault(Mod):\n def __init__(\n self,\n filename=None,\n logger=None\n ):\n Mod.__init__(self, logger)... | python | edit | 1 | 3 | mit | c1a8d0e1fdc0d2ebd822a041874ba6de8ed6d9ac | kenkov/kovot,kenkov/kovot | mod/default/mod_default.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, unicode_literals\n\nfrom peewee import Model, IntegerField, CharField\n\nfrom zhihudaily.configs import Config\n\n\nclass BaseModel(Model):\n class... | python | edit | 1 | 1 | mit | 3ceb39e4bbc4c5de7cbcce9c1ecfe94daa57266e | lord63/zhihudaily,lord63/zhihudaily,lord63/zhihudaily | zhihudaily/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nimport sys\n\nif __name__ == \"__main__\":\n os.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"tests.settings.dev\")\n\n from django.core.management import execute_from_command_line\n\n execute_f... | python | edit | 1 | 0 | bsd-3-clause | 057e89c7beb8eb49321fe26513d61656b91ded6f | unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service,unt-libraries/django-premis-event-service | manage.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\n\nimport hashlib\n\nfrom website import settings\n\n\nDOMAIN = settings.DOMAIN\nUPLOAD_SERVICE_URLS = ['changeme']\nPING_TIMEOUT = 5 * 60\n\nSIGNED_REQUEST_KWARGS = {}\n\n# HMAC options\nSIGNATURE_HEADER_KEY = 'X-Signatur... | python | edit | 1 | 0 | apache-2.0 | 30ade212225344c9ca3e94cc47ee93e3b0b702b5 | RomanZWang/osf.io,zachjanicki/osf.io,billyhunt/osf.io,jolene-esposito/osf.io,ZobairAlijan/osf.io,revanthkolli/osf.io,HalcyonChimera/osf.io,alexschiller/osf.io,kch8qx/osf.io,mluke93/osf.io,SSJohns/osf.io,brandonPurvis/osf.io,aaxelb/osf.io,arpitar/osf.io,samchrisinger/osf.io,arpitar/osf.io,chennan47/osf.io,mluo613/osf.io... | website/addons/osfstorage/settings/defaults.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns\nfrom django.conf.urls import url\n\nfrom .views import redirect\n\n\nurlpatterns = patterns('',\n url(r'^(?P<key>[a-zA-Z0-9]+)$', redirect, name='deflect-redirect'),\n)\n\n```\n\nApply this change: ... | python | edit | 1 | 0 | bsd-3-clause | 7d9c7133de36d2fd7587d7be361cd0ff964d4e94 | jbittel/django-deflect | deflect/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add avacon-style payment ids like the ones used at svscon"
},
{
"role": "assistant",
"content": "\nfrom selvbetjening.core.events.models import request_attendee_pks_signal, find_attendee_signal, Attend\n\n\ndef avacon_style_atten... | python | new_file | 1 | 2 | mit | df84686302697bbc2cce70828dd7cb3ad5ee65d5 | sema/selvbetjening-avacon,sema/selvbetjening-avacon | avacon_website/apps/simpleregistration/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.shortcuts import render\nfrom rest_framework.views import APIView\nfrom rest_framework.response import Response\nfrom rest_framework import status\nfrom rest_framework.permissions import IsAuthenticated\n\nclass ShopAPIView(APIV... | python | edit | 4 | 1 | mit | 403ad86bde44c1a015d8d35ac2826221ef98f9da | andreagrandi/drf3-test,andreagrandi/drf3-test,andreagrandi/drf3-test | drftest/shop/api/views.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Calculations involved in mass and energy budgets.\"\"\"\nimport numpy as np\nfrom aospy.utils import coord_to_new_dataarray\n\nfrom .. import TIME_STR\n\n\ndef first_to_last_vals_dur(arr, freq='1M'):\n \"\"\"Time elapsed between 1s... | python | edit | 1 | 1 | apache-2.0 | 979d1b8ce4567432a6816b55fe5c29ef7c190459 | spencerahill/aospy-obj-lib | aospy_user/calcs/tendencies.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\nfrom scipy.sparse import coo_matrix\nfrom sklearn.base import BaseEstimator\n\n\nclass PearsonCorrelation(BaseEstimator):\n \"\"\"Pearson correlation estimator\n \"\"\"\n\n def __init__(self, assume_centered=Fal... | python | edit | 1 | 5 | bsd-3-clause | ad5da54795ac1329c683e069d3148120470b6451 | AlexandreAbraham/brainhack2013 | brainhack/covariance/pearson.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2018 The Bitcoin Unlimited developers\n# Distributed under the MIT software license, see the accompanying\n# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\nfrom test_framework.cashlib.cashlib import i... | python | edit | 15 | 0 | mit | 7d76b44c371d74cb8c7b272fd9bf8021db6c6702 | BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/Bit... | qa/rpc-tests/test_framework/cashlib/__init__.py | rejected_lint | Too many lint violations: 15 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom openerp import models, fields, api\n\n'''\nThis module create model of Course\n'''\n\nclass Course(models.Model):\n '''\n This class create model of Course\n '''\n _name = 'openacademy.course' # m... | python | edit | 1 | 3 | apache-2.0 | fbbe6b46b93274567e031d2ba7874fe3231b1557 | lescobarvx/curso-tecnico-odoo | openacademy/model/openacademy_course.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n'''\nThis module will retrieve info about students registered in the course\n\nUsage:\n\npython user_info.py\n\n'''\n\nfrom collections import defaultdict\n\nfrom base_edx import EdXConnection\nfrom generate_csv_report import CSV \n\nconnec... | python | edit | 1 | 0 | mit | 6d44672ab0689f6d000001749e0e81b4a9b375f7 | McGillX/edx_data_research,andyzsf/edx_data_research,McGillX/edx_data_research,andyzsf/edx_data_research,McGillX/edx_data_research | reporting_scripts/user_info.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add get_model_list and archive_directory_path functions"
},
{
"role": "assistant",
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport os\ndefault_app_config = 'calaccess_processed.apps.CalAccessProcessedConfig'\n\... | python | new_file | 3 | 3 | mit | 40a59efec51661d4325e97f2e307963811336b94 | california-civic-data-coalition/django-calaccess-processed-data,california-civic-data-coalition/django-calaccess-processed-data | calaccess_processed/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom subprocess import call\n\n\ndef base_docker_call(mount):\n return ['docker', 'run', '--rm', '-v', '{}:/data'.format(mount)]\n\n\ndef fix_directory_ownership(output_dir, tool):\n \"\"\"\n Uses a Docker container to c... | python | edit | 1 | 1 | mit | 18d2c4be27b58a142145f0726e6be21c358064cd | jvivian/rnaseq-lib,jvivian/rnaseq-lib | src/rnaseq_lib/docker/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n import unittest2 as unittest\nexcept ImportError:\n import unittest\n\ntry:\n from unittest import mock\nexcept ImportError:\n import mock\n\ntry:\n import xmlrpc.client as xmlrpc_client\nexcept ImportError:\n impor... | python | edit | 3 | 2 | apache-2.0 | df2bce1dc4542615a61b5346d2f7e89029e80de9 | brettcannon/caniusepython3 | caniusepython3/test/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom cloudenvy.envy import Envy\n\n\nclass EnvyList(object):\n\n def __init__(self, argparser):\n self._build_subparser(argparser)\n\n def _build_subparser(self, subparsers):\n help_str = 'List all ENVys in your current ... | python | edit | 2 | 3 | apache-2.0 | 673d96c8845a69f567ffe4475d5eb9f110b9995c | cloudenvy/cloudenvy | cloudenvy/commands/envy_list.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nsys.path.insert(0,'..')\nimport os\nd = os.path.basename(os.path.dirname(os.path.abspath(__file__)))\nif d == 'scipy_distutils':\n execfile('setup_scipy_distutils.py')\nelse:\n os.system('cd .. && ln -s %s scipy_distutils'... | python | edit | 5 | 0 | bsd-3-clause | a0b4476d08c59da74eb64cbcc92621cad160fbce | mattip/numpy,andsor/numpy,naritta/numpy,GaZ3ll3/numpy,jschueller/numpy,felipebetancur/numpy,bertrand-l/numpy,argriffing/numpy,pbrod/numpy,dato-code/numpy,AustereCuriosity/numpy,cjermain/numpy,argriffing/numpy,astrofrog/numpy,seberg/numpy,jankoslavic/numpy,rmcgibbo/numpy,Yusa95/numpy,cjermain/numpy,nguyentu1602/numpy,gi... | scipy_distutils/setup.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\n\nfrom django.core.management.base import BaseCommand\nfrom django_mailbox.models import Message\n\nfrom feder.letters.signals import MessageParser\n\n\nclass Command(BaseCommand):\n help = \"Re... | python | edit | 1 | 3 | mit | 794f3d7e229f94b71a7cb3aaefd4640b185e2572 | watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder | feder/letters/management/commands/reimport_mailbox.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'''Example using the theanets package for learning the XOR relation.'''\n\nimport climate\nimport numpy as np\nimport theanets\n\nclimate.enable_default_logging()\n\nX = np.array([[0.0, 0.0]... | python | edit | 7 | 0 | mit | 1b73399006c6dbd972814f680eb1d2e582699ad7 | lmjohns3/theanets,chrinide/theanets,devdoer/theanets | examples/xor-classfier.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import *\n\n\nurlpatterns = patterns('micropress.views',\n (r'^$', 'article_list'),\n (r'^issue/(?P<issue>\\d+)/$', 'issue_list'),\n (r'^article/(?P<slug>[-\\w]+)/$', 'article_detail'),\n #(r'^new/... | python | edit | 4 | 0 | mit | 2c965c0a75be129f429e40ade34ef608f8ceea27 | jbradberry/django-micro-press,jbradberry/django-micro-press | micropress/urls.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom rest_framework.settings import APISettings\nimport os\n\nDEFAULTS = {\n 'GATEWAY_ROOT_PATH': getattr(\n settings, 'GATEWAY_ROOT_PATH', os.environ.get('GATEWAY_ROOT_PATH', 'http://gateway:3000... | python | edit | 1 | 0 | mit | 2b7f7705f709505ef89f759614cf76bc691c8b20 | ZeroCater/zc_common,ZeroCater/zc_common | zc_common/settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nimport sys, os, os.path\nfrom subprocess import call\n\ncur_dir = os.path.dirname(os.path.realpath(__file__))\nparent_dir = os.path.dirname(cur_dir)\n\nstatuses = [\n call([\"echo\", \"Running python unit tests via n... | python | edit | 1 | 0 | bsd-3-clause | 8d63079647d37b3d479dab13efacd1eafeac9629 | Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab,Harvard-ATG/HarmonyLab | .travis/run_all_tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom math import fmod\n\n\ndef byte_pad(input_bytes, length=8):\n if length > 256:\n raise ValueError(\"Maximum padding length is 256\")\n\n # Modulo input bytes length with padding length to see how many bytes to pad with\n ... | python | edit | 1 | 4 | mit | 72cb23aeffb2ec9ec29ad063fb4d586f00b67b57 | openpassword/blimey,openpassword/blimey | openpassword/pkcs_utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\n\ndef track_param(n):\n return 4... | python | edit | 1 | 1 | bsd-3-clause | 7cfe992263730e7b6e75ae8a84281f4e9d2ac644 | qwhelan/asv,mdboom/asv,qwhelan/asv,qwhelan/asv,waylonflinn/asv,ericdill/asv,waylonflinn/asv,spacetelescope/asv,edisongustavo/asv,ericdill/asv,pv/asv,airspeed-velocity/asv,pv/asv,edisongustavo/asv,waylonflinn/asv,spacetelescope/asv,airspeed-velocity/asv,edisongustavo/asv,airspeed-velocity/asv,mdboom/asv,mdboom/asv,pv/as... | test/benchmark/params_examples.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Django\nfrom django.core.management.base import BaseCommand\nfrom django.core.mail import EmailMessage\nfrom openpyxl import Workbook\n\n# First-Party\nfrom api.models import Chart\n\n\nclass Command(BaseCommand):\n help = \"Command to... | python | edit | 1 | 3 | bsd-2-clause | f3fa16aeee901f7ee1438bbc5b12170f82a184bc | dbinetti/barberscore-django,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api | project/api/management/commands/song_titles.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask_ask import Ask, statement, convert_errors\nimport logging\nfrom rfsend import rf_send\n\nGPIO.setmode(GPIO.BCM)\n\napp = Flask(__name__)\nask = Ask(app, '/')\n\nlogging.getLogger(\"flask_ask\").setLevel(l... | python | edit | 3 | 4 | bsd-3-clause | 0f6b0e6288a4bf24902fe52e0d157a5976a0aa59 | kbsezginel/raspberry-pi,kbsezginel/raspberry-pi,kbsezginel/raspberry-pi,kbsezginel/raspberry-pi | scripts/web-server/alexa-pi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\n# Last Change: Sat Jun 09 10:00 PM 2007 J\n\nfrom info import __doc__\n\nfrom gauss_mix import GmParamError, GM\nfrom gmm_em import GmmParamError, GMM, EM\n#from online_em import OnGMM as _OnGMM\n#import examples as ... | python | edit | 8 | 0 | bsd-3-clause | 4aa8cd1f2230b5c2b180a097815802ed1bcb4905 | newemailjdm/scipy,mdhaber/scipy,Newman101/scipy,Shaswat27/scipy,ilayn/scipy,haudren/scipy,nmayorov/scipy,pschella/scipy,zxsted/scipy,njwilson23/scipy,jseabold/scipy,anntzer/scipy,Srisai85/scipy,pyramania/scipy,jor-/scipy,jseabold/scipy,lukauskas/scipy,woodscn/scipy,raoulbq/scipy,grlee77/scipy,sargas/scipy,aman-iitj/sci... | Lib/sandbox/pyem/__init__.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#############################################################################\n# Copyright (c) 2017 SiteWare Corp. All right reserved\n#############################################################################\nimp... | python | edit | 1 | 4 | apache-2.0 | d39361c3545e60467ff305e00cc09e1790f78c8b | gae123/sd2,gae123/sd2 | src/lib/sd2/gen_hosts.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\nimport re\nimport subprocess\n\nlog = logging.getLogger(__name__)\n\n\ndef run(cmd, check=True, cap=False, input=None, exe='/bin/bash', cwd=None, env=None):\n log.debug(f\"Executing: {cmd!r}\")\n shell = isinstance(cmd... | python | edit | 1 | 6 | mit | 7bcb8fda2daec22fb627a59306c28e39c8f08a2d | kbd/setup,kbd/setup,kbd/setup,kbd/setup,kbd/setup | HOME/bin/lib/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom . import rfc1459, account, ctcp, tls, isupport, whox, ircv3\n\nfrom .rfc1459 import RFC1459Support\nfrom .account import AccountSupport\nfrom .ctcp import CTCPSupport\nfrom .tls import TLSSupport\nfrom .isupport import ISUPPORTSupport\... | python | edit | 11 | 0 | bsd-3-clause | 2dc90659a7265740bb5821f0f153f00de1b2205a | Shizmob/pydle | pydle/features/__init__.py | rejected_lint | Too many lint violations: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n'fbcode_builder steps to build & test Bistro'\n\nimport specs.fb... | python | edit | 1 | 1 | mit | e620068b67f965915cd6713a42380b8136a9feae | facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro,facebook/bistro | build/fbcode_builder_config.py | rejected_duplicate | Near-duplicate of sample 1140 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nItem Sets\n - ItemSet.dbc\n\"\"\"\n\nfrom .. import *\nfrom ..globalstrings import *\n\n\nclass ItemSet(Model):\n\tpass\n\nclass ItemSetTooltip(Tooltip):\n\tdef tooltip(self):\n\t\t\n\t\tself.append(\"name\"... | python | edit | 8 | 3 | cc0-1.0 | 732620e2fa9cb9af11136f11751f1255df9aadf6 | jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow,jleclanche/pywow | game/itemsets/__init__.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom lektor.publisher import Command\n\n\ndef test_Command_triggers_no_warnings(recwarn):\n # This excercises the issue where publishing via rsync resulted\n # in ResourceWarnings about unclosed streams.\n\n # This is essentially h... | python | edit | 1 | 5 | bsd-3-clause | 9a18cd0cb6366d45803c19301843ddda3a362cfb | lektor/lektor,lektor/lektor,lektor/lektor,lektor/lektor | tests/test_publisher.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(\n\tname = \"foxpath\",\n\tauthor = \"Martin Keegan\",\n\tauthor_email = \"<EMAIL>\",\n\tversion = \"0.9\",\n\tlicense = \"GNU Affero General Public License v3.0... | python | edit | 1 | 0 | mit | 04cd203c3a137dd7eeece63a38a542fad98c4eb3 | pwyf/foxpath-tools | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport setuptools\n\nsetuptools.setup(\n name='systemd-minecraft',\n description='A systemd service file for one or more vanilla Minecraft servers',\n author='Wurstmineberg',\n author_email='<EMAIL>',\n ... | python | edit | 1 | 0 | mit | 903b33db0df2562df108f827177cb1dc0f39ed24 | wurstmineberg/systemd-minecraft | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\nimport json\nimport click\nimport requests\n\nfrom hatarake.app import CONFIG_PATH, POMODORO_DB\nfrom hatarake.config import Config\nfrom hatarake.models import Pomodoro\nfrom hatarake.report import render_report\n\n\n@click... | python | edit | 2 | 1 | mit | a7f01689459c167635da206f8d503f2ac86d5503 | kfdm/hatarake | hatarake/cli.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\nimport camplight\n\nsetup(name='camplight',\n version=camplight.__version__,\n author='Mathias Lafeldt',\n author_email='<EMAIL>',\n url='https://gi... | python | edit | 1 | 0 | mit | 90364d28522bf368c22f82b404ca79d8211716c7 | DataDog/camplight,mlafeldt/camplight | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom datetime import datetime\nfrom distutils.core import setup\nimport os\nimport subprocess\n\nif os.path.exists(\"MANIFEST\"):\n os.unlink(\"MANIFEST\")\n\nVERSION = (\"11\", \"06\", \"0\", \"alpha\", \"0\")\n\nsetup(\n name='armst... | python | edit | 4 | 0 | apache-2.0 | ca32941b82f1c723465a480355242b37ca19848c | armstrong/armstrong | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(name='facebookinsights',\n description='A wrapper and command-line interface for the Facebook Insights API.',\n long_description=open('README.rst').read(),\n author='Stijn Debrou... | python | edit | 1 | 0 | isc | afddd0f6866cfcb75c0f0109710feec0d25bed94 | debrouwere/facebook-insights | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ez_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup, find_packages\n\nsetup(name \t\t\t\t= 'Adafruit_Nokia_LCD',\n\t version \t\t\t= '0.1.0',\n\t author\t\t\t= 'Tony DiCola',\n\t author_email\t\t= '<EMAIL>... | python | edit | 1 | 0 | mit | bf848c8716074314b3b96731228ea28541c54a9f | adafruit/Adafruit_Nokia_LCD | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\n\"\"\"\nsetup.py\n\nSetup the Keyring Lib for Python.\n\"\"\"\n\nimport sys\nfrom distutils.core import setup, Extension\n\nfrom extensions import get_extensions\n\nsetup(name = 'keyring',\n ve... | python | edit | 4 | 0 | mit | eaed2b0b37c042f1dbaf5c60163022e2e2605486 | jaraco/keyring | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ez_setup import use_setuptools\r\nuse_setuptools()\r\n\r\nfrom setuptools import setup\r\n\r\nsetup(\r\n name='urbansim',\r\n version='0.2dev',\r\n description='Tool for modeling metropolitan real estate markets',\r\n autho... | python | edit | 1 | 0 | bsd-3-clause | 72e199f8adc2cb7206c414552c3faa86cc9ed699 | apdjustino/urbansim,ual/urbansim,AZMAG/urbansim,SANDAG/urbansim,VladimirTyrin/urbansim,VladimirTyrin/urbansim,SANDAG/urbansim,synthicity/urbansim,apdjustino/urbansim,VladimirTyrin/urbansim,synthicity/urbansim,bricegnichols/urbansim,synthicity/urbansim,AZMAG/urbansim,apdjustino/urbansim,ual/urbansim,waddell/urbansim,UDS... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='udiskie',\n version='0.3.3',\n description='Removable disk automounter for udisks',\n author='Byron Clark',\n author_email='<EMAIL>',\n url='http://bitbucket.org/byronclar... | python | edit | 1 | 0 | mit | ea3df41ae119bf0c1f7097dafde663bd6e98735a | coldfix/udiskie,coldfix/udiskie,khardix/udiskie,pstray/udiskie,mathstuf/udiskie,pstray/udiskie | setup.py | rejected_duplicate | Near-duplicate of sample 9313 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='bookmarks',\n packages=['bookmarks'],\n include_package_data=True,\n install_requires=[\n 'flask',\n ],\n)\n\n```\n\nApply this change: Add SQLalchemy to list of install r... | python | edit | 1 | 0 | apache-2.0 | 3059f4b36872f2210a4867be804981ca90751194 | byanofsky/bookmarks,byanofsky/bookmarks,byanofsky/bookmarks | 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 | 4 | 0 | apache-2.0 | 60150b68a254943006611b4300f772e5beb38af0 | ulikoehler/cv_algorithms,ulikoehler/cv_algorithms | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup, Extension\n\n\nsetup(\n name = 'iMX233_GPIO',\n version = '0.1.0',\n author = 'Stefan Mavrodiev',\n author_email = '<EMAIL>',\n url ... | python | edit | 1 | 0 | mit | 6e004d3ffb2925f5292582e5a4478707863b819e | droid4control/iMX233_GPIO,droid4control/iMX233_GPIO | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nfrom setuptools import setup\nfrom setuptools.command.test import test as TestCommand\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_args = []\n ... | python | edit | 2 | 1 | mit | 10e5c50bac81bc072195676f202190de4adc3459 | spatialaudio/jackclient-python,stephenedie/jackclient-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\nfrom setuptools import setup\n\ninit_py = open('textlines/__init__.py').read()\nmetadata = dict(re.findall(\"__([a-z]+)__ = '([^']+)'\", init_py))\nmetadata['doc'] = re.findall('\"\"\"(.+)\"\"\"', init_py)[0]\n\nsetup(\n name=... | python | edit | 1 | 0 | apache-2.0 | 325ccef4461cdbcc71508e2616b3c8beddc57d8f | michaeljoseph/textlines,michaeljoseph/textlines | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport setuptools\n\ninstall_requires = [\n 'PrettyTable==0.7.2',\n 'kazoo==1.00',\n 'simplejson',\n 'argparse',\n 'kafka-python'\n]\n\nsetuptools.setup(\n name = 'stormkafkamon',\n version = '0... | python | edit | 1 | 0 | apache-2.0 | d4cf6a4737ba6c05c5150e2b892b8b0d01d800e9 | vivekrao1985/stormkafkamon,ianawilson/stormkafkamon,otoolep/stormkafkamon,grue/stormkafkamon | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='colorlog',\n version='2.6.0',\n\n description='Log formatting with colors!',\n long_description=open(\"README.rst\").read(),\n\n author='Sam Clements',\n author_email='<EMAIL>... | python | edit | 1 | 0 | mit | 1e5c0bee1a41befd4e7571fae05efdec2639aba7 | borntyping/python-colorlog | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf-8\n\nimport os\nimport re\nfrom setuptools import setup, find_packages\n\n\ndef load_required_modules():\n with open(os.path.join(os.path.dirname(__file__), \"requirements.txt\")) as f:\n retur... | python | edit | 1 | 3 | mit | 4bad234471f1142ad4172a3ec423c90cec512b2b | tadashi-aikawa/owlmixin | setup.py | rejected_duplicate | Near-duplicate of sample 14925 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import exists\nimport re\nfrom setuptools import setup\n\ncontents = re.findall(\n r'__version__ = \\'([.0-9]+)\\'',\n open('unification/__init__.py', 'r').read())[0]\n\nsetup(name='unification',\... | python | edit | 1 | 0 | bsd-3-clause | 643cfac6270b97706506812e0bb4b070f50b8085 | mrocklin/unification | 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\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read()\n\nrequirements ... | python | edit | 1 | 0 | bsd-2-clause | a85847e2450929aa1692e78a34337e9ca4408750 | furbrain/tingbot-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"django-salmonella\",\n version='0.6',\n author='Lincoln Loop: Seth Buntin, Yann Malet',\n author_email='<EMAIL>',\n description=(\"raw_id_f... | python | edit | 1 | 0 | mit | 2493bae247c73ad00dd6205bb738bbecf163221f | lincolnloop/django-salmonella,Gustavosdo/django-salmonella,lincolnloop/django-salmonella,lincolnloop/django-salmonella,Gustavosdo/django-salmonella,Gustavosdo/django-salmonella,lincolnloop/django-salmonella | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\n\nfrom setuptools import setup\n\nfrom shortuuid import __version__\n\nassert sys.version >= \"2.5\", \"Requires Python v2.5 or above.\"\n\nclassifiers = [\n \"License :: OSI Approved :: BSD License\"... | python | edit | 1 | 0 | bsd-3-clause | 67a3c5665a2a91d00a8db8dc8a0fcf12935b5040 | stochastic-technologies/shortuuid,skorokithakis/shortuuid | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2013-2014 Massachusetts Open Cloud Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the\n# License. You may obtain a copy of the License... | python | edit | 1 | 0 | apache-2.0 | be0042cdc844d0735f05449749735107c5caff16 | kylehogan/hil,kylehogan/haas,henn/hil,apoorvemohan/haas,meng-sun/hil,SahilTikale/switchHaaS,kylehogan/hil,apoorvemohan/haas,meng-sun/hil,henn/hil_sahil,SahilTikale/haas,henn/hil_sahil,henn/hil,henn/haas,CCI-MOC/haas | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.dirname(__file__)\n\nversion_file = os.path.join(here, 'src/iptools/__init__.py')\nd ... | python | edit | 2 | 0 | bsd-2-clause | 9a510242480dfbf01ab5e635ae3eae034a93f279 | bd808/python-iptools | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n# encoding: utf-8\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='pyatv',\n version='0.1.1',\n license='MIT',\n url='https://github.com/postlund/pyatv',\n author='Pierre Ståhl',\n a... | python | edit | 1 | 0 | mit | dcf76b96f6b6e7c504ab49af4a7f72eabda1b4be | postlund/pyatv,postlund/pyatv | 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\n\nsetup(name='megacl',\n version='0.2.0',\n description='mega.co.nz command line client.',\n author='Arthibus Gisséhel',\n au... | python | edit | 3 | 0 | mit | c4fd6305b543eb04b4555aa2b2fad0d3e7e83ebb | gissehel/megacl | 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# (c) 2014 Rajat Agarwal\n\nfrom setuptools import setup, find_packages\n\nimport sqoot\n\n# Work around mbcs bug in distutils.\n# http://bugs.python.org/issue10945\nimport codecs\ntry:\n c... | python | edit | 3 | 0 | mit | 03d942731f970984bf039c531bff080affbb3b34 | ragarwal6397/sqoot | 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.