messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# \n# Copyright (c) 2017 Ralf Horstmann <<EMAIL>>\n# \n# Permission to use, copy, modify, and distribute this software for any\n# purpose with or without fee is hereby granted, provided that the above\n# copyright not... | python | edit | 1 | 0 | isc | a696e9740920018d726c0c54987f6dc6ba2128d6 | ra1fh/eppconvert | eppread.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: UTF-8\n#\n# Copyright (c) 2015-2016 Facility for Rare Isotope Beams\n#\n\n\"\"\"\nPhysics Applications\n\"\"\"\n\nfrom .latticemodel import lmapp\n\nfrom phantasy_apps import *\n\n```\n\nApply this change: Add warning if 'phanta... | python | edit | 4 | 0 | bsd-3-clause | 7afedf19ff9dfcbf8872a7a9a6090c4ed235a206 | archman/phantasy,archman/phantasy | phantasy/apps/__init__.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef main():\n from psi.experiment.workbench import PSIWorkbench\n workbench = PSIWorkbench()\n\n io_manifest = 'io_manifest.IOManifest'\n controller_manifest = 'simple_experiment.ControllerManifest'\n workbench.register_core_... | python | edit | 1 | 1 | mit | de7854ddf9577e9cd14a630503ce514d19a0a235 | bburan/psiexperiment | demo/app/launch.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom readthedocs.core import hacks\n\nclass TestHacks(TestCase):\n fixtures = ['eric.json', 'test_data.json']\n\n def setUp(self):\n hacks.patch_meta_path()\n\n def tearDown(self):\n ... | python | edit | 1 | 1 | mit | aecc14ea11cae2bb27ee2534a229e7af8453053e | agjohnson/readthedocs.org,pombredanne/readthedocs.org,wijerasa/readthedocs.org,atsuyim/readthedocs.org,CedarLogic/readthedocs.org,safwanrahman/readthedocs.org,nyergler/pythonslides,sunnyzwh/readthedocs.org,raven47git/readthedocs.org,CedarLogic/readthedocs.org,michaelmcandrew/readthedocs.org,fujita-shintaro/readthedocs.... | readthedocs/rtd_tests/tests/test_hacks.py | rejected_duplicate | Near-duplicate of sample 14082 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef is_expanded(request, key):\n \"\"\" Examines request object to return boolean of whether\n passed field is expanded.\n \"\"\"\n expand = request.query_params.get(\"expand\", \"\")\n expand_fields = []\n\n for e in ... | python | edit | 2 | 7 | mit | e0c926667a32031b5d43ec1701fe7577282176ca | rsinger86/drf-flex-fields | rest_flex_fields/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nThis is a home for shared dev settings. Feel free to add anything that all\ndevs should have set.\n\nAdd `from dev_settings import *` to the top of your localsettings file to use.\nYou can then override or append to any of these se... | python | edit | 1 | 0 | bsd-3-clause | ada4e94fb4b6de1303d4c4ad47d239bbf0699f3e | qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq | dev_settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass ThingObjectBase(object):\n\n def __getitem__(self, item):\n return getattr(self, item)\n\n def __contains__(self, item):\n return hasattr(self, item)\n\n\nclass ThingObjectOutput(ThingObjectBase):\n\n def __init... | python | edit | 1 | 2 | mit | 05de6db4aab5f6705bb2867422fab5f7aca3a13a | ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang | thinglang/execution/builtins.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import migrations\n\n\ndef assign_access_key(apps, schema):\n vatlayer_configuration = (\n apps.get_model(\"plugins\", \"PluginConfiguration\")\n .objects.filter(identifier=\"mirumee.taxes.vatlayer\")\n ... | python | edit | 1 | 2 | bsd-3-clause | b1106407aa9695d0ca007b53af593e25e9bb1769 | mociepka/saleor,mociepka/saleor,mociepka/saleor | saleor/plugins/migrations/0004_drop_support_for_env_vatlayer_access_key.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib.auth import get_user_model\nfrom django.contrib.auth.backends import ModelBackend\n\n\nclass CaseInsensitiveModelBackend(ModelBackend):\n\n def authenticate(email=None, password=None, **kwargs):\n \"\"\"\n ... | python | edit | 1 | 5 | mit | 0498e1575f59880b4f7667f0d99bfbd993f2fcd5 | gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,gdit-cnd/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID,LindaTNguyen/RAPID | profiles/backends.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n'''\n\nDr Who Box: Blue Effects LED\n\n'''\n\nfrom __future__ import print_function\nimport RPi.GPIO as GPIO\nimport time\nfrom multiprocessing import Process\nimport math\n\n# Define PINS\nLED = 18\n\n# Use numbering based on P1 header\nGP... | python | edit | 1 | 7 | mit | defb736895d5f58133b9632c85d8064669ee897a | davidb24v/drwho | blueLed.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport csv\nimport sys\n\nfrom gwaith import get_rates, processors\n\nonly = ('PLN', 'GBP')\n\nfor data in get_rates(processor=processors.to_json, only=only):\n print(data)\n\nfor data in get_rates(processor=proces... | python | edit | 1 | 1 | mit | b68e609b746af6211a85493246242ba00a26f306 | bartekbrak/gwaith,bartekbrak/gwaith,bartekbrak/gwaith | bin/hand_test_lib_main.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# TODO: Add private API with Redis Cache and PostgreSQL (or any SQL DB with SQLAlchemy)\nfrom api import api, cache, db\nfrom flask import abort, Flask\nfrom flask_restful import Resource\nfrom os import getenv\nfrom api.resources.market im... | python | edit | 6 | 3 | mit | e74aff778d6657a8c4993c62f264008c9be99e78 | amicks/Speculator | api/app.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging, email, yaml\nfrom django.utils import simplejson as json\nfrom google.appengine.ext import webapp, deferred\nfrom google.appengine.ext.webapp.mail_handlers import InboundMailHandler\nfrom google.appengine.api.urlfetch import... | python | edit | 4 | 2 | mit | fc830b0caf29fe1424bc8fe30afcf7e21d8ecd72 | maccman/remail-engine | inbound.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# django-salesforce\n#\n# by Phil Christensen\n# (c) 2012-2013 Freelancers Union (http://www.freelancersunion.org)\n# See LICENSE.md for details\n#\n\nimport re\n\nfrom django.db.backends import BaseDatabaseOperations\n\n\"\"\"\nDefault dat... | python | edit | 3 | 1 | mit | f31ab02d9a409e31acf339db2b950216472b8e9e | django-salesforce/django-salesforce,chromakey/django-salesforce,philchristensen/django-salesforce,hynekcer/django-salesforce,chromakey/django-salesforce,hynekcer/django-salesforce,hynekcer/django-salesforce,chromakey/django-salesforce,django-salesforce/django-salesforce,philchristensen/django-salesforce,django-salesfor... | salesforce/backend/operations.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required\nfrom django.views.generic.list import ListView\nfrom django.views.generic.detail import DetailView\n\nfrom base.util import class_view_decorator... | python | edit | 1 | 3 | mit | c496be720461722ce482c981b4915365dd0df8ab | matus-stehlik/roots,rtrembecky/roots,tbabej/roots,rtrembecky/roots,matus-stehlik/roots,rtrembecky/roots,tbabej/roots,tbabej/roots,matus-stehlik/roots | events/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# Jasy - JavaScript Tooling Refined\n# Copyright 2010 Sebastian Werner\n#\n\nclass MetaData:\n \"\"\" \n Data structure to hold all dependency information \n\n Hint: Must be a clean data class without links to other \n system... | python | edit | 1 | 11 | mit | 805e86c0cd69f49863d2ca4c37e094a344d79c64 | zynga/jasy,zynga/jasy,sebastian-software/jasy,sebastian-software/jasy | lib/jasy/core/MetaData.py | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom itertools import count\n\nfrom demands import HTTPServiceClient\nfrom yoconfig import get_config\n\n\nclass CloudFlareService(HTTPServiceClient):\n def __init__(self, **kwargs):\n config = get_config('cloudflare')\n he... | python | edit | 1 | 4 | mit | 47ea7ebce827727bef5ad49e5df84fa0e5f6e4b9 | gnowxilef/pycloudflare,yola/pycloudflare | pycloudflare/services.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n'''\nurl-shortener\n==============\n\nAn application for generating and storing shorter aliases for\nrequested urls. Uses `spam-lists`__ to prevent generating a short url\nfor an address recognized as spam, or to wa... | python | edit | 4 | 0 | mit | fb7e771646946637824b06eaf6d21b8c1b2be164 | piotr-rusin/url-shortener,piotr-rusin/url-shortener | main.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: UTF-8 -*-\n\"\"\"\nbefore_step(context, step), after_step(context, step)\n These run before and after every step.\n The step passed in is an instance of Step.\n\nbefore_scenario(context, scenario), after_scenario(context... | python | edit | 4 | 2 | bsd-2-clause | 84338dba126a25a0c37056df8d7fd0c5a13f2a69 | jenisys/behave,jenisys/behave | selftest.features/environment.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.forms.fields import IntegerField, CharField\n\nimport evelink.account\n\n\nclass AddAPIForm(forms.Form):\n key_id = IntegerField()\n v_code = CharField(max_length=64, min_length=1)\n\n def clea... | python | edit | 1 | 7 | mit | 3fe4f1788d82719eac70ffe0fbbbae4dbe85f00b | randomic/aniauth-tdd,randomic/aniauth-tdd | evexml/forms.py | rejected_duplicate | Near-duplicate of sample 2295 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass CallTree(object):\n\n def __init__(self, node):\n\n self.call_id = node.get('id')\n self.region_id = node.get('calleeId')\n self.children = []\n self.metrics = {}\n\n #cube.cindex[int(node.get('id... | python | edit | 1 | 1 | apache-2.0 | 267a7cb5c3947697df341cb25f962da1fa791805 | marshallward/cubex | cubex/calltree.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Various utility functions\nimport os\n\n\nSHOULD_CACHE = os.environ['ENV'] == 'production'\n\n\ndef cached_function(func):\n data = {}\n\n def wrapper(*args):\n if not SHOULD_CACHE:\n return func(*args)\n ca... | python | edit | 1 | 4 | mit | c73de73aca304d347e9faffa77eab417cec0b4b5 | albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com,albertyw/albertyw.com | app/util.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport clr\nclr.AddReference(\"fft\")\n\nfrom numpy__fft__fftpack_cython import *\n```\n\nApply this change: Fix an incorrect library name."
},
{
"role": "assistant",
"content": "import clr\nclr.AddReference(\"fftpack_lite\")\n\... | python | edit | 2 | 0 | bsd-3-clause | bc8b0ce313d1b09469b8bc2e15fa068ce0133057 | numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor,numpy/numpy-refactor | numpy/fft/fftpack_lite_clr.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# pipeurlbuilder.py\n#\n\nimport urllib\nfrom pipe2py import util\n\ndef pipe_urlbuilder(context, _INPUT, conf, **kwargs):\n \"\"\"This source builds a url and yields it forever.\n \n Keyword arguments:\n context -- pipeline con... | python | edit | 1 | 14 | mit | 29f727f5391bb3fc40270b58a798f146cc202a3d | nerevu/riko,nerevu/riko | modules/pipeurlbuilder.py | rejected_complexity | Cyclomatic complexity too high: 14 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"The asyncio package, tracking PEP 3156.\"\"\"\n\nimport sys\n\n# The selectors module is in the stdlib in Python 3.4 but not in 3.3.\n# Do this first, so the other submodules can use \"from . import selectors\".\n# Prefer asyncio/sele... | python | edit | 28 | 0 | apache-2.0 | d5229fcae9481ff6666eeb076825f4ddd3929b02 | overcastcloud/trollius,overcastcloud/trollius,overcastcloud/trollius | asyncio/__init__.py | rejected_lint | Too many lint violations: 28 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom django.core import checks\nfrom google.appengine.tools.devappserver2.application_configuration import ModuleConfiguration\n\nfrom djangae.environment import get_application_root\n\n\ndef check_deferred_builtin(app_configs=... | python | edit | 1 | 4 | bsd-3-clause | e642716c0815c989b994d436921b0fb1a4f3dfa1 | potatolondon/djangae,grzes/djangae,potatolondon/djangae,grzes/djangae,grzes/djangae | djangae/checks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\n# Create your models here.\n\nclass Join(models.Model):\n\temail = models.EmailField()\n\tip_address = models.CharField(max_length=120, default='ABC')\n\ttimestamp = models.DateTimeField(auto_now_add = True, ... | python | edit | 1 | 1 | mit | 7fdbe50d113a78fd02101056b56d44d917c5571c | codingforentrepreneurs/launch-with-code,codingforentrepreneurs/launch-with-code,krishnazure/launch-with-code,krishnazure/launch-with-code,krishnazure/launch-with-code | joins/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nThis module holds some types we'll have use for along the way.\n\nIt's your job to implement the Closure and Environment types.\nThe DiyLangError class you can have for free :)\n\"\"\"\n\n\nclass DiyLangEr... | python | edit | 1 | 2 | bsd-3-clause | c974a2fe075accdf58148fceb3f722b144e0b8d8 | kvalle/diy-lisp,kvalle/diy-lisp,kvalle/diy-lang,kvalle/diy-lang | diylang/types.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/local/python\n\n# byteyears file ...\n#\n# Print a number representing the product of age and size of each file,\n# in suitable units.\n\nimport sys, posix, time\nfrom stat import *\n\nsecs_per_year = 365.0 * 24.0 * 3600.0\nnow = ti... | python | edit | null | null | mit | e8bb04f0084e0c722c21fc9c5950cb1b5370dd22 | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | Tools/scripts/byteyears.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport matplotlib.pyplot as plt\n\nfrom sklearn import datasets\nfrom sklearn import svm\n\ndigits = datasets.load_digits()\n\nclf = svm.SVC(gamma=0.0001, C=100)\n\ntraining_set = digits.data[:-10]\nlabels = digits.target[:-10]\n\nx, y = tr... | python | edit | 1 | 0 | mit | e43ea9602c272119f18e270a0ee138401ee0b02a | jeancsil/machine-learning | digit_guesser.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom lxml import html\nimport re\nimport requests\nfrom constants import SEP_URL\n\n\nclass SEPSearchResult():\n\n query = None\n results = None\n\n def __init__(self, query):\n self.set_query(query)\n\n def set_query(sel... | python | edit | 2 | 2 | mit | 6eb8ad49e25039ad61470e30e42c8ab352ab9b1c | AFFogarty/SEP-Bot,AFFogarty/SEP-Bot | sep/sep_search_result.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom icalendar.cal import (\n Calendar,\n Event,\n Todo,\n Journal,\n Timezone,\n TimezoneStandard,\n TimezoneDaylight,\n FreeBusy,\n Alarm,\n ComponentFactory,\n)\n# Property Data Value Types\nfrom icalendar.p... | python | edit | 36 | 0 | bsd-2-clause | 42c76c83e76439e5d8377bed2f159cfe988f05b1 | untitaker/icalendar,nylas/icalendar,geier/icalendar | src/icalendar/__init__.py | rejected_lint | Too many lint violations: 36 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# Jasy - Web Tooling Framework\n# Copyright 2010-2012 Zynga Inc.\n# Copyright 2013-2014 Sebastian Werner\n#\n\nimport os\n\nimport jasy.js.api.Data as Data\nimport jasy.core.Text as Text\nimport jasy.item.Abstract as Abstract\n\nfrom jas... | python | edit | 1 | 3 | mit | 16811d4f379974fb94c98b56b398a4d555e3e4cd | sebastian-software/jasy,sebastian-software/jasy | jasy/item/Doc.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pyblish.api\n\n\nclass ValidateStarterRigFormat(pyblish.api.InstancePlugin):\n \"\"\"A rig must have a certain hierarchy and members\n\n - Must reside within `rig_GRP` transform\n - controls_SEL\n - cache_SEL\n - resou... | python | edit | 1 | 4 | mit | 194e6a34744963e2a7b17b846ee2913e6e01ae11 | pyblish/pyblish-starter,pyblish/pyblish-mindbender,mindbender-studio/core,MoonShineVFX/core,getavalon/core,MoonShineVFX/core,mindbender-studio/core,getavalon/core | pyblish_starter/plugins/validate_rig_members.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport ast\n\nfrom . import parse\n\n\nclass Template:\n def __init__(self, raw):\n self.raw = raw\n self.root = parse.parse(raw)\n\n code = ast.Expression(\n body=ast.ListComp(\n elt=ast.... | python | edit | 1 | 1 | mit | a0d10e419b504dc2e7f4ba45a5d10a2d9d47019c | funkybob/knights-templater,funkybob/knights-templater | knights/base.py | rejected_duplicate | Near-duplicate of sample 2409 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom sqlalchemy.orm import joinedload\n\nfrom changes.api.base import APIView\nfrom changes.constants import Status\nfrom changes.models import Project, Build\n\n\nclass ... | python | edit | 1 | 2 | apache-2.0 | 87d4e604ef72fbe0513c725a7fdf0d421e633257 | dropbox/changes,wfxiang08/changes,bowlofstew/changes,bowlofstew/changes,bowlofstew/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,dropbox/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes | changes/api/project_index.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.db import models\nfrom django.core.cache import cache\nfrom django.contrib.auth.models import User\nfrom bawebauth.decorators import cache_property\nfrom django.utils.translation import ugettext_lazy as ... | python | edit | 3 | 1 | mit | 4600fd4cf06d1a2f58b92ec5f9ce1e502cf1da33 | mback2k/django-bawebauth,mback2k/django-bawebauth,mback2k/django-bawebauth,mback2k/django-bawebauth | bawebauth/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# pyinfra\n# File: pyinfra/example/config.py\n# Desc: entirely optional config file for the CLI deploy\n# see: pyinfra/api/config.py for defaults\n\nfrom pyinfra import hook, local\n\n\n# These can be here or in deploy.py\nTIMEOUT = 5... | python | edit | 1 | 1 | mit | 808413e56eb14568eae98791581c0f5870f46cd2 | Fizzadar/pyinfra,Fizzadar/pyinfra | example/config.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nShim to maintain backwards compatibility with old IPython.consoleapp imports.\n\"\"\"\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom warnings import warn\n\nwarn(\"The ... | python | edit | 2 | 0 | bsd-3-clause | 86b889049ef1ee1c896e4ab44185fc54ef87a2c0 | ipython/ipython,ipython/ipython | IPython/consoleapp.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport argparse\n\nparser = argparse.ArgumentParser(prog='moocx', description='EdX MOOC Data Anaylysis')\nparser.add_argument('-v', '--version', action='version', version='0.1.0')\nparser.parse_args()\n\n```\n\nApply this change: Add comman... | python | edit | 1 | 0 | mit | 6593645ace6efdc0e7b79dbdf5a5b5f76396c693 | McGillX/edx_data_research,McGillX/edx_data_research,McGillX/edx_data_research | cli/cli.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Generated by Django 1.10.3 on 2017-01-02 15:27\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('pr... | python | edit | 1 | 0 | bsd-3-clause | 298dc9be1d9e85e79cdbaa95ef9cab1986fe87a7 | UITools/saleor,mociepka/saleor,mociepka/saleor,mociepka/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor | saleor/product/migrations/0026_auto_20170102_0927.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sublime\nimport sublime_plugin\nimport os\n\nclass JumpToFile(sublime_plugin.TextCommand):\n def run(self, edit = None):\n view = self.view\n for region in view.sel():\n if view.score_selector(region.begin... | python | edit | 1 | 8 | mit | c1a4e9c83aa20ad333c4d6a1c9e53a732540ea39 | russelldavis/sublimerc | jump_to_file.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom nose.tools import assert_equals\n\nfrom .. import datasets\nfrom ..pca import PCA\n\niris = datasets.load_iris()\n\nX = iris.data\n\ndef test_pca():\n \"\"\"\n PCA\n \"\"\"\n\n pca = PCA(k=2)\n X_r = pca.fit(X).transform... | python | edit | 1 | 1 | bsd-3-clause | a1b47d442290ea9ce19e25cd03c1aa5e39ad2ec5 | nvoron23/scikit-learn,B3AU/waveTree,sumspr/scikit-learn,frank-tancf/scikit-learn,madjelan/scikit-learn,mattilyra/scikit-learn,xzh86/scikit-learn,mwv/scikit-learn,yunfeilu/scikit-learn,JsNoNo/scikit-learn,scikit-learn/scikit-learn,Fireblend/scikit-learn,btabibian/scikit-learn,davidgbe/scikit-learn,arabenjamin/scikit-lea... | scikits/learn/tests/test_pca.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom flask.ext.frozen import Freezer\nimport webassets\n\nfrom content import app, assets\n\nbundle_files = []\nfor bundle in assets:\n assert isinstance(bundle, webassets.Bundle)\n print(\"Building bundle {}\".format(bun... | python | edit | 1 | 5 | apache-2.0 | 3d42553ae6acd452e122a1a89851e4693a89abde | daboross/dabo.guru,daboross/dabo.guru,daboross/dabo.guru,daboross/dabo.guru | build.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 django.contrib.auth.views import login, logout_then_login\nfrom keyform import views\n\nurlpatterns = [\n url(r'^$', views.HomeView.as_view(), name='home')... | python | edit | 4 | 0 | mit | 4ca6d139139a08151f7cdf89993ded3440287a4a | mostateresnet/keyformproject,mostateresnet/keyformproject,mostateresnet/keyformproject | keyform/urls.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nimport os\nimport requests\n\n\n\nROOT = os.path.dirname(os.path.realpath(__file__))\n\nENDPOINT = os.environ.get('ES_ENDPOINT_EXTERNAL', 'localhost:9200')\nINDEX = 'gsiCrawler'\n\neid = 0\nwith open(os.path.join(ROOT, 'blo... | python | edit | 1 | 0 | apache-2.0 | aeec346bf49f9f297802a4c6c50cf28de20a70f8 | gsi-upm/gsicrawler,gsi-upm/gsicrawler,gsi-upm/gsicrawler,gsi-upm/gsicrawler | examples/load.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE... | python | edit | 1 | 0 | apache-2.0 | 5e969205ab1840aaa83008ce8ef8600d40743eec | mahak/neutron,openstack/neutron,openstack/neutron,openstack/neutron,mahak/neutron,mahak/neutron | neutron/objects/stdattrs.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport moderngl as mgl\nfrom demosys.effects import effect\n\n\nclass SceneEffect(effect.Effect):\n \"\"\"Generated default effect\"\"\"\n def __init__(self):\n self.scene = self.get_scene(\"Sponza/glTF/Sponza.gltf\", local=Tru... | python | edit | 1 | 1 | isc | 7fd0c08926e9e4e24df2afe047625b3ceb651a02 | Contraz/demosys-py | examples/sponza/effect.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nSurveyMonkey OAuth2 backend, docs at:\n https://developer.surveymonkey.com/api/v3/#authentication\n\"\"\"\nfrom .oauth import BaseOAuth2\n\n\nclass SurveyMonkeyOAuth2(BaseOAuth2):\n \"\"\"SurveyMonkey OAuth2 authentication bac... | python | edit | 1 | 1 | bsd-3-clause | bf66f0f267b6bca16241ed4920199dfa4128bd5c | python-social-auth/social-core,python-social-auth/social-core | social_core/backends/surveymonkey.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport spam\n\n#Convert the LTA file to the UVFITS format\n\nspam.convert_lta_to_uvfits('Name of the file')\n\nspam.precalibrate_targets('Name of UVFITS output file')\n\nspam.process_target()\n\n```\n\nApply this change: Add pipeline flow (... | python | edit | 1 | 0 | mit | 1f1c8eed6a60945a404aa0efd6169687431c87d5 | NCRA-TIFR/gadpu,NCRA-TIFR/gadpu | exec_thread_1.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom _json import dumps\nfrom django.http import HttpResponse\nfrom django.shortcuts import render_to_response\nfrom jsonrpc.site import jsonrpc_site\nfrom jsonrpc import mochikit\n\ndef browse(request):\n if (request.GET.get('f', None) ==... | python | edit | 1 | 4 | mit | 89a0edf7e5e00de68615574b2044f593e0339f2e | palfrey/django-json-rpc | jsonrpc/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nsentry.options.defaults\n~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_import, print_fun... | python | edit | 1 | 0 | bsd-3-clause | 9faf5f090239d80a79c426de83c7a0025eb08ea5 | ifduyue/sentry,ifduyue/sentry,mvaled/sentry,BuildingLink/sentry,JamesMura/sentry,looker/sentry,mvaled/sentry,JamesMura/sentry,ifduyue/sentry,looker/sentry,JamesMura/sentry,gencer/sentry,JackDanger/sentry,looker/sentry,fotinakis/sentry,beeftornado/sentry,fotinakis/sentry,BuildingLink/sentry,JamesMura/sentry,mvaled/sentr... | src/sentry/options/defaults.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .core import OSFCore\nfrom .file import File\n\n\nclass Storage(OSFCore):\n def _update_attributes(self, storage):\n if not storage:\n return\n\n # XXX does this happen?\n if 'data' in storage:\n ... | python | edit | 1 | 3 | bsd-3-clause | 2625b539a05156fe3baea1ebf195d242740b599d | betatim/osf-cli,betatim/osf-cli | osfclient/models/storage.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, include\n\nurlpatterns = patterns(\n 'custom.enikshay.integrations.ninetyninedots.views',\n (r'^99dots/', include(\"custom.enikshay.integrations.ninetyninedots.urls\")),\n)\n\n```\n\nApply this c... | python | edit | 1 | 0 | bsd-3-clause | 173b4f39433aa27970955173e63f99f58cfeecb1 | dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq | custom/enikshay/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport importlib.metadata\nfrom typing import Optional, Protocol\n\n\nclass BasePath(Protocol):\n \"\"\"A protocol that various path objects conform.\n\n This exists because importlib.metadata uses both ``pathlib.Path`` and\n ``zip... | python | edit | 1 | 1 | mit | ee81f71d7c6b311ee760b42ca5c9b7e80f44a8d7 | pradyunsg/pip,pypa/pip,pradyunsg/pip,pypa/pip,sbidoul/pip,sbidoul/pip,pfmoore/pip,pfmoore/pip | src/pip/_internal/metadata/importlib/_compat.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport datetime\nfrom sqlalchemy import desc\n\nfrom application import db\n\nclass Page(db.Model):\n\t__tablename__ = 'page'\n\n\tid = db.Column(db.Integer, primary_key=True)\n\tpath = db.Column(db.String(256), unique=True)\n\trevisions = ... | python | edit | 3 | 2 | mit | 5bc2ce310cfb13b966b022573255c0042fc03791 | viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct | application/page/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport ConfigParser\nimport threading\nimport time\n\nimport chatbot\n\n\ndef runbot(t):\n config = ConfigParser.ConfigParser()\n config.readfp(open('./config.ini'))\n\n ws = chatbot.Chatbot(config.get('Chatbot', 'server'),\n ... | python | edit | 3 | 2 | mit | 49602d0abfe93a0c98f55d932e7b86ddf2a59d38 | ScottehMax/pyMon,ScottehMax/pyMon,lc-guy/pyMon,lc-guy/pyMon | connect.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os, re\nfrom base64 import b64encode as encode\nfrom qipipe.staging import airc_collection as airc\nfrom qipipe.staging.staging_helper import SUBJECT_FMT\nfrom qipipe.helpers import xnat_helper\n\nimport logging\nlogger = logging.get... | python | edit | 7 | 1 | bsd-2-clause | ceebd0b345fe7221577bfcfe18632267897871e8 | ohsu-qin/qipipe | test/helpers/xnat_test_helper.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom vengeance.game import Direction\nfrom vengeance.game import Game\nfrom vengeance.game import Location\n\ngo_up = Direction('up')\ngo_down = Direction('down')\ngo_up.opposite = go_down\n\ngo_in = Direction('in')\ngo_out = Direction('out... | python | edit | 1 | 0 | unlicense | 0f5fcca49bc22b8a481ba86e9421757ac373a932 | mmurdoch/Vengeance,mmurdoch/Vengeance | bin/example_game_programmatic.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\nfrom filingcabinet.models import (\n AbstractDocument,\n AbstractDocumentCollection,\n)\n\n\nclass Document(AbstractDocument):\n original = models.ForeignKey(\n 'foirequest.FoiAttachment', nul... | python | edit | 1 | 2 | mit | 457cbeaa66fa504442c1303bec4df25e83ee35c3 | fin/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,stefanw/froide | froide/document/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport sys\n\nimport django\n\nsys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"museum.settings\")\ndjango.setup()\n\nfrom museum_site.models import... | python | edit | 6 | 5 | mit | 8fb421831bb562a80edf5c3de84d71bf2a3eec4b | DrDos0016/z2,DrDos0016/z2,DrDos0016/z2 | tools/scrub_database.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom glob import glob\n\ncourse_map = {'course_folder_name' : 'Full Course Name'}\n\ndef update_lectures():\n course_lectures = dict()\n for course_id in course_map:\n vid_files = sorted(glob('static/courses/%s/*.mp4' % course_... | python | edit | 1 | 3 | mit | 518a572c4979d98fda60a4b736984fe3673ecc0a | jailuthra/webedu | courses.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 logging\nlogging.basicConfig(level=logging.DEBUG)\nlogger = logging.getLogger('post_gen_project')\n\nimport shutil\nimport os\n\n\n{% if cookiecutter.docs_tool == \"mkdocs\" %}\n\nlog... | python | edit | null | null | mit | 02090062a61e96fa6490181acaea1b8820109b98 | pytest-dev/cookiecutter-pytest-plugin | hooks/post_gen_project.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nThis module is to include utils for managing compatibility between Python and Odin releases.\n\"\"\"\nimport inspect\nimport warnings\n\n\ndef deprecated(message, category=DeprecationWarning):\n \"\"\"\n Decorator for marking ... | python | edit | 1 | 2 | bsd-3-clause | 3aabe40ba9d65f730763a604d1869c3114886273 | python-odin/odin | odin/compatibility.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\n\n# TODO: Add other patterns to allow introspection?\n\nclass Api(object):\n '''Helper class for registering many Publishers in one URL namespace'''\n def __init__(self, name):\n self.name = name\n self.children = {}\n... | python | edit | 1 | 4 | bsd-3-clause | 4d7ffb1b09c861a28da3acaae94ee84cb9ee85b7 | limbera/django-nap,MarkusH/django-nap | nap/api.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n# Copyright (c) 2018 The Bitcoin Core developers\n# Distributed under the MIT software license, see the accompanying\n# file COPYING or http://www.opensource.org/licenses/mit-license.php.\n\"\"\"Test bitcoind shutdow... | python | edit | 1 | 1 | mit | 4412a59bfe8228698e5b5bbe8bb21c8e8a70d357 | fujicoin/fujicoin,myriadteam/myriadcoin,apoelstra/bitcoin,prusnak/bitcoin,namecoin/namecore,midnightmagic/bitcoin,jamesob/bitcoin,fujicoin/fujicoin,pataquets/namecoin-core,r8921039/bitcoin,lateminer/bitcoin,DigitalPandacoin/pandacoin,Sjors/bitcoin,sipsorcery/bitcoin,bitcoin/bitcoin,AkioNak/bitcoin,bespike/litecoin,part... | test/functional/feature_shutdown.py | rejected_duplicate | Near-duplicate of sample 2049 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\nimport sys\nimport re\nimport argparse\n\nfrom patterns import pre_patterns\n\n\ndef prepare(infile):\n \"\"\"\n Apply pre_patterns from patterns to infile\n\n :infile: input file\n\n \"... | python | edit | 1 | 5 | mit | 39104d9b098a32ee6aa68eba9cb8d12127d3eb74 | abcdw/direlog,abcdw/direlog | direlog.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .base import *\n\n\nclass Webhooks(ListableApiResource, CreateableApiResource,\n UpdateableApiResource, DeleteableApiResource):\n resource_name = 'webhooks'\n\n```\n\nApply this change: Fix typo in resource name"
},
... | python | edit | 6 | 0 | mit | 058d9a5c9396522d60cf595820cf94a67b42c475 | hockeybuggy/bigcommerce-api-python,bigcommerce/bigcommerce-api-python | bigcommerce/resources/webhooks.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport json\nfrom enum import Enum\n\n\nclass BEMessages(Enum):\n ALL_MAIN_BROADCAST = 'ALL_MAIN_BROADCAST'\n\n\nclass FEMessages(Enum):\n pass\n\n\nclass AllMainBroadCast(object):\n\n message_type = BEMess... | python | edit | 1 | 1 | mit | 8bc4a4a5c6ef82b43f78ac9bcd1ce7e2888e2e4b | verekia/hackarena,verekia/hackarena,verekia/hackarena,verekia/hackarena | backend/messages.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom fabric.api import * # noqa\n\n\nenv.hosts = [\n '104.131.30.135',\n]\nenv.user = \"root\"\nenv.directory = \"/home/django/freemusic.ninja/django\"\n\n\ndef deploy():\n with cd(env.directory):\n run(\"git pull --rebase\")\... | python | edit | 21 | 1 | bsd-3-clause | 27acd078d04222e345a7939d5f74c6d43069832e | FreeMusicNinja/freemusic.ninja,FreeMusicNinja/freemusic.ninja | fabfile.py | rejected_lint | Too many lint violations: 21 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Handles message receiving for GroupMe provider.\"\"\"\n\nimport logging\nimport json\nimport time\n\nimport flask\n\nfrom c3po.provider.groupme import send\n\nAPP = flask.Flask(__name__)\nAPP.config['DEBUG'] = True\n\nSUCCESS = ('', 2... | python | edit | 3 | 9 | apache-2.0 | 197d2b1282d9f4c94535f6627ff151752bd8f063 | rhefner1/c3po,rhefner1/c3po | c3po/provider/groupme/receive.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\n\"\"\"Setup information of demandlib.\n\"\"\"\n\nfrom setuptools import setup, find_packages\nimport os\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(name=... | python | edit | 1 | 1 | mit | 565ed49b29f09acf4fa79ba395a31b88792e91ce | oemof/demandlib | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom fabric.api import *\n\ndef unit():\n current_dir = os.path.dirname(__file__)\n command = \" \".join([\"PYTHONPATH=$PYTHONPATH:%s/videolog\" % current_dir,\n \"nosetests\", \"-s\", \"--verbose\", \"--with-cove... | python | edit | 5 | 1 | mit | 5aa48facaf77d8fb6919c960659dfa41f3f1ad78 | rcmachado/pyvideolog | fabfile.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\r\nPiPocketGeiger\r\n-----\r\nRadiation Watch Pocket Geiger Type 5 library for Raspberry Pi.\r\n\r\nLinks\r\n`````\r\n* `code and documentation <https://github.com/MonsieurV/PiPocketGeiger>`_\r\n\"\"\"\r\nimport re\r\nimport ast\r\nf... | python | edit | 4 | 0 | mit | 16aafc5ed95a7a0f830905d45c827dcc3cd67889 | MonsieurV/PiPocketGeiger | setup.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE... | python | edit | 1 | 0 | apache-2.0 | 5d5f8e02efa6854bef0813e0e8383a3760cf93d2 | openstack/os-brick,openstack/os-brick | os_brick/privileged/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom armstrong.dev.tasks import *\n\nsettings = {\n 'DEBUG': True,\n 'INSTALLED_APPS': (\n 'django.contrib.contenttypes',\n 'armstrong.core.arm_wells',\n 'armstrong.core.arm_wells.tests.arm_wells_support',\n ),... | python | edit | 2 | 0 | apache-2.0 | 4cb1535b2e296b6f2471e17295e0ebe6fef7214c | armstrong/armstrong.core.arm_wells,dmclain/armstrong.core.arm_wells,texastribune/armstrong.core.arm_wells,armstrong/armstrong.core.arm_wells,texastribune/armstrong.core.arm_wells,dmclain/armstrong.core.arm_wells,armstrong/armstrong.core.arm_wells | fabfile.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*-coding:UTF-8 -*-\n\nfrom setuptools import setup, find_packages\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nsetup(\n name='dictmysqldb',\n\n version='0.1.7',\n\n description='A mys... | python | edit | 1 | 0 | mit | 55fed5d1ae2f7ad72eb4766d41440b2c50ff4fb2 | ligyxy/DictMySQLdb,ligyxy/DictMySQL | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nconfig = {\n 'include_package_data': True,\n 'description': 'Simulated datasets of DNA',\n 'download_url': 'https://github.com/kundajelab/simdna',\n 'version': '0.4.3.3',\n 'packages': ['simdna... | python | edit | 1 | 0 | mit | 3cc25e574c38a1d8247a1edd4f70a2db72cb2538 | kundajelab/simdna,kundajelab/simdna | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nwith open('README.rst') as f:\n readme = f.read()\n\nwith open('LICENSE') as f:\n license = f.read()\n\nsetup(\n name='pycc',\n version='0.0.1',\n url='https://github.com/kevin... | python | edit | 1 | 0 | apache-2.0 | 73e3cee19d0330154f36157b762cd1a69e055b19 | kevinconway/pycc,kevinconway/pycc | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import exists\nfrom setuptools import setup\n\nsetup(name='cachey',\n version='0.1.1',\n description='Caching mindful of computation/storage costs',\n url='http://github.com/mrocklin/cach... | python | edit | 1 | 0 | bsd-3-clause | b9805bebaf3a3cc3116dfd528f4b7f5c6c959aa0 | blaze/cachey,Winterflower/cachey,mrocklin/cachey | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\n\nsetup(\n name='freki',\n version='0.3.0-develop',\n description='PDF-Extraction helper for RiPLEs pipeline.',\n author='Michael Goodman, Ryan Georgi',\n author_email=... | python | edit | 1 | 0 | mit | b5fa8ff1d86485c7f00ddecaef040ca66a817dfc | xigt/freki,xigt/freki | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom lib import BaseTest\nimport re\n\n\nclass ShowMirror1Test(BaseTest):\n \"\"\"\n show mirror: regular mirror\n \"\"\"\n fixtureCmds = [\"aptly mirror create mirror1 http://mirror.yandex.ru/debian/ wheezy\"]\n runCmd = \"a... | python | edit | 1 | 0 | mit | 0da53a2d876baac9ef83ad1a9d606439e0672a09 | aptly-dev/aptly,gdbdzgd/aptly,aptly-dev/aptly,adfinis-forks/aptly,sobczyk/aptly,gearmover/aptly,seaninspace/aptly,bankonme/aptly,adfinis-forks/aptly,smira/aptly,neolynx/aptly,gdbdzgd/aptly,seaninspace/aptly,bankonme/aptly,ceocoder/aptly,neolynx/aptly,vincentbernat/aptly,bsundsrud/aptly,ceocoder/aptly,aptly-dev/aptly,gd... | system/t04_mirror/show.py | rejected_duplicate | Near-duplicate of sample 3905 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nwith open('README.md') as fp:\n long_description = fp.read()\n\nsetup(\n name='sendwithus',\n version='5.2.0',\n author='sendwithus',\n author_email='<... | python | edit | 1 | 0 | apache-2.0 | b6461f1f270f6c10f86d0a28c7dd6e37b8050059 | sendwithus/sendwithus_python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n__version__ = None\nwith open('mendeley/version.py') as f:\n exec(f.read())\n\nsetup(\n name='mendeley',\n version=__version__,\n packages=['mendeley'],\n url='http://dev.mendeley.com',\n li... | python | edit | 1 | 0 | apache-2.0 | 2300bd970de91c13b899f50b5f15c0d2cefaecb4 | Mendeley/mendeley-python-sdk,lucidbard/mendeley-python-sdk | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom subprocess import check_output, CalledProcessError\n\ntry:\n num_gpus = len(check_output(['nvidia-smi', '--query-gpu=gpu_name',\n '--format=csv']).decode().strip().split(... | python | edit | 1 | 0 | apache-2.0 | 05650789f9ee950f6906a43806009a0fafb977a1 | theislab/dca,theislab/dca,theislab/dca | setup.py | rejected_duplicate | Near-duplicate of sample 370 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n\tname='coverpy',\n\tversion='0.0.2dev',\n\tpackages=find_packages(),\n\tinstall_requires=['requests'],\n\tlicense='MIT License',\n\tlong_description=open('README.md').read(),\n\tpackag... | python | edit | 1 | 0 | mit | 293cad9d71c3cec7dacf486a4bb6da21e8d7df28 | fallenshell/coverpy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rpython.rlib.streamio import Stream, StreamError\n\nclass StringStream(Stream):\n def __init__(self, string):\n self._string = string\n self.pos = 0\n self.max = len(string) - 1\n\n def write(self, da... | python | edit | 1 | 4 | mit | e1c6b7c369395208b467fcf169b6e3d0eb8c8dd9 | SOM-st/RPySOM,smarr/RTruffleSOM,smarr/RTruffleSOM,smarr/PySOM,SOM-st/RPySOM,SOM-st/RTruffleSOM,SOM-st/PySOM,SOM-st/RTruffleSOM,SOM-st/PySOM,smarr/PySOM | src/rlib/string_stream.py | rejected_duplicate | Near-duplicate of sample 1412 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nfrom aids.queue.queue import Queue\n\nclass QueueTestCase(unittest.TestCase):\n '''\n Unit tests for the Queue data structure\n\n '''\n \n def setUp(self):\n\t\tself.test_queue = Queue()\n\n def test_queue_... | python | edit | 9 | 1 | mit | cc379cb3e68ddf5a110eef139282c83dc8b8e9d1 | ueg1990/aids | tests/test_queue/test_queue.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='zeit.campus',\n version='1.6.4.dev0',\n author='Zeit Online',\n author_email='<EMAIL>',\n url='http://www.zeit.de/',\n description=\"vivi section Campus\",\n ... | python | edit | 1 | 0 | bsd-3-clause | c96146226c693b8b5d1d13e0cf650b40f5e92df2 | ZeitOnline/zeit.campus | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\\\nGrip\n----\n\nRender local readme files before sending off to Github.\n\n\nGrip is easy to set up\n``````````````````````\n\n::\n\n $ pip install grip\n $ cd myproject\n $ grip\n * Running on http://localhost:5000/\n\... | python | edit | 1 | 0 | mit | 1f391ca2ea88f3181b1c856012261db1327242ac | ssundarraj/grip,jbarreras/grip,mgoddard-pivotal/grip,mgoddard-pivotal/grip,joeyespo/grip,ssundarraj/grip,joeyespo/grip,jbarreras/grip | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom dyn import __version__\n\nwith open('README.rst') as f:\n readme = f.read()\nwith open('HISTORY.rst') as f:\n history = f.read()\n\nsetup(\n name='dyn',\n version=__version__,\n keywords... | python | edit | 1 | 0 | bsd-3-clause | 9646c595068f9c996f05de51d7216cb0443a9809 | Marchowes/dyn-python,dyninc/dyn-python,mjhennig/dyn-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\n__version__ = None\nexec(open('tadtool/version.py').read())\n\nsetup(\n name='tadtool',\n version=__version__,\n description='Assistant to find cutoffs in TAD calling algorithms.',\n... | python | edit | 1 | 1 | mit | e817716960e4e89798d976d0b04bf49408932f0b | vaquerizaslab/tadtool | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom djcelery_ses import __version__\n\n\nsetup(\n name='django-celery-ses',\n version=__version__,\n description=\"django-celery-ses\",\n author='tzangms',\n author_email='<EMAIL>... | python | edit | 1 | 0 | mit | 1a547646ee75841a016788aa64cf71c876a9dd8b | StreetVoice/django-celery-ses | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nfrom setuptools.command.install import install\n\n\ntry:\n description = open('README.txt').read()\nexcept:\n description = open('README.md').read()\n\n\nsetup(\n name='python-ldap-test',\n vers... | python | edit | 1 | 1 | mit | 472b0a0ba90054f151a60e200902b67223fbf6d9 | zoldar/python-ldap-test,zoldar/python-ldap-test | 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='manifold',\n version='1.0.0',\n packages=find_packages(include=('manifold', 'manifold.*')),\n long_description=open('README.md').read(),\n include_package_data=Tru... | python | edit | 1 | 0 | mit | 0466ed83bdf9a84f01235339aef7505d26d6df3a | lucasdavid/Manifold-Learning,lucasdavid/Manifold-Learning | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\nimport py2exe\n\nsetup(console=['CryptoUnLocker.py'])\n\n```\n\nApply this change: Switch from py2exe to cx_Freeze\n\npy2exe had issues with pycrypto. cx_Freeze seems to work."
},... | python | edit | 3 | 0 | mit | 674dd25bebb21919c27cb78bef2cee2f59f0c922 | kyrus/crypto-un-locker,thecocce/crypto-un-locker | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nfrom numpy.distutils.core import setup, Extension\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n \nwrapper =... | python | edit | 1 | 1 | mit | ff029b3cd79ab3f68ed5fc56be069e29580d5b46 | ziotom78/stripeline,ziotom78/stripeline | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\n setup\n\n :copyright: (c) 2012-2014 by Openlabs Technologies & Consulting (P) Limited\n :license: GPLv3, see LICENSE for more details.\n\"\"\"\nfrom setuptools import setup\n\nsetup(name='trytond_s... | python | edit | 1 | 0 | bsd-3-clause | bfbe4f0a2fa231b22f6ebaae3eb1065565ab66e4 | fulfilio/trytond-sentry | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nSetup script for the kvadratnet module.\n\"\"\"\n\nimport os\nimport subprocess\nfrom setuptools import setup\n\nimport kvadratnet\n\n\ndef readme():\n \"\"\"\n Return a properly formatted readme text, if possible, that can be... | python | edit | 1 | 1 | isc | 889a2349efa1b76fd92981210798dc3e2d38d711 | kbevers/kvadratnet,kbevers/kvadratnet | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nversion = '0.9.2.dev0'\n\n\ndef read_file(fname):\n with open(os.path.join(os.path.dirname(__file__), fname)) as fp:\n return fp.read()\n\n\nsetup(name='django-ogmios',\n version=v... | python | edit | 1 | 1 | bsd-2-clause | 4ee7ebe82f7f17ae10c838073ffbb319e1fff24f | fusionbox/django-ogmios,fusionbox/django-ogmios | 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.