messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Require setuptools. See http://pypi.python.org/pypi/setuptools for\n# installation instructions, or run the ez_setup script found at\n# http://peak.telecommunity.com/dist/ez_setup.py\nfrom setuptools import setup,... | python | edit | 3 | 0 | mit | 7d9f5efb915c179bc655a9cead2870729a45ed90 | meska/cobe,pteichman/cobe,tiagochiavericosta/cobe,LeMagnesium/cobe,meska/cobe,pteichman/cobe,LeMagnesium/cobe,DarkMio/cobe,tiagochiavericosta/cobe,DarkMio/cobe | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\nimport sys\nimport os\nimport glob\n\nsetup(name = \"scilifelab\",\n version = \"0.2.2\",\n author = \"Science for Life Laboratory\",\n author_email = \"<EMA... | python | edit | 3 | 0 | mit | aba663dea0b0027cb4d92b423c2b2f7327738cc8 | jun-wan/scilifelab,SciLifeLab/scilifelab,SciLifeLab/scilifelab,senthil10/scilifelab,senthil10/scilifelab,SciLifeLab/scilifelab,jun-wan/scilifelab,kate-v-stepanova/scilifelab,SciLifeLab/scilifelab,senthil10/scilifelab,kate-v-stepanova/scilifelab,kate-v-stepanova/scilifelab,senthil10/scilifelab,kate-v-stepanova/scilifela... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\nDESCRIPTION = \"\"\"\nPython money class with optional CLDR-backed locale-aware formatting and an extensible currency exchange solution.\n\"\"\"\n\nsetup(\n name='money',\n description='Python Mon... | python | edit | 2 | 0 | mit | d48ceb2364f463c725175010c3d29ea903dbcd1a | carlospalol/money,Isendir/money | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport praw\nimport urllib\nimport cv2, numpy as np\n\nDOWNSCALE = 2\n\nr = praw.Reddit('/u/powderblock Glasses Bot')\n\nfoundImage = False\n \nfor post in r.get_subreddit('all').get_new(limit=15):\n if \"imgur.com\" in post.url and ... | python | edit | 2 | 0 | mit | d8c6f429c875a2cfdc5d520d91ea9d3a37b33ac9 | powderblock/DealWithItReddit,porglezomp/PyDankReddit,powderblock/PyDankReddit | bot.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\ntests_require = []\n\nsetup(\n name='ashlar',\n version='0.0.2',\n description='Define and validate schemas for metadata for geotemporal event records',\n a... | python | edit | 1 | 0 | mit | f7ae33604d50250594c6fe55c1a83f70af9a68ae | azavea/ashlar,flibbertigibbet/ashlar,flibbertigibbet/ashlar,azavea/ashlar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nsetup(\n name='boundary',\n version='0.0.6',\n url=\"https://github.com/boundary/boundary-api-cli\",\n author='David Gwartney',\n author_email='<EMAIL>',\n packages=['boundary',],\n scr... | python | edit | 1 | 0 | apache-2.0 | f53675c17449d414eff9263faad8d18530c23b5d | jdgwartney/boundary-api-cli,wcainboundary/boundary-api-cli,boundary/boundary-api-cli,jdgwartney/boundary-api-cli,jdgwartney/pulse-api-cli,boundary/boundary-api-cli,boundary/pulse-api-cli,boundary/pulse-api-cli,jdgwartney/pulse-api-cli,wcainboundary/boundary-api-cli | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\nimport setuptools\nimport re\n\n# read VERSION file\nversion = None\n\nwith open('VERSION', 'r') as version_file:\n\n if version_file:\n version = version_file.rea... | python | edit | 2 | 0 | mit | a9f51a8fb952bc8785af22e32e7d66c280a9bda5 | sdnds-tw/Ryu-SDN-IP | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom os import environ\n\nfrom setuptools import Extension, find_packages, setup\n\n# Opt-in to building the C extensions for Python 2 by setting the\n# ENABLE_DJB_HASH_CEXT environment variable\nif environ.get('ENABL... | python | edit | 1 | 0 | mit | f4311c2ff9f9ddd1730c8e0c5b2d0216052c3ffa | pombredanne/python-pure-cdb,pombredanne/python-pure-cdb,dw/python-pure-cdb,dw/python-pure-cdb | setup.py | rejected_duplicate | Near-duplicate of sample 15900 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='pymongo_smart_auth',\n version='0.2.0',\n description='This package extends PyMongo to provide built-in smart authentication.',\n url='https://github.com/PLPeeters/PyMongo-Smart-Aut... | python | edit | 1 | 0 | mit | 841144ddc1c9f0b88e81a31b590ca816d5f9b45b | PLPeeters/PyMongo-Smart-Auth,PLPeeters/PyMongo-Smart-Auth | 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\nimport versioneer\nsetup(\n version=versioneer.get_version(),\n cmdclass=versioneer.get_cmdclass(),\n name='nsls2-auto-builder',\n description='toolset for a... | python | edit | 1 | 0 | bsd-3-clause | 074c59e3e8d570e4bbda57a5a3163f18a1b293da | NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/auto-build-tagged-recipes | 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 PythonTemplateDemo.\"\"\"\n\nimport setuptools\n\nfrom demo import __project__, __version__\n\nimport os\nif os.path.exists('README.rst'):\n README = open('README.rst').read()\nelse:\n R... | python | edit | 1 | 0 | mit | 8db643b23716e3678ec02bcea6ade0f10a81bf76 | jacebrowning/template-python-demo | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding: utf-8\n\nfrom setuptools import setup, find_packages\nsetup(\n name=\"bentoo\",\n description=\"Benchmarking tools\",\n version=\"0.13\",\n packages=find_packages(),\n scripts=[\"scripts/bento... | python | edit | 1 | 0 | mit | 54dc38f51f06a71f520dfe2087ba8fddfa722b0c | ProgramFan/bentoo | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='troposphere',\n version='1.4.0',\n description=\"AWS CloudFormation creation library\",\n author=\"Mark Peek\",\n author_email=\"<EMAIL>\",\n url=\"https://github.com/cloudtoo... | python | edit | 1 | 0 | bsd-2-clause | 8e585518b65c0f37b2f7458b7b0fda13bfcf24f5 | cloudtools/troposphere,alonsodomin/troposphere,pas256/troposphere,cloudtools/troposphere,pas256/troposphere,dmm92/troposphere,7digital/troposphere,dmm92/troposphere,ikben/troposphere,horacio3/troposphere,johnctitus/troposphere,ikben/troposphere,horacio3/troposphere,alonsodomin/troposphere,johnctitus/troposphere,Yipit/t... | 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 | 12f56ba2ae1b10e2a07f4cc9348dbd814432d50f | electronick1/todoist-python,Doist/todoist-python | setup.py | rejected_duplicate | Near-duplicate of sample 2235 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\n'''\nCreated on Aug 29, 2014\n\n@author: tmahrt\n'''\nfrom setuptools import setup\nimport io\nsetup(name='praatio',\n version='4.2.1',\n author='Tim Mahrt',\n author_email='<EMAIL>',... | python | edit | 1 | 0 | mit | 6988ce27efd98f01776246afe6bd615f23644413 | timmahrt/praatIO | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Verily Life Sciences Inc. 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 Lice... | python | edit | 1 | 0 | apache-2.0 | 062af2465be55aba3e7bd95a8e2a9639c1273a61 | verilylifesciences/analysis-py-utils,verilylifesciences/analysis-py-utils | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools.core import setup\nexcept ImportError:\n from distutils.core import setup\nimport sys\n\n\nsvem_flag = '--single-version-externally-managed'\nif svem_flag in sys.argv:\n # Die, setuptools, die.\n sys.argv.... | python | edit | 1 | 0 | bsd-3-clause | 8d744032bb5a023a24f525aea95719e58ab12098 | Calysto/metakernel | setup.py | rejected_duplicate | Near-duplicate of sample 12142 | 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=\"delcom904x\",\n version=\"0.2\",\n description=\"A python class to control Delcom USBLMP Products 904x multi-color, USB, visual signal indicators\",\n auth... | python | edit | 1 | 0 | isc | c29b173a5316e2e02e51bd2859d138dd49cf3885 | linville/delcom904x | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nsetup(\n name=\"pcanet\",\n version=\"0.0.1\",\n author=\"Takeshi Ishita\",\n py_modules=[\"pcanet\"],\n install_requires=[\n 'chainer',\n 'numpy',\n 'psutil',\n... | python | edit | 3 | 0 | mit | 6cdd2c06987e35451ac834cbab01b47a2679f5d9 | IshitaTakeshi/PCANet | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import dirname, abspath, join, exists\nfrom setuptools import setup\n\nlong_description = None\nif exists(\"README.md\"):\n long_description = open(\"README.md\").read()\n\nsetup(\n name=\"mpegdash\",\n packages=[\"mpegdas... | python | edit | 5 | 0 | mit | 2fc1b2463a2270312e16c9aee62e09610614bd7b | caststack/python-mpegdash | setup.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nimport sys\nfrom setuptools import setup, find_packages\nhere = os.path.abspath(os.path.dirname(__file__))\n\nrequires = [\n 'h5py',\n 'numpy',\n 'ConfigSpace'\n 'pandas', # missing dependency of nasbench\n 'https... | python | edit | 3 | 0 | bsd-3-clause | 11741fe35b7a62effa5e07ced86946b0d744015a | automl/nas_benchmarks | 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 os.path\n\nROOT_DIR = os.path.dirname(os.path.abspath(__file__))\nREADME_FILE = os.path.join(ROOT_DIR, \"README.rst\")\n\nwith open(... | python | edit | 1 | 0 | mit | 041123e7348cf05dd1432d8550cc497a1995351d | xgfone/xutils,xgfone/pycom | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf-8\nfrom setuptools import setup, find_packages\n\nsetup(\n name='reddit2Kindle',\n scripts=['r2K.py'],\n packages=find_packages(),\n install_requires=[\n 'markdown2',\n 'praw'... | python | edit | 1 | 0 | mit | e8529bc3d7aa87bbb9ae19c629d6d1a9bc205285 | Antrikshy/reddit2Kindle | 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=\"ducted\",\n version='1.0',\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 | bf37a9f1c24494ae26f6a38f123e5bd828001d09 | ducted/duct,ducted/duct,ducted/duct,ducted/duct | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom tests import PMGTestCase\nfrom tests.fixtures import dbfixture, BillData, BillTypeData\n\n\nclass TestBillAPI(PMGTestCase):\n def setUp(self):\n super(TestBillAPI, self).setUp()\n self.fx = dbfixture.data(BillTypeData,... | python | edit | 1 | 1 | apache-2.0 | dc15bd3c16758dcc420505794a7e3cadf38ffd36 | Code4SA/pmg-cms-2,Code4SA/pmg-cms-2,Code4SA/pmg-cms-2 | tests/api/test_bills.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:\n\tREADME = readme.read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.absp... | python | edit | 1 | 0 | mit | 85cadb6dc02e38890ba32c06543b0839314be594 | RyanBalfanz/django-smsish | setup.py | rejected_duplicate | Near-duplicate of sample 14976 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='jupyterhub-ldapauthenticator',\n version='0.1',\n description='LDAP Authenticator for JupyterHub',\n url='https://github.com/yuvipanda/ldapauthenticator',\n author='Yuvi Panda',\... | python | edit | 1 | 0 | bsd-3-clause | 07ad3d59d3553082721edf5c085dd6f5a4f1ec9f | ViaSat/ldapauthenticator,yuvipanda/ldapauthenticator | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import exists\nfrom setuptools import setup\n\n\nsetup(name='streamz',\n version='0.3.0',\n description='Streams',\n url='http://github.com/mrocklin/streamz/',\n maintainer='Matthew ... | python | edit | 1 | 0 | bsd-3-clause | 25a5fdc540f9eaa78aed5f7a4ec91981610053cb | mrocklin/streams | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom distutils.core import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\npackages = []\npackage_dir = \"dbbackup\"\nfor dirpath, dirnames, filenames in os.walk(package_di... | python | edit | 1 | 1 | bsd-3-clause | 3eae6b2f66831259f1f1e237e1581207d0256e3e | leukeleu/django-dbbackup | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals\nfrom setuptools import (\n setup,\n find_packages,\n)\n\n\nsetup(\n name='natasha',\n version='0.8.1',\n description='Named-entity recognition for russian language',\n... | python | edit | 1 | 0 | mit | 728e7d5cb5624138225ce51b2fc37d8957016872 | natasha/natasha | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nwith open('arcpyext/_version.py') as fin: exec(fin.read(), globals())\nwith open('requirements.txt') as fin: requirements=[s.strip() for s in fin.readlines()]\nwith open('readme.rst') as fin: l... | python | edit | 3 | 0 | bsd-3-clause | 57a94ef6d186969b57b727d01135d94b7c9af4af | DavidWhittingham/arcpyext | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport sys\nfrom setuptools import setup, find_packages\n\nif sys.version_info < (3, 3):\n sys.exit('Sorry, Python < 3.3 is not supported')\n\nsetup(\n name='pyecore',\n version='0.5.6-dev',\n descriptio... | python | edit | 1 | 0 | bsd-3-clause | e20ed9c03d7ee58bd39ce6d1a5d1ffb50da06962 | aranega/pyecore,pyecore/pyecore | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom os.path import join\nfrom setuptools import setup, find_packages\n\n# Change geokey_sapelli version here (and here alone!):\nVERSION_PARTS = (0, 6, 7)\n\nname = 'geokey-sapelli'\nversion = '.'.join(map(str, VER... | python | edit | 1 | 5 | mit | 6499c1f5e292f7445c0c9274a623c28c0eb7ce7b | ExCiteS/geokey-sapelli,ExCiteS/geokey-sapelli | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='atlassian-jwt-auth',\n packages=find_packages(),\n version='0.0.1',\n install_requires=[\n 'cryptography==0.8.2',\n 'PyJWT==1.1... | python | edit | 1 | 0 | mit | c3d5b69eac928bcf7f6198b9fc3a40d5b06a7caa | atlassian/asap-authentication-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Test the conductor REST module.\"\"\"\n\nfrom __future__ import unicode_literals\nfrom __future__ import print_function\nfrom __future__ import division\nfrom __future__ import absolute_import\n\nfrom _pytest.python import raises\nfro... | python | edit | 1 | 1 | mit | 7d75b96211404902c2fd3ae977860ed97f351b7d | openspending/gobble | tests/test_conductor.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='downstream-farmer',\n version='',\n packages=['downstream-farmer'],\n url='',\n license='',\n author='Storj Labs',\n author_email='<EMAIL>',\n description=''\n)\n\n```\n... | python | edit | 1 | 0 | mit | 09b707e7c190357cd41953aa4304a331eb7182f5 | Storj/downstream-farmer | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name = 'graphysio',\n version = '0.73',\n description = 'Graphical visualization of physiologic time series',\n url = 'https://github.com/jaj42/graphysio',\n author = 'Jona JOACHIM',... | python | edit | 1 | 0 | isc | e2094a9814e6c38cbe5b3a3c49b6205c5ad89ed1 | jaj42/dyngraph,jaj42/GraPhysio,jaj42/GraPhysio | 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\nsetup(\n name='Tigger',\n version='0.1.0',\n packages=['tigger',],\n license='MIT',\n description=\"Command-line tagging tool.\",\n long_descri... | python | edit | 1 | 0 | mit | 95428c238dc8d80c61e7c15116ab01f53b643f85 | jesskay/tigger | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup, Extension\n\nimport numpy.distutils.misc_util\n\n\nmodule = Extension(\n 'cnaturalneighbor',\n include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs(),\n library_dirs=['/usr/local/lib'],\n ... | python | edit | 1 | 0 | mit | 16db51ec820381ccfb48ad1c5ada6fb25dbf1e9c | innolitics/natural-neighbor-interpolation,innolitics/natural-neighbor-interpolation,innolitics/natural-neighbor-interpolation | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nInstall wagtailvideos using setuptools\n\"\"\"\n\nwith open('README.rst', 'r') as f:\n readme = f.read()\n\nfrom setuptools import find_packages, setup\n\nsetup(\n name='wagtailvideos',\n version='0.1... | python | edit | 1 | 0 | bsd-3-clause | 8922e56b230c59a8f83374f3e3cb7c9ed4968784 | takeflight/wagtailvideos,takeflight/wagtailvideos,takeflight/wagtailvideos | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'processout',\n packages = ['processout'],\n version = '1.1.0',\n description = 'ProcessOut API bindings for python',\n author = 'Manuel Huez',\n author_email = '<EMAIL>',\n url = '... | python | edit | 1 | 0 | mit | 558b756763f0a07fd2316128ccf64878ab3ea715 | ProcessOut/processout-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# Generated by jaraco.develop (https://bitbucket.org/jaraco/jaraco.develop)\nimport setuptools\n\nwith open('README.txt', encoding='utf-8') as readme:\n\tlong_description = readme.read()\nwith open('CHANGES.txt', enco... | python | edit | 1 | 0 | mit | 1372bc3d373ef7cda6b1b016d4355e5d96db5ff0 | jaraco/portend | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom setup_config import DESCRIPTION, VERSION, PROJECT_NAME, PROJECT_AUTHORS, GLOBAL_ENTRY_POINTS, PROJECT_EMAILS, PROJECT_URL, SHORT_DESCRIPTION\n\nsetup(name=PROJECT_NAME.lower(),\n version=VERSION,\n ... | python | edit | 1 | 0 | mit | 66b9761a85fa101da5c1c0f45846df0a35bedaf2 | imsardine/jenkinsapi,JohnLZeller/jenkinsapi,salimfadhley/jenkinsapi,ramonvanalteren/jenkinsapi,mistermocha/jenkinsapi,zaro0508/jenkinsapi,JohnLZeller/jenkinsapi,JohnLZeller/jenkinsapi,domenkozar/jenkinsapi,jduan/jenkinsapi,aerickson/jenkinsapi,domenkozar/jenkinsapi,salimfadhley/jenkinsapi,imsardine/jenkinsapi,zaro0508/... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n version='0.35',\n name=\"pydvkbiology\",\n packages=find_packages(),\n description='Python scripts used in my biology/bioinformatics research',\n author='DV Klopfenstein... | python | edit | 1 | 0 | mit | ba366f9910cf69c51f4a43fcf892751e600c06db | dvklopfenstein/biocode | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name = 'PyFVCOM',\n packages = ['PyFVCOM'],\n version = '1.2',\n description = (\"PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot... | python | edit | 1 | 0 | mit | 8ac39062cf1a0fbc3fd3483491e0719e1482f42a | pwcazenave/PyFVCOM | setup.py | rejected_duplicate | Near-duplicate of sample 13223 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(\n name=\"discode-server\",\n version=\"0.0.1\",\n url=\"https://github.com/d0ugal/discode-server\",\n license=\"BSD\",\n description=\"Quick code review\",\n long_description=\"TODO\"... | python | edit | 1 | 0 | bsd-2-clause | 20fe9ad0986c8034c3435484d11a18c2b2b1123b | d0ugal/discode-server,d0ugal/discode-server,d0ugal/discode-server | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport bisect\nimport collections\n\nPriceEvent = collections.namedtuple(\"PriceEvent\", [\"timestamp\", \"price\"])\n\n\nclass Stock:\n def __init__(self, symbol):\n \"\"\"Constructor for Stock instance.\n\n Args:\n ... | python | edit | 1 | 2 | mit | 6b26102efdee4ae365ddd0bce126d6045865a9bc | bsmukasa/stock_alerter | stock.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(\n name=\"stale\",\n version='1.1',\n description=\"Identifies (and optionally removes) stale Delicious and Pinboard links\",\n author=\"Jon Parise\",\n autho... | python | edit | 1 | 0 | mit | 55fa7b929e855ea98ac00f700c7c41bb5a971ddb | jparise/stale | 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='vumi-wikipedia',\n version='dev',\n description='Vumi Wikipedia App',\n packages=find_packages(),\n install_requires=[\n 'vumi > 0.3.1',\n 'Beautiful... | python | edit | 1 | 0 | bsd-3-clause | cf536666d2fd9f2fe56db8b7c998e8bbba55a443 | praekelt/vumi-wikipedia,praekelt/vumi-wikipedia | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\n\nHERE = os.path.abspath(os.path.dirname(__file__))\nVERSION_NS = {}\nwith open(os.path.join(HERE, 'lc_wrapper', '_version.py')) as f:\n exec(f.read(), {}, VERSION_NS)\n\nsetup(\n name='lc_wr... | python | edit | 1 | 0 | bsd-3-clause | 1e33b557ca0539da3f5c95acc3be5eaab65e45f2 | NII-cloud-operation/Jupyter-LC_wrapper,NII-cloud-operation/Jupyter-LC_wrapper | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport twelve\nimport twelve.adapters\nimport twelve.services\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nsetup(\n name=\"twelve\",\n version=twelve.__... | python | edit | 1 | 0 | bsd-3-clause | 88dc8fa2c2337b4b0688eae368f2960e2682bb46 | dstufft/twelve | 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 = \"Greengraph\",\n version = \"0.1\",\n packages = find_packages(exclude=[\"*test\"]),\n scripts = [\"scripts/greengraph\"],\n install_requires = [\"argparse\",\"m... | python | edit | 1 | 0 | mit | aa2e84828ddc5b9676c1df3e96669e0d892e164f | MikeVasmer/GreenGraphCoursework | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nif sys.version_info <= (2, 4):\n error = 'Requires Python Version 2.5 or above... exiting.'\n print >> sys.stderr, error\n ... | python | edit | 2 | 0 | apache-2.0 | d6c514d6282415d243b990375e2582ed8530be04 | googlemaps/google-maps-services-python | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name=\"colorlog\",\n version=\"6.1.1a1\",\n description=\"Add colours to the output of Python's logging module.\",\n long_description=open(\"README.md\").read(),\n long_description_con... | python | edit | 1 | 0 | mit | cdccf3de5fa06414a7e0ee5544df02f8c0087bf1 | borntyping/python-colorlog | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom distutils.core import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(name='django-uuslug',\n version='0.3',\n description = \"A Unicode slug that is also guar... | python | edit | 1 | 1 | mit | d725a22557f9fef564ae00cde9829064c7616f54 | un33k/django-uuslug,un33k/django-uuslug | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nfrom pyelasticsearch.client import ElasticSearch\nfrom pyelasticsearch.exceptions import (Timeout, ConnectionError,\n ElasticHttpError,\n ... | python | edit | 1 | 0 | bsd-3-clause | a18a19345298c43400dbfb984f97e97b3d0b624a | erikrose/pyelasticsearch | pyelasticsearch/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nWSGI config for nau_timetable project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/\n\"\"\"... | python | edit | 1 | 0 | mit | 4022e09632602e65328f4561fe1b87a490ab587b | bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable | nau_timetable/wsgi.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/python\n# Debug stub for launching Python debug session inside LLDB\nimport sys\nimport subprocess\n\nargs = ['*'] + sys.argv[3:]\nscript = [\n \"import sys, runpy, __main__\",\n \"sys.orig_main = __main__\",\n \"sys.argv=['%s... | python | edit | 1 | 0 | mit | 07ea75c5e5f0294a9ca184bc44619a83e5cda38b | vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb,vadimcn/vscode-lldb | tools/debug_launcher.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.test import Client, TestCase\nfrom infrastructure import utils\nfrom infrastructure import models\nimport json\n\nfrom infrastructure.models import FinancialYear, QuarterlySpendFile, Expenditure, Project\n\nfrom scorecard.models... | python | edit | 1 | 1 | mit | 7aa140778cd689a8efa86f0890c4ccb8fc7f0d43 | Code4SA/municipal-data,Code4SA/municipal-data,Code4SA/municipal-data,Code4SA/municipal-data | infrastructure/tests/test_api_views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\nfrom unittest.mock import Mock\nfrom pipeline_notifier.routes import setup_routes\n\nclass RoutesTests(unittest.TestCase):\n def test_route_setup_works(self):\n setup_routes(Mock(), [])\n```\n\nApply this change: ... | python | edit | 1 | 1 | mit | fa0d478aeb167422a56d6e9e8c3e0a35947765e9 | pimterry/pipeline-notifier | pipeline_notifier_test/routes_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport emarsys\n\nfrom django.conf import settings\n\n\nclient = emarsys.Emarsys(settings.EMARSYS_ACCOUNT,\n settings.EMARSYS_PASSWORD,\n settings.EMARSYS_BASE_URI)\... | python | edit | 1 | 2 | mit | 95e2ee8c1969dc335237dd27221049fe6fc51111 | machtfit/django-emarsys,machtfit/django-emarsys | django_emarsys/api.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask import render_template\n\napp = Flask(__name__)\n\n@app.route('/', defaults={'path': ''})\n@app.route('/<path:path>')\ndef application(path):\n return render_template('application.html')\n\nif __name__... | python | edit | 1 | 1 | apache-2.0 | b996e2642cf46da5e99857060c5d2bd0107d8e62 | CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend | troposphere/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import print_function\n\nimport os\nimport imp\nimport fnmatch\n\n\n# Test directory\nDIR_TEST = 'tests'\n\n\ndef find_tests(pathname):\n \"\"\"Recursively finds the test modules.\n\n :param str pathname: Path name whe... | python | edit | 1 | 4 | bsd-3-clause | fbb3c38417e85f327e6a347338a005162779314b | owtf/ptp,DoomTaper/ptp | run_tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef configuration(parent_package='', top_path=None):\n from numpy.distutils.misc_util import Configuration\n config = Configuration('typing', parent_package, top_path)\n config.add_subpackage('tests')\n config.add_data_dir('test... | python | edit | 1 | 1 | bsd-3-clause | a44eecac4306504e7d3e6b8253deeb35e6b1fb43 | mattip/numpy,jakirkham/numpy,seberg/numpy,rgommers/numpy,anntzer/numpy,numpy/numpy,numpy/numpy,charris/numpy,jakirkham/numpy,anntzer/numpy,charris/numpy,pdebuyl/numpy,rgommers/numpy,charris/numpy,mattip/numpy,rgommers/numpy,simongibbons/numpy,mattip/numpy,jakirkham/numpy,pdebuyl/numpy,endolith/numpy,anntzer/numpy,seber... | numpy/typing/setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nif __name__ == '__main__':\n import os\n import sys\n\n if sys.version_info[0:2] < (3, 4):\n raise SystemExit('python 3.4+ is required')\n\n root_path = os.path.abspath(os.path.dirname(__file__))\n\... | python | edit | 1 | 0 | mit | 06b9982ea716daa627a0beb700721c7ca53601fd | ministryofjustice/money-to-prisoners-transaction-uploader | run.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 utils.summary_downloader import SummaryDownloader\n\nif __name__ == '__main__':\n\n # setting target dir and time interval of interest\n tgt_dir = r\"D:\\nhl\\official_and_json\\2... | python | edit | 1 | 0 | mit | 4580913b9f8ef692e3417a9b04e88a34ff69716d | leaffan/pynhldb | download_summaries.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\n# Copyright (C) 2016 Google Inc.\n# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>\n\nfrom ggrc import db\nfrom ggrc.models import Control\nfrom integration.ggrc import TestCase\nfrom .factories import Contro... | python | edit | 1 | 1 | apache-2.0 | e2d74754ad42f412b8344257cb3c1c9943931b17 | plamut/ggrc-core,selahssea/ggrc-core,AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,andrei-karalionak/ggrc-core,andrei-karalionak/ggrc-core,VinnieJohns/ggrc-core,selahssea/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,AleksNeStu/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,selahs... | test/integration/ggrc/models/test_control.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\n\nfrom hrmpy import parser\n\n\ndef test_parse_program_empty():\n with pytest.raises(RuntimeError):\n parser.parse_program(\"\")\n\n\ndef test_parse_program_no_header():\n with pytest.raises(RuntimeError):\n ... | python | edit | 1 | 1 | mit | 5ee6e2ce3854d8ca60b5aedfb21cd61172511a8f | jerith/hrmpy | hrmpy/tests/test_parser.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rest_framework import serializers as ser\n\nfrom api.base.serializers import JSONAPISerializer, RelationshipField, LinksField\n\nclass InstitutionSerializer(JSONAPISerializer):\n\n filterable_fields = frozenset([\n 'id',\n ... | python | edit | 1 | 1 | apache-2.0 | 70cfff61c8b3841e71674da0b13c6fc8eee3e924 | zamattiac/osf.io,doublebits/osf.io,Nesiehr/osf.io,laurenrevere/osf.io,TomHeatwole/osf.io,chennan47/osf.io,mluo613/osf.io,jnayak1/osf.io,Nesiehr/osf.io,leb2dg/osf.io,caneruguz/osf.io,SSJohns/osf.io,mluke93/osf.io,sloria/osf.io,hmoco/osf.io,binoculars/osf.io,RomanZWang/osf.io,DanielSBrown/osf.io,rdhyee/osf.io,binoculars/... | api/institutions/serializers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Google Inc. 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 License at\n#\n# ... | python | edit | 1 | 0 | apache-2.0 | e0510d5161ad42ce265d5fc0d5e22147f4f0033c | DataBiosphere/dsub,DataBiosphere/dsub | dsub/_dsub_version.py | rejected_duplicate | Near-duplicate of sample 2591 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\nfrom urllib.parse import urljoin\nimport sys\n\n\ndef get_payload():\n return json.load(sys.stdin)\n\n\ndef get_index_url(payload):\n source = payload['source']\n uri = source['uri']\n index = source['index']\n i... | python | edit | 1 | 3 | mit | ea315b018fb3fab6925f1194fcd3e341166ab6fb | mdomke/concourse-devpi-resource | opt/resource/common.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.views.generic import ListView\nfrom aspc.senate.models import Document, Appointment\nimport datetime\n\nclass DocumentList(ListView):\n model = Document\n context_object_name = 'documents'\n paginate_by = 20\n\nclass Ap... | python | edit | 1 | 1 | mit | c88478f399417e2099e90d9b445c2a7bfb57af70 | theworldbright/mainsite,aspc/mainsite,theworldbright/mainsite,aspc/mainsite,aspc/mainsite,theworldbright/mainsite,aspc/mainsite,theworldbright/mainsite | aspc/senate/views.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# python3\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 ... | python | edit | 12 | 0 | apache-2.0 | a44665230d2b589a1550b1293cb690d9116d0dca | deepmind/acme,deepmind/acme | acme/__init__.py | rejected_lint | Too many lint violations: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views... | python | edit | 1 | 0 | bsd-3-clause | 37178102a9518d73b4e2040ac8cbb622663f9afd | valerymelou/cookiecutter-django-gulp,valerymelou/cookiecutter-django-gulp,valerymelou/cookiecutter-django-gulp | {{cookiecutter.project_slug}}/config/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"This root level directives are importend from the submodules. They are\nmade available here as well to keep the number of imports to a minimum for\nmost applications.\n\"\"\"\nimport wsgiservice.routing\nfrom wsgiservice.decorators im... | python | edit | 10 | 0 | bsd-2-clause | cf0fa32efc6d89aad5d569ad59aefb66e9f7df12 | pneff/wsgiservice,beekpr/wsgiservice | wsgiservice/__init__.py | rejected_lint | Too many lint violations: 10 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\n\nfrom registration import constants\n\n\nclass CompanyForm(forms.Form):\n company_number = forms.CharField(\n label='Company number',\n help_text=('This is the 8-digit number on the company certif... | python | edit | 1 | 0 | mit | 8d55268fb3239dd429cb488a6c13e09d7839aa1a | uktrade/directory-ui-supplier,uktrade/directory-ui-supplier,uktrade/directory-ui-supplier | registration/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom oic.oauth2.message import ErrorResponse\n\nfrom .util import should_fragment_encode\n\n\nclass BearerTokenError(ValueError):\n pass\n\n\nclass InvalidAuthorizationCode(ValueError):\n pass\n\n\nclass InvalidAccessToken(ValueError)... | python | edit | 1 | 3 | apache-2.0 | 4c7f36e6a5f277b1c84d665edb279476a9e15063 | its-dirg/pyop | src/pyop/exceptions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom functools import partial\nfrom itertools import accumulate as accumulate_, chain, tee\n\nMYPY = False\nif MYPY:\n from typing import Callable, Iterable, Iterator, Optional, Tuple, TypeVar\n T = TypeVar('T')\n\n\nfilter_ = partial... | python | edit | 7 | 2 | mit | 52ef3152fb92c5f0363578fe1e7d51f57c18295b | divmain/GitSavvy,divmain/GitSavvy,divmain/GitSavvy | core/fns.py | rejected_lint | Too many lint violations: 7 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\nfrom model_utils.models import TimeStampedModel\n\nfrom warp.users.models import User\n\n\nclass Presentation(TimeStampedModel):\n subject = models.CharField(max_length=50)\n author = models.ForeignKey(Us... | python | edit | 1 | 1 | mit | d28fa7874d7b0602eb5064d9f43b8b01674de69f | SaturDJang/warp,SaturDJang/warp,SaturDJang/warp,SaturDJang/warp | presentation/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nbuiltins = import\noperator = import\nfunctools = import\nimportlib = import\n\n# Choose a function based on the number of arguments.\nvarary = (*fs) -> (*xs) -> (fs !! (len: xs - 1)): (*): xs\n\nbuiltins . $ = (f, *xs) -> f: (*): xs\nbui... | python | edit | null | null | mit | 7df2e3bc6f651b9caa45d57a1cd21eac374148a3 | pyos/dg | compile/00-shortcuts.dg.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Tests for simple tools for timing functions' execution. \"\"\"\n\nfrom sympy.utilities.timeutils import timed\n\ndef test_timed():\n result = timed(lambda: 1 + 1, limit=100000)\n assert result[0] == 100000 and result[3] == \"ns\... | python | edit | 1 | 3 | bsd-3-clause | 9d4908d28efd31a16a47bdfaf09895913dc2977f | jbbskinny/sympy,kumarkrishna/sympy,oliverlee/sympy,shipci/sympy,yashsharan/sympy,meghana1995/sympy,vipulroxx/sympy,Vishluck/sympy,drufat/sympy,cswiercz/sympy,MechCoder/sympy,mcdaniel67/sympy,saurabhjn76/sympy,jaimahajan1997/sympy,dqnykamp/sympy,rahuldan/sympy,AunShiLord/sympy,Sumith1896/sympy,pandeyadarsh/sympy,shikil/... | sympy/utilities/tests/test_timeutils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom wtforms import Field\nfrom wtforms.widgets import TextInput\n\n\nclass TagListField(Field):\n \"\"\"\n Field for comma-separated list of tags.\n\n From http://wtforms.readthedocs.org/en/latest/fields.html#custom-fields\n\n ... | python | edit | 1 | 6 | mit | bf7571dfbf2f3081e539d5f3a5558d80fcd3fbee | Encrylize/flask-blogger,Encrylize/flask-blogger,Encrylize/flask-blogger | app/utils/fields.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom django.contrib.contenttypes.generic import GenericTabularInline\n\nfrom .models import RelatedContent\nfrom .models import RelatedType\n\n\nclass RelatedContentInline(GenericTabularInline):\n ct_fie... | python | edit | 1 | 0 | apache-2.0 | 007cd14cd3fd215cd91403ebe09cd5c0bb555f23 | texastribune/armstrong.apps.related_content,armstrong/armstrong.apps.related_content,armstrong/armstrong.apps.related_content,texastribune/armstrong.apps.related_content | armstrong/apps/related_content/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport generate as gen\n\ncommands = {}\n\ndef cmd_func(name):\n def _cmd_func(f):\n commands.setdefault(name, f)\n return f\n return _cmd_func\n\n@cmd_func('get-latest-rev')\ndef get_latest_rev(args):\n return \"%s... | python | edit | 1 | 2 | bsd-3-clause | f1ef0652acdd9211f8e39eb57845251e7ccc496e | slonopotamus/git_svn_server | commands.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sqlalchemy\nimport sqlalchemy.ext.declarative\n\nBase = sqlalchemy.ext.declarative.declarative_base()\n\nclass Post(Base):\n\t__tablename__ = \"posts\"\n\n\tid = sqlalchemy.Column(sqlalchemy.Integer, primary_key = True)\n\ttitle = sq... | python | edit | 1 | 0 | mit | eb0579d7bcd585e8ae0ca82060540743f8ec90ae | ollien/Timpani,ollien/Timpani,ollien/Timpani | py/tables.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport csv\nfrom datetime import date\n\nfrom scraper.draft_scraper import scrape\n\nCSV_FILE = 'datasets/%s_nbadraft.csv'\n\nfor year in range(1947, date.today().year):\n draft = scrape(year)\n header = [key for key in draft[1].keys(... | python | edit | 1 | 0 | mit | 48ec1d9494ae8215f6b4bc4b79bcefe318d8a5b4 | kshvmdn/nbadrafts | create_csv.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport argparse\nfrom getpass import getpass\nfrom pysswords.db import Database\nfrom pysswords.crypt import CryptOptions\n\n\ndef get_args():\n parser = argparse.ArgumentParser()\n parser.add_argument('path')\n parser.add_argument... | python | edit | 1 | 5 | mit | 027178a21083ceaa4151806e877a58ec7792f625 | eiginn/passpie,scorphus/passpie,marcwebbie/passpie,scorphus/passpie,marcwebbie/pysswords,eiginn/passpie,marcwebbie/passpie | pysswords/__main__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom celery import Celery\nfrom celery.schedules import crontab\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lims.settings')\n\napp = Celery('lims', broker=os.environ.get('REDIS_URL', 'redis://127.0.0.1:6379'), backend='re... | python | edit | 1 | 0 | mit | f9e5ee2bcb088aec6f0d1c012caaaca05fe69560 | GETLIMS/LIMS-Backend,GETLIMS/LIMS-Backend | lims/celery.py | rejected_duplicate | Near-duplicate of sample 11378 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom test import get_config\nfrom swift.common.utils import config_true_value\nconfig = get_config('probe_test')\nCHECK_SERVER_TIMEOUT = int(config.get('check_server_timeout', 30))\nVALIDATE_RSYNC = config_true_value(config.get('validate_rs... | python | edit | 1 | 0 | apache-2.0 | 006a37819372ae9d161bece9c44a83bc26b7d43e | tipabu/swift,tipabu/swift,psachin/swift,smerritt/swift,smerritt/swift,smerritt/swift,matthewoliver/swift,clayg/swift,notmyname/swift,nadeemsyed/swift,swiftstack/swift,openstack/swift,matthewoliver/swift,matthewoliver/swift,nadeemsyed/swift,tipabu/swift,openstack/swift,psachin/swift,openstack/swift,swiftstack/swift,psac... | test/probe/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\r\nfrom .algebra import Calculus, I, integrate, oo, undefined\r\nfrom .functions import exp, log, sqrt, sin, cos, tan, cot, pi, E\r\n\r\nSymbol = Calculus.Symbol\r\nNumber = Calculus.Number\r\n\r\nAdd = lambda *args: Calculus.Add(*map(Calc... | python | edit | 15 | 2 | bsd-3-clause | a72c494c5c0f010192f39d84c13c90c0f0f8941e | pearu/sympycore,pearu/sympycore | sympycore/calculus/__init__.py | rejected_lint | Too many lint violations: 15 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom base import * # noqa: F401,F403\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.postgresql_psycopg2\",\n \"NAME\": \"travis\",\n \"USER\": \"\",\n... | python | edit | 1 | 0 | mit | 678bd63609d80239668d596ce6fffe2ddd70f7d2 | pydata/conf_site,pydata/conf_site,pydata/conf_site | conf_site/settings/travis-ci.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nEntry point for lambda\n\"\"\"\nfrom _ebcf_alexa import interaction_model\nimport logging\n\nLOG = logging.getLogger()\nLOG.setLevel(logging.DEBUG)\n\ndef lambda_handler(event, context) -> dict:\n \"\"\" Route the incoming reques... | python | edit | 3 | 2 | mit | aec355326b0f6116d6ffb1b0aeb7e35c2074c9ed | dmotles/ebcf-alexa | ebcf_alexa.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under an MIT open source license - see LICENSE\n\n'''\nReturns a list of all available distance metrics\n'''\n\nstatistics_list = [\"Wavelet\", \"MVC\", \"PSpec\", \"Bispectrum\", \"DeltaVariance\",\n \"Genus\", ... | python | edit | 1 | 0 | mit | 87d13bddb5f98438e959c3aafcf1d3a936dd264b | Astroua/TurbuStat,e-koch/TurbuStat | turbustat/statistics/statistics_list.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nfrom mooc_aggregator_restful_api import coursera\n\n\nclass CourseraTestCase(unittest.TestCase):\n '''\n Unit Tests for module udacity\n\n '''\n\n def setUp(self):\n self.coursera_test_object = coursera... | python | edit | 1 | 1 | mit | 202027ac9a2680ba8825d488c146d152beaa4b5d | ueg1990/mooc_aggregator_restful_api | tests/test_coursera.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Created By: Andrew Ryan DeFilippis\"\"\"\n\nprint('Lambda cold-start...')\n\nfrom json import dumps, loads\n\n\n# Disable 'testing_locally' when deploying to AWS Lambda\ntesting_locally = False\nverbose = False\n\n\nclass CWLogs(objec... | python | edit | 1 | 2 | apache-2.0 | 8db7072cef4c5ddbf408cdf1740e926f4d78747b | andrewdefilippis/aws-lambda | Functions/echo-python/lambda_function.py | rejected_duplicate | Near-duplicate of sample 3457 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport subprocess\nimport sys\n\n\ndef test_wcsapi_extension(tmpdir):\n #... | python | edit | 1 | 2 | bsd-3-clause | 3ea9a14cdc4e19595ae8b14667d86ae42ba3d58c | dhomeier/astropy,dhomeier/astropy,StuartLittlefair/astropy,joergdietrich/astropy,astropy/astropy,kelle/astropy,mhvk/astropy,stargaser/astropy,larrybradley/astropy,kelle/astropy,kelle/astropy,dhomeier/astropy,mhvk/astropy,joergdietrich/astropy,kelle/astropy,mhvk/astropy,astropy/astropy,saimn/astropy,MSeifert04/astropy,D... | astropy/wcs/tests/extension/test_extension.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.utils import six\nfrom django.http import StreamingHttpResponse\n\n\ndef export_csv_response(queryset, fields, name='export.csv'):\n response = StreamingHttpResponse(export_csv(queryset, fields),\n ... | python | edit | 1 | 6 | mit | eae216cc2d1bbe6e1c1aab1c4cf53d57b29b057c | LilithWittmann/froide,catcosmo/froide,fin/froide,stefanw/froide,catcosmo/froide,catcosmo/froide,ryankanno/froide,catcosmo/froide,catcosmo/froide,ryankanno/froide,okfse/froide,fin/froide,CodeforHawaii/froide,CodeforHawaii/froide,okfse/froide,stefanw/froide,stefanw/froide,LilithWittmann/froide,okfse/froide,ryankanno/froi... | froide/helper/csv_utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.test import TestCase\nfrom django.core.urlresolvers import reverse\nimport unittest\n\n\nclass ApiIntegrationTestCase(TestCase):\n\n def setUp(self):\n super(ApiIntegrationTestCase, self).setUp()\n self.api_url ... | python | edit | 3 | 1 | bsd-3-clause | 5de08e3b7be029a3a10dab9e4a259b046488d4af | Reinaesaya/OUIRL-ChatBot,Gustavo6046/ChatterBot,maclogan/VirtualPenPal,davizucon/ChatterBot,gunthercox/ChatterBot,Reinaesaya/OUIRL-ChatBot,vkosuri/ChatterBot | examples/django_app/tests/test_integration.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import division\n\nimport numpy as NP\nimport pylab as PL\nfrom mpl_toolkits.axes_grid1 import make_axes_locatable\n\n\ndef centers2edges(x):\n \"\"\"\n Given the array of (assumed) uniformly spaced coordinate centers\... | python | edit | 1 | 1 | mit | 493e6e96795fa812a6a3890ffde8004a2153cb75 | butala/pyrsss | util/plot.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nWSGI config for kolibri project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/\n\"\"\"\nimpo... | python | edit | 1 | 0 | mit | 702fabfc96b3b07efb4d5c30a6807031b803a551 | indirectlylit/kolibri,learningequality/kolibri,learningequality/kolibri,indirectlylit/kolibri,learningequality/kolibri,mrpau/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,mrpau/kolibri,mrpau/kolibri | kolibri/deployment/default/wsgi.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.