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\nfrom setuptools import setup\n\nwith open('README.md') as desc:\n long_description = desc.read()\nsetup(name='beets-check',\n version='0.9.0-beta.2',\n description='beets plugin verifying file integrity with checksums',\n ...
python
edit
1
0
mit
5d3910aa452e58da3d1d0dea822151485380339b
geigerzaehler/beets-check
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nversion = '0.1'\n\nsetup(name='ramp',\n version=version,\n description=\"Rapid machine learning prototyping\",\n long_description=open(\"README.md\").read(),\n classifiers=[\n 'Li...
python
edit
1
0
mit
5f0f0a75b380392b6e15acfcf46b30853dd2fb7b
kvh/ramp
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='lace',\n version='0.1.1',\n description='Neural Learning to Rank using Chainer',\n url='https://github.com/rjagerman/lace',\n download_url = 'https://github.com/rjagerman/lace/ar...
python
edit
1
0
mit
8e4248cc73e4c4f1531c626dfda688224045c148
rjagerman/shoelace
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nlong_description = open('README.md').read()\n\nsetup(\n name=\"django-mediumeditor\",\n version='0.1.3',\n packages=[\"mediumeditor\"],\n include_package_data=True,\n description=\"Medium Edito...
python
edit
1
0
mit
06d4d1a44b6a9006546a86999b0a0f2364f68c87
g3rd/django-mediumeditor,g3rd/django-mediumeditor
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nfrom setuptools import setup\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\ntwisted_deps = ['twisted']\nscapy_d...
python
edit
1
1
apache-2.0
c7dd9141f2af03526a7a16a9e58db295127088c9
opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha,opencord/voltha
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport os\nimport setuptools\n\n\ndef read_requires(base):\n path = os.path.join('tools', base)\n requires = []\n if not os.path.isfile(path):\n return requires\n with open(path, 'rb') as h:\n ...
python
edit
1
4
apache-2.0
da68d64b91bb97e0a6025fe7eed650f8608d9f03
varunarya10/taskflow,pombredanne/taskflow-1,citrix-openstack-build/taskflow,openstack/taskflow,jessicalucci/TaskManagement,jessicalucci/TaskManagement,varunarya10/taskflow,junneyang/taskflow,openstack/taskflow,jimbobhickville/taskflow,junneyang/taskflow,citrix-openstack-build/taskflow,jimbobhickville/taskflow,pombredan...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n\tname = 'django-test-addons',\n\tpackages = ['test_addons'],\n\tversion = '0.3.5',\n\tdescription = 'Library to provide support for testing multiple database system like Mongo, Redis, Neo4j along...
python
edit
1
0
mit
0f97e1427cf86cab4d53f613eb440c1cf4426e6d
hspandher/django-test-addons
setup.py
rejected_duplicate
Near-duplicate of sample 1201
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (C) Ivan Kravets <<EMAIL>>\n# See LICENSE for details.\n\nfrom setuptools import find_packages, setup\n\nfrom platformio import (__author__, __description__, __email__, __license__,\n __title__, __url__, _...
python
edit
1
0
apache-2.0
c4be964b9645261cebb142924288be7fad295a6d
platformio/platformio-core,mplewis/platformio,eiginn/platformio,awong1900/platformio,dkuku/platformio,bkudria/platformio,bkudria/platformio,aphelps/platformio,TimJay/platformio,mseroczynski/platformio,awong1900/platformio,awong1900/platformio,platformio/platformio-core,bkudria/platformio,jrobeson/platformio,platformio/...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name=\"pyslicer\",\n version=\"0.1.1\",\n author=\"SlicingDice LLC\",\n author_ema...
python
edit
1
1
mit
07ca7b02bebc9d4baf47f8b341a6ced625d61462
SlicingDice/slicingdice-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nCLASSIFIERS = ['Development Status :: 4 - Beta',\n 'Intended Audience :: Developers',\n 'License :: OSI Approved :: BSD License',\n 'Operating System :: OS Independent',\n ...
python
edit
1
0
bsd-3-clause
a2d36b09f2fd19f6a368fa711631b09489f12cf6
gmr/tornado-aws,gmr/tornado-aws
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nconfig = {\n 'description': \"\"\"MiniCPS is a lightweight simulator for accurate network\n traffic in an industrial control system...
python
edit
1
0
mit
7517fc46387ee998ab3b517ca38e8c003c431a5d
remmihsorp/minicps,scy-phy/minicps,scy-phy/minicps,remmihsorp/minicps
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport setuptools\n\nfrom setuptools import setup\n\nwith open('README.md', encoding='utf-8') as f:\n long_description = f.read()\n\nsetup(name='cleanco',\n description='Python library to process company nam...
python
edit
3
0
mit
e6666f1d6dec536b70ea9e69011983587e853149
psolin/cleanco
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import Extension, setup\nfrom Cython.Build import cythonize\nfrom sys import platform\n# from numpy import get_include\n\nfrom distutils.sysconfig import get_config_vars\nimport os\n\n(opt,) = get_config_vars('OPT')\nif opt:...
python
edit
1
0
mit
a5425fb9b165c875b02ee9fb5130441bca048251
jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal,jr-garcia/cyCGkit_minimal
setup.py
rejected_duplicate
Near-duplicate of sample 16020
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"colorise module setup script for distribution.\"\"\"\n\nfrom setuptools import setup\nimport os\n\n\ndef get_version(filename):\n with open(filename) as fh:\n for line in fh:\n if line.startswith('__version__'):\n...
python
edit
1
3
bsd-3-clause
89b5c6da51ad7e9b7a1775cfa84fe0a6e02f6eab
MisanthropicBit/colorise
setup.py
rejected_duplicate
Near-duplicate of sample 5646
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Admin for event-related models.\"\"\"\n\nimport wtforms\n\nfrom pygotham.admin.utils import model_view\nfrom pygotham.events import models\n\n__all__ = ('EventModelView',)\n\nCATEGORY = 'Events'\n\n\nEventModelView = model_view(\n ...
python
edit
1
0
bsd-3-clause
72b660a9d71e1b29aa10a704e918c0c49dde8d86
pathunstrom/pygotham,pathunstrom/pygotham,pathunstrom/pygotham,djds23/pygotham-1,PyGotham/pygotham,pathunstrom/pygotham,PyGotham/pygotham,djds23/pygotham-1,djds23/pygotham-1,djds23/pygotham-1,djds23/pygotham-1,pathunstrom/pygotham,PyGotham/pygotham,PyGotham/pygotham,PyGotham/pygotham
pygotham/admin/events.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(name=\"gimlet\",\n version='0.1',\n description='Simple High-Performance WSGI Sessions',\n long_description='',\n classifiers=[\n 'License :: OSI Approved :: MIT License',...
python
edit
1
0
mit
e0b5949d76f9b89786d375c1fa4c52048c559370
storborg/gimlet
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom distutils.core import Command\nimport os\nimport sys\nimport codecs\n\n\nclass TestCommand(Command):\n description = \"Run tests\"\n user_options = []\n\n def initialize_options(self):\n pa...
python
edit
4
1
mit
3eaa26f609c9fd2f477f1b97af632cb4ffc3a8f1
hermanschaaf/mafan
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\n# Load in babel support, if available.\ntry:\n from babel.messages import frontend as babel\n cmdclass = {\"compile_catalog\": babel.compile_catalog,\n \"extract_messages\": babel.e...
python
edit
1
0
bsd-3-clause
c01d29b4b2839976fd457a1e950ed5800150b315
recklessromeo/django-money,AlexRiina/django-money,iXioN/django-money,iXioN/django-money,rescale/django-money,recklessromeo/django-money,pjdelport/django-money,tsouvarev/django-money,tsouvarev/django-money
setup.py
rejected_duplicate
Near-duplicate of sample 14858
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport setuptools\n\nsetuptools.setup(\n setup_requires=['pbr>=1.3', 'setuptools>=17.1'],\n pbr=True)\n\n```\n\nApply this change: Add python_requires to help pip" }, { "role": "assistant", "content"...
python
edit
1
0
bsd-2-clause
9ad0dd8a1fac2e03be1fe3b44eb3b198994586ad
testing-cabal/mock
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport ast\nimport os\nimport re\nimport sys\n\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\n\n# parse version from locust/__init__.py\n_version_re = re.comp...
python
edit
4
0
mit
4868c9a6e976612ceed26c166c3dea7fd58d0d35
locustio/locust,locustio/locust,mbeacom/locust,mbeacom/locust,locustio/locust,mbeacom/locust,locustio/locust,mbeacom/locust
setup.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\nfrom distutils.core import setup\n\nsetup(name = \"f.lux indicator applet\",\n version = \"1.1.8\",\n description = \"f.lux indicator applet - better lighting for your computer\",\n author = \"Kilian Valkho...
python
edit
1
0
mit
935a44b454d83452e302130114c1f40d934bf2ed
NHellFire/f.lux-indicator-applet,esmail/f.lux-indicator-applet
setup.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 insta...
python
edit
1
0
mit
67ae21fea2db5e0a02df6afcf282d44659802c54
Storj/downstream-farmer
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import find_packages, setup\n\n\nsetup(\n name='blanc-basic-events',\n version='0.3.2',\n description='Blanc Basic Events for Django',\n long_description=open('README.rst').read(),\n url...
python
edit
1
0
bsd-3-clause
375c9ca0a9abb04408282cad14071df6215042b2
blancltd/blanc-basic-events
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nfrom setuptools import setup\n\nfrom doxhooks import __version__\n\n\nwith open(\"README.rst\") as readme:\n lines = list(readme)\n\nfor line_no, line in enumerate(lines):\n if line.startswith(\"Doxhooks helps ...
python
edit
1
0
mit
8b5f20156ecd5bf9af25654e1f605b92c2496349
nre/Doxhooks,nre/Doxhooks,nre/Doxhooks
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport json\n\ndef read_from_package():\n with open('package.json', 'r') as f:\n pkg = json.load(f)\n return dict(version=pkg['version'],\n description=pkg['de...
python
edit
1
0
mit
b76928a82021848274cf29f29d73ab1a15eefc00
matze/clib-doc
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name='rs_limits',\n version='0.5.1',\n author='Kevin L. Mitchell',\n author_emai...
python
edit
1
1
apache-2.0
1e2218469428fe974dfe0c0403a8c6fda8417321
klmitch/rs_limits
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, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name='b2fuse',\n version=1.3,\n description...
python
edit
1
1
mit
20290fd92c6298234ea007479f875d08239594a3
sondree/b2_fuse,sondree/b2_fuse
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# :coding: utf-8\n# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips\n# :license: See LICENSE.txt.\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(\n name='Segue',\n ...
python
edit
1
0
apache-2.0
c4cafa9ac3e737d5bab17548b7248258f72a2172
4degrees/segue
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\npackages = [\n 'cortex', 'cortex._lib', 'cortex.built_ins', 'cortex._lib.data',\n 'cortex.built_ins.datasets', 'cortex.built_ins.models',\n 'cortex.built_ins.networks', 'cortex.built_ins.transforms'\...
python
edit
1
0
bsd-3-clause
7139bbd8b0461f1549508206e7caf29b6fe85254
rdevon/cortex,rdevon/cortex
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import find_packages, setup\n\nROOT = os.path.abspath(os.path.dirname(__file__))\n\nsetup(\n name = 'django-hookbox',\n version = '0.3',\n description = 'Integrate hookbox with Django.',\n long_descrip...
python
edit
1
0
bsd-3-clause
41212397b89c383824a217a8db235756be27fdcc
duaneg/django-hookbox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom codecs import open # To use a consistent encoding\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\n# Get the long description from the relevant file\n# with open(path....
python
edit
3
0
mit
0729475711bd9200d2c23a8ecb8c010c72a68fe3
albert12132/templar,albert12132/templar
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\n\nfrom setuptools import setup, find_packages\n\n\n# Use the docstring of the __init__ file to be the description\nshort_description = \" \".join(__import__(\"cumulus\").__doc__.splitlines()).strip()\n\n# U...
python
edit
1
0
bsd-3-clause
8c43908236c33d0fea6f94de9f59f346d6b74b2b
bennylope/django-cumulus,mandx/django-cumulus,CoachLogix/django-cumulus,absoludity/django-cumulus,elsmorian/django-cumulus,ferrix/django-cumulus,rizumu/django-cumulus,bennylope/django-cumulus,absoludity/django-cumulus,django-cumulus/django-cumulus,ImaginaryLandscape/django-cumulus,elsmorian/django-cumulus
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name=\"pptrees\",\n version=\"0.0.2\",\n description=\"Parallel Prefix tree generation library\",\n url=\"https://github.com/tdene/synth_opt_adders\",\n author=\"tdene\",\n author_e...
python
edit
1
0
apache-2.0
c4bcbc49fa1418c085b0b10a836d42e5c69faa01
tdene/synth_opt_adders
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nfrom setuptools import setup, find_packages\n\nrequires = [\n \"equations (>=1.0,<2.0)\",\n \"discord.py (>=1.0,<2.0)\",\n \"sqlalchemy (>=1.2,<2.0)\",\n \"psycopg2 (>=2.7,<3.0)\",\n]\n\ndependency_link...
python
edit
1
0
mit
6d3b21e72ce7188d6e6239d1d4112d4e1b59a170
b-hodges/dice-bot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n# encoding: UTF-8\n\n\"\"\"Build tar.gz for pygubu\n\nNeeded packages to run (using Debian/Ubuntu package names):\n\n python3-tk\n\"\"\"\nimport os\n\nimport pygubu\n\ntry:\n from setuptools import setup\nexcep...
python
edit
1
0
mit
b8028d47d52caed5b6c714fe0abe0fa433433bfc
alejandroautalan/pygubu,alejandroautalan/pygubu
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Lint as: python3\n\n# Copyright 2020 Google LLC.\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
a16f7e244546c4ef1c147dec033bb58c37d00a46
google/tensorflow-recorder
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport os.path\nimport sys\n\nfrom setuptools import find_packages, setup\n\nrequirements = ['parse>=1.1.5']\nmajor, minor = sys.version_info[:2]\nif major == 2 and minor < 7:\n requirements.append('argparse')\nif major == 2 a...
python
edit
3
0
bsd-2-clause
9ddc8bba14ff52348e43238d848371d23b9e1b9a
spacediver/behave,vrutkovs/behave,tokunbo/behave-parallel,Abdoctor/behave,mzcity123/behave,connorsml/behave,memee/behave,jenisys/behave,mzcity123/behave,connorsml/behave,KevinOrtman/behave,Gimpneek/behave,joshal/behave,charleswhchan/behave,tokunbo/behave-parallel,spacediver/behave,KevinMarkVI/behave-parallel,hugeinc/be...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n\nfrom setuptools import setup, find_packages\n\n\ndef included_package(p):\n\treturn p.startswith('spacq.') or p == 'spacq'\n\n\nsetup(\n\tname='SpanishAcquisition',\n\tversion='2.0.0a1',\n\tauthor='Dmitri Iouchtche...
python
edit
1
2
bsd-2-clause
d95827a4a031ac54b31b9ff0997a8248456e9d50
ghwatson/SpanishAcquisitionIQC,ghwatson/SpanishAcquisitionIQC
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom git_version import git_version\n\n\nsetup(\n name='python-ev3dev',\n version=git_version(),\n description='Python language bindings for ev3dev',\n author='Ralph Hempel',\n author_email='<EMA...
python
edit
1
0
mit
b03a50e8500ebdccfbf615e87d56d9c9f8d009b6
dwalton76/ev3dev-lang-python,ensonic/ev3dev-lang-python,dwalton76/ev3dev-lang-python,ensonic/ev3dev-lang-python-1,rhempel/ev3dev-lang-python,ddemidov/ev3dev-lang-python-1
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\n\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(\n name='svglue',\n ve...
python
edit
1
1
mit
a9a582f5c1ee852ac23e631595d8cfa4a6575a8c
ticktronaut/svglue
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='tangled.session',\n version='0.1a3.dev0',\n description='Tangled session integration',\n long_description=open('README.rst').read(),\n url='http://tangledframework.org/',\n ...
python
edit
1
0
mit
704721b8bcfa54591325f7a88b45b3b4b7929cd0
TangledWeb/tangled.session
setup.py
rejected_duplicate
Near-duplicate of sample 11081
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nversion = '0.2.1'\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name='django-templatepages',\n version = version,\n ...
python
edit
1
1
bsd-3-clause
fabbfe43cc7d0b8d1158be66bcda4546ed258668
bryanchow/django-templatepages
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom os import path\nfrom setuptools import setup\n\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 type in the README file...
python
edit
1
1
mit
77d6e1fb12d88559074b87cca9a6b9492a498cc6
andrasmaroy/pconf
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='couchforms',\n version='0.0.4',\n description='Dimagi Couch Forms for Django',\n author='Dimagi',\n author_email='<EMAIL>',\n url='http...
python
edit
1
0
bsd-3-clause
09fee5dc38920d44ff9d5d44f7394d79460a9fc0
puttarajubr/commcare-hq,SEL-Columbia/commcare-hq,SEL-Columbia/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,SE...
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=\"cybox\",\n version=\"1.0b1\",\n author=\"CybOX Project, MITRE Corporation\",\n author_email=\"<EMAIL>\",\n description=\"An API for parsing and generating CybOX c...
python
edit
1
0
bsd-3-clause
d86071ea7b359dcdccc226bfdb6fc9f29e7eeba5
CybOXProject/python-cybox
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nwith open(os.path.join(os.path.dirname(__file__), 'VERSION')) as v_file:\n version = v_file.read().strip()\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md')) as re...
python
edit
1
0
mit
d547d45b7bb8915504b25efc508976cbb0257604
penzance/canvas_python_sdk
setup.py
rejected_duplicate
Near-duplicate of sample 14841
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\n\n\"\"\"\nTake evt3 file and use region files to subtract off sources that are already known - image will have lots of holes\nGoals by Friday 6/31 - Get script working for one image at a time\n\nbelow = code used by Giacomo to create filt...
python
edit
1
0
bsd-3-clause
0762dbb9b0a43eb6bd01f43d88ac990e90da2303
nitikayad96/chandra_suli
chandra_suli/filter_reg.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.txt')).read()\nCHANGES = open(os.path.join(here, 'CHANGES.txt')).read()\n\nrequires = [\...
python
edit
1
0
bsd-3-clause
c7611391de40d2ac296f3a8dcb1579400eac0bdf
ucla/PushHubCore
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport mock\nimport unittest\n\nimport tests.mocks as mocks\n\nfrom bumblebee.modules.traffic import Module\n\nclass TestTrafficModule(unittest.TestCase):\n def setUp(self):\n mocks.setup_test(self, Module)\n\n def test_default...
python
edit
3
1
mit
bb2c92732ee7cf834d937025a03c87d7ee5bc343
tobi-wan-kenobi/bumblebee-status,tobi-wan-kenobi/bumblebee-status
tests/modules/test_traffic.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"Utility functions for PyTips.\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\nfrom __future__ import absolute_import\nfrom __future__ import division\n\n\nimport html5lib...
python
edit
1
2
isc
37bccb59874dd2e50a0ace482461e156ee5b7240
gthank/pytips,gthank/pytips,gthank/pytips,gthank/pytips
pytips/util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, PEP420PackageFinder\n\n\nsetup(\n name='tangled.web',\n version='1.0a11.dev0',\n description='RESTful Web Framework',\n long_description=open('README.rst').read(),\n url='http://tangledframework....
python
edit
1
0
mit
d0212aea443d6adb8e0a1435f53066973c765782
TangledWeb/tangled.web
setup.py
rejected_duplicate
Near-duplicate of sample 14978
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport sys\nfrom sense_hat import SenseHat\n#add the project folder to pythpath\nsys.path.append('../../')\n\nfrom library.components.SensorModule import SensorModule as Sensor\nfrom library.components.MetaData im...
python
edit
1
1
mit
3bf918d7c303371651e9e9890576dbb5a827629b
OpenSpaceProgram/pyOSP,OpenSpaceProgram/pyOSP
library/sensors/SensePressure.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom .testing import *\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\n\nADMINS = (\n ('CLA', '<EMAIL>'),\n)\n\nMANAGERS = ADMINS\n\nINSTALLED_APPS += ('django_jenkins',)\n\nJENKINS_TASKS = (\n 'django_jenkins.tasks.with_coverage...
python
edit
3
0
mit
4ba9bc552e8d6cec598718c688cf5989769876c2
ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend
cla_backend/settings/jenkins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='webcomix',\n version=1.3,\n description='Webcomic downloader',\n long_description='webcomix is a webcomic downloader that can additionally create a .cbz file once downloaded.',\n ...
python
edit
1
0
mit
8b7d58c576fbeaa5391b968a82cc3ecd1ef18b66
J-CPelletier/webcomix,J-CPelletier/WebComicToCBZ,J-CPelletier/webcomix
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport matplotlib.pyplot as plt\nfrom matplotlib.pyplot import triplot\nfrom mpl_toolkits.mplot3d import Axes3D\n\nfrom pycrest.mesh import Mesh2d\n\n\ndef plot_triangulation(tri: Mesh2d, standalone=True, *args, **kwargs):\n figure = plt...
python
edit
3
3
mit
e852a210a84e91369752ef8fcfbbf52c27b3db59
Andlon/crest,Andlon/crest,Andlon/crest
pycrest/visualize.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\n\nfrom PyQt5.QtGui import QIcon\n\nfrom PyQt5.QtWidgets import QApplication\n\nfrom prismriver.qt.window import MainWindow\nfrom prismriver import util\n\n\ndef run():\n util.init_logging(False, True, None)\n\n app = QAppl...
python
edit
1
1
mit
1b0253f09196d3824481451f8daee6b486825fa6
anlar/prismriver-lyrics,anlar/prismriver-lyrics,anlar/prismriver,anlar/prismriver
prismriver/qt/gui.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nUnittests for csvnc module\n\n\"\"\"\n\nimport os\nimport pytest\nfrom csvnc import csvnc\n\n\ndef test_generated_file_should_have_extention_nc():\n data_file = 'data.csv'\n assert 'data.nc' == csvnc.new...
python
edit
4
1
mit
ba9a758161b6863704b2be7b28f6638e2191d8dd
qba73/nc
test/test_nc.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\ndef pytest_runtest_logreport(report):\n \"\"\"Overwrite report by removing any captured stderr.\"\"\"\n # print(\"PLUGIN SAYS -> report -> {0}\".format(report))\n # print(\"PLUGIN SAYS -> report.sections ->...
python
edit
1
3
mit
99764a2d1f99cd6a2b61b35c4a262d730a26ba1f
hamzasheikh/pytest-hidecaptured
pytest_hidecaptured.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__author__ = 'Casey Dunham'\n__version__ = \"0.1.0\"\n\n\nimport urllib\nimport urllib2\nimport json\n\n\nPWNED_API_URL = \"https://haveibeenpwned.com/api/breachedaccount/%s\"\n\n\nclass InvalidEmail(Exception):\n pass\n\n\ndef check(ema...
python
edit
4
3
mit
955d39c4ae1190b9bc4a0c7db9aa914a08acf8d5
caseydunham/PwnedCheck
pwnedcheck/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django_filters import FilterSet, CharFilter, IsoDateTimeFilter\nfrom . import models\n\n\nclass EventFilterSet(FilterSet):\n class Meta:\n model = models.Event\n fields = (\n 'title',\n 'venue',\n...
python
edit
1
0
mit
c8828d563a3db96a52544c6bbe4ca219efd364c5
sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer,sussexstudent/falmer
falmer/events/filters.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom netmiko.ubiquiti.edge_ssh import UbiquitiEdgeSSH\nfrom netmiko.ubiquiti.edgerouter_ssh import UbiquitiEdgeRouterSSH\nfrom netmiko.ubiquiti.unifiswitch_ssh import UbiquitiUnifiSwitchSSH\n\n__all__ = [\n \"UbiquitiEdgeRouterSSH\",\n ...
python
edit
1
0
mit
45501645e06743bd6341cfd6d2573f6c5f36d094
ktbyers/netmiko,ktbyers/netmiko
netmiko/ubiquiti/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom discord.ext import commands\nfrom .utils import checks\nimport asyncio\nimport discord\n\nimport web.wsgi\nfrom django.utils import timezone\nfrom django.db import models\nfrom django.utils import timezone\nfrom gaming.models import Di...
python
edit
14
8
mit
e1092caacec94bd016283b8452ad4399dba0f231
bsquidwrd/Squid-Bot,bsquidwrd/Squid-Bot
cogs/gaming_tasks.py
rejected_lint
Too many lint violations: 14
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport threading\nimport socket\nimport SocketServer\n\nmessages = []\n\n\nclass ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler):\n\n def handle(self):\n try:\n while True:\n data = self.reques...
python
edit
2
6
mit
08aefdf3e5a991293ad9ce1cc7f1112a01e4506d
Tribler/decentral-market
trade_server.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nswitch_failure_rate = 0.05\nswitch_recovery_rate = 0.05\ndataplane_drop_rate = 0.0\ndataplane_delay_rate = 0.0\ncontrolplane_block_rate = 0.0\ncontrolplane_unblock_rate = 1.0\nofp_message_receipt_rate = 1.0\nlink_failure_rate = 0.05\nlink_r...
python
edit
1
0
apache-2.0
7eedd155f9f6e6361bdfc6fe84311ae38574d3fe
jmiserez/sts,ucb-sts/sts,jmiserez/sts,ucb-sts/sts
config/fuzzer_params.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2014 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\nfrom telemetry.page import test_expectations\n\n# Valid expectation condi...
python
edit
1
1
bsd-3-clause
c1f8a586e4e4dcad16c0fc9261f61f93b2488830
M4sse/chromium.src,Chilledheart/chromium,ondra-novak/chromium.src,jaruba/chromium.src,ltilve/chromium,littlstar/chromium.src,ltilve/chromium,dushu1203/chromium.src,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,crosswal...
content/test/gpu/gpu_tests/pixel_expectations.py
rejected_duplicate
Near-duplicate of sample 3059
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# vim: sw=4 ts=4 sts expandtab smarttab\n# HXN step-scan configuration\n\nimport hxntools.scans\nfrom bluesky.global_state import get_gs\n\ngs = get_gs()\n\nhxntools.scans.setup()\nct = hxntools.scans.count\nascan = hxntools.scans.absolute_...
python
edit
12
0
bsd-2-clause
9a3b0e2fc81187a0ec91230552552805dc6593e4
NSLS-II-HXN/ipython_ophyd,NSLS-II-HXN/ipython_ophyd
profile_collection/startup/50-scans.py
rejected_lint
Too many lint violations: 12
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport scipy.interpolate\nimport numpy as np\n\nimport naturalneighbor\n\n\ndef test_output_size_matches_scipy():\n points = np.random.rand(10, 3)\n values = np.random.rand(10)\n\n grid_ranges = [\n [0, 4, 0.6], # step isn'...
python
edit
1
1
mit
06356979dd377137c77139c45a0b40deea3f5b27
innolitics/natural-neighbor-interpolation,innolitics/natural-neighbor-interpolation,innolitics/natural-neighbor-interpolation
tests/test_api.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom buffer.response import ResponseObject\n\nPATHS = {\n 'GET_PROFILES': 'profiles.json',\n 'GET_PROFILE': 'profiles/%s.json',\n 'GET_SCHEDULES': 'profiles/%s/schedules.json',\n 'UPDATE_SCHEDULES': 'profiles/%s/schedules...
python
edit
1
4
mit
34c85636d11bc156a4ce4e5956ed1a19fe7f6f1f
vtemian/buffpy,bufferapp/buffer-python
buffer/models/profile.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport tensorflow as tf\nimport driving_data\nimport model\n\nsess = tf.InteractiveSession()\n\nloss = tf.reduce_mean(tf.square(tf.sub(model.y_, model.y)))\ntrain_step = tf.train.GradientDescentOptimizer(0.01).minimize(loss)\nsess.run(tf.in...
python
edit
1
0
apache-2.0
c4406ffae02a4ea87a139b1d67d98d9c0c7a468b
tmaila/autopilot,tmaila/autopilot,SullyChen/Autopilot-TensorFlow,tmaila/autopilot
train.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2017 Edgewall Software\n# All rights reserved.\n#\n# This software is licensed as described in the file COPYING, which\n# you should have received as part of this distribution. The terms\n# are al...
python
edit
1
2
bsd-3-clause
5adfc507d00da4b38486f3bf80880b91828d673e
rbaumg/trac,rbaumg/trac,rbaumg/trac,rbaumg/trac
trac/upgrades/tests/db44.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\nimport os\nimport json\n\nimport TileStache\n\nif 'AWS_ACCESS_KEY_ID' in os.environ and \\\n 'AWS_SECRET_ACCESS_KEY' in os.environ:\n cache = {\n \"name\": \"S3\",\n \"bucket\": \"telostats-til...
python
edit
4
0
bsd-3-clause
16c372c905f44608a1d1ccabb949ad9cb736dae6
idan/telostats-tiles
tileserver.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nimport boto3\n\nBUCKET_NAME = 'mitLookit'\n\ndef get_all_study_attachments(study_uuid):\n s3 = boto3.resource('s3')\n\n bucket = s3.Bucket(BUCKET_NAME)\n study_files = []\n for key in bucket.objects.filter(Prefix=f'v...
python
edit
2
1
apache-2.0
60ef934e3bef7c00fc2d1823901babb665a4888f
CenterForOpenScience/lookit-api,pattisdr/lookit-api,pattisdr/lookit-api,pattisdr/lookit-api,CenterForOpenScience/lookit-api,CenterForOpenScience/lookit-api
get_study_attachments.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import template\nregister = template.Library()\n\nfrom .. import sr as sr_func\n\n@register.simple_tag(name='sr')\ndef sr_tag(key, *args, **kwargs):\n return sr_func(key, *args, **kwargs)\n\ntry:\n from django_jinja.base i...
python
edit
1
1
bsd-3-clause
2d7c286321683a9d3241d0e923f1f182adfd84be
jespino/django-sr
sr/templatetags/sr.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom urllib.parse import urlparse\nfrom django.db import models\nfrom django.urls import resolve, Resolver404\nfrom annotator_store.models import BaseAnnotation\nfrom djiffy.models import Canvas\nfrom winthrop.people.models import Person\n\...
python
edit
6
2
apache-2.0
13301dfe93bcdd44218166bdab1c7aeacd4e4a7c
Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django
winthrop/annotation/models.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom operator import attrgetter\nfrom .base import logger, DependentGenerator\n\n__all__ = ['ExtractAttribute']\n\n\nclass ExtractAttribute(DependentGenerator):\n \"\"\"\n Generator which produces items that are attributes extracted f...
python
edit
1
1
mit
d857c08ce1207c10aaec30878fc119ddacf44363
maxalbert/tohu
tohu/derived_generators.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Insert the demo into the codemirror site.\"\"\"\nfrom __future__ import print_function\n\nimport os\nimport fileinput\nimport shutil\n\nproselint_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))\n\ncode_mirror_path ...
python
edit
1
0
bsd-3-clause
058e2e75384052dcc2b90690cef695e4533eb854
jstewmon/proselint,amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint,amperser/proselint,jstewmon/proselint,jstewmon/proselint
scripts/insert_demo.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# vim:fileencoding=utf-8\n# License: Apache 2.0 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport sys\n\nfrom __init...
python
edit
1
2
apache-2.0
ba75572bd7de9a441cad72fe90d7ec233e9c1a15
kovidgoyal/html5-parser,kovidgoyal/html5-parser
test/adapt.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\n\ndef generate_tmp_file_path(tmpdir_factory,\n file_name_with_extension: str,\n tmp_dir_path: str = None) -> str:\n \"\"\"\n Generate file path rooted in a temporary dir...
python
edit
1
5
mit
a26dc400c479572be59bfe90d8e809d2e9e65a63
webyneter/python-humble-utils
python_humble_utils/pytest_commands.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom collections import OrderedDict\n\n\nclass BaseHandler:\n def __init__(self, file, file_name):\n self.file = file\n self.file_name = file_name\n self.info = OrderedDict()\n\n def read(self, offset, size):\n ...
python
edit
1
3
mit
045ead44ef69d6ebf2cb0dddf084762efcc62995
drx/rom-info
handlers/base_handler.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n__author__ = 'peter'\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nimport os\nBASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\n# Database\n# https://docs.djangoproject.com/en/1.7/ref/settings/#databases...
python
edit
1
0
mit
7d4b58da2fd5040052ce2d7be924f1fd34be4ee7
TuinfeesT/PicAxe
picaxe/local_settings_example.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nclass EnumWrapper:\n def __init__(self):\n self.registered_enums = {}\n\n def register_enum(self, enum_class):\n self.registered_enums[enum_class.__name__] = enum_class\n\n def _enum_to_dict(self, enum_...
python
edit
1
3
mit
d153696d44220523d072653b9ff0f0d01eef325f
leifdenby/django_enum_js
django_enum_js/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nameko.rpc import rpc, RpcProxy\n\n\nclass ScoreService(object):\n name = 'score_service'\n\n player_service = RpcProxy('players_service')\n\n @rpc\n def leaderboard(self):\n players = self.player_service.get_players...
python
edit
3
2
mit
64636185744a9a64b1b04fcd81ee32930bb145af
radekj/poke-battle,skooda/poke-battle
scores.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom typing import Dict, Any\n\n\nclass ServerAdapter:\n quiet = False\n\n def __init__(self, host: str='127.0.0.1', port: int=8080, **options) -> None:\n self.options = options\n self.host = host\n self.port = in...
python
edit
4
2
mit
6dcb33004c3775d707f362a6f2c8217c1d558f56
kobinpy/kobin,kobinpy/kobin,c-bata/kobin,c-bata/kobin
kobin/server_adapters.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom django import forms\n\nclass RawContent(models.Model):\n text = models.TextField(_('content'), b...
python
edit
3
1
bsd-3-clause
b7486b64cabc0ad4c022a520bb630fb88cb35e53
feincms/feincms,joshuajonah/feincms,pjdelport/feincms,feincms/feincms,matthiask/django-content-editor,joshuajonah/feincms,nickburlett/feincms,nickburlett/feincms,michaelkuty/feincms,mjl/feincms,joshuajonah/feincms,matthiask/django-content-editor,nickburlett/feincms,michaelkuty/feincms,matthiask/feincms2-content,nickbur...
feincms/content/raw/models.py
rejected_duplicate
Near-duplicate of sample 2629
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import *\n\nfrom shortwave.views import wave_list, wave_detail\n\n\nurlpatterns = patterns('',\n url(r'^$', wave_list, name='shortwave-wave-list'),\n url(r'^(?P<username>[-\\w]+)/$', wave_detail, name='s...
python
edit
5
0
bsd-3-clause
39ba5da2f6e80bc78ca061edb34c8a2dd7e9c199
benspaulding/django-shortwave
shortwave/urls.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"DJRivals database updater.\"\"\"\nfrom random import shuffle\nfrom time import localtime, sleep, strftime, time\n\nimport pop\nimport dj\nimport image\nimport html\n\n\ndef continuous():\n \"\"\"continuous() -> None\n\n Continuo...
python
edit
1
3
bsd-2-clause
1a271575d92a6d7df1bc7dedf346b29a778f2261
chingc/DJRivals,chingc/DJRivals
update.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport random\n\nfrom helga.plugins import command\n\n\nRESPONSES = [\n 'There is no hope for {thing}, {nick}',\n 'It looks ok to me...',\n 'Turning {thing} off and back on again',\n 'I really wish I could, but it looks past the...
python
edit
1
1
mit
70f5669bd0ec39bbb8e785b7306ef97b646c8aae
shaunduncan/helga-prod-fixer
helga_prod_fixer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.urls import path\n# Views\nfrom . import views\n\n# Application namespace\napp_name = 'video'\n\nurlpatterns = [\n path('<intvideoid>/', views.video_view, na...
python
edit
1
0
bsd-3-clause
3f41dc9ee418c76548f1d69482bc3117739697fe
Signbank/FinSL-signbank,Signbank/FinSL-signbank,Signbank/FinSL-signbank
signbank/video/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! coding: utf-8\n\nimport subprocess\nimport nose.tools as nt\nfrom tests import TestPortalAndino\n\n\nclass TestFileSizeLimit(TestPortalAndino.TestPortalAndino):\n\n @classmethod\n def setUpClass(cls):\n super(TestFileSizeLim...
python
edit
1
1
mit
c94f7e5f2c838c3fdd007229175da680de256b04
datosgobar/portal-andino,datosgobar/portal-andino
tests/configurations/nginx/tests_file_size_limit.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nVarious parser-related exceptions.\n\"\"\"\n\nclass ParseError(Exception):\n \"\"\"\n Raise this when some unrecoverable error happens while parsing serialized\n market data.\n \"\"\"\n pass\n\n```\n\nApply this chang...
python
edit
1
0
mit
6c645b69b91b6a29d4e8786c07e6438d16667415
gtaylor/EVE-Market-Data-Structures
emds/formats/exceptions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nReduced Gravity Shallow Water Model\nbased Matlab code by: Francois Primeau UC Irvine 2011\n\nKelsey Jordahl\n<EMAIL>\nTime-stamp: <Tue Apr 10 08:44:50 EDT 2012>\n\"\"\"\n\nfrom scipy.io.netcdf import netcdf_f...
python
edit
3
1
bsd-3-clause
955fd5b8525e7edd6477d5f74d7cbe7b743a127c
kjordahl/swm
wind_model.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nMisc utility functions.\n\"\"\"\n\nimport os.path\n\nfrom dotfiles.compat import islink, realpath\n\n\ndef compare_path(path1, path2):\n return (realpath_expanduser(path1) == realpath_expanduser(path2))\n\n\ndef realpath_expandus...
python
edit
1
2
isc
22b92437c1ae672297bed8567b335ef7da100103
aparente/Dotfiles,nilehmann/dotfiles-1,aparente/Dotfiles,aparente/Dotfiles,aparente/Dotfiles,Bklyn/dotfiles
dotfiles/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom kvs import CacheKvs\n\n\nclass Locker(object):\n \"\"\"\n locker for move the locker\n \"\"\"\n\n LOCKER_KEY = 'locker'\n EXPIRES = 5 # 5 sec\n\n def __init__(self, key=None):\n self.k...
python
edit
1
4
mit
b2b1c2b8543cae37990262b2a811a9b0f26327da
mapler/tuesday,mapler/tuesday,mapler/tuesday
arm/utils/locker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom alfred_db.models import User\nfrom flask import current_app\nfrom github import Github\nfrom requests_oauth2 import OAuth2\n\nfrom .database import db\n\n\ndef get_shell():\n try:\n from IPython.frontend.terminal.embed import...
python
edit
1
2
isc
52e15ab96718a491f805eee6f7130d4f02530940
alfredhq/alfred,alfredhq/alfred
alfred/helpers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nimport django.contrib.auth.models as auth\n\nclass User(auth.User):\n \"\"\"Model for representing users.\n\n It has few fields that aren't in the standard authentication user\n table, and are needed f...
python
edit
1
0
mit
07488d90549db4a47898bdea4ebd8687de638590
xfix/NextBoard
forum/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import patterns\n\n\nurlpatterns = patterns('fragdenstaat_de.views',\n (r'^presse/(?P<slug>[-\\w]+)/$', 'show_press', {}, 'fds-show_press'),\n)\n\n```\n\nApply this change: Add custom NRW redirect url" },...
python
edit
1
0
mit
78031ca1077a224d37c4f549cd8dac55edd4ed5f
okfse/fragastaten_se,catcosmo/fragdenstaat_de,okfse/fragdenstaat_de,okfse/fragastaten_se,catcosmo/fragdenstaat_de,okfse/fragdenstaat_de
fragdenstaat_de/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.shortcuts import render\n\nfrom foiidea.models import Article\n\n\ndef index(request):\n return render(request, 'foiidea/index.html', {\n 'object_list': Article.objects.all().select_related('public_bodies', 'foirequest...
python
edit
1
1
mit
185571932f518760bb3045347578caa98ef820f5
fin/froide,LilithWittmann/froide,stefanw/froide,CodeforHawaii/froide,CodeforHawaii/froide,ryankanno/froide,LilithWittmann/froide,stefanw/froide,okfse/froide,okfse/froide,ryankanno/froide,ryankanno/froide,ryankanno/froide,LilithWittmann/froide,stefanw/froide,fin/froide,CodeforHawaii/froide,catcosmo/froide,CodeforHawaii/...
froide/foiidea/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport socket\nimport serial.tools.list_ports\nimport serial\n\n\nports = list(serial.tools.list_ports.comports())\narduino_port = next((port for port in ports if \"Arduino\" in port.description), None)\n\narduino = serial.Serial(arduino_po...
python
edit
1
0
apache-2.0
81e8fb8dd4f9f3d3648e13e8509208710619c615
dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo,dmweis/DynamixelServo
IMU_program/PythonServer.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport subprocess\n\n\ndef env(image):\n \"\"\"Return environment of image. \"\"\"\n\n out = docker('inspect', '-f', '{{.Config.Env}}', image)\n return dict(map(lambda x: x.split('='), out.strip()[1:-1].split()))\n\n\nde...
python
edit
1
1
mit
8dba7306f73479fb3c0a102550f843e2fb9ea1c1
waltermoreira/serfnode,waltermoreira/serfnode,waltermoreira/serfnode
serfnode/handler/docker_utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom indra.sources import rlimsp\n\n\ndef test_simple_usage():\n rp = rlimsp.process_pmc('PMC3717945')\n stmts = rp.statements\n assert len(stmts) == 6, len(stmts)\n for s in stmts:\n assert len(s.evidence) == 1, \"Wrong ...
python
edit
1
2
bsd-2-clause
70a004f1455448aca08754084502d4d13b9cc9cd
johnbachman/indra,bgyori/indra,pvtodorov/indra,sorgerlab/belpy,johnbachman/belpy,sorgerlab/belpy,johnbachman/belpy,sorgerlab/indra,pvtodorov/indra,sorgerlab/indra,johnbachman/belpy,johnbachman/indra,johnbachman/indra,pvtodorov/indra,bgyori/indra,sorgerlab/belpy,pvtodorov/indra,bgyori/indra,sorgerlab/indra
indra/tests/test_rlimsp.py
rejected_duplicate
Near-duplicate of sample 14381
true