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\nimport sys, os\nsys.path.append(os.path.join(os.path.dirname(__file__), 'resources', 'site-packages'))\nfrom xbmctorrent import plugin\n\n\nif __name__ == '__main__':\n plugin.run()\n\n```\n\nApply this change: Make sure we use our own v... | python | edit | 1 | 0 | apache-2.0 | 65fb294c17130985e6549702a1df728126de8cb0 | neno1978/xbmctorrent | addon.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom builtins import dict, str\nfrom indra.statements import Phosphorylation\nfrom indra.databases import omnipath as op\n\ndef test_query_ptms():\n stmts = op.get_ptms(['Q13873'])\n assert len... | python | edit | 6 | 1 | bsd-2-clause | a8601d8a17c9ba8e87b8336870e0d52f79e0ffa2 | johnbachman/indra,johnbachman/indra,johnbachman/belpy,johnbachman/indra,johnbachman/belpy,sorgerlab/belpy,sorgerlab/indra,sorgerlab/indra,bgyori/indra,johnbachman/belpy,bgyori/indra,sorgerlab/belpy,bgyori/indra,sorgerlab/indra,sorgerlab/belpy | indra/tests/test_omnipath.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\nimport scipy.sparse as sps\nfrom sklearn.preprocessing import StandardScaler\n\nfrom numpy.testing import assert_allclose\n\nfrom pyglmnet import GLM\n\n\ndef test_glmnet():\n \"\"\"Test glmnet.\"\"\"\n glm = GLM(d... | python | edit | 1 | 1 | mit | 2083c0079a70783deff54a7acd6f3ef6bba25302 | the872/pyglmnet,glm-tools/pyglmnet,pavanramkumar/pyglmnet | tests/test_pyglmnet.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom mptt.admin import MPTTModelAdmin\nfrom mptt.forms import MPTTAdminForm\nfrom parler.admin import TranslatableAdmin\nfrom .models import Category\nfrom parler.forms import TranslatableModelForm\n\n\ncla... | python | edit | 1 | 1 | apache-2.0 | 2296ef02345f51666ff6653abe372e7965ef361c | edoburu/django-categories-i18n,edoburu/django-categories-i18n | categories_i18n/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, print_function\n\nfrom virtualenv.__about__ import (\n __author__, __copyright__, __email__, __license__, __summary__, __title__,\n __uri__, __version__\n)\nfrom virtualenv.core import... | python | edit | 1 | 2 | mit | 6ac4764790526f435ffc6337145439d710dd455f | ionelmc/virtualenv,ionelmc/virtualenv,ionelmc/virtualenv | virtualenv/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport json\nimport rethinkdb as r\nimport sys\nimport optparse\n\nif __name__ == \"__main__\":\n parser = optparse.OptionParser()\n parser.add_option(\"-p\", \"--port\", dest=\"port\",\n ... | python | edit | 5 | 0 | mit | d9024e4db0489b141fec9b96913c94a5d583f086 | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | backend/scripts/mktemplate.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport sys\nfrom cx_Freeze import setup, Executable\n\nbase = None\nif sys.platform == \"win32\":\n base = \"Win32GUI\"\n\nexecutables = [\n Executable('blockcheck.py', base=base)\n]\n\nsetup(name='blockcheck'... | python | edit | 1 | 0 | mit | f87bab8a808e4bda3b3b7482633eaca069682b9e | Acharvak/blockcheck,Renji/blockcheck,ValdikSS/blockcheck | build.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Utilities for working with sequences.\"\"\"\n\nimport re\nfrom Bio import SeqIO\n\nCODON_LEN = 3\n\nCOMPLEMENT = str.maketrans('ACGTUWSMKRYBDHVNXacgtuwsmkrybdhvnx',\n 'TGCAAWSKMYRVHDBNXtgcaawskmyrvhdbnx')\n\n... | python | edit | 1 | 4 | bsd-3-clause | 70d3bf1043af965da56339ce1c50b258f184ccb2 | juliema/aTRAM | lib/bio.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport subprocess\nimport unittest\n\ncsibe_path = os.path.dirname(os.path.realpath(__file__))\nbuild_directory = \"build\"\n\nif not os.path.isdir(build_directory):\n os.makedirs(build_directory)\n\no... | python | edit | 1 | 0 | bsd-3-clause | 26861b183085e8fe2c7c21f4e3631ddd7d30e5e8 | szeged/csibe,bgabor666/csibe,szeged/csibe,szeged/csibe,bgabor666/csibe,bgabor666/csibe,bgabor666/csibe,loki04/csibe,loki04/csibe,loki04/csibe,szeged/csibe,bgabor666/csibe,bgabor666/csibe,bgabor666/csibe,loki04/csibe,loki04/csibe,szeged/csibe,szeged/csibe,loki04/csibe,loki04/csibe,szeged/csibe | csibe.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom celery import Celery\nfrom settings import SETTINGS\nimport requests\n\n\nHOOKS = SETTINGS.get('hooks', [])\nCELERY_SETTINGS = SETTINGS.get('celery', {})\n\napp = Celery()\napp.conf.update(**CELERY_SETTINGS)\n\n\n@app.task\ndef dispatc... | python | edit | 6 | 4 | mit | 7822687bb78cbe422af0d707a1ed7fc94011628d | sourcelair/castor | castor/tasks.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nimport os\nimport base64\n\n# See https://iterm2.com/images.html\nIMAGE_CODE= '\\033]1337;File={file};inline={inline};size={size}:{base64_img}\\a'\n\ndef iterm2_image_bytes(b, filename=None, inline=1):\n data = {\n 'fi... | python | edit | 1 | 2 | mit | 9e5b6ea80dd1039952bb5ff821ae15555ad591be | asmeurer/iterm2-tools | iterm2_tools/images.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport time\nimport datetime\nimport requests\nimport json\n\ndef get_NEO_flyby():\n\n neo_data = []\n\n\n unix = time.time()\n datestamp = datetime.datetime.fromtimestamp(unix).strftime(\"%Y-%b-%d\")\n\n json_data_url = reque... | python | edit | 13 | 3 | mit | 8b0c08962d18536b87a948c96f7ec7daabd8b4e1 | FXelix/space_facts_bot | NEO_flyby.py | rejected_lint | Too many lint violations: 13 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright 2013 Mirantis, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of t... | python | edit | 1 | 0 | apache-2.0 | 7570b9dd8fada221e5059a00e107ce6665b9c563 | nebril/fuel-web,SmartInfrastructures/fuel-web-dev,stackforge/fuel-web,nebril/fuel-web,huntxu/fuel-web,nebril/fuel-web,eayunstack/fuel-web,zhaochao/fuel-web,huntxu/fuel-web,koder-ua/nailgun-fcert,zhaochao/fuel-web,huntxu/fuel-web,stackforge/fuel-web,koder-ua/nailgun-fcert,prmtl/fuel-web,SmartInfrastructures/fuel-web-dev... | nailgun/nailgun/db/sqlalchemy/models/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\n\nfrom app.controllers.github_controller import GithubController\n\npytestmark = pytest.mark.asyncio\n\n\nasync def test_get_req_json(gh_sut: GithubController, mock_request):\n assert await gh_sut.get_request_json(mock_req... | python | edit | 1 | 1 | mit | c0dc0c644fd8912d58deb416955e85259d22618e | futuresimple/triggear | tests/github_controller/test_request_parsing.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask import request\nimport os\nfrom dogapi import dog_http_api as api\n\napp = Flask(__name__)\n\napi.api_key = os.environ.get('DD_API_KEY')\n\naction_url = \"/\" + os.environ.get('BASE_URL') + \"/\"\n\n@app.... | python | edit | 1 | 1 | apache-2.0 | ce36dd825635c8487fcd9f83bd686a2dce7c318c | darron/mailgun_datadog | hello.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2010 ActiveState Software Inc.\n\nfrom django.conf import settings\n\nMARKDOWN_DEUX_HELP_URL = getattr(settings, \"MARKDOWN_DEUX_HELP_URL\",\n \"http://daringfireball.net/projects/markdown/syntax\")\n\nMARKDOWN_DEUX_DEFAU... | python | edit | 1 | 0 | mit | da193c2606daac82d0693cc10decdbf2d3162fa5 | gogobook/django-markdown-deux,gogobook/django-markdown-deux,trentm/django-markdown-deux,douzepouze/django-markdown-tag | lib/markdown_deux/conf/settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\ncodebox.conf\n~~~~~~~~~~~\n\n:copyright: (c) 2011 DISQUS.\n:license: Apache License 2.0, see LICENSE for more details.\n\"\"\"\n\nimport os, os.path\nimport urlparse\n\nclass Config(object):\n DEBUG = True\n TESTING = False\n ... | python | edit | 1 | 0 | apache-2.0 | dd8d4515f5e39dcc3f23db5a5acf3478c9c16ae2 | disqus/codebox,disqus/codebox | codebox/conf.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 datetime import timedelta\n\nfrom django.conf import settings\nfrom django.utils import timezone\n\ntry:\n from django.core.management.base import BaseCommand\nexce... | python | edit | 1 | 1 | mit | 79e22a810638fbf2098f87525fa5a68d3c3b8c49 | thornomad/django-hitcount,thornomad/django-hitcount,thornomad/django-hitcount | hitcount/management/commands/hitcount_cleanup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Templatetags for djangopress.\"\"\"\nfrom datetime import date\nfrom collections import defaultdict\n\nfrom django import template\n\nfrom djangopress.models import Post, Category\n\n\nregister = template.Library()\n\n\n@register.incl... | python | edit | 1 | 5 | mit | dd6c3abcfc01b22528440e5dd62a1d3d3453b8b3 | gilmrjc/djangopress,gilmrjc/djangopress,gilmrjc/djangopress | djangopress/templatetags/djangopress_tags.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/bin/env python\n#\n# cat_StarterLog.py\n#\n# Print out the StarterLog for a glidein output file\n#\n# Usage: cat_StarterLog.py logname\n#\n\nimport os.path\nimport sys\nSTARTUP_DIR=sys.path[0]\nsys.path.append(os.path.join(STARTUP_DIR,\"... | python | edit | 2 | 3 | bsd-3-clause | df3bbdcf08dafbf2fd6997638a575fb4e47ac61f | holzman/glideinwms-old,bbockelm/glideinWMS,bbockelm/glideinWMS,holzman/glideinwms-old,holzman/glideinwms-old,bbockelm/glideinWMS,bbockelm/glideinWMS | factory/tools/cat_StarterLog.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom django.contrib.auth.models import Group\nfrom .models import Patient\nfrom django import forms\n\nclass CustomPatientForm(forms.ModelForm):\n class Meta:\n model = Patient\n\n def __init__... | python | edit | 1 | 1 | mit | 1317d645092d94c95bcaf7a0341ac18208f9df0d | sigurdsa/angelika-api | patient/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Example Dropbox local settings file. Copy this file to local.py and change\nthese settings.\n\"\"\"\n# Get an app key and secret at https://www.dropbox.com/developers/apps\nDROPBOX_KEY = 'changeme'\nDROPBOX_SE... | python | edit | 1 | 0 | apache-2.0 | c711d5e2dbca4b95bebc0eed4d48a35eb3c7a998 | crcresearch/osf.io,acshi/osf.io,felliott/osf.io,TomHeatwole/osf.io,RomanZWang/osf.io,jnayak1/osf.io,baylee-d/osf.io,TomBaxter/osf.io,mluke93/osf.io,mluo613/osf.io,pattisdr/osf.io,samchrisinger/osf.io,wearpants/osf.io,mfraezz/osf.io,kch8qx/osf.io,Nesiehr/osf.io,adlius/osf.io,RomanZWang/osf.io,abought/osf.io,felliott/osf... | website/addons/dropbox/settings/local-dist.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Generated by Django 2.2.24 on 2021-10-22 19:54\n\nfrom django.db import migrations\n\n\ndef resave_packets(apps, schema_editor):\n '''\n Re-save all existing packets to update their URLs based on the\n new value of MERGE_HOST.\n ... | python | edit | 1 | 1 | mit | 57b1dbc45e7b78f7aa272fd5b7d4bd022850beb9 | datamade/la-metro-councilmatic,datamade/la-metro-councilmatic,datamade/la-metro-councilmatic,datamade/la-metro-councilmatic | lametro/migrations/0007_update_packet_links.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# cluster - Vector Quantization / Kmeans\n#\n\nfrom info import __doc__\n\n__all__ = ['vq']\n\nimport vq\n\n```\n\nApply this change: Add missing test definition in scipy.cluster\n\ngit-svn-id: 003f22d385e25de9cff933a5ea4efd77cb5e7b28@29... | python | edit | 3 | 0 | bsd-3-clause | 226cb45ba39d13c4bf2b40f3998b2631f9f461a6 | jasonmccampbell/scipy-refactor,scipy/scipy-svn,scipy/scipy-svn,lesserwhirls/scipy-cwt,scipy/scipy-svn,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,scipy/scipy-svn,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor | Lib/cluster/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom consts.notification_type import NotificationType\nfrom helpers.model_to_dict import ModelToDict\nfrom notifications.base_notification import BaseNotification\n\n\nclass MatchScoreNotification(BaseNotification):\n\n def __init__(self... | python | edit | 1 | 1 | mit | 39461a97ef6e6b988466f41ddfee17687dd59ee1 | bdaroz/the-blue-alliance,tsteward/the-blue-alliance,jaredhasenklein/the-blue-alliance,fangeugene/the-blue-alliance,phil-lopreiato/the-blue-alliance,tsteward/the-blue-alliance,bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,bdaroz/the-blue-allianc... | notifications/match_score.py | rejected_duplicate | Near-duplicate of sample 5006 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nSettings overrided for test time\n\"\"\"\nimport os\nfrom django.conf import settings\n\n\nDIRNAME = os.path.dirname(__file__)\n\nINSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (\n 'modeltranslation.te... | python | edit | 1 | 0 | bsd-3-clause | 46afcd0e5e958e22647ef9c708918489027277e2 | extertioner/django-modeltranslation,marctc/django-modeltranslation,yoza/django-modeltranslation,nanuxbe/django-modeltranslation,akheron/django-modeltranslation,vstoykov/django-modeltranslation,SideStudios/django-modeltranslation,yoza/django-modeltranslation,marctc/django-modeltranslation,deschler/django-modeltranslatio... | modeltranslation/tests/settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import include, url\n\nfrom django.contrib import admin\n\nadmin.autodiscover()\n\n# Examples:\n# url(r'^$', 'gettingstarted.views.home', name='home'),\n# url(r'^blog/', include('blog.urls')),\n\nurlpatterns = [\n\n ... | python | edit | 1 | 0 | bsd-2-clause | aca68618e5f1549faa1adfc1a1351a472ba0246d | kenyansongithub/django-rog,kenyansongithub/django-rog,kenyansongithub/django-rog | gettingstarted/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport math\n#Log-likelihood\ndef ll(ciphertext,perm,mat,k=2):\n s=0.0\n for i in range(len(ciphertext)-(k-1)):\n kmer = tuple([perm[c] for c in ciphertext[i:i+k]])\n s = s + math.log(mat[kmer])\n return s\n\n```\n\nA... | python | edit | 3 | 3 | mit | f0b96aa0d4921e161eee9bb1a83846442f7f63b2 | gputzel/decode | likelihood.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom sys import argv\nfrom operator import add, sub, mul, div\n\nfunctions = { \\\n\t'+': (2, add), \\\n\t'-': (2, sub), \\\n\t'*': (2, mul), \\\n\t'/': (2, div) \\\n}\n\ndef get_code():\n\treturn argv[1]\n\ndef get... | python | edit | 2 | 4 | mit | 6623d5679eef2c3db70edce7334582b5d524786d | thewizardplusplus/micro,thewizardplusplus/micro,thewizardplusplus/micro | micro.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom numba import struct, jit, double\nimport numpy as np\n\nrecord_type = struct([('x', double), ('y', double)])\nrecord_dtype = record_type.get_dtype()\na = np.array([(1.0, 2.0), (3.0, 4.0)], dtype=record_dtype)\n\n@jit(argtypes=[record_t... | python | edit | 3 | 2 | bsd-2-clause | 1cdcc3ada4096a8352acc7f7c3e7825a7f44e0ac | numba/numba,seibert/numba,stonebig/numba,jriehl/numba,sklam/numba,GaZ3ll3/numba,ssarangi/numba,shiquanwang/numba,cpcloud/numba,stuartarchibald/numba,pitrou/numba,GaZ3ll3/numba,pitrou/numba,cpcloud/numba,IntelLabs/numba,pitrou/numba,sklam/numba,cpcloud/numba,gdementen/numba,seibert/numba,jriehl/numba,gmarkall/numba,seib... | examples/structures.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom twisted.words.protocols import irc\n\n\nclass HeufyBotConnection(irc.IRC):\n def __init__(self, protocol):\n self.protocol = protocol\n self.nick = \"PyHeufyBot\" # TODO This will be set by a configuration at some poi... | python | edit | 4 | 1 | mit | b78aebed4771015e6292638ac1980e3acaed4db9 | Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot | heufybot/connection.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\n\nfrom django.contrib.auth import authenticate\nfrom django.contrib.auth import login\nfrom django import http\nfrom django.views import generic\nfrom facebook_auth import urls\n\n\nlogger = logging.getLogger(__name__)\n\n\n... | python | edit | 1 | 4 | mit | 270a03dc78838137051fec49050f550c44be2359 | jgoclawski/django-facebook-auth,pozytywnie/django-facebook-auth,pozytywnie/django-facebook-auth,jgoclawski/django-facebook-auth | facebook_auth/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom collections import Mapping\n\n\nclass Trie(Mapping):\n \"\"\"Abstract base class for tries\"\"\"\n\n def keys(self, prefix=None):\n keys = super().keys(... | python | edit | 1 | 4 | mit | 2afe09bcbcc728e98ec8da39b68ea65f4c270fdb | html5lib/html5lib-python,html5lib/html5lib-python,html5lib/html5lib-python | html5lib/trie/_base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\n\nfrom foolbox.attacks import CarliniWagnerAttack as Attack\n\n\ndef test_targeted_attack(bn_targeted_adversarial):\n adv = bn_targeted_adversarial\n attack = Attack()\n attack(adv)\n assert adv.image is not ... | python | edit | 1 | 1 | mit | 6b868e9bbb88dadbf27b7f1f6a4ab5fedc6c23e5 | bethgelab/foolbox,bethgelab/foolbox | foolbox/tests/test_attacks_carlini_wagner.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"High-perfomance logging profiler, mostly written in C.\"\"\"\n\nimport _hotshot\n\nfrom _hotshot import ProfilerError\n\n\nclass Profile:\n def __init__(self, logfn, lineevents=0, linetimings=1):\n self.lineevents = lineeven... | python | edit | 4 | 6 | mit | 088d76bbe01a9a6dd0a246be8ce703d5b64c540e | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | Lib/hotshot/__init__.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Functions to retrieve pending list and invoke Graph Sync.\"\"\"\n\nimport f8a_jobs.defaults as configuration\nimport requests\nimport traceback\nimport logging\nfrom urllib.parse import urljoin\n\n\nlogger = logging.getLogger(__name__... | python | edit | 1 | 3 | apache-2.0 | 5c5b81312317c1750ea320666b2adc4f74d13366 | fabric8-analytics/fabric8-analytics-jobs,fabric8-analytics/fabric8-analytics-jobs | f8a_jobs/graph_sync.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.core.urlresolvers import reverse\nfrom django.test import TestCase\nfrom django.test.client import RequestFactory\nfrom utils.factories import UserFactory\n\nfrom profiles.views import ProfileView\n\n\nclass ProfileViewTests(Tes... | python | edit | 2 | 1 | mit | d89715196ba79da02a997688414dfa283bee5aeb | phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts | profiles/tests/test_views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom froide.publicbody.models import PublicBody, FoiLaw\n\nclass PublicBodyAdmin(admin.ModelAdmin):\n prepopulated_fields = {\"slug\": (\"geography\", \"name\",)}\n list_display = ('name', 'classifica... | python | edit | 1 | 0 | mit | 06645a637c0d34270f88f9a6b96133da5c415dd7 | catcosmo/froide,ryankanno/froide,stefanw/froide,catcosmo/froide,fin/froide,CodeforHawaii/froide,fin/froide,okfse/froide,LilithWittmann/froide,okfse/froide,stefanw/froide,ryankanno/froide,LilithWittmann/froide,LilithWittmann/froide,CodeforHawaii/froide,fin/froide,catcosmo/froide,catcosmo/froide,okfse/froide,ryankanno/fr... | froide/publicbody/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\n# This plugin now lives in pytest-astropy, but we keep the code below during\n# a deprecation phase.\n\nimport warnings\nfrom astropy.utils.exceptions import AstropyDeprecat... | python | edit | 1 | 0 | bsd-3-clause | d6759d0abec637753d93cd407fad5e7abc6ec86d | stargaser/astropy,dhomeier/astropy,saimn/astropy,saimn/astropy,larrybradley/astropy,astropy/astropy,StuartLittlefair/astropy,lpsinger/astropy,dhomeier/astropy,lpsinger/astropy,StuartLittlefair/astropy,larrybradley/astropy,lpsinger/astropy,MSeifert04/astropy,astropy/astropy,astropy/astropy,MSeifert04/astropy,larrybradle... | astropy/tests/plugins/display.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\nfrom ..core import Location\n\n\nclass GeistFakeBackend(object):\n def __init__(self, w=800, h=600):\n self.image = np.zeros((h, w, 3))\n self.locations = [Location(0, 0, w=w, h=h, image=self.image)]\n\n... | python | edit | 2 | 3 | mit | f2a46687e24d82060b687922de3495111f82e558 | kebarr/Geist,thetestpeople/Geist | geist/backends/fake.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2018 DeepMind Technologies Limited. All rights reserved.\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... | python | edit | 1 | 1 | apache-2.0 | 1a03fbbb612d8faa5a6733fe7d4920f3ca158a69 | deepmind/acme,deepmind/acme | acme/utils/observers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.conf import settings\nfrom django.template.loader import render_to_string\n\n\nclass MultipleUpload(forms.FileInput):\n\n def render(self, name, value, attrs=None):\n _value = \"\"\n if... | python | edit | 1 | 2 | mit | 1ecd6cacac15bff631b958ee6773b2ad8659df50 | jeanmask/opps,williamroot/opps,opps/opps,jeanmask/opps,opps/opps,YACOWS/opps,jeanmask/opps,opps/opps,williamroot/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,YACOWS/opps,williamroot/opps,YACOWS/opps | opps/images/widgets.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nimport requests\nimport re\n\ndef findAllLanguages():\n \"Find a list of Crowdin language codes to which KA is translated to\"\n response = requests.get(\"https://crowdin.com/project/khanacademy\")\n txt = r... | python | edit | 1 | 2 | apache-2.0 | ab2f4aaf9546787a269a3d0ec5b3b83c86a43bde | ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,KA-Advocates/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck,ulikoehler/KATranslationCheck,ulikoehler/KATranslationCheck,KA-Advocates/KATranslationCheck | Languages.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib.syndication.views import Feed\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.utils.feedgenerator import Atom1Feed\n\nfrom . import app_settings\nfrom .models import Name, Location\n\n\nclass NameAtomFeed... | python | edit | 1 | 1 | bsd-3-clause | 621d285c05ce3a6257edcffec03c8a96507b6179 | unt-libraries/django-name,damonkelley/django-name,unt-libraries/django-name,unt-libraries/django-name,damonkelley/django-name,damonkelley/django-name | name/feeds.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom rest_framework import viewsets\nfrom rest_framework.filters import DjangoObjectPermissionsFilter\n\nfrom .. import (\n models,\n permissions,\n)\nfrom ..serializers import (\n prim... | python | edit | 1 | 0 | mit | e3bac9c0a655ae49d6e15b16894712f4edbc994b | fladi/django-campus02,fladi/django-campus02 | campus02/web/views/primarykey.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom trac.core import Component, implements\nfrom trac.perm import IPermissionRequestor\n\nclass KKBOXSecretTicketsPolicy(Component):\n implements(IPermissionRequestor)\n\n def get_permission_actions(self):\n return ['SECRET_VI... | python | edit | 1 | 9 | bsd-3-clause | 8d313884a52b06e2fdf9a3c0d152b9e711ff02c2 | KKBOX/trac-keyword-secret-ticket-plugin | kkbox/trac/secretticket.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom rest_framework import serializers\n\nfrom apps.broadcasts.models import Broadcast, Host, Raid, Series\nfrom apps.games.models import Game, Platform\nfrom apps.subscribers.models import Ticket\n\n\nclass HostSer... | python | edit | 1 | 0 | apache-2.0 | 01516489dbf9ee78128d653b3ebc46730d466425 | bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv,bryanveloso/avalonstar-tv | apps/api/serializers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom django.db import models\n\n\nclass DeviceManager(models.Manager):\n\n def latest(self):\n \"\"\" Returns latest Device instance \"\"\"\n return self.latest('created_at')\n\n\n```\n\nApply this change: Use .get_latest... | python | edit | 1 | 1 | bsd-3-clause | 018d062f2ed9ca9acd3d555d439dd81b89c88a6f | willandskill/django-parse-push | parse_push/managers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages, Command\nimport os\n\npackages = find_packages()\n\n\nclass PyTest(Command):\n user_options = []\n\n def initialize_options(self):\n ... | python | edit | 2 | 1 | mit | 6ac1c09422e82d97e3a9e9bc8d52c8814c33bc27 | njvack/markdown-to-json | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport getopt\nimport sys\nimport os\n\n### Script for scheduling regular EdxQualtrics updates\n### Usage for cron should be \"cronRefreshEdxQualtrics.py -m -s -r\"\n\n# Append directory for dependencies to PYTHONPATH\n# sys.path.append(\"/... | python | edit | 1 | 0 | bsd-3-clause | 8ee38953a9f8bdbd95ace4ea45e3673cc260bb4b | paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation | scripts/cronRefreshEdxQualtrics.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ometa.interp import TrampolinedGrammarInterpreter, _feed_me\n\nclass TrampolinedParser:\n \"\"\"\n A parser that incrementally parses incoming data.\n \"\"\"\n def __init__(self, grammar, receiver, bindings):\n \"\"\... | python | edit | 1 | 3 | mit | ff0468f51b6a5cebd00f2cea8d2abd5f74e925d6 | rbtcollins/parsley,python-parsley/parsley,python-parsley/parsley,rbtcollins/parsley | ometa/tube.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom buckle.version import VERSION\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='buckle',\n version=VERSION,\n description='Buckle: It ties your toolbelt together',\n author='Nextdoor',\n author_email='<EMA... | python | edit | 1 | 0 | bsd-2-clause | 91ad52d6d47ce12966e5fb23913a8c5b600b2c13 | Nextdoor/buckle,Nextdoor/buckle | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\nfrom ez_setup import use_setuptools\nuse_setuptools()\nfrom setuptools import setup, find_packages\n\n\nsetup(name='permamodel',\n version='0.1.0',\n author='Elchin Jafarov and Scott Stewart',\n author... | python | edit | 1 | 0 | mit | dee908d28734f5dba0a98e19edc39bc35c9bb062 | permamodel/permamodel,permamodel/permamodel | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .users import *\nfrom .resources import *\nfrom .emails import *\nfrom .pages import *\nfrom .soundcloud_track import *\n\n```\n\nApply this change: Fix error on admin user_report view"
},
{
"role": "assistant",
"content": ... | python | edit | 7 | 0 | apache-2.0 | 2fa8b2f4a63579633272b1cc8d972baf27c661f2 | Code4SA/pmg-cms-2,Code4SA/pmg-cms-2,Code4SA/pmg-cms-2 | pmg/models/__init__.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport biobox_cli\n\nsetup(\n name = 'biobox_cli',\n version = biobox_cli.__version__,\n description = 'Run biobox Docker containers on the command ... | python | edit | 3 | 0 | mit | c1def9580859eb97368aa49a2e26aab483785b35 | pbelmann/command-line-interface,michaelbarton/command-line-interface,fungs/bbx-cli,michaelbarton/command-line-interface,bioboxes/command-line-interface,pbelmann/command-line-interface,bioboxes/command-line-interface,fungs/bbx-cli | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nconfig = {\n 'description': 'A simple python LOC count tool',\n 'author': 'Tihomir Saulic',\n 'url': 'http://github.com/tsaulic/... | python | edit | 1 | 0 | mit | 3955d10f5dd905610c9621046069ae8dacbb1c1e | tsaulic/pycount | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup, find_packages\nsetup(\n name = \"cobe\",\n version = \"0.5\",\n author = \"Peter Teichman\",\n author_email = \"<EMA... | python | edit | 3 | 0 | mit | ad0f91e9d120e4c6b34aabf13fa3c68f0d7f5611 | pteichman/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,LeMagnesium/cobe,DarkMio/cobe,meska/cobe,pteichman/cobe,meska/cobe,DarkMio/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,LeMagnesium/cobe | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='raimon49.guestbook',\n version='1.0.0',\n packages=find_packages(),\n include_package_data=True,\n install_requires=[\n 'Flask',\n ],\n entry_points... | python | edit | null | null | bsd-3-clause | 0d4fe588023869044755644dfa162c488a7fdea8 | raimon49/pypro2-guestbook-webapp,raimon49/pypro2-guestbook-webapp | setup.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)... | python | edit | 1 | 0 | bsd-3-clause | b90553ddc7a27d2b594fcc88130d999c70ae6f5b | cdlib/RecordExpress,cdlib/RecordExpress,cdlib/RecordExpress,cdlib/RecordExpress | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nsetup(\n name=\"librobinson\",\n version=\"0.1\",\n packages=find_packages(),\n scripts=['robinson'],\n\n # Project uses reStructuredText, so ensure that the docutils get\n # in... | python | edit | 1 | 0 | mit | 9abbb0b79da1466d2719496b479e43a74e798b97 | byztxt/librobinson | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef read(filename):\n return open(os.path.join(os.path.dirname(__file__), filename)).read()\n\n\nsetup(\n name='gears-stylus',\n version='0.1.1',\n url='https://github.... | python | edit | 1 | 1 | isc | 48701a9f582d65f8086b2bdefe02315d6aca1e77 | gears/gears-stylus,gears/gears-stylus | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long description from the README file\nwith open(path.join(here, 'flask_swagger_ui/README.md'), encoding=... | python | edit | 1 | 0 | mit | d2b4e85fd0b3c44a460bc843eb480dd82f216f6e | sveint/flask-swagger-ui,sveint/flask-swagger-ui,sveint/flask-swagger-ui | setup.py | rejected_duplicate | Near-duplicate of sample 1239 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nimport proxyprefix\n\n\nsetup(\n name='proxyprefix',\n version=proxyprefix.__version__,\n description=proxyprefix.__doc__,\n url='https://github.com/yola/proxyprefix',\n packages=['proxyprefix'... | python | edit | 1 | 0 | mit | 518cafbd053843b0aee48ac75eccb6a05ff237f5 | yola/proxyprefix | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os.path\nfrom distutils.core import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), \"README.rst\")).read()\n\nCLASSIFIERS = [\n\t\"Development Status :: 5 - Production/Stable\",\n\t\"Intended ... | python | edit | 1 | 0 | mit | 3263a691db55ed72c4f98096748ad930c7ecdd68 | jleclanche/python-ptch | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\r\nsetup(\r\n name = 'CommonModules',\r\n packages = find_packages(where = '.'), # this must be the same as the name above\r\n version = '0.1.11',\r\n description = 'Common Python modu... | python | edit | 1 | 0 | mit | 6a9193fdc43361ca12b7f22d18954d17c2049ba1 | wanghewen/CommonModules | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n# First update the version in loompy/_version.py, then:\n\n# cd loompy (the root loompy folder, not the one inside!)\n# rm -r dist (otherwise twine will upload the oldest build!)\n# python s... | python | edit | 1 | 0 | bsd-2-clause | 71b68c990977e78abf8dbaf6562719f39492657f | linnarsson-lab/loompy,linnarsson-lab/loompy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#from distutils.core import setup\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"imaplib2\",\n version=\"2.28.3\",\n description=\"A threaded Python IMAP4 client.\",\n author=\"Piers Laude... | python | edit | 1 | 0 | mit | 1ff696abdee762303dfc79e23e0cdabc6e411270 | mbmccoy/smtp_to_tcp | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nUS Population Over Time\n=======================\nThis chart visualizes the age distribution of the US population over time.\nIt uses a slider widget that is bound to the year to visualize the age\ndistribution over time.\n\"\"\"\n#... | python | edit | 1 | 0 | bsd-3-clause | 678e872de192b09c1bafc7a26dc67d7737a14e20 | altair-viz/altair | altair/examples/us_population_over_time.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nversion = '1.0.17'\n\nrequires = [\n 'neo4j-driver<1.2.0',\n 'six>=1.10.0',\n]\n\ntesting_requires = [\n 'nose',\n 'coverage',\n 'nosexcover',\n]\n\nsetup(\n name='norduniclie... | python | edit | 1 | 0 | apache-2.0 | 84ded02cba3caee164e848c1200e46b08011f93f | NORDUnet/python-norduniclient,NORDUnet/python-norduniclient | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n__author__ = \"Nitrax <<EMAIL>>\"\n__copyright__ = \"Copyright 2017, Legobot\"\n\ndescription = 'Lego providing networking tools'\nname = 'legos.nettools'\nsetup(\n ... | python | edit | 1 | 0 | mit | a7f24ba803c13bf7b263aed4d974ad604d53df2f | Legobot/legos.nettools | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nimport os\nfrom setuptools import setup, find_packages\n\nhere = os.path.dirname(__file__)\n\nversion_file = os.path.join(here, 'src/iptools/__init__.py')\nd ... | python | edit | 2 | 0 | bsd-2-clause | 4aa4a52adc2b4cdf9e021a4191211c47763a9962 | ancat/python-iptools,malonlabe/python-iptools,timmerk/python-iptools | setup.py | rejected_duplicate | Near-duplicate of sample 4622 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport nirvana\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nwith open('README.rst') as readme:\n long_description = readme.read()\n\nsetup(\n name='ni... | python | edit | 1 | 0 | mit | 8476597698e6f21404e784b43f21f01d93c5b576 | njwilson/nirvana-python,njwilson/nirvana-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\n\n\ninstall_requires = [\n 'argparse',\n 'jsonschema',\n 'mock',\n 'M2Crypto',\n 'pycrypto',\n 'python-augeas',\n 'python2-pythondialog',\n 'requests',\n]\n\ndocs_... | python | edit | 1 | 0 | apache-2.0 | f7784f2023e8f351c539586c56d2f9ec3a9086e1 | Jadaw1n/letsencrypt,TheBoegl/letsencrypt,Sveder/letsencrypt,tdfischer/lets-encrypt-preview,letsencrypt/letsencrypt,hsduk/lets-encrypt-preview,mrb/letsencrypt,bsmr-misc-forks/letsencrypt,mrb/letsencrypt,beermix/letsencrypt,PeterMosmans/letsencrypt,lbeltrame/letsencrypt,wteiken/letsencrypt,bsmr-misc-forks/letsencrypt,The... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nimport setuptools\nfrom setuptools import find_packages\n\nsetuptools.setup(\n name = 'js.handlebars',\n version = '1.0.rc.1',\n license = 'BSD',\n description = 'Fanstatic package for Handlebars.js',\n long_descri... | python | edit | 1 | 0 | bsd-2-clause | 42418b638a581b0243182e8a4e24662c7e7cc003 | mgood/js.handlebars,mgood/js.handlebars | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding:utf-8\n\nfrom setuptools import setup, find_packages\nfrom qingstor.qsctl import __version__\n\nsetup(\n name='qsctl',\n version=__version__,\n description='Advanced command line tool for QingStor.',\n long_description=... | python | edit | 1 | 0 | apache-2.0 | dd063b68311209c51018cad7e9c91d2c6b4eef3c | yunify/qsctl,Fiile/qsctl | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Standard library modules.\nimport os\n\n# Third party modules.\nfrom setuptools import setup, find_packages\n\n# Local modules.\nimport versioneer\n\n# Globals and constants variables.\nBASEDIR = os.path.abspath(o... | python | edit | 1 | 0 | bsd-2-clause | 166015e9b4cad5b9d00df31e0d242c335c93ab79 | ppinard/matplotlib-scalebar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-force-logout',\n\n url=\"https://chris-lamb.co.uk/projects/django-force-logout\",\n version='2.0.0',\n description=\"Framework to be able to forcibly log users... | python | edit | 1 | 0 | bsd-3-clause | 8692eef51cf9b77aa0d6d09eec4bc4f36850d902 | lamby/django-force-logout | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport dateutil.parser\nimport scrapy.spiders\n\nfrom jobs.items import JobsItem\n\n\nclass TvinnaSpider(scrapy.spiders.XMLFeedSpider):\n name = \"tvinna\"\n start_urls = ['http://www.tvinna.is/feed/?post_type=job_listing']\n itert... | python | edit | 1 | 1 | apache-2.0 | 1224552892d1d459864d5ab2dada328a20cc66e7 | multiplechoice/workplace | jobs/spiders/tvinna.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom distutils.core import setup\n\nversion = '0.9.3'\n\n\ndef read_file(name):\n return open(os.path.join(os.path.dirname(__file__),\n name)).read()\n\nreadme = read_file('README.rst')\nchanges = r... | python | edit | 1 | 1 | bsd-3-clause | 5ffdfd7eb103d6974c3fb782eecaf457f53c972f | aarsan/django-maintenancemode,shanx/django-maintenancemode,aarsan/django-maintenancemode,21strun/django-maintenancemode,shanx/django-maintenancemode,21strun/django-maintenancemode | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n#\n# Setup script for Django Evolution\n\nfrom ez_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.test import test\n\nfrom django_evolution import ... | python | edit | 1 | 1 | bsd-3-clause | 28b280bb04f806f614f6f2cd25ce779b551fef9e | beanbaginc/django-evolution | setup.py | rejected_duplicate | Near-duplicate of sample 13229 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\ndef read(*paths):\n \"\"\"Build a file path from *paths* and return the contents.\"\"\"\n with open(os.path.join(*paths), 'r') as f:\n return f.read()\n\nsetup(\n name='chrome-web... | python | edit | 1 | 1 | mit | aa4498eea07bd3a0c09a11782f881312020d725d | jonnor/chrome-webstore-deploy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n return ''\n\nsetup(\n name='todoist-python',... | python | edit | 1 | 2 | mit | 838d83df29b905110f8bd317e08eaaa64e97f402 | Doist/todoist-python | setup.py | rejected_duplicate | Near-duplicate of sample 2235 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_long_description():\n with open('README.md') as readme_file:\n return readme_file.read()\n\n\nsetup(\n name=\"RouterOS-api\",\n version='0.16.1.... | python | edit | 1 | 1 | mit | d56f3d77b8e9883df0b9c4199f74ca36b39f44ef | socialwifi/RouterOS-api,pozytywnie/RouterOS-api | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nVERSION = '1.0.0'\n\nsetup(\n name='django-fakery',\n version=VERSION,\n url='https://github.com/fcurella/django-factory/',\n author='Flavio Curella',\n author_email='<EMAIL>',... | python | edit | 1 | 0 | mit | 5e3253217a971a996aa182f199c8f1413aa7bc40 | fcurella/django-fakery | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add explanation of what was not working before."
},
{
"role": "assistant",
"content": "# This file needs to exist in order for pytest-cov to work.\n# See this: https://bitbucket.org/memedough/pytest-cov/issues/4/no-coverage-unles... | python | new_file | 1 | 0 | mit | 7e0c61aa54dd26760aba0d78926b599d5b8f6d5f | praveenv253/sht,praveenv253/sht | tests/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Copyright (c) 2010-2014, MIT Probabilistic Computing Project\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# ... | python | edit | 1 | 1 | apache-2.0 | 2800e2cf0a7a998a5081929e6750265f30b09130 | probcomp/bayeslite,probcomp/bayeslite | tests/test_bql.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n#pandoc -f rst -t markdown README.mkd -o README\n\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='mass',\n ... | python | edit | 1 | 1 | bsd-2-clause | 1c4e929e0a915a5a2610862ee2ef1c57495392c5 | coded-by-hand/mass,coded-by-hand/mass | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nimport codecs\n\nfrom setuptools import setup\n\ntry:\n # Python 3\n from os import dirname\nexcept ImportError:\n # Python 2\n from os.path import dirname... | python | edit | 1 | 0 | mit | ef471f80412d49456725565349bd0e5a09e6e721 | kennethreitz/maya,timofurrer/maya,emattiza/maya | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# vim:ts=4 sw=4 expandtab softtabstop=4\n\nclass JSONValue(object):\n def __init__(self, val=None, ref='#', undef=False):\n assert not isinstance(val, JSONValue)\n self.val = val\n self.ref = ref\n self.undef ... | python | edit | 1 | 2 | mit | 2d6e0710dbc781f54295e18299be6f4c1bb0ec43 | avian2/jsonmerge | jsonmerge/jsonvalue.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n'''\nSetup script that:\n\n/pyquic:\n - compiles pyquic\n - copies py_quic into base directory so that we can use the module directly\n'''\nimport os\nimport shutil\n\n\nclass temp_cd():\n def __init__(self, temp_dir):\n sel... | python | edit | 1 | 2 | mit | bc0895f318a9297144e31da3647d6fc5716aafc4 | skggm/skggm,skggm/skggm | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nfrom setuptools import setup\n\n\nsetup(\n name='pysuru',\n version='0.0.1',\n description='Python library to interact with Tsuru API',\n long_description=open('README.rst', 'r').read(),\n keywords='tsuru',\n... | python | edit | null | null | mit | db362bd50c7b8aa6a40a809346eff70df846f82d | rcmachado/pysuru | setup.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\n\nsetup(\n name='rinse',\n version='0.0.3',\n description='Python3 SOAP client built with lxml and requests.',\n author='Tyson Clugg',\n author_email='<EMAIL>',\n ur... | python | edit | 1 | 0 | mit | 6d8b2453a77008acb6f6cde002c6bfaea2a75621 | simudream/rinse,thedrow/rinse,MarkusH/rinse,tysonclugg/rinse,funkybob/rinse,MarkusH/rinse,simudream/rinse,tysonclugg/rinse | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='daffodil',\n version='0.3.8',\n author='James Robert',\n description='A Super-simple DSL for filtering datasets',\n license='MIT',\n keywords='data filtering',\n url='https... | python | edit | 1 | 0 | mit | 188f0ac84e041259585172f5cffc21828ac534e3 | igorkramaric/daffodil,mediapredict/daffodil | setup.py | rejected_duplicate | Near-duplicate of sample 14977 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Spherical harmonic vector wind analysis.\"\"\"\n# Copyright (c) 2012-2014 Andrew Dawson\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"S... | python | edit | 5 | 0 | mit | 707e0be6f7e750e580aecc9bced2cc19b9ccf906 | nicolasfauchereau/windspharm,ajdawson/windspharm | lib/windspharm/__init__.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import with_statement\n\nfrom distutils.core import setup\n\n\ndef readme():\n try:\n with open('README.rst') as f:\n return f.read()\n except IOError:\n return\n\n\nsetup(\n name='encodingc... | python | edit | 1 | 4 | mit | 7e341014059c98bdd91a1c876982b8caa47a5586 | dahlia/encodingcontext | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='tangled.sqlalchemy',\n version='0.1a4.dev0',\n description='Tangled SQLAlchemy integration',\n long_description=open('README.rst').read(),\n url='http://tangledframework.org/',... | python | edit | 1 | 0 | mit | e3e0c8dbce7f3c6fb8887f2f9cc2332020d7480b | TangledWeb/tangled.sqlalchemy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup # type: ignore[import]\n\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n name=\"objname\",\n version=\"0.11.0\",\n packages=[\"objname\"],\n package_data={\n ... | python | edit | 1 | 0 | mit | 35c3f9a339a199226b34efae9e78d15e85e5f184 | AlanCristhian/namedobject,AlanCristhian/named | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pathlib\nfrom crc import LIBRARY_VERSION\nfrom setuptools import setup\n\ncurrent = pathlib.Path(__file__).parent.resolve()\n\n\ndef readme():\n return (current / 'README.md').read_text(encoding='utf-8')\n\n\nif __name__ == '__mai... | python | edit | 1 | 1 | bsd-2-clause | 5fb38bfb6eae77b7024bf4d9990472f60d576826 | Nicoretti/crc | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\ntry:\n from setuptools import setup # try first in case it's already there.\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup\n... | python | edit | 1 | 0 | mit | 31fde6b38329252313c40549b9188c584a2eadd7 | BruceSherwood/vpython-jupyter,BruceSherwood/vpython-jupyter,BruceSherwood/vpython-jupyter,mwcraig/vpython-jupyter,mwcraig/vpython-jupyter,mwcraig/vpython-jupyter,BruceSherwood/vpython-jupyter,sspickle/vpython-jupyter,mwcraig/vpython-jupyter,sspickle/vpython-jupyter | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n # packaging information that is likely to be updated between versions\n name='icecake',\n version='0.6.0',\n packages=['icecake'],\n py_modules=['cli', 'templates', 'liv... | python | edit | 3 | 0 | mit | 99d3e7972e642050c4586968ba704d46d469e27c | cbednarski/icecake,cbednarski/icecake | 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.