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#\n# Copyright (c) 2010 rPath, Inc.\n#\n# This program is distributed under the terms of the Common Public License,\n# version 1.0. A copy of this license should have been distributed with this\n# source file in a file called LICENSE. If it... | python | edit | 1 | 0 | apache-2.0 | badda02f6cc81a8c5670b6f53e67009a3cb8b66f | sassoftware/rmake3,sassoftware/rmake3,sassoftware/rmake3 | rmake/core/constants.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndata = open(\"input.txt\").read().strip()\n\nimport re\nfrom collections import Counter\n\ndef solve1(data):\n prevData = None\n while data != prevData:\n prevData = data\n for a,b in zip(data, data[1:]):\n if... | python | edit | 4 | 7 | mit | ce67500ec566784f6f8883e1ffcaef6ad768d810 | lamperi/aoc,lamperi/aoc,lamperi/aoc,lamperi/aoc,lamperi/aoc | 2018/05/solve.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport help_formatter\nimport argparse\n\ndef process_options():\n parser = _make_options_parser()\n return parser.parse_args()\n\ndef _make_options_parser():\n parser = argparse.ArgumentParser(\n prog='micro',\n add_... | python | edit | 1 | 1 | mit | 640f54d769a01b3707591f76914c8e4cf5394eaa | thewizardplusplus/micro,thewizardplusplus/micro,thewizardplusplus/micro | micro/process_options.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"\nargh\n\"\"\"\n\nimport os\nfrom roamer.python_edit import file_editor\nfrom roamer.directory import Directory\nfrom roamer.edit_directory import EditDirectory\nfrom roamer.engine import Engine\nfrom roamer.r... | python | edit | 2 | 2 | mit | c43ddf1f36535604167e496508d242a15c813496 | abaldwin88/roamer | roamer/main.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\n\nclass Artist(models.Model):\n name = models.CharField(max_length=100)\n image_url = models.URLField(blank=True)\n thumb_url = models.URLField(blank=True)\n\n events = models.ManyToManyField(\n ... | python | edit | 1 | 1 | mit | 2aef43fcd44f075ff718475ea57ae23711de02aa | FedorSelitsky/eventrack,FedorSelitsky/eventrack,FedorSelitsky/eventrack,FedorSelitsky/eventrack | event/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" pywind module.\n\n For more information visit https://github.com/zathras777/pywind\n\n\"\"\"\n__version__ = '1.1.0'\n\n```\n\nApply this change: Update to next version number following release of 1.1.0"
},
{
"role": "assistan... | python | edit | 1 | 0 | unlicense | 0fa565b79a2776cb2878d6a44299b25764150f15 | zathras777/pywind,zathras777/pywind | pywind/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport numpy as np\nimport pandas as pd\nimport unittest\nfrom urllib2 import urlopen\n\nfrom bom_data_parser import read_soi_html\n\nclass SOITest(unittest.TestCase):\n def setUp(self):\n self.test_soi_file = os.path.j... | python | edit | 5 | 1 | bsd-3-clause | 740762be1565690f78111861afe3152bdab4fadc | amacd31/bom_data_parser,amacd31/bom_data_parser | tests/test_soi.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Solution to Project Euler Problem 5\nhttps://projecteuler.net/problem=5\n\"\"\"\n\nfrom fractions import gcd\nfrom functools import reduce\n\nMAXIMUM = 20\n\n\ndef compute(maximum=MAXIMUM):\n \"\"\"Compute the LCM of all integers f... | python | edit | 1 | 2 | mit | 104da4df7e0cd09d32457cf56fc00dc96fcdbdac | 2Cubed/ProjectEuler | euler/p005.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import url, include\nfrom django.contrib import admin\nfrom rest_framework import routers\nfrom task.views import *\nfrom userprofile.views import *\n\nrouter = routers.DefaultRouter()\n\nrouter.register(r'tasks', Task... | python | edit | 7 | 0 | apache-2.0 | aebc3440c98ee2b4cc5f880d648e106e1f9d6b9d | toladata/TolaProfile,toladata/TolaProfile,toladata/TolaProfile,toladata/TolaProfile | source/urls.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom wagtail.wagtailcore.models import Page\n\nfrom .base import SeleniumTestCase\n\n\nclass PagesTest(SeleniumTestCase):\n fixtures = ['basic_site.json']\n\n def test_wagtail_pages(self):\n \"\"\"Check if all Wagtail pages can... | python | edit | 1 | 3 | mit | a099eab75245005527e03fb5278a49a6d565c8f9 | leukeleu/wagtail-startproject,leukeleu/wagtail-startproject | wagtailstartproject/project_template/tests/test_selenium/test_pages.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add announcebot to default module root for ease of import"
},
{
"role": "assistant",
"content": "__all__ = [\"roll\", \"tracery\"]\nfrom .roll import DiceBot\nfrom .tracery import TraceryBot\nfrom .announce import AnnounceBot\n"
... | python | new_file | 7 | 0 | mit | 638e6a0f5b906e9cf63d95728da328b24f506173 | Chronister/ananas | ananas/default/__init__.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom seleniumbase import BaseCase\n\n\nclass MyChartMakerClass(BaseCase):\n\n def test_chart_maker(self):\n self.create_pie_chart(title=\"Automated Tests\")\n self.add_data_point(\"Passed\", 7, color=\"#95d96f\")\n s... | python | edit | 1 | 1 | mit | de96fab9b84c66b1d3bc3c200713bb595bce81b3 | mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase | examples/chart_maker/my_chart.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import include, url\nfrom .views import reactivate_user\n\napp_name = \"useraudit\"\n\nurlpatterns = [\n url(r'/reactivate/(?P<user_id>\\d+)[/]?$', reactivate_user, name=\"reactivate_user\"),\n]\n\n```\n\nApply this... | python | edit | 3 | 0 | bsd-3-clause | 01ed98138f9be1f55c5f46e5e073dde4271cc277 | muccg/django-useraudit,muccg/django-useraudit,muccg/django-useraudit | useraudit/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nTest that variables passed in as a class constrained protocol type\nare correctly printed.\n\"\"\"\nimport lldbsuite.test.lldbinline as lldbinline\n\nlldbinline.MakeInlineTest(__file__, globals())\n\n```\n\nApply this change: [Swift... | python | edit | 1 | 0 | apache-2.0 | e4d271011ff352d4fa83c252739a71dc74a6c0d8 | apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb | packages/Python/lldbsuite/test/lang/swift/protocols/class_protocol/TestClassConstrainedProtocolArgument.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nProvides a translation method that strips Turkish characters and replaces\nthem with ASCII equivalents.\n\"\"\"\n\n\ntranslate_table = {\n ord(u\"ğ\"): u\"g\",\n ord(u\"ü\"): u\"u\",\n ord(u\"ş\"): ... | python | edit | 1 | 1 | mit | 4115cee1aa913346d5495230a98a5e723de9f5ab | tayfun/bilgisayfam,tayfun/bilgisayfam,tayfun/bilgisayfam | bilgisayfam/utils/encoding.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\n# This is fairly specific to using a Yourls server: see http://yourls.org/\n\nimport urllib\nimport urllib2\n\nimport Util\n\nSHORTEN_PART = 'yourls-api.php'\n\ndef shorten(url, config):\n def shortenerUrl(part):\n return '%s/%s' % (... | python | edit | 1 | 1 | mit | 7c7aa833dd79c53dbd921f5ed59cf2620342dbe3 | rec/echomesh,rec/echomesh,rec/echomesh,rec/echomesh,rec/echomesh,rec/echomesh | python/ShortenUrl.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport datetime\nfrom django.test import TestCase\nfrom django.utils import timezone\n\nfrom myblog.models import Article, Author\n\n\nclass ArticleMethodTest(TestCase):\n \"\"\"docstring for ArticleMethodTest - it shoult return False\n ... | python | edit | 1 | 1 | mit | 18545c519c23e9463fa7558191552e69304dfef7 | mileto94/Django-tutorial,mileto94/Django-tutorial | blog/myblog/tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! python\n\nimport sys\nimport requests\nimport urllib3\nfrom os import listdir\nfrom shutil import rmtree\nfrom json import loads\n\nurllib3.disable_warnings()\n\n\ndef main():\n url = \"https://api.github.com/repos/{}/ngeo/branches?pe... | python | edit | 3 | 6 | mit | 897bbe8b4d70ca68fb0336774b8c549ed2fe4c3e | camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo,camptocamp/ngeo | buildtools/cleanup-ghpages.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# hgallpaths.py - pull and push too all paths\n#\n# Copyright 2012 Keegan Carruthers-Smith <<EMAIL>>\n#\n# This software may be used and distributed according to the terms of the\n# GNU General Public License version 2 or any later version.... | python | edit | 1 | 3 | bsd-2-clause | 7e50594c47ff0f8fdaaa3c6fb3a7b6ec222fc9fa | keegancsmith/hgallpaths | hgallpaths.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom avocado.core import loader\nfrom avocado.conf import OPTIONAL_DEPS\nfrom _base import BaseExporter # noqa\nfrom _csv import CSVExporter\nfrom _sas import SASExporter\nfrom _r import RExporter\nfrom _json import JSONExporter\nfrom _htm... | python | edit | 1 | 0 | bsd-2-clause | 0e68fd50428ceaf53e00e22c11a45ec98185e738 | murphyke/avocado,murphyke/avocado,murphyke/avocado,murphyke/avocado | avocado/export/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nAdd a series of users from a file of JSON objects, one per line.\n\nThe JSON user object lines can have the following fields:\n\n{\"name\": \"A. Non\", \"password\": \"pass12345\", 'emailAddress': \"<EMAIL>\",... | python | edit | 1 | 2 | mit | f3803452c669aa35ca71f00c18f613e276a70ca2 | alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api | scripts/add_users.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Configuration.\"\"\"\n\nimport logging\nimport os\nimport re\n\nfrom google.appengine.ext.appstats import recording\n\nlogging.info('Loading %s from %s', __name__, __file__)\n\n# Custom webapp middleware to add Appstats.\ndef webapp_a... | python | edit | 3 | 5 | apache-2.0 | 511c0a480aa2353d30224f7dbde822a02a8dd2c4 | riannucci/rietveldv2,riannucci/rietveldv2 | appengine_config.py | rejected_duplicate | Near-duplicate of sample 115 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom solar.core.handlers.ansible_template import AnsibleTemplate\nfrom solar.core.handlers.ansible_playbook import AnsiblePlaybook\nfrom solar.core.handlers.base import Empty\nfrom solar.core.handlers.puppet import ... | python | edit | 1 | 2 | apache-2.0 | ffdd11e7aeed179868618dd7b4666e5e149962b0 | loles/solar,openstack/solar,zen/solar,dshulyak/solar,loles/solar,loles/solar,CGenie/solar,torgartor21/solar,pigmej/solar,Mirantis/solar,torgartor21/solar,zen/solar,Mirantis/solar,pigmej/solar,loles/solar,openstack/solar,pigmej/solar,zen/solar,Mirantis/solar,Mirantis/solar,zen/solar,openstack/solar,CGenie/solar,dshulyak... | solar/solar/core/handlers/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.core.mail import EmailMultiAlternatives\nfrom django.template.loader import get_template\nfrom django.template import Context\n\ndef send_group_mail(request, to_email, subject, email_text_templa... | python | edit | 4 | 1 | bsd-3-clause | d3beb067abca8a2c014ca8039556181881310392 | nikdoof/test-auth | app/groups/utils.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport stl.ascii\nimport stl.binary\n\n\ndef read_ascii_file(file):\n return stl.ascii.parse(file)\n\n\ndef read_binary_file(file):\n return stl.binary.parse(file)\n\n\ndef read_ascii_string(data):\n from StringIO import StringIO... | python | edit | 7 | 1 | mit | c99c275e1304335d210054c3838dc4bfe1618ac9 | ng110/python-stl,apparentlymart/python-stl,zachwick/python-stl | stl/__init__.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport climate\nimport matplotlib.pyplot as plt\nimport theanets\n\nfrom utils import load_cifar, plot_layers, plot_images\n\ng = climate.add_arg_group('CIFAR Example')\ng.add_argument('--features', type=int, defaul... | python | edit | 1 | 1 | mit | b0904677e9687932099406a38cc7cd8f7ba67573 | chrinide/theanets,lmjohns3/theanets,devdoer/theanets | examples/cifar-autoencoder.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nTesting the MlabSceneModel\n\"\"\"\nimport unittest\n\nfrom enthought.traits.api import HasTraits, Instance\nfrom enthought.mayavi.tools.mlab_scene_model import MlabSceneModel\nfrom enthought.mayavi import mlab\n\nfrom test_mlab_int... | python | edit | 1 | 1 | bsd-3-clause | dbe8d7a4f43521e7aeba8f2670e70ac91f40ec3c | dmsurti/mayavi,liulion/mayavi,alexandreleroux/mayavi,dmsurti/mayavi,alexandreleroux/mayavi,liulion/mayavi | enthought/mayavi/tests/test_mlab_scene_model.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport stl.ascii\nimport stl.binary\n\n\ndef parse_ascii_file(file):\n return stl.ascii.parse(file)\n\n\ndef parse_binary_file(file):\n return stl.binary.parse(file)\n\n\ndef parse_ascii_string(data):\n from StringIO import Strin... | python | edit | 3 | 1 | mit | 43e6a2e3bf90f5edee214d1511a6805a67f79595 | apparentlymart/python-stl,zachwick/python-stl,ng110/python-stl | stl/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2013 The SAYCBridge 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\nimport unittest2\nfrom core.callexplorer import *\n\n\nclass CallEx... | python | edit | 2 | 1 | bsd-3-clause | 2c4c527e6bb63f7db7a1c2d32f71b76fad65f92a | abortz/saycbridge,eseidel/saycbridge,eseidel/saycbridge,abortz/saycbridge,abortz/saycbridge,eseidel/saycbridge,abortz/saycbridge,abortz/saycbridge | src/core/tests/test_callexplorer.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ideascaly.auth import AuthNonSSO\nfrom ideascaly.api import API\n\nimport ConfigParser\nimport unittest\n\nconfig = ConfigParser.ConfigParser()\nconfig.read('config')\n\n\nclass IdeascalyTestCase(unittest.TestCase):\n\n def setUp(se... | python | edit | 1 | 1 | mit | a9b22b76203467ec63ce0592e32498cfecdedca3 | joausaga/ideascaly | tests/config.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2015-2015 ARM Limited\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www... | python | edit | 4 | 0 | apache-2.0 | 392ee6bec1041730b9859e70b9abe9b28a012d45 | credp/lisa,credp/lisa,ARM-software/lisa,credp/lisa,credp/lisa,ARM-software/lisa,ARM-software/lisa,ARM-software/lisa | libs/__init__.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, include, url\nfrom django.views.generic.simple import direct_to_template\nfrom django.contrib.staticfiles.urls import staticfiles_urlpatterns\n\nfrom django.contrib import admin\nfrom django.contrib.au... | python | edit | 1 | 0 | mit | 522279e967a8864e4404c8d05536b3d418da521f | cellcounter/cellcounter,cellcounter/cellcounter,cellcounter/cellcounter,haematologic/cellcountr,haematologic/cellcounter,haematologic/cellcounter,cellcounter/cellcounter,oghm2/hackdayoxford,haematologic/cellcounter,oghm2/hackdayoxford,haematologic/cellcountr | cellcounter/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\nclass SempaiLoader(object):\n def __init__(self, *args):\n print args\n\n def find_module(self, fullname, path=None):\n print 'finding', fullname, path\n if fullname == 'simple':\n return ... | python | edit | 2 | 3 | mit | 36c97aea9d3ea143f6a494c5f436ad7c0392cd6a | kragniz/json-sempai | jsonsempai.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nimport sys\r\nimport os.path\r\nimport codecs\r\nimport dfstrings\r\nimport time\r\n\r\ndef make_js_from_po(path):\r\n strings = []\r\n for po in [p for p in dfstrings.get_po_strings(path)... | python | edit | 5 | 5 | apache-2.0 | e155d7b96c5b834f4c062b93cbd564a5317905f1 | operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly | tools/po2js.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport requests\nimport config\n\ndef request(slug):\n url = \"%s%s\" % (config.server_url, slug)\n req = requests.get(url)\n\n if req.status_code != requests.codes.ok:\n raise req.raise_for_status()\n\n return req.json()... | python | edit | 4 | 3 | mit | 4f5b171b972b2255dfc3cdb8eea8b4a2745ae437 | rpanah/centinel,rpanah/centinel,lianke123321/centinel,JASONews/centinel,iclab/centinel,iclab/centinel,lianke123321/centinel,rpanah/centinel,iclab/centinel,Ashish1805/centinel,ben-jones/centinel,lianke123321/centinel | centinel/backend.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# flake8: noqa (ignore unused imports)\n\n# Version 1.0\n\nfrom . import ripasso\nfrom .element import Element\nfrom .segment import Segment\nfrom .sequence import Sequence\nfrom .blueprint import BluePrint\nfrom .tools import makeVaryingS... | python | edit | 1 | 0 | mit | bc20e8d01dc154d45f9dfc8f2b610d415a40f253 | WilliamHPNielsen/broadbean | broadbean/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nTests for the barebones example project\n\"\"\"\nimport os\nimport py.path\n\nfrom tarbell.app import EXCLUDES, TarbellSite\n\nPATH = os.path.realpath('examples/barebones')\n\ndef test_get_site():\n site ... | python | edit | 4 | 2 | bsd-3-clause | 52d7a26237cb1e594456127b775524596c3fb1ac | tarbell-project/tarbell,eyeseast/tarbell,eyeseast/tarbell,tarbell-project/tarbell | tests/test_barebones.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom SUASImageParser import ImageParser\nfrom SUASImageParser.utils.color import bcolors\n\nfrom options import parseOptions\nfrom options import getOption\n\nimport cv2\n\n\n# ------------------------ Creating option parser ---------------... | python | edit | 4 | 0 | mit | 6f363525314ed4b4652f48278ab1bab221e40b40 | FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition | suasimageparser.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport docutils.core as dc\n\nfrom writer import writer\n\nimport os.path\nimport sys\nimport glob\n\npreamble = '\\n'.join([r'% PDF Standard Fonts',\n r'\\usepackage{mathptmx}',\n ... | python | edit | 2 | 0 | bsd-2-clause | ee5bd327bb3070277c87a96f72ca7e019c92f777 | dotsdl/scipy_proceedings,sbenthall/scipy_proceedings,juhasch/euroscipy_proceedings,chendaniely/scipy_proceedings,springcoil/euroscipy_proceedings,euroscipy/euroscipy_proceedings,mjklemm/euroscipy_proceedings,mikaem/euroscipy_proceedings,SepidehAlassi/euroscipy_proceedings,sbenthall/scipy_proceedings,katyhuff/scipy_proc... | publisher/build_paper.py | rejected_duplicate | Near-duplicate of sample 5204 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass sheet(object):\n\t\"\"\" sheet: Top level object. \n\t\tModels the entire music sheet \"\"\"\n\tdef __init__(self, name):\n\t\tsuper(sheet, self).__init__()\n\t\tself.name = name\n\t\tself.bars = list()\n\t\t\n\tdef add_bar(bar):\n\t\... | python | edit | 2 | 1 | mit | 0f22d72aeb4fc872dfa1c5e75d40102c27cf2a8c | ograndedjogo/tab-translator,ograndedjogo/tab-translator | tabtranslator/model.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python2.4\n#\n# Copyright 2011 Google Inc. All Rights Reserved.\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 ... | python | edit | 1 | 0 | apache-2.0 | d20e1a1fba39b688a21bfbf02fe32a2039232949 | FlorianHeigl/capirca,haykeh/capirca,FlorianHeigl/capirca,haykeh/capirca | lib/speedway.py | rejected_duplicate | Near-duplicate of sample 11808 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Testing dll.py.\"\"\"\nimport pytest\n\n\n@pytest.fixture\ndef new_dll():\n \"\"\"Return empty dll.\"\"\"\n from dll import DoublyLinkedList\n return DoublyLinkedList()\n\n\ndef test_init(new_dll):\n \"\"\"Test initializat... | python | edit | 1 | 3 | mit | de3722bdd4e5261ffe2ffd6264134ed51c131075 | fordf/data-structures | src/test_dll.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom werkzeug import redirect\nfrom werkzeug.exceptions import NotFound\n\nfrom websod.utils import session, expose, url_for, serve_template\nfrom websod.models import Integration\n\nfrom datetime import timedelta, datetime\n\n@expose('/')\... | python | edit | 5 | 1 | mit | 38aed64e1c20d25a6bda750a096a513b7d414c45 | schettino72/serveronduty | websod/views.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\nfrom planner.models import Route, Waypoint, RoadTrip, TripDetail\n\n\nclass WaypointInline(admin.StackedInline):\n model = Waypoint\n extra = 1\n\n\nclass RouteAdmin(admin.ModelAdmin):\n model = ... | python | edit | 1 | 1 | apache-2.0 | 692141042bd21bfd7d72567bdabf080304a48474 | jwarren116/RoadTrip,jwarren116/RoadTrip,jwarren116/RoadTrip | planner/admin.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 models, migrations, connection\nimport django.db.models.deletion\n\nis_index = connection.vendor != 'mysql'\n\n\nclass Migration(migrations.Migration)... | python | edit | 1 | 0 | bsd-3-clause | 069d6085946a21c5e78621abf13fb60fd7eb4dcf | HonzaKral/django-threadedcomments,HonzaKral/django-threadedcomments | threadedcomments/migrations/0001_initial.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport os.path\nimport inspect\n\nbase_path = os.path.dirname(inspect.getframeinfo(inspect.currentframe())[0])\n\nNAME = 'rust'\nGCC_LIST = ['rust', '%s/plugin.a' % base_path]\n\nCFLAGS = []\n\nif os.uname()[0] == 'Darwin':\n ... | python | edit | 1 | 0 | mit | 721f6f7916d698f22c9d96ce52cce3773fa514cc | unbit/uwsgi-rust,unbit/uwsgi-rust,unbit/uwsgi-rust | uwsgiplugin.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 AbstractUser\nfrom django.utils.translation import ugettext_lazy as _\n\nclass Organization(models.Model):\n name = models.CharField(_('Name'), max_length=80)\n slug... | python | edit | 1 | 1 | bsd-3-clause | 8351b73693019360c3f0ea3c60531ac13bef1c24 | RocknRoot/LIIT | structure/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Family module for Wikivoyage.\"\"\"\n#\n# (C) Pywikibot team, 2012-2018\n#\n# Distributed under the terms of the MIT license.\n#\n# The new wikivoyage family that is hosted at wikimedia\nfrom __future__ import... | python | edit | 1 | 0 | mit | ccb4c2780c0c9acc36d73acc32f8867f0bd2b944 | wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core | pywikibot/families/wikivoyage_family.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.10.2 on 2016-10-24 09:25\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\nimport django.db.models.deletion\n\n\nclass Migration(migrations.Migration):\n\n... | python | edit | 1 | 0 | mit | f812fa8f0df0f3b8c8bb56f446dd01f64cff5cae | apihackers/wapps,apihackers/wapps,apihackers/wapps,apihackers/wapps | wapps/migrations/0016_auto_20161024_0925.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n\nSECRET_KEY = 'fake_secret'\n\nROOT_URLCONF = 'tests.test_urls'\n\nDATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.sqlite3',\n 'NAME': 'irrelevant.db'\n }\n}\n\nINSTALL... | python | edit | 1 | 0 | mit | 31bea815589e018c9a6250f1a8efcdf8cecfef7d | thomasw/djproxy | tests/test_settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import join, dirname\n\nfrom cloudify import ctx\n\nctx.download_resource(\n join('components', 'utils.py'),\n join(dirname(__file__), 'utils.py'))\nimport utils # NOQA\n\nMGMT_WORKER_SERVICE_NAM... | python | edit | 1 | 2 | apache-2.0 | 7d2d94d69797586860f7bb8c21a0b0e217fbc394 | isaac-s/cloudify-manager-blueprints,Cloudify-PS/cloudify-manager-blueprints,cloudify-cosmo/cloudify-manager-blueprints,cloudify-cosmo/cloudify-manager-blueprints,isaac-s/cloudify-manager-blueprints,Cloudify-PS/cloudify-manager-blueprints | components/mgmtworker/scripts/start.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\nclass Office(models.Model):\n location = models.CharField(max_length=50)\n\n\nclass Title(models.Model):\n name = models.CharField(max_length=50)\n salary = models.IntegerField(null=True)\n boss =... | python | edit | 1 | 1 | bsd-2-clause | 988d66f748adc781f81929007e8971eadf3aafb5 | chop-dbhi/serrano,rv816/serrano_night,rv816/serrano_night,chop-dbhi/serrano | tests/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add module imports to noweats init."
},
{
"role": "assistant",
"content": "\"\"\"\nThe NowEats application scrapes Twitter for what people are eating now.\n\"\"\"\nimport analysis\nimport collection\nimport extraction\n"
}
] | python | new_file | 5 | 0 | mit | d6fcedb2b479da20cbe061bcba52758a18a6ed0b | blr246/noweats,blr246/noweats | noweats/__init__.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\n\nclass ConeyException(Exception):\n def __repr__(self):\n return 'An unspecified error has occurred'\n\n\nclass CallTimeoutException(ConeyException):\n def __repr__(self):\n return 'An RPC call did not return before t... | python | edit | 1 | 1 | mit | ed97a1f811f04693203f6d1c0e9b64649a3da152 | cbigler/jackrabbit | coney/exceptions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright © 2009 Ben Finney <<EMAIL>>\n# Copyright © 2006 Robert Niederreiter\n#\n# This is free software: you may copy, modify, and/or distribute this work\n# under the terms of the Python Software Foundation L... | python | edit | 3 | 0 | apache-2.0 | 113fc2bb39e872ae8e1fa4870d8b94f9375cec9e | wting/python-daemon,eaufavor/python-daemon | daemon/__init__.py | rejected_duplicate | Near-duplicate of sample 16346 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n'''Functions that perform the different reduction strategies.'''\nimport numpy as np\n\n\ndef closest(times, values, center_time):\n abs_delta = np.abs(np.array([(t - center_time).total_seconds()\n for t in times]))\n closest_i... | python | edit | 1 | 2 | bsd-2-clause | 80ea1fd6dc5ad47a3689f64ebe6e639f037f7d20 | seibert/ln | ln/backend/reduction.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass ProxyType:\n\n def __init__(self,obj):\n self.obj = obj\n\nCallableProxyType = ProxyType\nProxyTypes = [ProxyType,CallableProxyType]\n\nclass ReferenceType:\n\n def __init__(self,obj,callback):\n self.obj = obj\n ... | python | edit | 1 | 1 | bsd-3-clause | 52b6dac7528232dfd41841f4697c7a78e2a2e675 | olemis/brython,Lh4cKg/brython,molebot/brython,kikocorreoso/brython,Isendir/brython,Mozhuowen/brython,Isendir/brython,amrdraz/brython,Hasimir/brython,olemis/brython,firmlyjin/brython,JohnDenker/brython,olemis/brython,firmlyjin/brython,Mozhuowen/brython,jonathanverner/brython,molebot/brython,jonathanverner/brython,kevinm... | www/src/Lib/_weakref.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport csv\n\nstart = 900\n\nnewcsv = []\n\nwith open('50_percent_cheaters.csv', 'rb') as csvfile:\n experiment50 = csv.DictReader(csvfile)\n for row in experiment50:\n row['Run'] = int(row['Run']) - start\n newcsv.appe... | python | edit | 1 | 0 | mit | 3948128a194a27171ec14ca664a77c125ec73fae | nud3l/smart-contract-analysis | data/adjustIndex.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: UTF-8 -*-\nfrom fabric.api import *\n\ndef move_sampledocs_to_fixture():\n local(\"cp fs_doc/fixtures/foreskrift/*.pdf uploads/foreskrift/\")\n local(\"cp fs_doc/fixtures/bilaga/*.pdf uploads/bilaga/\")\n local(\"cp f... | python | edit | 16 | 1 | bsd-3-clause | 23540359422501ebd8a1b833c426cdfb1a3dfe00 | kamidev/autobuild_fst,kamidev/autobuild_fst,rinfo/fst,rinfo/fst,kamidev/autobuild_fst,rinfo/fst,kamidev/autobuild_fst,rinfo/fst | fabfile.py | rejected_lint | Too many lint violations: 16 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport click\n\nfrom .loader import load_yaml\nfrom .blueprint import Blueprint\nfrom .exceptions import ValidationError, YAMLError\n\n\ndef get_blueprint(*files):\n try:\n return Blueprint.from_description(load_yaml(*files))\n ... | python | edit | 1 | 3 | mit | 7c8a90a6bc0a51788966b0035bc97b24a6680611 | novafloss/populous | populous/cli.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n'''\nPreprocessing utilities\n'''\nfrom nltk import sent_tokenize\nfrom random import shuffle, sample\n\n\ndef shuffle_sents(text, times):\n sents = sent_tokenize(text)\n res = []\n for i in range(times):\n... | python | edit | 1 | 4 | apache-2.0 | fa5f9ad96c52d5977913a4e8c41c0ec0bd2214f1 | kigawas/coheoka | coheoka/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nTOKENS = {\n '_foo_bucket': '_foo_bucket-bearer-token',\n 'bucket': 'bucket-bearer-token',\n 'foo': 'foo-bearer-token',\n 'foo_bucket': 'foo_bucket-bearer-token',\n 'licensing': 'licensing-bearer-token'\n}\n\n```\n\nApply thi... | python | edit | 1 | 0 | mit | 3da2c4a83de97407c69b9144475441e9bb0a3073 | alphagov/backdrop,alphagov/backdrop,alphagov/backdrop | backdrop/write/config/development_tokens.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom fabric.api import cd, env, local, lcd, run\n\n\nPUPPET_MASTER_IP = '192.168.33.10'\n\n\ndef puppet():\n env.hosts = [\n 'vagrant@' + PUPPET_MASTER_IP + ':22',\n ]\n env.passwords = {\n 'vagrant@' + PUPPET_MASTER_... | python | edit | 3 | 1 | mit | 966c8e549e1cb78c64ad2f359162bc5a2171a732 | zkan/puppet-untitled-2016,zkan/puppet-untitled-2016 | fabfile.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nVERSION = (0, 5, 5, 'final', 0)\n\ndef get_version():\n version = '%s.%s' % (VERSION[0], VERSION[1])\n if VERSION[2]:\n version = '%s.%s' % (version, VERSION[2])\n if VERSION[3:] == ('alpha', 0):\n version = '%s pre-a... | python | edit | 1 | 4 | bsd-3-clause | c977bef31fd36356f3a131d1f25250640c61f4b7 | ofirr/dojango,ricard33/dojango,ofirr/dojango,ricard33/dojango,ofirr/dojango,william-gr/dojango,william-gr/dojango,ricard33/dojango,klipstein/dojango,william-gr/dojango,klipstein/dojango | dojango/__init__.py | rejected_duplicate | Near-duplicate of sample 2776 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.\n\nimport unittest\nfrom test import support\n\nclass PEP3120Test(unittest.TestCase):\n\n def test_pep3120(self):\n self.assertEqual(\n \"П... | python | edit | 3 | 3 | mit | 53b8c8efcef4c419c06197365448cc271a5f6aef | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | Lib/test/test_pep3120.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pycassa.columnfamily import *\nfrom pycassa.columnfamilymap import *\nfrom pycassa.types import *\nfrom pycassa.index import *\nfrom pycassa.pool import *\nfrom pycassa.connection import *\nfrom pycassa.system_manager import *\n\nfrom ... | python | edit | 14 | 0 | mit | 7d3fd06884bc11b9e1c60250052a1abdb6e7d44d | pycassa/pycassa,pycassa/pycassa | pycassa/__init__.py | rejected_lint | Too many lint violations: 14 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\\\nSciPy --- A scientific computing package for Python\n===================================================\n\nYou can support the development of SciPy by purchasing documentation\nat\n\n http://www.trelgol.com\n\nIt is being distri... | python | edit | 2 | 0 | bsd-3-clause | c25e735216dd1969ed09d24fcca9eaafe1dc8405 | Newman101/scipy,kleskjr/scipy,mikebenfield/scipy,njwilson23/scipy,giorgiop/scipy,mikebenfield/scipy,Stefan-Endres/scipy,trankmichael/scipy,argriffing/scipy,ilayn/scipy,anntzer/scipy,rmcgibbo/scipy,ortylp/scipy,zerothi/scipy,raoulbq/scipy,mtrbean/scipy,sargas/scipy,newemailjdm/scipy,felipebetancur/scipy,ales-erjavec/sci... | Lib/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nTest utilities.\n\"\"\"\nfrom __future__ import (absolute_import, division,\n print_function, unicode_literals)\nfrom builtins import *\n\nimport json\nfrom unittest import TestCase\n\ndef parent_module(module... | python | edit | 2 | 2 | mit | e827c54c7e3727c2554d5b0c74a085fec7348d0c | AtteqCom/zsl,AtteqCom/zsl | tests/test_utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nRotor model using mbwind\n\"\"\"\n\nfrom numpy import pi, dot\nfrom mbwind import rotations, RigidConnection, RigidBody\nfrom mbwind.elements.modal import ModalElementFromFE\n\nclass Rotor(object):\n def __init__(self, num_blades... | python | edit | 3 | 3 | mit | e3f6be6f2ce00e335ebc4d17ff6b89f230dc34fa | ricklupton/py-bem | rotor.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\ndef parser(roman):\n '''\n This function receives a Roman Numeral String and convert it to an\n Arabic Number.\n\n parameters:\n ---------------------------------\n roman: Roman Numearl string in... | python | edit | 4 | 7 | cc0-1.0 | 6763ebff720c8aa6acbfddccd4a8d3f7aeba2cee | Elixeus/Snippets,Elixeus/Snippets | roman.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\n\nfrom socketio import socketio_manage\nfrom django.conf.urls import patterns, url, include\nfrom django.http import HttpResponse\nfrom django.views.decorators.csrf import csrf_exempt\n\n\nSOCKETIO_NS = {}\n\nclass namespace... | python | edit | 4 | 2 | bsd-3-clause | fd297665f1cb95ba3e8e069a18a9e8af18b449c8 | smurfix/gevent-socketio,abourget/gevent-socketio,kazmiruk/gevent-socketio,arnuschky/gevent-socketio,bobvandevijver/gevent-socketio,hzruandd/gevent-socketio,yacneyac/gevent-socketio,Eugeny/gevent-socketio,theskumar-archive/gevent-socketio,arnuschky/gevent-socketio,kazmiruk/gevent-socketio,theskumar-archive/gevent-socket... | socketio/sdjango.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport zlib\nimport zmq\nimport simplejson\nimport sys\n\ndef main():\n context = zmq.Context()\n subscriber = context.socket(zmq.SUB)\n\n subscriber.connect('tcp://localhost:9500')\n subscriber.setsockopt(zmq.SUBSCRIBE, \"\")\n... | python | edit | 2 | 2 | bsd-2-clause | 9ddbc2c319993a1084317f9af8796f25211c6d33 | andreas23/emdn | sample-client.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# urllib3/__init__.py\n# Copyright 2008-2011 Andrey Petrov and contributors (see CONTRIBUTORS.txt)\n#\n# This module is part of urllib3 and is released under\n# the MIT License: http://www.opensource.org/licenses/mit-license.php\n\n\"\"\"\n... | python | edit | 14 | 0 | mit | 198f6b0e0a98d0f5ef34d1aec44d5e9704d2cae9 | Lukasa/urllib3,Geoion/urllib3,msabramo/urllib3,mikelambert/urllib3,haikuginger/urllib3,tutumcloud/urllib3,haikuginger/urllib3,luca3m/urllib3,boyxuper/urllib3,Lukasa/urllib3,sornars/urllib3,Geoion/urllib3,mikelambert/urllib3,tutumcloud/urllib3,gardner/urllib3,msabramo/urllib3,matejcik/urllib3,asmeurer/urllib3,urllib3/ur... | urllib3/__init__.py | rejected_lint | Too many lint violations: 14 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst'), \"r\") as readme_file:\n readme = readme_file.read()\n\nsetup(\n name = \"parse_this\",\n version = ... | python | edit | 1 | 0 | mit | 28341d67a187a2433bd2a363ce262f401cae7e63 | bertrandvidal/parse_this | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nFlask-Testing\n--------------\n\nFlask unittest integration.\n\nLinks\n`````\n\n* `documentation <http://packages.python.org/Flask-Testing>`_\n* `development version\n <http://bitbucket.org/danjac/flask-testing/get/tip.gz#egg=Flask... | python | edit | 1 | 0 | bsd-3-clause | 320f64f9c5429b4ffc85d518eb8df02b4c28254f | ecarrara/flask-testing,jmagnusson/flask-testing,jmagnusson/flask-testing,ecarrara/flask-testing | 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.md')).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 | apache-2.0 | 599f9d56058418ff9d747b0c4f978c3f95d245d4 | honza801/django-swiftbrowser,honza801/django-swiftbrowser,honza801/django-swiftbrowser | 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=\"selectivesearch\",\n version=\"0.1\",\n url=\"https://github.com/AlpacaDB/selectivesearch\",\n description=\"Selective Search implementation for Python\",\n autho... | python | edit | 1 | 0 | mit | 1d9d661dd03c6f66f62b3f32865eadd4b5afe304 | AlpacaDB/selectivesearch | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom datetime import date\r\nimport calendar\r\n\r\n\r\ndef get_time_index(update):\r\n if \"warning\" in update:\r\n return 7\r\n if \"pollution\" in update:\r\n return 8\r\n elif \"today\" in update:\r\n retu... | python | edit | 1 | 10 | unlicense | 3b6995c5103ba09b21619ac3ae4f4d9733144d89 | ElizabethSEden/cycling-weather-bot | craft_message.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom Cython.Build import cythonize\nfrom distutils.extension import Extension\nimport numpy as np\n\n# To compile and install locally run \"python setup.py build_ext --inplace\"\n# To install library to Pyt... | python | edit | 1 | 0 | mit | 0a300314c0fae8420db1aa773e4ec8c96fca1cf5 | matteorr/coco-analyze,matteorr/coco-analyze,matteorr/coco-analyze | 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\nimport schunk\n\nclass PyTest(TestCommand):\n def finalize_options(self):\n TestCommand.finalize_options(self)\n self.test_a... | python | edit | 1 | 1 | mit | ad64d506a721b27150acdac300570235b4fc1f01 | spatialaudio/schunk | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\nfrom wonderful_bing import wonderful_bing\n\ntry:\n import pypandoc\n long_description = pypandoc.convert('README.md','rst')\nexcept (IOError, ImportErr... | python | edit | 1 | 0 | mit | e060500e4979f918b507a6f7d12f8d25e2be318b | lord63/wonderful_bing | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nfrom setuptools import setup\n\nsetup(\n name=\"Pelops\",\n version=\"0.1\",\n description=\"Car re-identification via deep learning\",\n url=\"https://www.python.org/sigs/distutils-sig/\",\n author=\"... | python | edit | 1 | 0 | apache-2.0 | 31cf6e14f42b2703e410426e7f84ffc49457cbbb | dave-lab41/pelops,dave-lab41/pelops,Lab41/pelops,Lab41/pelops | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import abspath, dirname, join, normpath\n\nfrom setuptools import setup\n\n\nsetup(\n\n # Basic package information:\n name = 'django-heroku-postgresify',\n version = '0.4',\n py_modules = ('postgresify',),\n\n #... | python | edit | 1 | 0 | unlicense | 9629f665d11131e045d366a828a356f3e8916492 | rdegges/django-heroku-postgresify | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='tfr',\n version='0.1',\n description='Time-frequency reassigned spectrograms',\n url='http://github.com/bzamecnik/tfr',\n author='Bohumir Zamecnik',\n author_email='<EMAIL... | python | edit | 1 | 0 | mit | 4c0bbbe3072f3ae373cd1357daec7d064ec22dd2 | bzamecnik/tfr,bzamecnik/tfr | 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.4',\n license='MIT',\n url='https://github.com/postlund/pyatv',\n author='Pierre Ståhl',\n a... | python | edit | 1 | 0 | mit | 385b280ccad9385d24d2ad3f892718c8302f8718 | postlund/pyatv,postlund/pyatv | setup.py | rejected_duplicate | Near-duplicate of sample 19674 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\nversion = '0.1'\n\nsetup(name='arbeiter',\n version=version,\n description=\"An unassuming work queue system\",\n long_description=\"\"\"\\\nA work queue system b... | python | edit | 4 | 0 | bsd-2-clause | 089c1a2b8645d7e3db13f2c4a73cfcd3925dc4c2 | ericmoritz/arbeiter | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# Warthog - Simple client for A10 load balancers\n#\n# Copyright 2014 Smarter Travel\n#\n# Available under the MIT license. See LICENSE for details.\n#\n\n\nimport codecs\nfrom setuptools import find_packages, se... | python | edit | 1 | 0 | mit | 9051a84130aabe97f9f83176be443d79825f3dda | smarter-travel-media/warthog | 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\nREADME = 'README.md'\n\n\ndef long_desc():\n try:\n import pypandoc\n except ImportError:\n with open(README) as f:\n return f.read()\n ... | python | edit | 1 | 2 | mit | d81f621552b3cc1bb081faf491728ba59e0d1075 | mayfield/ecmcli | 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__))\nREADME = open(os.path.join(here, 'README.md')).read()\nCHANGES = open(os.path.join(here, 'CHANGES.md')).read()\n\nrequires = [\n ... | python | edit | 3 | 0 | mit | 99fae00aca7bb28b0915664698937e2464e92eb4 | LaunchKey/launchkey-python,iovation/launchkey-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport skyfield # safe, because __init__.py contains no import statements\n\nsetup(\n name='skyfield',\n version=skyfield.__version__,\n description=skyfield.__doc__.split('\\n', 1)[0],\n long_... | python | edit | 1 | 0 | mit | 203fd6173cdc27d32c57db7c0a0bdd7335cfa885 | ozialien/python-skyfield,skyfielders/python-skyfield,ozialien/python-skyfield,skyfielders/python-skyfield | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nimport setuptools\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\npackages = setuptools.find_namespace_packages(include=['simple_parsing*'])\nprint(\"PACKAGES FOUND:\", packages)\nprint(sys.version_i... | python | edit | 1 | 0 | mit | 32eccc0c3d8ec0ba19e507d538c1f5cc5f6baaf5 | lebrice/SimpleParsing | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nimport skyfield # to learn the version\n\nsetup(\n name='skyfield',\n version=skyfield.__version__,\n description=skyfield.__doc__,\n long_description=open('README.rst').read(),\n license='M... | python | edit | 1 | 0 | mit | f8359081afadf6a653b5df3d28d4a6676c9c6860 | exoanalytic/python-skyfield,skyfielders/python-skyfield,ozialien/python-skyfield,GuidoBR/python-skyfield,GuidoBR/python-skyfield,skyfielders/python-skyfield,ozialien/python-skyfield,exoanalytic/python-skyfield | 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='cosmo',\n version='0.0.1',\n description='Monitors for HST/COS',\n keywords=['astronomy'],\n classifiers=[\n 'Programming Language :: Python :: 3',\n ... | python | edit | 1 | 0 | bsd-3-clause | 4542499e53a228665caa519585ef8afe584ef388 | justincely/cos_monitoring | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Setup script for PyPI \"\"\"\nimport os\nimport sys\nfrom setuptools import setup\nfrom ConfigParser import SafeConfigParser\n\nsettings = SafeConfigParser()\nsettings.read(os.path.realpath('dynamic_dynamodb/dynamic-dynamodb.conf'))\... | python | edit | 1 | 2 | apache-2.0 | bd255f89c5958e73fcb715a78950e7065facb7cf | sebdah/dynamic-dynamodb,acquiachrisnagy/dynamic-dynamodb,Lead-iD/dynamic-dynamodb,qqshfox/dynamic-dynamodb,Spokeo/dynamic-dynamodb | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport os\nimport sys\nfrom setuptools import setup\n\nthis_dir = os.path.abspath(os.path.dirname(__file__))\n\nVERSIONFILE = os.path.join(this_dir, \"textx\", \"__init__.py\")\nVERSION = None... | python | edit | 1 | 0 | mit | 26c3f786064923f0ac099de645289ff75014b354 | igordejanovic/textX,igordejanovic/textX,igordejanovic/textX | setup.py | rejected_duplicate | Near-duplicate of sample 4727 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept:\n from distutils.core import setup\n\nimport forms\n\nsetup(\n name='forms',\n version=forms.version,\n description='HTML forms framework for Nevow',\n author='Matt Goodall',\n ... | python | edit | 1 | 0 | mit | c4f2946f67784c24c2364821a2ba93773ac96e88 | emgee/formal,emgee/formal,emgee/formal | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nversion = '6.0.0'\n\n\ninstall_requires = (\n 'djangorestframework>=2.4.4,<3',\n 'incuna_mail>=2.0.0,<3',\n)\n\nextras_require = {\n 'avatar': [\n 'django-imagekit>=3.2',\n ... | python | edit | 1 | 0 | bsd-2-clause | 9802a48572c939d80ba226c9d2c903825938653f | incuna/django-user-management,incuna/django-user-management | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nVERSION = '1.1.4'\n\nsetup(\n name=\"puresnmp\",\n version=VERSION,\n description=\"Pure Python SNMP implementation\",\n long_description=open(\"README.rst\").read(),\n author=\"... | python | edit | 1 | 0 | mit | 8a3aedad773a0899ceb85377faab658bc0dfdcb4 | exhuma/puresnmp,exhuma/puresnmp | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport tables as tb\nhdf5_filename = 'hdf5/sn_data.h5'\n\nclass SN(object):\n \"\"\"A supernova is the explosion that ends the life of a star\n\n The SN needs to be conatained within the HDF5 database before it is used\n by SNoBoL.... | python | edit | 3 | 1 | mit | e9fe645af28bd93a6ee2b38184254c8295b70d3d | JALusk/SuperBoL,JALusk/SNoBoL,JALusk/SNoBoL | sn.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Create dictionary to map ETL data files to ingestion classes"
},
{
"role": "assistant",
"content": "import overview\nimport personnel\nimport match\nimport events\nimport statistics\n\n\nCSV_ETL_CLASSES = {\n 'Overview': {\n ... | python | new_file | 1 | 0 | mit | 3fbec65f39295eb45211e33f0452b1076541cbc1 | soccermetrics/marcotti | etl/csv/__init__.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.