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# 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-2.0\n#\n# U... | python | edit | 1 | 2 | apache-2.0 | d66e44fa9fd9b8e8944907b2490d32102c3fba82 | Mercador/python-keystoneclient,Mercador/python-keystoneclient,sdpp/python-keystoneclient,magic0704/python-keystoneclient,ging/python-keystoneclient,darren-wang/ksc,magic0704/python-keystoneclient,klmitch/python-keystoneclient,darren-wang/ksc,klmitch/python-keystoneclient,sdpp/python-keystoneclient,ging/python-keystonec... | keystoneclient/hacking/checks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# vim: ai ts=4 sts=4 et sw=4\n\n\nclass Backend(object):\n \n def log(self, level, message):\n self.router.log(level, message)\n\n def start(self):\n raise NotImplementedError\n \n def sto... | python | edit | 1 | 1 | bsd-3-clause | c23cd25247974abc85c66451737f4de8d8b19d1b | dimagi/rapidsms,ehealthafrica-ci/rapidsms,eHealthAfrica/rapidsms,ken-muturi/rapidsms,lsgunth/rapidsms,catalpainternational/rapidsms,unicefuganda/edtrac,catalpainternational/rapidsms,eHealthAfrica/rapidsms,ken-muturi/rapidsms,ken-muturi/rapidsms,lsgunth/rapidsms,unicefuganda/edtrac,lsgunth/rapidsms,ehealthafrica-ci/rapi... | lib/rapidsms/backends/backend.py | rejected_duplicate | Near-duplicate of sample 3142 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\ninstall_requires = [\n 'mysql-python>=1.2.3', \n 'psycopg2>=2.4.2',\n 'pyyaml>=3.10.0',\n 'argparse',\n 'pytz',\n]\n\nif os.name == 'posix':\n install_requires.append('termcolor>=... | python | edit | 3 | 0 | mit | 7d574570ad831a86758352ef98bf6192f7d3e6fa | Varsha-Arun/py-mysql2pgsql,philipsoutham/py-mysql2pgsql,EdNeg/DB-Project,leture/py-mysql2pgsql,mr-tron/py-mysql2pgsql,EdNeg/DB-Project,emailgregn/py-mysql2pgsql,kevgathuku/py-mysql2pgsql,andela-kndungu/py-mysql2pgsql,EdNeg/DB-Project,SpootDev/py-mysql2pgsql,edwardsamuel/py-mysql2pgsql | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom mock import Mock, patch\nfrom unittest2 import TestCase\n\nsettings.configure()\n\n# Need to import this after configure()\nfrom django.db.models import ForeignKey\n\n\nclass TestPreference(object):\n\... | python | edit | 2 | 2 | mit | 329fedb27fe54d593f192912beda56588faec214 | yola/drf-madprops | tests/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy\nimport pytest\n\n\n@pytest.fixture(scope=\"module\")\ndef rgen():\n return numpy.random.RandomState(seed=52973992)\n\n```\n\nApply this change: Fix test by questionable means :)"
},
{
"role": "assistant",
"conte... | python | edit | 1 | 1 | bsd-3-clause | 6d90adebbcd9085de4f0af503b7e0b55dc9424b2 | dseuss/mpnum,dseuss/mpnum | tests/conftest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask, jsonify\nfrom modals.modals import User, Bucket, Item\nfrom api.__init__ import create_app, db\n\napp = create_app('DevelopmentEnv')\n\n\n@app.errorhandler(404)\ndef page_not_found(e):\n response = jsonify({'erro... | python | edit | 7 | 1 | mit | d8cde079d6e8dd0dcd5a13a36a0bca9685ba7b1c | patlub/BucketListAPI,patlub/BucketListAPI | api/BucketListAPI.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom test.support import run_unittest, import_module, verbose\n\n# Skip test if _sqlite3 module not installed\nimport_module('_sqlite3')\n\nimport sqlite3\nfrom sqlite3.test import (dbapi, types, userfunctions,\n ... | python | edit | 1 | 2 | mit | b778c0192cabc652fc06daf99f6b890b3297f83f | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | Lib/test/test_sqlite.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2017 The Regents of the University of Michigan.\n# All Rights Reserved. Licensed according to the terms of the Revised\n# BSD License. See LICENSE.txt for details.\nimport json\n\ndef get_counts_from_item_list (items, htid):... | python | edit | 1 | 3 | bsd-3-clause | ac3c855583a023fc76b8720aa7e38419b28a26d4 | mlibrary/image-conversion-and-validation,mlibrary/image-conversion-and-validation | falcom/api/hathi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2011 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\n\n\"\"\"Top-level presubmit script for GYP.\n\nSee http://dev.chromiu... | python | edit | 1 | 1 | bsd-3-clause | ef27b615702d9ce84db9087898c1f66286e66cf2 | csulmone/gyp,csulmone/gyp,csulmone/gyp,csulmone/gyp | PRESUBMIT.py | rejected_duplicate | Near-duplicate of sample 5769 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom datetime import datetime\nimport pycron\n\n\ndef test_parser():\n now = datetime(2015, 6, 18, 16, 7)\n assert pycron.is_now('* * * * *', now)\n assert pycron.is_now('* * * * 4', now)\n assert pycron.is_now('* * * * */4', no... | python | edit | 1 | 4 | mit | e7d42847284ae73befad8bdf2fa035a6f95a82bb | kipe/pycron | tests/test_dow.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Provides `subprocess.run()` from Python 3.5+ if available. Otherwise falls back to `subprocess.check_output()`.\"\"\"\n\ntry:\n from subprocess import run\nexcept ImportError:\n from collections import namedtuple\n from subpr... | python | edit | 1 | 1 | mit | c69d99ff9c102926d94d8bd2d55c5de40f5e2072 | grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/senic-hub,getsenic/senic-hub,grunskis/senic-hub,grunskis/senic-hub,grunskis/nuimo-hub-backend,grunskis/nuimo-hub-backend,grunskis/senic-hub,getsenic/senic-hub,grunskis/nuimo-hub-backend,grunskis/senic-hub,grunskis/nuimo-hub-backend | application/senic/nuimo_hub/subprocess_run.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask.ext.restful import Api\n\nfrom .models import db\nfrom .api import configure_api\n\ndef create_app(object_name):\n app = Flask(object_name)\n app.config.from_object(object_name)\n\n db.init_app(a... | python | edit | 3 | 1 | mit | a89e7f9f625427d558300eb5e5cbc2881cdcc207 | smoynes/get_a_job | get_a_job/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom __future__ import unicode_literals\n\nimport os\nimport subprocess\n\nimport mock\nimport pytest\n\n\n@pytest.yield_fixture\ndef in_tmpdir(tmpdir):\n pwd = os.getcwd()\n os.chdir(tmpdir.str... | python | edit | 1 | 2 | mit | 817976878b584086bedc296e5fd6d264006c8dcd | asottile/css-explore | tests/conftest.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add basic PDF view for billing"
},
{
"role": "assistant",
"content": "import os\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import login_required\nfrom django.http import HttpResponse\nfrom django.sho... | python | new_file | 1 | 4 | bsd-3-clause | 7894b066cde13eca75479921531e9d005970e9c3 | praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go | go/billing/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\nimport sys\n\nfrom modularodm import Q\n\nfrom framework.transactions.context import TokuTransaction\nfrom website.app import init_app\nfrom website.models import NodeLog\nfrom scripts import utils as script_utils\n\nlogger ... | python | edit | 1 | 4 | apache-2.0 | 7872a2327f9dea7d4c1f5a3054b6be6bba25fdd4 | hmoco/osf.io,samchrisinger/osf.io,hmoco/osf.io,icereval/osf.io,caneruguz/osf.io,cwisecarver/osf.io,chrisseto/osf.io,erinspace/osf.io,SSJohns/osf.io,monikagrabowska/osf.io,crcresearch/osf.io,crcresearch/osf.io,laurenrevere/osf.io,leb2dg/osf.io,crcresearch/osf.io,baylee-d/osf.io,leb2dg/osf.io,saradbowman/osf.io,sloria/os... | scripts/migration/migrate_deleted_wikis.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"A setuptools based setup module.\nSee:\nhttps://packaging.python.org/en/latest/distributing.html\nhttps://github.com/pypa/sampleproject\n\"\"\"\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\nfrom os import pa... | python | edit | 1 | 0 | bsd-3-clause | 6603d277eb84712a907008bad8bc8156ed9bdf40 | graphistry/pygraphistry,kcompher/pygraphistry,graphistry/pygraphistry | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import url\n\nfrom .views import ClipboardFileAPIView, ClipboardImageAPIView\n\nurlpatterns = [\n url(r'^images/(?P<pk>\\d+)/$', ClipboardImageAPIView.as_view(), name=\"clipboard_images\"),\n url(r'^images/$', Cl... | python | edit | 1 | 0 | mit | a3b6aa273900c9d9c98a6ad9c9735a323086c64f | MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard,MagicSolutions/django-user-clipboard,IndustriaTech/django-user-clipboard | user_clipboard/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport socket\n\nclient_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\nclient_socket.connect((\"localhost\", 5002))\n\nwith open(\"resources/Matrix.java\", \"r\") as java_file:\n source = java_file.read() + \"\\nEOS_BITSHIFT... | python | edit | 4 | 0 | mit | c859416d2d35aab83fc9e8f400e00f8f07c0b8a9 | earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift,earwig/bitshift | test/parser_test.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nLABEL_KEY = 'label'\nKEY_START = '@'\nKEY_END = '@'\nCFGFILE = 'bake.cfg'\n\n```\n\nApply this change: Remove mention of bake.cfg file"
},
{
"role": "assistant",
"content": "#!/usr/bin/env python\n\nLABE... | python | edit | 1 | 0 | mit | 9a1a05c33258461c5d474b014654464892cd7b90 | AlexSzatmary/bake | bake/bakedefaults.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup # type: ignore\n\nVERSION = '4.5'\n\nsetup(\n name='conllu',\n packages=[\"conllu\"],\n python_requires=\">=3.6\",\n package_data={\n \"\": [\"py.typed\"]\n },\n version=VE... | python | edit | 1 | 0 | mit | 41de24fa992939d8cf3daf762bd7c3235faeb5d0 | EmilStenstrom/conllu | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding=utf-8\n\nfrom setuptools import setup\n\nsetup(\n name='alfred-workflow-packager',\n version='0.8b',\n description='A CLI utility for packaging and exporting Alfred workflows',\n url='https://gith... | python | edit | 1 | 0 | mit | 0db9b203dddefa6576bbcf357453587f05403180 | caleb531/alfred-workflow-packager | 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\nimport toml\n\nwith open(\"README.rst\") as readme_file:\n readme_string = readme_file.read()\n\nsetup(\n name=\"toml\",\n version... | python | edit | 1 | 0 | mit | 886254938707035bbf404206cf62eabd29f54bb4 | uiri/toml,uiri/toml | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom distutils.core import setup\n\nsetup(\n name = 'grades',\n packages = ['grades'],\n scripts = ['bin/grades'],\n version = '0.1',\n description = 'Minimalist grades management for teachers.',\n ... | python | edit | 1 | 0 | bsd-3-clause | 64b26ba9cab7d432d3e4185a8edb12f9257ab473 | loicseguin/grades | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read()\n\nwith open('HISTORY.rst') as history_file:\n history = history_file.read()\n\nse... | python | edit | 1 | 0 | mit | 857133125fe5a633f209887b1b739f6f82c80f43 | sophilabs/learnregex | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom dallinger import db\n\n\nclass TestBartlett1932(object):\n \"\"\"Tests for the Bartlett1932 demo class\"\"\"\n\n def _make_one(self):\n from demos.bartlett1932.experiment import Bartlett1932\n return Bart... | python | edit | 1 | 3 | mit | e5e2b270d7bdf1b8225405619908389319686146 | Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger | tests/test_demos.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport feedparser, sys, urllib2\n\nfrom bs4 import BeautifulSoup as BS\nfrom feedgen.feed import FeedGenerator\nfrom flask import Flask\n\napp = Flask(__name__)\n\n@app.route('/')\ndef index():\n\n d = feedparser.parse('http://thecodingl... | python | edit | 3 | 2 | mit | cd92e7186d8b0e1f8103b6f622c0622e7db88fb8 | chrillux/thecodingloverss | thecodingloverss.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\n\n__title__ = \"circonus\"\n__version__ = \"0.0.0\"\n\nfrom logging import NullHandler\n\nimport logging\n\nfrom circonus.client import CirconusClient\n\n\nlogging.getLogger(__name__).addHandler(Nul... | python | edit | 3 | 0 | mit | cb08d632fac453403bc8b91391b14669dbe932cc | monetate/circonus,monetate/circonus | circonus/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .compute import (sum, product, scale, orthogonalize, threshold, and_, or_,\n not_, demean, convolve_HRF)\nfrom .munge import (split, rename, assign, copy, factor, filter, select,\n remove, replac... | python | edit | 1 | 0 | mit | f71a166598ab35bc15f298226bb510d43f78c810 | INCF/pybids | bids/analysis/transformations/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n long_description = f.read()\n\nsetup(\n name='ocdsmerge',\n version='0.5.6',\n author='Open Contracting Partnership',\n author_email='<EMAIL>',\n ... | python | edit | 1 | 0 | bsd-3-clause | 04534c096900ab09dda4caab5a4d5d6f00a340cb | open-contracting/ocds-merge | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\nfrom flask import current_app, url_for, get_flashed_messages\nfrom app import create_app, db\nfrom app.models import *\n\n\nclass TestCreateAdmissionView(unittest.TestCase):\n def setUp(self):\n self.app = create_... | python | edit | 7 | 1 | mit | 0922c8d06264f02f9b8de59e3546e499c8599326 | gems-uff/labsys,gems-uff/labsys,gems-uff/labsys | tests/test_views.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\nfrom rq import Queue, Connection, Worker\n\nimport cli\nimport worker\n\n\nclass RunWorkerCli(cli.BaseCli):\n '''\n A wrapper for RQ workers.\n\n Wrapping RQ is the only way to generate notifications when a job fails.... | python | edit | 3 | 1 | apache-2.0 | b5bef82ea6eb4269a164eda3ba95d7212f1c76d1 | TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler | lib/cli/run_worker.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 uuid\n\nfrom pip.req import parse_requirements\nfrom setuptools import setup, find_packages\n\nrequirements = parse_requirements('requirements.txt', session=uuid.uuid1())\nreqs = [str... | python | edit | 1 | 0 | mit | 621fc3e10ad296c21a27160a8a1263cf69e3079f | HSRNetwork/Nuts | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='slacker',\n version='0.6.1',\n packages=['slacker'],\n description='Slack API client',\n author='Oktay Sancak',\n author_email='<EMAIL>',\n url='http://github.com/os/slac... | python | edit | 1 | 0 | apache-2.0 | 774f7ac425f0a16934dae12d474982c5916435b4 | techartorg/slacker,olasitarska/slacker,wkentaro/slacker,kashyap32/slacker,STANAPO/slacker,dastergon/slacker,wasabi0522/slacker,BetterWorks/slacker,hreeder/slacker,os/slacker | setup.py | rejected_duplicate | Near-duplicate of sample 15495 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport requests\nfrom requests.auth import HTTPBasicAuth\n\nBASE_URL = 'https://pesabot.com/api/v1/'\n\nclass Client(object):\n def __init__(self, email, password):\n self.auth = HTTPBasicAuth(email, password)\n\n def call(self... | python | edit | 1 | 3 | mit | 6752007377e57850f21553e1aa2b85ca64c6e769 | pesabot/pesabot-py | pesabot/client.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='bandicoot',\n author='Yves-Alexandre de Montjoye',\n author_email='<EMAIL>',\n version=\"0.4\",\n url=\"https://github.com/yvesalexandre/bandicoot\",\n ... | python | edit | 1 | 0 | mit | a55957996f3e6ae1b7b98bea477e14da2070733e | yvesalexandre/bandicoot,yvesalexandre/bandicoot,yvesalexandre/bandicoot | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nFlask-JWT-Extended\n-------------------\nFlask-Login provides jwt endpoint protection for Flask.\n\"\"\"\nfrom setuptools import setup\n\nsetup(name='Flask-JWT-Extended',\n version='1.5.0',\n url='https://github.com/vimall... | python | edit | null | null | mit | 0f9fa91b3aeba056f1c1153c7920f085f5a0788c | vimalloc/flask-jwt-extended | setup.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# This file is part of Python-AD. Python-AD is free software that is made\n# available under the MIT license. Consult the file \"LICENSE\" that is\n# distributed together with this file for the exact licensing terms.\n#\n# Python-AD is c... | python | edit | 1 | 0 | mit | 3089eae072bd2e871c11251961ec35a09b83dd38 | geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad,geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nsetup(name='solcast',\n version='0.2.1a',\n description='Client library for the Solcast API',\n license='MIT',\n url='https://github.com/cjtapper/solcast-py',\n author='Chris Tapper',\n... | python | edit | 1 | 0 | mit | 05196edc526d8843119ae0e8776ff1e02660251d | cjtapper/solcast-py | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\nimport pypandoc\n\n\n\nsetup(\n name='SVN-Ignore',\n py_modules=['sr', 'src.cli', 'src.svn_ignore'],\n version='1.1.1',\n description='An utility that provides .svnignore func... | python | edit | 1 | 2 | mit | d1182f48c086a1a875a6cf1b489a8aa172032141 | Sidesplitter/SVN-Ignore | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\nimport os\nfrom setuptools import setup, find_packages\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to t... | python | edit | 1 | 1 | bsd-3-clause | 085ad8285e795019909b7fe58fe1c67b2f7bd92a | multmeio/django-hstore-flattenfields,multmeio/django-hstore-flattenfields | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nFlask-Ask\n-------------\n\nEasy Alexa Skills Kit integration for Flask\n\"\"\"\nfrom setuptools import setup\nfrom pip.req import parse_requirements\n\nsetup(\n name='Flask-Ask',\n version='0.9.7',\n url='https://github.co... | python | edit | 1 | 5 | apache-2.0 | 75228cef16a6f2e135757475632f25ce3ef447fb | johnwheeler/flask-ask | 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\nfrom setuptools import setup, find_packages\n\nsetup(\n name = 'cloudsizzle',\n fullname = 'CloudSizzle',\n version = '0.1',\n author = '',\n author_email = '',\n ... | python | edit | 3 | 0 | mit | a39019b62a0281e7bd046fc614e42332fd3b92bd | jpvanhal/cloudsizzle,jpvanhal/cloudsizzle | setup.py | rejected_duplicate | Near-duplicate of sample 18328 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom storm import version\n\n# magic\nsetup(\n name='tornado-storm',\n version=version,\n description='A simple ORM for Tornado',\n author='Craig Campbell',\n author_email='<EMAIL>',\n url='ht... | python | edit | 1 | 0 | mit | 2706d3086eaff99538eacaafa58776393ab1f5d6 | ccampbell/storm,liujiantong/storm | 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-mininews',\n version='0.1',\n packages=find_packages(exclude=['example_project']),\n license='MIT',\n description='Boilerplate for creating publishable list... | python | edit | 1 | 0 | mit | 1cc218ca24574813408eb460b801fd0ecefe514b | richardbarran/django-mininews,richardbarran/django-mininews,richardbarran/django-minipub,richardbarran/django-minipub,richardbarran/django-mininews | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ntry:\n from pyqt_distutils.build_ui import build_ui\n cmdclass={'build_ui': build_ui}\nexcept ImportError:\n cmdclass={}\n\nsetup(\n name='gauges',\n version='0.1',\n descript... | python | edit | 1 | 0 | mit | 4975df993b4c05cf8108a278d941852fa959cd2c | estan/gauges | setup.py | rejected_duplicate | Near-duplicate of sample 18357 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name=\"ducted\",\n version='1.2',\n url='http://github.com/ducted/duct',\n license='MIT',\n description=\"A monitoring agent and event processor\",\n author='Colin ... | python | edit | 1 | 0 | mit | 226ee320cf35c530a6aa7f94bd64fc71908234e3 | ducted/duct,ducted/duct,ducted/duct,ducted/duct | setup.py | rejected_duplicate | Near-duplicate of sample 17878 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\nimport os\n\n# Get version and release info, which is all stored in pulse2percept/version.py\nver_file = os.path.join('pulse2percept', 'version.py')\nwith open(ver_file) as f:\n exec(f.read())... | python | edit | 16 | 0 | bsd-3-clause | b1754f63327e641693a733afccd79dbf92666dec | mbeyeler/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept | setup.py | rejected_lint | Too many lint violations: 16 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='pagerduty_events_api',\n version='0.2.0',\n description='Python wrapper for Pagerduty Events API',\n url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api',\n downlo... | python | edit | 1 | 0 | mit | d3e20471497cad17d5f8a2c70d7be53f80efe000 | BlasiusVonSzerencsi/pagerduty-events-api | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\n\nclass Scroll(models.Model):\n # Constants\n SCROLL_TOP = \"\"\"```\n╞╤═════════════════════════════════════════════╤╡\n │ Scroll ### │\n ╞═════════════════════════════... | python | edit | null | null | mit | 9ef86f0b5ff1b4e1521a3dc075ff16bc6aef2d0c | DrDos0016/z2,DrDos0016/z2,DrDos0016/z2 | museum_site/scroll.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\nfrom setuptools import setup\n\nsetup(\n name=\"django-minio-storage\",\n license=\"MIT\",\n use_scm_version=True,\n description=\"Django file storage using the minio python client\",\n author=\"Tom Houlé\"... | python | edit | 1 | 0 | apache-2.0 | 0a1b387de5bcb1c7a8d223cce6f654a8bac5fed7 | tomhoule/django-minio-storage | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom distutils.core import setup\n \nsetup(\n name='facebook-python-sdk',\n version='0.2.0',\n description='This client library is designed to support the Facebook Graph API and the o... | python | edit | 1 | 0 | apache-2.0 | b5ee678115391885a00cfd1ee114c6b5b22f7a55 | Aloomaio/facebook-sdk,mobolic/facebook-sdk | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils import setup\n\nif sys.version_info[0] == 2:\n base_dir = 'python2'\nelif sys.version_info[0] == 3:\n base_dir = 'python3'\n\nreadme = open(... | python | edit | 1 | 0 | bsd-3-clause | 2a42a82d72d8bfbf11b605002bc4781fee320ea3 | 3stack-software/python-aniso8601-relativedelta | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python2\n# \n# test-messages.py - This script publish a random MQTT messages every 2 s.\n#\n# Copyright (c) 2013-2015, Fabian Affolter <<EMAIL>>\n# Released under the MIT license. See LICENSE file for details.\n#\nimport random\n... | python | edit | 1 | 0 | mit | 75a4733d059f6aad758f93a9c6e4878093afd184 | fabaff/mqtt-panel,fabaff/mqtt-panel,fabaff/mqtt-panel | test-messages.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass Stock:\n def __init__(self, symbol):\n self.symbol = symbol\n self.price = None\n\n def update(self, timestamp, price):\n if price < 0:\n raise ValueError(\"price should not be negative\")\n ... | python | edit | 1 | 2 | mit | 6122a8488613bdd7d5aaf80e7238cd2d80687a91 | bsmukasa/stock_alerter | stock.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom celery import Celery\n\nfrom allsky import single_image_raspistill\n\ncelery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0')\n\n@celery.task\ndef background_task():\n # some long running task... | python | edit | 3 | 1 | mit | 1583aaf429e252f32439759e1363f3908efa0b03 | zemogle/raspberrysky | tasks.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass Bad(Exception):\n def __repr__(self):\n raise RuntimeError(\"I'm a bad class!\")\n\n\ndef a():\n x = Bad()\n return x\n\ndef b():\n x = Bad()\n raise x\n\na()\ntry:\n b()\nexcept Exception as exc:\n print(e... | python | edit | 1 | 1 | bsd-2-clause | de1afc2feb1e7572ee7a59909247a2cde67492c9 | ionelmc/python-hunter | tests/sample3.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import, unicode_literals\n\nimport re\n\nimport requests\n\nfrom zhihudaily.cache import cache\n\n\n@cache.memoize(timeout=1200)\ndef make_request(url):\n ... | python | edit | 1 | 2 | mit | 9274cd94442b2507b2d83e2a3e305a0a3b5dc802 | lord63/zhihudaily,lord63/zhihudaily,lord63/zhihudaily | zhihudaily/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ndef main():\n import argparse\n from ranwinconf.common import generate_host_config\n\n parser = argparse.ArgumentParser()\n parser.add_argument('host', type=str, help=\"Name or IP of the host to get conf... | python | edit | 1 | 1 | mit | 9aa673593baa67d6e7fc861015041cfb6b69c6c3 | sebbrochet/ranwinconf | bin/list_winconf.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom .exceptions import PoyoException\nfrom .parser import parse_string\n\n__author__ = 'Raphael Pierzina'\n__email__ = '<EMAIL>'\n__version__ = '0.3.0'\n\n__all__ = ['parse_string', 'PoyoException']\n\n```\n\nApp... | python | edit | 1 | 0 | mit | 0004bde0d40dfea167d76a83c20acfffc0abfa28 | hackebrot/poyo | poyo/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nimport json\nimport traceback\nfrom bottle import route, run, get, request, response, abort\nfrom db import search, info\n\n@route('/v1/pois.json')\ndef ... | python | edit | 5 | 2 | mit | c5127ec22cc5328baf829159a21c7bdf78044f55 | guaq/paikkis | webapp.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/bin/python3\n\nimport math\nimport os\nimport random\nimport re\nimport sys\nfrom collections import Counter\n\n\ndef isValid(s):\n return \"YES\" if containsOnlyOneDifferentCharacterCount(s) else \"NO\"\n\n\ndef containsOnlyOneDiffer... | python | edit | 7 | 4 | mit | 530f540b11959956c0cd08b95b2c7c373d829c8e | rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank | python/sherlock-and-valid-string.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.db import models\n\nfrom website.util import api_v2_url\n\nfrom osf.models.base import BaseModel, ObjectIDMixin\n\n\nclass Subject(ObjectIDMixin, BaseModel):\n \"\"\"A subject discipline that may be a... | python | edit | 1 | 2 | apache-2.0 | 3fb1c14f750afa742f476e3b2fcc4d39662554e3 | crcresearch/osf.io,Nesiehr/osf.io,CenterForOpenScience/osf.io,laurenrevere/osf.io,chrisseto/osf.io,icereval/osf.io,brianjgeiger/osf.io,CenterForOpenScience/osf.io,felliott/osf.io,aaxelb/osf.io,aaxelb/osf.io,chrisseto/osf.io,felliott/osf.io,cslzchen/osf.io,HalcyonChimera/osf.io,mfraezz/osf.io,leb2dg/osf.io,caseyrollins/... | osf/models/subject.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom getpass import getpass\nfrom netmiko import ConnectHandler\n\n\ndef main():\n\n password = getpass()\n\n pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}\n\... | python | edit | 2 | 1 | apache-2.0 | a67b71ebadbffa864f60869878198ce4e2eb3fa3 | linkdebian/pynet_course | class4/exercise7.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__version__ = '0.5.0.dev0'\n\n# this should ensure that we can still import constants.py as climlab.constants\nfrom climlab.utils import constants\nfrom climlab.utils import thermo, legendre\n# some more useful shorcuts\nfrom climlab.model.... | python | edit | 24 | 0 | mit | de69b88f47714848e4a73b6375d9665fb48faeda | cjcardinale/climlab,brian-rose/climlab,cjcardinale/climlab,cjcardinale/climlab,brian-rose/climlab | climlab/__init__.py | rejected_lint | Too many lint violations: 24 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\n>>> test_typeof()\n\"\"\"\n\nimport sys\nimport numba\nfrom numba import *\nfrom nose.tools import raises\n\n@jit\nclass Base(object):\n\n value1 = double\n value2 = int_\n\n @void(int_, double)\n def __init__(self, valu... | python | edit | 18 | 1 | bsd-2-clause | 49067acc356503f27b132183edc0884d8fd43af3 | gdementen/numba,jriehl/numba,seibert/numba,stefanseefeld/numba,gmarkall/numba,numba/numba,sklam/numba,pitrou/numba,seibert/numba,pitrou/numba,gmarkall/numba,stefanseefeld/numba,cpcloud/numba,IntelLabs/numba,sklam/numba,IntelLabs/numba,gmarkall/numba,stuartarchibald/numba,IntelLabs/numba,jriehl/numba,pombredanne/numba,g... | numba/exttypes/tests/test_type_recognition.py | rejected_lint | Too many lint violations: 18 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2013 Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# htt... | python | edit | 1 | 0 | apache-2.0 | 3d3d6ef8393339f7246e6c6a9693d883ca3246f2 | openstack/zaqar,openstack/zaqar,rackerlabs/marconi,openstack/zaqar,openstack/zaqar | marconi/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nYandex Translation API\n\"\"\"\nimport logging\nfrom urllib.parse import quote\n\nfrom telegram import Bot, Update\nfrom telegram.ext import Updater\nfrom requests import post\n\nimport constants # pylint: disable=E0401\nimport sett... | python | edit | 4 | 4 | mit | fdd57913aa11c29ecf160f32a9091e59de598899 | ProtoxiDe22/Octeon | plugins/YTranslate.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport zmq\n\n\ndef send_message(msg, hostname='localhost', port=5556):\n \"\"\"\n sends a message to openephys ZMQ socket.\n :param msg: string\n :param hostname: ip address to send to\n :param port: zmq port number\n :re... | python | edit | 1 | 3 | mit | 6e67e2882c71e291dc1f161ffc7638f42c86ddbc | olfa-lab/DmdLib | dmdlib/randpatterns/ephys_comms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom corehq.apps.sms.mixin import SMSBackend\nfrom corehq.apps.sms.models import SQLSMSBackend\nfrom corehq.apps.sms.forms import BackendForm\n\nclass TestSMSBackend(SMSBackend):\n\n @classmethod\n de... | python | edit | 9 | 2 | bsd-3-clause | a212c5c859cef769bbe3d46c1da816bf6218b773 | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq | corehq/messaging/smsbackends/test/models.py | rejected_lint | Too many lint violations: 9 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport ircbotframe\nimport sys\n\nclass Handler:\n def __init__(self, host, port=6667, name=\"MediaWiki\", description=\"MediaWiki recent changes bot\", channels=[]):\n self.channels = channels\n self.bot = ircbotframe.ircB... | python | edit | null | null | mit | 1ecc62d453a122443924b21cf04edf661f9d1878 | fenhl/mwikiircbot | mwikiircbot.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\n\nfrom nodes import Node\n\nclass Deduplicate(Node):\n char = \"}\"\n args = 1\n results = 2\n \n @Node.test_func([2], [4])\n @Node.test_func([1.5], [3])\n def double(self, inp: Node.number):\n ... | python | edit | 1 | 8 | mit | 68680b8b116e10ae4e35c39b8a62c0307ee65fe4 | muddyfish/PYKE,muddyfish/PYKE | node/deduplicate.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom math import pi, sin, cos\n\nfrom .trajectory import Trajectory\n\n\nclass LissajousTrajectory(object, Trajectory):\n def __init__(self, A, B, a, b, period, delta=pi/2):\n Trajectory.__init__(self)\n ... | python | edit | 1 | 1 | mit | 3de1cdba6c438a5bc52c10fa469b675117b9ce45 | bit0001/trajectory_tracking,bit0001/trajectory_tracking | src/trajectory/lissajous_trajectory.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Module hosting class representing connection to GoL.\"\"\"\n\nimport json\nimport requests\nimport os\nimport stat\n\nWEBSITE_URL = \"http://www.gogonlinux.com\"\nAVAILABLE_GAMES = \"/available\"\nBETA_GAMES = \"/available-beta\"\n\nd... | python | edit | 1 | 1 | bsd-3-clause | 8f98b52ec670ecfe89f243348f7815b0ae71eed7 | Morgawr/gogonlinux,Morgawr/gogonlinux | gog_utils/gol_connection.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nGiven a tweet, tokenize it and shit.\n\"\"\"\n\nimport nltk\nfrom nltk.tokenize import TweetTokenizer\n\nfrom SocialNPHS.sources.twitter.auth import api\nfrom SocialNPHS.sources.twitter import user\n\n\ndef get_tweet_tags(tweet):\n ... | python | edit | 1 | 4 | mit | 7c08497e3e3e08f3ebf82eb594c25c1ab65b4d9d | SocialNPHS/SocialNPHS | SocialNPHS/language/tweet.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom unittest import TestCase\n\nfrom phi import math\nfrom phi.geom import Box\nfrom phi import field\nfrom phi.physics import Domain\n\n\nclass TestFieldMath(TestCase):\n\n def test_gradient(self):\n domain = Domain(x=4, y=3)\n ... | python | edit | 1 | 1 | mit | 31cf067f3e4da104551baf0e02332e22a75bb80a | tum-pbs/PhiFlow,tum-pbs/PhiFlow | tests/commit/field/test__field_math.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/bin/env/python\n# -*- coding: utf-8\n\nimport os\n\nfrom subprocess import call\n\nif __name__ == '__main__':\n if 'TRAVIS' in os.environ:\n rc = call('coveralls')\n raise SystemExit(rc)\n\n```\n\nApply this change: Add ... | python | edit | 1 | 0 | mit | 04cd17bb03f2b15cf37313cb3261dd37902d82b0 | browniebroke/deezer-python,browniebroke/deezer-python,pfouque/deezer-python,browniebroke/deezer-python | run_coveralls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .base import *\nimport dj_database_url\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nDATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL'))\n\nSECRET_KEY = get_env_variable(\"LOGTACTS_SECRET_KEY\")\n\nALLOWED_H... | python | edit | 6 | 0 | mit | 39161521ce75eddf3187a7412e4c22cbca88752d | phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts | logtacts/settings/heroku.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport math\n\ndef get_range(val, step):\n\tstepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:]\n\tif not stepvals[-1] == val: # if last element isn't the actual value\n\t\tstepvals += [val] # add it in\n\treturn stepvals\n\n`... | python | edit | 3 | 4 | mit | f13f14b134d76acac9cad8a93b47315fb0df1ba9 | wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation | utils/stepvals.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom sqlalchemy import create_engine\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy.orm import scoped_session, sessionmaker\n\nfrom hashlib import md5\n\nengine = create_engine(\"sqlite:///db/pastebin.db\")\nsessi... | python | edit | 4 | 2 | bsd-2-clause | 939a96a93d959bf2c26da37adb672f5538c1f222 | ryanc/mmmpaste,ryanc/mmmpaste | mmmpaste/db.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy\nfrom palm.aggregated_kinetic_model import AggregatedKineticModel\nfrom palm.probability_vector import make_prob_vec_from_state_ids\nfrom palm.state_collection import StateIDCollection\n\nclass BlinkModel(AggregatedKineticModel... | python | edit | 4 | 1 | bsd-2-clause | 4f4d083ea8be7da6a4aecfd4bf15dc4e91a2d72d | grollins/palm | palm/blink_model.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, include, url\r\n\r\nurlpatterns = patterns(\r\n '',\r\n url(r'^checks$', 'what_json.views.checks'),\r\n url(r'^add_torrent$', 'what_json.views.add_torrent'),\r\n url(r'^sync$', 'what_json.v... | python | edit | 1 | 0 | mit | 25e4e89cf062375cf1a27e8697a7d79b5c662296 | karamanolev/WhatManager2,grandmasterchef/WhatManager2,grandmasterchef/WhatManager2,MADindustries/WhatManager2,karamanolev/WhatManager2,davols/WhatManager2,karamanolev/WhatManager2,karamanolev/WhatManager2,MADindustries/WhatManager2,davols/WhatManager2,grandmasterchef/WhatManager2,davols/WhatManager2,grandmasterchef/Wha... | what_json/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport datetime\nimport logging\n\nfrom celery.task import task\nfrom django.core.mail.backends.smtp import EmailBackend\nfrom django.contrib.auth.models import User\n\nfrom pigeonpost.models import ContentQueue, Outbox\n\nlogger = logging.... | python | edit | 8 | 6 | mit | 996cab9efe8c1bbc9a6922b76b1982ce37dcdccd | dragonfly-science/django-pigeonpost,dragonfly-science/django-pigeonpost | pigeonpost/tasks.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n'''\nGeneral-purpose fixtures for vdirsyncer's testsuite.\n'''\nimport logging\nimport os\n\nimport click_log\n\nfrom hypothesis import HealthCheck, Verbosity, settings\n\nimport pytest\n\n\n@pytest.fixture(autouse=... | python | edit | 1 | 1 | mit | 97f58ddc46946640870acf7d0f3d950c46d380d3 | untitaker/vdirsyncer,untitaker/vdirsyncer,untitaker/vdirsyncer | tests/conftest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# NE data - no OSM elements\n# boundary between NV and CA is _also_ a \"statistical\" boundary\nassert_has_feature(\n 7, 21, 49, 'boundaries',\n { 'kind': 'state' })\n\n# boundary between MT and ND is _also_ a \"statistical meta\" bou... | python | edit | 3 | 0 | mit | dfa1424896b015fe376c523e13d0a59ceacca298 | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | test/797-add-missing-boundaries.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport base64\nimport os\nfrom distutils.core import Command\n\n\nclass TestCommand(Command):\n description = \"Launch all tests under fusion_tables app\"\n user_options = []\n\n def initialize_options(self):\n pass\n\n d... | python | edit | 1 | 1 | mit | e7ad2be6cdb87b84bfa77ff9824f2e9913c17599 | bsvetchine/django-fusion-tables | tests/test_cmd.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom reversion import VersionAdmin\n\nfrom base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin\nfrom base.util import admin_commentable, editonly_fieldsets\n\nfrom .models import Post\n\n\n... | python | edit | 3 | 0 | mit | b375210cf7c6d6d327af61206b6ab36aaaeec6e0 | rtrembecky/roots,tbabej/roots,rtrembecky/roots,tbabej/roots,rtrembecky/roots,matus-stehlik/roots,matus-stehlik/roots,tbabej/roots,matus-stehlik/roots | posts/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom __version__ import version as __version__\n\n# Must import local ccompiler ASAP in order to get\n# customized CCompiler.spawn effective.\nimport ccompiler\nimport unixccompiler\n\nfrom info import __doc__\nfrom npy_pkg_config import ... | python | edit | 10 | 0 | bsd-3-clause | ccdfafcf58fdf3dc1d95acc090445e56267bd4ab | stefanv/numpy,madphysicist/numpy,matthew-brett/numpy,githubmlai/numpy,Dapid/numpy,ahaldane/numpy,bringingheavendown/numpy,GrimDerp/numpy,matthew-brett/numpy,KaelChen/numpy,dwf/numpy,ewmoore/numpy,shoyer/numpy,GaZ3ll3/numpy,stefanv/numpy,gfyoung/numpy,mhvk/numpy,numpy/numpy,SunghanKim/numpy,Anwesh43/numpy,rgommers/numpy... | numpy/distutils/__init__.py | rejected_lint | Too many lint violations: 10 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\r\n\r\nfrom poliastro.core import util\r\n\r\n\r\ndef test_rotation_matrix_x():\r\n result = util.rotation_matrix(0.218, 0)\r\n expected = np.array(\r\n [[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0,... | python | edit | 1 | 1 | mit | 4fde2d2c5ccd82373dab802f731d83cc2d3345df | Juanlu001/poliastro,Juanlu001/poliastro,Juanlu001/poliastro,poliastro/poliastro | tests/tests_core/test_core_util.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db.models.signals import (\n post_save,\n)\n\nfrom django.dispatch import receiver\n\nfrom rest_framework.authtoken.models import Token\n\nfrom django.conf import settings\n\nfrom .models import (\n Contest,\n)\n\n\n@recei... | python | edit | 1 | 3 | bsd-2-clause | 0f35ed05d335e7c126675bc913b72aac3ac916df | barberscore/barberscore-api,dbinetti/barberscore-django,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api | project/apps/api/signals.py | rejected_duplicate | Near-duplicate of sample 2128 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rest_framework import serializers as ser\nfrom api.base.utils import absolute_reverse\nfrom api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField\n\n\nclass IdentifierSerializer(JSONAPISerializer):\n\n ... | python | edit | 1 | 1 | apache-2.0 | d48ae791364a0d29d60636adfde1f143858794cd | rdhyee/osf.io,alexschiller/osf.io,Johnetordoff/osf.io,caneruguz/osf.io,acshi/osf.io,abought/osf.io,amyshi188/osf.io,erinspace/osf.io,DanielSBrown/osf.io,chrisseto/osf.io,leb2dg/osf.io,mattclark/osf.io,samchrisinger/osf.io,alexschiller/osf.io,mluke93/osf.io,monikagrabowska/osf.io,mfraezz/osf.io,DanielSBrown/osf.io,crcre... | api/identifiers/serializers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.... | python | edit | 3 | 0 | apache-2.0 | cd201b193ae71c82f006d9532f926bbc49b6fce9 | datacommonsorg/api-python,datacommonsorg/api-python | datacommons/__init__.py | rejected_duplicate | Near-duplicate of sample 4780 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom plugin import websocket\nfrom server import GeventWebSocketServer\n\n__all__ = ['websocket', 'GeventWebSocketServer']\n__version__ = '0.2.8'\n\n```\n\nApply this change: Update import syntax to fit python3"
},
{
"role": "assist... | python | edit | 1 | 0 | mit | e42019c5648dddc2f705836401e422dd4077b55e | zeekay/bottle-websocket | bottle_websocket/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom PIL import Image # Depends on the Pillow lib\n\nfrom opensimplex import OpenSimplexNoise\n\nWIDTH = 512\nHEIGHT = 512\nFEATURE_SIZE = 24\n\ndef main():\n simplex = OpenSimplexNoise()\n im = Image.new('L', (WIDTH, HEIGHT))\n\n ... | python | edit | 1 | 3 | mit | fa0821f49e26f508971c2f3c97b8696c98901e49 | lmas/opensimplex,antiface/opensimplex | opensimplex_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\n\nclass Config:\n SECRET_KEY = os.environ.get('SECRET_KEY')\n SQLALCHEMY_COMMIT_ON_TEARDOWN = True\n\n @staticmethod\n def init_app(app):\n pass\n\n\nclass DevelopmentConfig(Config):\n DEBUG = True\n SQ... | python | edit | 1 | 1 | mit | 6da81cd09aa39d92e39b06bb2a65e1d1b1306b35 | boltzj/movies-in-sf | config.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Utility for generating TCL script to output timing information from a\ndesign checkpoint.\n\"\"\"\nimport argparse\n\n\ndef create_runme(f_out, args):\n print(\n \"\"\"\nreport_timing_summary\n\nsource {util_tcl}\nwrite_tim... | python | edit | 1 | 1 | isc | e8ab72d069633aca71ae60d62ece3c0146289b18 | SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs | xc7/utils/vivado_output_timing.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# https://www.openstreetmap.org/way/28825404\nassert_has_feature(\n 16, 10476, 25242, 'roads',\n { 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' })\n\n# Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440... | python | edit | 3 | 0 | mit | 3bd8354db0931e8721e397a32bf696b023e692b7 | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | test/664-raceway.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py')\n config.add... | python | edit | 2 | 2 | bsd-3-clause | 998ab6f457a04ab24bbe062d9704242a207356fb | efiring/numpy-work,Ademan/NumPy-GSoC,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,illume/numpy3k,Ademan/NumPy-GSoC,illume/numpy3k,teoliphant/numpy-refactor,jasonmccampbell/numpy-refactor-sprint,chadnetzer/numpy-gaurdro,chadnetzer/numpy-gaurdro,efiring/numpy-work,jasonmccampbell/numpy-refactor-sprint,teoliph... | numpy/setupscons.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom tapiriik.database import db, close_connections\nfrom tapiriik.sync import SyncStep\nimport os\nimport signal\nimport socket\nfrom datetime import timedelta, datetime\n\nprint(\"Sync watchdog run at %s\" % datetime.now())\n\nhost = sock... | python | edit | 1 | 0 | apache-2.0 | 7644ed0e5f0fb3f57798ae65ecd87488d6a7cee1 | abs0/tapiriik,marxin/tapiriik,cgourlay/tapiriik,cheatos101/tapiriik,brunoflores/tapiriik,olamy/tapiriik,abs0/tapiriik,abs0/tapiriik,cmgrote/tapiriik,marxin/tapiriik,cheatos101/tapiriik,mjnbike/tapiriik,cheatos101/tapiriik,campbellr/tapiriik,gavioto/tapiriik,abhijit86k/tapiriik,cpfair/tapiriik,dmschreiber/tapiriik,niosu... | sync_watchdog.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n__author__ = \"\"\"Jason Emerick\"\"\"\n__email__ = '<EMAIL>'\n__version__ = '__version__ = '__version__ = '__version__ = '0.2.7''''\n\n```\n\nApply this change: Fix (another) syntax error. Thanks, bumpversion"
... | python | edit | 1 | 0 | bsd-3-clause | 86df5fe205e3a913f5048bef3aa29804dd731d4b | livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python | docdown/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom todoman import version\n\n__version__ = version.version\n__documentation__ = \"https://todoman.rtfd.org/en/latest/\"\n\n```\n\nApply this change: Make mypy ignore auto-generated file\n\nIt won't be present in CI, and may not be present... | python | edit | 1 | 0 | isc | 67b83335956adc0892f32a21099e199dd2753a5d | pimutils/todoman | todoman/__init__.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.