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\nimport sys\n\nclass Grid(object):\n\n def __init__(self):\n self.board = ['. '*10 for row in range(0,22)]\n self.score = 0\n self.lines_clear = 0\n\n def draw_board(self):\n\n for c...
python
edit
4
3
mit
215c6d714df53f6f52f2bf819f2a01f1c1eab294
mosegontar/learntris
learntris.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Write python code for the following: Add basic skeleton of the library, including the implementation of the IO thread system." }, { "role": "assistant", "content": "\"\"\"Provides an API wrapper around the Firmata wire protocol.\n\nThere are two major pieces to the ...
python
new_file
11
6
apache-2.0
32dae9d8af362c5ec00af069d70272a125aa02c5
google/firmata.py
firmata/__init__.py
rejected_lint
Too many lint violations: 11
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport zeit.website.interfaces\nfrom zeit.cms.section.interfaces import ISectionMarker\nimport grokcore.component as grok\nimport zeit.cms.checkout.interfaces\nimport zeit.cms.content.interfaces\nimport zope.interface\n\n\n@grok.subscribe(\...
python
edit
1
4
bsd-3-clause
1abfdea38e868d68c532961459d2b4cbef5a9b71
ZeitOnline/zeit.website
src/zeit/website/section.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django_mailer import constants\n\n\nclass QueueManager(models.Manager):\n use_for_related_fields = True\n\n def high_priority(self):\n \"\"\"\n Return a QuerySet of high priority queued...
python
edit
1
2
mit
befe47c35c68e17231e21febbf52041f245b8985
APSL/django-mailer-2,Giftovus/django-mailer-2,davidmarble/django-mailer-2,SmileyChris/django-mailer-2,kvh/django-mailer-2,maykinmedia/django-mailer-2,PSyton/django-mailer-2,APSL/django-mailer-2,colinhowe/django-mailer-2,rofrankel/django-mailer-2,maykinmedia/django-mailer-2,APSL/django-mailer-2,GreenLightGo/django-maile...
django_mailer/managers.py
rejected_duplicate
Near-duplicate of sample 16330
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport json\nimport sys\nfrom db import dbManager\n\n\n# insert an organism into a database table\ndef insert(args):\n if args.json:\n data = json.loads(args.json)\n else:\n data = json.load(args...
python
edit
3
3
apache-2.0
533d6294a47a4a974dfda1743e9fcd6146ede27f
PDX-Flamingo/codonpdx-python,PDX-Flamingo/codonpdx-python
codonpdx/insert.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. 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 cop...
python
edit
1
0
apache-2.0
73e28db67c8e2ea897790844dd3eb65e6c4c5c98
zgchizi/oppia-uc,kevinlee12/oppia,michaelWagner/oppia,oppia/oppia,kennho/oppia,jestapinski/oppia,prasanna08/oppia,prasanna08/oppia,amitdeutsch/oppia,DewarM/oppia,kingctan/oppia,rackstar17/oppia,sdulal/oppia,zgchizi/oppia-uc,prasanna08/oppia,kennho/oppia,prasanna08/oppia,AllanYangZhou/oppia,souravbadami/oppia,AllanYangZ...
extensions/rules/coord_two_dim.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom encdec import RNNEncoderDecoder\nfrom encdec import get_batch_iterator\nfrom encdec import parse_input\nfrom encdec import create_padded_batch\n\nfrom state import prototype_state\nfrom state import prototype_search_state\nfrom state i...
python
edit
9
0
bsd-3-clause
ba745d03c11d7478c4da5a68246ec9d461077365
sebastien-j/LV_groundhog,ZenDevelopmentSystems/GroundHog,kyunghyuncho/GroundHog,dmitriy-serdyuk/EncDecASR,OlafLee/LV_groundhog,ZenDevelopmentSystems/GroundHog,sebastien-j/LV_groundhog,lisa-groundhog/GroundHog,vseledkin/LV_groundhog,vseledkin/LV_groundhog,zerkh/GroundHog,hezhenghao/GroundHog,zerkh/GroundHog,OlafLee/LV_g...
experiments/rnnencdec/__init__.py
rejected_lint
Too many lint violations: 9
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport GlobalVars\n\n\nclass ModuleInterface(object):\n triggers = []\n acceptedTypes = ['PRIVMSG']\n help = '<no help defined (yet)>'\n\n def __init__(self):\n self.onStart()\n\n def onStart(self):\n pass\n\n ...
python
edit
1
3
mit
bf7f726821f2ac74e99fd5fd06729ea2becab0c9
HubbeKing/Hubbot_Twisted
ModuleInterface.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#-----------------------------------------------------------------------------\n# Copyright (C) 2012- The IPython Development Team\n#\n# Distributed under the terms of the BSD License. The full license is in\n# the file COPYING, distri...
python
edit
1
1
bsd-3-clause
ce85550a4bf080e629fbf1443d31a5305c0e0ac3
ipython/ipython,ipython/ipython
IPython/utils/tests/test_tempdir.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom __future__ import division, absolute_import, print_function\nfrom future.builtins import super\nfrom iris_sdk.models.base_resource import BaseResource\nfrom iris_sdk.models.data.import_tn_checker import ImportT...
python
edit
1
1
mit
358f31fcc8155e15f28f77aee6b434fad2a54935
bandwidthcom/python-bandwidth-iris
iris_sdk/models/import_tn_checker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nHierarchical visual models in C++ and Python\n============================================\n\nThe Glimpse project is a library for implementing hierarchical visual models\nin C++ and Python. The goal of this project is to allow a br...
python
edit
4
0
mit
31212104810f6c700ccc9561ac3d355b1894ef47
mthomure/glimpse-project,mthomure/glimpse-project,mthomure/glimpse-project
glimpse/__init__.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# encoding: utf-8\n\n\"\"\"\n.. codeauthor:: Tsuyoshi Hombashi <<EMAIL>>\n\"\"\"\n\nfrom __future__ import absolute_import, unicode_literals\n\nimport abc\n\nimport six\n\n\n@six.add_metaclass(abc.ABCMeta)\nclass ParserInterface(object):\n ...
python
edit
1
2
mit
2c4f32fbc407acb0b65ddc6fb71d192af74e740e
thombashi/tcconfig,thombashi/tcconfig
tcconfig/parser/_interface.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport doctest\n\nclass TestDoctest(unittest.TestCase):\n\n modules = ('passes',)\n\n def test_package(self):\n import pythran\n failed, _ = doctest.testmod(pythran)\n self.assertEqual(failed, 0)\...
python
edit
1
2
bsd-3-clause
bdc51bb7a71dba4a25fcded0d2758a9af5e15679
pbrunet/pythran,artas360/pythran,pbrunet/pythran,pbrunet/pythran,serge-sans-paille/pythran,artas360/pythran,hainm/pythran,serge-sans-paille/pythran,hainm/pythran,pombredanne/pythran,pombredanne/pythran,pombredanne/pythran,hainm/pythran,artas360/pythran
pythran/tests/test_doc.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nfrom collections import Counter\nimport re\n\ndef create_wordcloud( data, stopwords = [\"the\", \"a\", \"or\", \"tai\", \"and\", \"ja\", \"to\", \"on\", \...
python
edit
4
4
mit
9c7808b1f6571daaaf19dc1bfc57bf83cfb37bad
HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core,HIIT/hybra-core
hybra/wordclouds.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# San Pablo Bay\n# https://www.openstreetmap.org/way/43950409\nassert_has_feature(\n 14, 2623, 6318, 'water',\n { 'kind': 'bay', 'label_placement': True })\n\n# Sansum Narrows\n# https://www.openstreetmap.org/relation/1019862\nassert_...
python
edit
4
0
mit
b920b818f6b4a83ce39a34f4f1b3afe6f8002906
mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource
integration-test/400-bay-water.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n Script to move corrupt images to 'dirty' directory\n \n Reads list of images to move. Does not verify that images are corrupt - \n Simply moves to 'dirty' directory of appropriate data-release creating\n the required...
python
edit
1
0
apache-2.0
0e2275c0d2623a7ec62e7109d3ffdd859118ed9d
mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData,mpi2/PhenotypeData
external_tools/src/main/python/images/move_corrupt_images.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\n\nimport os\nimport sys\n\nsys.path.append(\"/usr/local/munki/munkilib\")\nimport FoundationPlist\nsys.path.append(\"/usr/local/sal\")\nimport utils\n\n\ndef main():\n ard_path = \"/Library/Preferences/com.apple.Remo...
python
edit
1
3
apache-2.0
4b193d9f0c46f91c5a58446e6443d8779e7ca5ce
sheagcraig/sal,sheagcraig/sal,salopensource/sal,sheagcraig/sal,salopensource/sal,salopensource/sal,sheagcraig/sal,salopensource/sal
server/plugins/ardinfo/scripts/ard_info.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n########################################################################\n# amara/xslt/tree/text_element.py\n\"\"\"\nImplementation of the `xsl:text` element.\n\"\"\"\n\nfrom amara.xslt.tree import xslt_element, content_model, attribute_typ...
python
edit
1
3
apache-2.0
12ecdd10f2d7974ede043584dadc3a6f1b9c8b8f
zepheira/amara,zepheira/amara,zepheira/amara,zepheira/amara,zepheira/amara,zepheira/amara
lib/xslt/tree/text_element.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nfrom tqdm import tqdm\nimport asyncio\ntry:\n import uvloop\n asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())\nexcept ImportError:\n pass\n\n\nasync def map_async(q, corof, iterable):\n for i in iterable:\n task...
python
edit
1
3
mit
5bbd288c40e3a2bc1ee791545d704452699334f3
mikethebeer/cr8,mfussenegger/cr8
cr8/aio.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport boto3\n\niam = boto3.client('iam')\n\n\ndef lambda_handler(event, context):\n details = event['check-item-detail']\n username = details['User Name (IAM or Root)']\n access_key_id = details['Access Key ID']\n exposed_locat...
python
edit
1
2
apache-2.0
e5a7c7a7c163047f35af6f6f06fa58ca71757aa2
robperc/Trusted-Advisor-Tools,robperc/Trusted-Advisor-Tools
ExposedAccessKeys/lambda_functions/delete_access_key_pair.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Computes the least-squares optimal Keplerian elements for a sequence of\n cartesian position observations.\n\"\"\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\n\n# convention:\n# a: semi-major axis\n# e: eccentricity\n# e...
python
edit
3
1
mit
45275a48fb434e6a9d895da03e290b84c52694f6
aerospaceresearch/orbitdeterminator
orbitdeterminator/kep_determination/least_squares.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nimport robot.errors\nfrom robotide.contrib.testrunner.runprofiles import PybotProfile\n\n\nclass TestPybotArgumentsValidation(unittest.TestCase):\n\n def setUp(self):\n self._profile = PybotProfile(lambda:0)\n\n ...
python
edit
1
2
apache-2.0
d6b3f4e0798f430761f51529ea61c368e1ce610a
HelioGuilherme66/RIDE,robotframework/RIDE,robotframework/RIDE,HelioGuilherme66/RIDE,HelioGuilherme66/RIDE,robotframework/RIDE,HelioGuilherme66/RIDE,robotframework/RIDE
utest/contrib/testrunner/test_pybot_arguments_validation.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import division # for Python 2.x compatibility\nimport numpy\n\nclass EuclidField(object):\n p = 5.0\n r = 30.0\n @staticmethod\n def dist(x, y):\n return numpy.hypot(x[0]-y[0], x[1]-y[1])\n def __init_...
python
edit
1
5
bsd-2-clause
4fb54ac1b06f368d788526a7400c377c715f594c
z-rui/pf
epf.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import BaseCommand\n\nfrom jabdaemon.client import OTRMeClient\nimport logging\n\nclass Command(BaseCommand):\n args = ''\n help = 'Start the JabDaemon'\n\n def handle(self, *args, **options):\n ...
python
edit
1
7
bsd-3-clause
181def887fb6604aa1cee63cc918d899270c45c3
mfa/djangodash2013,mfa/djangodash2013,mfa/djangodash2013
otrme/jabdaemon/management/commands/run_jabdaemon.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport sys\n\nfrom numpy.distutils.cpuinfo import cpu\nfrom numpy.distutils.fcompiler import FCompiler\n\nclass NAGFCompiler(FCompiler):\n\n compiler_type = 'nag'\n version_pattern = r'NAGWare Fortran 95 compiler Release (...
python
edit
2
2
bsd-3-clause
8cfbbe13d9a2c94529e2d2c06a8e154d9892c8c4
mingwpy/numpy,rmcgibbo/numpy,jakirkham/numpy,githubmlai/numpy,BabeNovelty/numpy,pizzathief/numpy,ogrisel/numpy,astrofrog/numpy,andsor/numpy,cowlicks/numpy,rhythmsosad/numpy,simongibbons/numpy,felipebetancur/numpy,stefanv/numpy,GrimDerp/numpy,CMartelLML/numpy,githubmlai/numpy,pyparallel/numpy,madphysicist/numpy,Dapid/nu...
numpy/distutils/fcompiler/nag.py
rejected_duplicate
Near-duplicate of sample 21440
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom modules import *\n\nimport re\nimport urllib2\nimport traceback\ntry:\n import simplejson as json\nexcept ImportError:\n import json\n\nfrom unidecode import unidecode\n\nfrom twitter import Twitter\nfrom bitly import Bitly\nfrom...
python
edit
3
5
mit
ff39d53b3892477ac7fa690471afbd3099cbd5bd
billyvg/piebot
modules/urlparser/__init__.py
rejected_duplicate
Near-duplicate of sample 2469
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\n\nimport sys\nfrom setuptools import setup\n\n_PY2 = sys.version_info.major == 2\n\n# add __version__, __author__, __authoremail__, __description__ to this namespace\n# equivalent to:\nif _PY2:\n e...
python
edit
6
0
apache-2.0
16aa537ff01ff36c5ff3f2de9beaf45ec2d93823
oneklc/dimod,oneklc/dimod
setup.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom mock import Mock\n\nfrom formica import cli\nfrom tests.unit.constants import STACK\n\n\ndef test_describes_change_set(boto_client, change_set):\n cli.main(['describe', '--stack', STACK])\n boto_client.assert_calle...
python
edit
4
1
mit
7698ec18abd25ed41b3104a382e7d8ca38d755ca
flomotlik/formica
tests/unit/test_describe.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\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nfrom beastling import __version__ as version\n\n\nrequires = [\n 'six',\n 'newick>=0.6.0',\n 'appdirs',\n...
python
edit
1
0
bsd-2-clause
2ed692aeed1fd56f0990efe47021202a4336102c
lmaurits/BEASTling
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"django-test-utils\",\n version = \"0.3\",\n packages = find_packages(),\n author = \"Eric Holscher\",\n author_email = \"<EMAIL>\",\n description = \"A packa...
python
edit
1
0
mit
e89b79a7308247ac7bea251b28674274460ed424
ericholscher/django-test-utils,ericholscher/django-test-utils
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(name='cycli',\n version='0.0.1',\n description='A Command Line Interface for Cypher.',\n long_description='Syntax highlighting and autocomplete.',\n classifiers=[\n 'Developme...
python
edit
1
0
mit
378176a741339f4790bc74978cbefac12e89ffa1
nicolewhite/cycli,ikwattro/cycli,nicolewhite/cycli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nrequires = [\n 'amaasutils',\n 'configparser',\n 'python-dateutil',\n 'pytz',\n 'requests',\n 'warrant'\n]\n\nsetup(\n name='amaascore',\n version='0.3.1',\n descript...
python
edit
1
0
apache-2.0
4128c784bc1e169085219f201b3ed326a3259e53
amaas-fintech/amaas-core-sdk-python,paul-rs/amaas-core-sdk-python,nedlowe/amaas-core-sdk-python,nedlowe/amaas-core-sdk-python,paul-rs/amaas-core-sdk-python,amaas-fintech/amaas-core-sdk-python
setup.py
rejected_duplicate
Near-duplicate of sample 15910
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\n\ndef readme():\n with open('README.md') as f:\n return f.read()\n\nsetup(name='subvenv',\n version='1.0.0',\n description=('A tool for creating virtualenv-friendly '\n ...
python
edit
1
1
mit
f1a791590e49ed12f6d56df3eb1240c5409175de
Railslide/subvenv,Railslide/subvenv
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.mako',\n version='0.1a4.dev0',\n description='Tangled Mako integration',\n long_description=open('README.rst').read(),\n url='http://tangledframework.org/',\n downlo...
python
edit
1
0
mit
d468993dc3cac11cefdf090506b3f9122d248046
TangledWeb/tangled.mako
setup.py
rejected_duplicate
Near-duplicate of sample 13317
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file...
python
edit
1
0
mit
0d26a4163fff1107c322eaa206b8221d73f38b20
mixcloud/django-speedbar,theospears/django-speedbar,theospears/django-speedbar,theospears/django-speedbar,mixcloud/django-speedbar,mixcloud/django-speedbar
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport setuptools\n\n\nsetuptools.setup(\n name='factory_djoy',\n version='0.1',\n description=\"Wrappers over Factory Boy's Django Factories\",\n url='http://github.com/jamescooke/factory_djoy',\n author='James Co...
python
edit
3
0
mit
ff9c10368dcee1ed1f8ba5a978c99d9eae71b752
jamescooke/factory_djoy
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\n\n# How do we keep this in sync with requirements.pip?\n#\nREQUIREMENTS = [\n \"nose==1.3.0\",\n \"python-dateutil==1.5\",\n]\n\n\nif __name__ == \"__main__\":\n setuptools.setup(\n name=\"jsond\",\n ...
python
edit
1
0
mit
6278551c5d3a206231aae5ae810e3d7eef2d839e
EDITD/jsond
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\nfrom sys import version_info\n\nversion = \"1.3\"\ndeps = [\"pbs\", \"requests>=0.12.1\"]\n\n# require argparse on Python <2.7 and <3.2\nif (version_info[0] == 2 and vers...
python
edit
3
0
bsd-2-clause
8337a3912533dfb7d686a453c53adcda783a50a4
gravyboat/streamlink,javiercantero/streamlink,melmorabity/streamlink,asermax/livestreamer,lyhiving/livestreamer,chhe/livestreamer,derrod/livestreamer,gravyboat/streamlink,okaywit/livestreamer,Dobatymo/livestreamer,fishscene/streamlink,sbstp/streamlink,programming086/livestreamer,melmorabity/streamlink,fishscene/streaml...
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name=\"shinkengen\",\n version='0.1',\n author=\"Yuvi Panda\",\n author_email=\"<EMAIL>\",\n description=(\"A shinken config generator for Wikimedia Labs\"),\n license=\"Apache2\",\...
python
edit
1
0
apache-2.0
bb8bd0cd51dd74de492beb785eca4d5ff31a2867
wikimedia/operations-software-shinkengen
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\n\nimport sys\n\nfrom setuptools import setup\n\ninstall_requires = []\n\nif sys.version_info < (2, 7):\n raise DeprecationWarning('Python 2.6 and older are no longer supported by PAY.JP. ')\n\ninstall_requires.append('re...
python
edit
1
0
mit
7eb57a623b4f915dac0cdf7fdd0eb74d77c51b5c
payjp/payjp-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Setup script for admin-tools-zinnia\"\"\"\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nimport admin_tools_zinnia\n\nsetup(\n name='admin_tools_zinnia',\n version=admin_tools_zinnia.__version__,\n\n d...
python
edit
1
0
bsd-3-clause
142d999797bd1fe723c159f9fd6379414cee537c
django-blog-zinnia/admin-tools-zinnia,django-blog-zinnia/admin-tools-zinnia
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nInstall wagtailnews using setuptools\n\"\"\"\n\nfrom wagtailnews import __version__\n\nwith open('README.rst', 'r') as f:\n readme = f.read()\n\ntry:\n from setuptools import setup, find_packages\nexcept...
python
edit
1
0
bsd-3-clause
069c11f5db1dc3bc6de88a14bd1ae573c5853f00
SableWalnut/wagtailjobs,SableWalnut/wagtailinvoices,takeflight/wagtailnews,takeflight/wagtailnews,SableWalnut/wagtailjobs,takeflight/wagtailnews,SableWalnut/wagtailinvoices,takeflight/wagtailnews
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\noverview = file('docs/overview.txt')\ndata = overview.read()\noverview.close()\n\nsetup(\n name='dinette',\n description='Dinette is a forum application in the spirit of PunBB....
python
edit
4
0
bsd-3-clause
f9af01b416246edfa002c22b5664f7c2e8a66b22
agiliq/Dinette,agiliq/Dinette,agiliq/Dinette
setup.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding=utf-8\nfrom setuptools import setup\n\nsetup(\n name='imboclient',\n version='0.0.1',\n author='Andreas Søvik',\n author_email='<EMAIL>',\n packages=['imboclient'],\n scripts=[],\n u...
python
edit
1
0
mit
d0bba10a15863b1353e07ca1a467684d7e9e1f26
imbo/imboclient-python,imbo/imboclient-python,imbo/imboclient-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom distutils.core import setup\nfrom distutils.extension import Extension\n#from Cython.Distutils import build_ext\nimport numpy\nfrom numpy.distutils.system_info import get_info\n\n\nmpfit_...
python
edit
3
0
bsd-2-clause
309fcf2b4a429396016716545a9982cf62a2a089
evertrol/mpyfit,evertrol/mpyfit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup, find_packages\n\ndef read(*paths):\n \"\"\"Build a file path from *paths* and return the contents.\"\"\"\n with open(os.path.join(*paths), 'r') as f:\n return f.read()\n\nsetup(\n n...
python
edit
1
1
mit
73db41caecde2e9ea33f1f260a76f917b700e0b4
gfranxman/utinypass
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport requests\n\nACCOUNT_SID = None\nAUTH_TOKEN = None\nFROM_NUMBER = None\n\nresponse = requests.post(\n 'https://{account_sid}:{auth_token}@api.twilio.com/2010-04-01/Accounts/{account_sid}/Messages'.format(\n account_sid=ACCOU...
python
edit
3
0
mit
079240a28c648a56fd30cbf3b0b4115a7f2259bc
richardxia/twilio-tutorial
example.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n author = 'Simon Whitaker',\n author_email = '<EMAIL>',\n description = 'A python library for interacting with the Apple Push Notification Service',\n download_url = 'http://github.com...
python
edit
1
0
mit
88767427f4f3215f2aafe579c84c55457706e011
postmates/PyAPNs,RatenGoods/PyAPNs,miraculixx/PyAPNs,korhner/PyAPNs,tenmalin/PyAPNs,duanhongyi/PyAPNs,AlexKordic/PyAPNs
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.sessions.models import Session\n\n\nBUILTIN_SEQUENCES = {\n 'django.contrib.auth': [],\n 'django.contrib.contenttypes': [],\n 'django.contrib.sessions': [],\n}\n\n\n# Starting in Django 1.3 alpha, Session.expire...
python
edit
2
0
bsd-3-clause
41bdb951e61f5601c380fd81690d74d35136455f
beanbaginc/django-evolution
django_evolution/builtin_evolutions/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))...
python
edit
1
0
apache-2.0
b4cf2ba407859705c9b0c5faa20d28b743aefeb9
charlon/mdot,uw-it-aca/mdot,charlon/mdot,uw-it-aca/mdot,uw-it-aca/mdot,charlon/mdot,uw-it-aca/mdot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask_wtf import Form\nfrom wtforms import StringField, PasswordField, SubmitField, RadioField, validators, IntegerField, BooleanField\nfrom wtforms.validators import DataRequired, Email, Length\n\nclass AddUserForm(Form):\n\tname = St...
python
edit
4
0
mit
e9c6b22ffaf498dc64f590689cc637a152444665
jinjiaho/project57,jinjiaho/project57,jinjiaho/project57,jinjiaho/project57
forms.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# vim: ai ts=4 sts=4 et sw=4\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.contrib.auth.views import login as django_login\nfrom django.contrib.auth.views import logout as django_logout\nfr...
python
edit
3
1
bsd-3-clause
88be5325c3d006b822c8d8ee2db4512ea538c800
lsgunth/rapidsms,lsgunth/rapidsms,lsgunth/rapidsms,lsgunth/rapidsms
rapidsms/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport argparse\nfrom bioblend import galaxy\nimport json\n\ndef main():\n \"\"\"\n This script uses bioblend to import .ga workflow files into a running instance of Galaxy\n \"\"\"\n parser = argparse...
python
edit
1
3
mit
eec47f7a6988d4472bc99789fcc7ba894b74c17b
anmoljh/ansible-galaxy-tools,galaxyproject/ansible-galaxy-tools,galaxyproject/ansible-tools,nuwang/ansible-galaxy-tools
files/install_workflow.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nimport os\n\ndef test_README():\n\tthisDir = os.path.dirname(os.path.realpath(__file__))\n\tparentDir = os.path.dirname(thisDir)\n\treadmePath = os.path.join(parentDir,'README.rst')\n\n\treadmeTestPath = os.path.join(thisDir,'README.py')\...
python
edit
3
3
mit
80f4c7404272b5cc00caa0e7cb041fb9811d988e
jakelever/kindred,jakelever/kindred
tests/test_checkREADME.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nJP-specific Form helpers\n\"\"\"\n\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.forms.fields import RegexField, Select\n\nclass JPPostalCodeField(RegexField):\n \"\"\"\n A form field that validates its...
python
edit
1
1
bsd-3-clause
61e8b679c64c7c2155c1c3f5077cf058dd6610d3
luyikei/django-localflavor-jp
forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport click\nfrom ghutil.util import default_command, package_group\n\n@package_group(__package__, __file__, invoke_without_command=True)\n@click.pass_context\ndef cli(ctx):\n \"\"\" Manage pull requests \"\"\"\n default_command(ct...
python
edit
1
1
mit
e292705df44ba511a0650e5b4d70ab5f2404e412
jwodder/ghutil
ghutil/cli/pr/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef tst_dxtbx():\n import libtbx.load_env\n import os\n dials_regression = libtbx.env.dist_path('dials_regression')\n from boost.python import streambuf\n from dxtbx import read_uint16\n from dxtbx.format.Registry import R...
python
edit
2
2
bsd-3-clause
a3a2ad5099663bb92a04db41e531c776b9e02d41
dials/dials,dials/dials,dials/dials,dials/dials,dials/dials
dxtbx/tst_dxtbx.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rlib.jit import promote\n\nfrom som.vmobjects.abstract_object import AbstractObject\n\n\nclass ObjectWithoutFields(AbstractObject):\n\n _immutable_fields_ = [\"_object_layout?\"]\n\n def __init__(self, layout): # pylint: disable...
python
edit
1
4
mit
4af8f60598e216adb04e4ed04394e8835beedcac
smarr/PySOM,smarr/PySOM,SOM-st/PySOM,SOM-st/PySOM
src/som/vmobjects/object_without_fields.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom twisted.words.protocols import irc\nfrom txircd.modbase import Mode\n\nclass TopiclockMode(Mode):\n\tdef checkPermission(self, user, cmd, data):\n\t\tif cmd != \"TOPIC\":\n\t\t\treturn data\n\t\tif \"topic\" not in data:\n\t\t\treturn ...
python
edit
1
5
bsd-3-clause
782a4b028c45d3cc37e6679ccc3d482f0518b4b7
ElementalAlchemist/txircd,Heufneutje/txircd,DesertBus/txircd
txircd/modules/cmode_t.py
rejected_duplicate
Near-duplicate of sample 17367
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\n\n\nclass TestG(unittest.TestCase):\n def test_feat_1_case_1(self):\n pass\n\n def test_feat_1_case_2(self):\n pass\n\n def test_feat_1_case_3(self):\n pass\n\n def test_feat_1_case_4(self):...
python
edit
1
1
mit
9749cdaaebacd7316b581c5d368a5082fb6d3789
martinsmid/pytest-ui
test_projects/test_module_b/test_feat_4.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport unittest\nfrom hypothesis import given\nfrom hypothesis.extra.datetime import datetimes\n\nimport qual\n\nfrom datetime import date\n\nclass TestIsoUtils(unittest.TestCase):\n @given(datetimes(timezones=[]))\n def test_round_tr...
python
edit
3
1
apache-2.0
a45042c504fcb1b11741fb9ce786c5afb94219a7
jwg4/qual,jwg4/calexicon
qual/tests/test_iso.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom math import cos, sin, pi, hypot\n\ndef rotate(polygon, angle):\n rotated_points = []\n cos_result = cos(angle)\n sin_result = sin(angle)\n for point in polygon:\n x = point[0] * cos_result - point[1] * sin_result\n ...
python
edit
3
2
apache-2.0
8164d048b47299377b4db7d9fc0198e24b07bdb3
PGHM/spacebattle
engine/geometry.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python3\n# THIS FILE IS AN EXPERIMENTAL PROGRAM TO LEARN ABOUT OS_WALK\n\nimport os, sys\n\nwalk_dir = sys.argv[1]\n\nprint(\"walk directory: \" + walk_dir)\n\nprint(\"Walk directory (absolute) = \" + os.path.abspath(walk_dir))\n...
python
edit
3
0
bsd-3-clause
6603657df4626a9e2c82a3658c63314c7a9537f4
paulkramme/btsoot
src/experimental/os_walk_with_filechecker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport re\nimport subprocess\nimport requests\n\nGITHUB_API_ADDRESS = \"https://api.github.com/\"\n\n\ndef get_git_address():\n\n response = subprocess.check_output(['git', 'remote', '-v'])\n dirty = response.split('\\n')\n...
python
edit
null
null
apache-2.0
5cadb19aec67945efa5c4367ee4d1aab6bbc66e7
AutomatedTester/git-issues,AutomatedTester/git-issues,AutomatedTester/git-issues
git-issues/git-handler.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\n__version__ = '1.0.0-dev'\n__author__ = 'Steven Loria'\n__license__ = 'MIT'\n\nfrom marshmallow.schema import (\n Schema,\n SchemaOpts,\n MarshalResult,\n Unmars...
python
edit
1
0
mit
fbb5addbb6b61a127066fd443d70f1cfe94f7c03
0xDCA/marshmallow,dwieeb/marshmallow,bartaelterman/marshmallow,maximkulkin/marshmallow,Tim-Erwin/marshmallow,mwstobo/marshmallow,VladimirPal/marshmallow,daniloakamine/marshmallow,xLegoz/marshmallow,marshmallow-code/marshmallow,0xDCA/marshmallow,etataurov/marshmallow,quxiaolong1504/marshmallow,Bachmann1234/marshmallow
marshmallow/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport socket, ssl\nimport h11\n\nclass MyHttpClient:\n def __init__(self, host, port):\n self.sock = socket.create_connection((host, port))\n if port == 443:\n self.sock = ssl.wrap_socket(self.sock)\n sel...
python
edit
1
3
mit
3acd7d885e6c660c3acb0b584b7ed07c8a1a4df3
python-hyper/h11,njsmith/h11
docs/source/_examples/myclient.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom gwv import version\nfrom validator import validate\n\n\ndef main(args=None):\n if args is None:\n args = sys.argv[1:]\n\n import argparse\n pars...
python
edit
1
7
mit
23d92f1a24e919bd1b232cb529dbe022f6cdd463
kurgm/gwv
gwv/gwv.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib.auth.models import User\nfrom rest_framework import serializers, viewsets\n\n\nclass UserSerializer(serializers.HyperlinkedModelSerializer):\n class Meta:\n model = User\n fields = ('url', 'email')\n\n\n...
python
edit
1
1
mit
58620934b0a49cdde573ed7090053e3316fcf215
xp2017-hackergarden/server,xp2017-hackergarden/server,xp2017-hackergarden/server,xp2017-hackergarden/server
xpserver_api/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\n\n\"\"\"Main XOInvader module, that is entry point to game.\n\nPrepare environment for starting game and start it.\"\"\"\n\n\nimport curses\n\nfrom xoinvader.menu import MainMenuState\nfrom xoinvader.ingame import I...
python
edit
1
3
mit
4a0569d129d770fead45f3b0d9069ff54e8ddc56
pkulev/xoinvader,pankshok/xoinvader
xoinvader/game.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom virtualbox import library\n\n\"\"\"\nAdd helper code to the default IProgress class.\n\"\"\"\n\n\n# Helper function for IProgress to print out a current progress state\n# in __str__ \n_progress_template = \"\"\"\\\n(%(o)s/%(oc)s) %(od)...
python
edit
1
1
apache-2.0
571cb7f14d3ea2fe1ae77e419a3d71d6f9987b25
mjdorma/pyvbox
virtualbox/library_ext/progress.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport pytest\nfrom pandas.core.series import Series\n\n\nclass TestSeriesValidate(object):\n \"\"\"Tests for error handling related to data types of method arguments.\"\"\"\n s = Series([1, 2, 3, 4, 5])\n\n def test_validate_bool_...
python
edit
1
2
bsd-3-clause
c55dbf067d85c3a060a6ffeff2aad24991e95eae
pratapvardhan/pandas,rs2/pandas,winklerand/pandas,jorisvandenbossche/pandas,zfrenchee/pandas,winklerand/pandas,TomAugspurger/pandas,pandas-dev/pandas,harisbal/pandas,jmmease/pandas,pratapvardhan/pandas,TomAugspurger/pandas,DGrady/pandas,jorisvandenbossche/pandas,cython-testbed/pandas,zfrenchee/pandas,nmartensen/pandas,...
pandas/tests/series/test_validate.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pathlib import Path\n\nSETTINGS_PATH = 'conf/settings.py'\nPARTIALS_PATH = 'conf/partials.txt'\n\n\ndef load_config(path=SETTINGS_PATH):\n settings = eval(open(path).read())\n return settings\n\n\ndef root():\n # this program ...
python
edit
1
1
mit
d3f8c8639462feffe15c457d0009b36816fd3264
kbd/setup,kbd/setup,kbd/setup,kbd/setup,kbd/setup
HOME/bin/lib/setup/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom apitestcase.testcase import TestCase\n\n\n__version__ = (\"0\", \"1\", \"0\")\n\n__all__ = [\n \"TestCase\",\n \"__version__\",\n]\n\n```\n\nApply this change: Make apitestcase __all__ a tuple" }, { "role": "assistant", ...
python
edit
1
0
mit
ca7b50920a90e335b4cebe124ec3160aafada824
bramwelt/apitestcase
apitestcase/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n__version__ = '1.0.0'\n__all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager']\n\nfrom .application_master import ApplicationMaster\nfrom .history_server import HistoryServer\nfrom .node_m...
python
edit
1
0
bsd-3-clause
e773239cbf0adee5ca192c10dba14d35275040ff
toidi/hadoop-yarn-api-python-client
yarn_api_client/__init__.py
rejected_duplicate
Near-duplicate of sample 14553
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2014-2015 ARM Limited\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www...
python
edit
1
1
apache-2.0
bc6af25366aacf394f96b5a93008109904a89e93
bjackman/workload-automation,bjackman/workload-automation,bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-au...
wlauto/common/android/resources.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\nfrom django.core.management.base import BaseCommand\nfrom redistricting.utils import *\n\nclass Command(BaseCommand):\n \"\"\"\n This command prints creates and compiles language message files\n \"\"\"\n args ...
python
edit
6
2
apache-2.0
15c58fb05a9bfb06b87d8d00a1b26d50ee68c1f7
JimCallahanOrlando/DistrictBuilder,JimCallahanOrlando/DistrictBuilder,JimCallahanOrlando/DistrictBuilder,JimCallahanOrlando/DistrictBuilder
django/publicmapping/redistricting/management/commands/makelanguagefiles.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport MySQLdb\nimport MySQLdb.cursors\nfrom hakoblog.config import CONFIG\n\n\nclass DB():\n def __init__(self):\n self.conn = MySQLdb.connect(\n db=CONFIG.DATABASE,\n host=CONFIG.DATABASE_HOST,\n ...
python
edit
1
1
mit
842ab1d53224117fc750d963b6c5f3b6f5af5f1d
hakobe/hakoblog-python,hakobe/hakoblog-python,hakobe/hakoblog-python
hakoblog/db.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\nfrom flask_redis import FlaskRedis\nfrom config import BaseConfig\n\napp = Flask(__name__)\napp.config.from_object(BaseConfig)\ndb = FlaskRedis(app)\n\n```\n\nApply this change: Add decode_responses option to redis"...
python
edit
1
1
mit
b8656ae21ab494b49013a7cd67facff7bdbd7cf5
tferreira/Flask-Redis
index.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# (c) 2015-2018, ETH Zurich, Institut fuer Theoretische Physik\n# Author: Dominik Gresch <<EMAIL>>\n\nimport os\n\nimport pytest\nimport tempfile\nimport numpy as np\nimport bands_inspect as...
python
edit
1
1
apache-2.0
8ddcabe29dfaa6716578664224620fc5a0116a2b
Z2PackDev/TBmodels,Z2PackDev/TBmodels
tests/test_cli_eigenvals.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2011-2014 Berkeley Model United Nations. All rights reserved.\n# Use of this source code is governed by a BSD License (see LICENSE).\n\nfrom rest_framework import permissions\n\n\nclass IsSuperuserOrReadOnly(permissions.Base...
python
edit
1
2
bsd-3-clause
d478c966192241cccf53ac665820fd9a62ebcdeb
nathanielparke/huxley,bmun/huxley,bmun/huxley,nathanielparke/huxley,bmun/huxley,ctmunwebmaster/huxley,nathanielparke/huxley,ctmunwebmaster/huxley,nathanielparke/huxley,bmun/huxley,ctmunwebmaster/huxley,ctmunwebmaster/huxley
huxley/api/permissions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n# Copyright 2015, 2016 OpenMarket Ltd\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 Licen...
python
edit
1
1
apache-2.0
f88d747f7959808884451245aeba65edf7c490bf
TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,TribeMedia/synapse,matrix-org/synapse,TribeMedia/synapse
synapse/replication/slave/storage/filtering.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.core.management.base import BaseCommand\n\nfrom wagtail.search import models\n\n\nclass Command(BaseCommand):\n def handle(self, **options):\n # Clean daily hits\n self.stdout.write(\"Cleaning daily hits records...
python
edit
1
1
bsd-3-clause
9346e9750dee78484766d912919cfacc2e6b4b7e
mixxorz/wagtail,FlipperPA/wagtail,mixxorz/wagtail,zerolab/wagtail,mixxorz/wagtail,thenewguy/wagtail,wagtail/wagtail,gasman/wagtail,rsalmaso/wagtail,takeflight/wagtail,nealtodd/wagtail,gasman/wagtail,FlipperPA/wagtail,gasman/wagtail,rsalmaso/wagtail,takeflight/wagtail,kaedroho/wagtail,kaedroho/wagtail,timorieber/wagtail...
wagtail/search/management/commands/search_garbage_collect.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from django.conf.urls.defaults import patterns, include, url\nexcept ImportError:\n from django.conf.urls import patterns, url, include\n\nimport settings\nimport os\n\nfrom django.contrib import admin\nadmin.autodiscover()\n\n...
python
edit
1
0
mit
dcc4a0682befae9e6fccbdb18a517789249259ec
nikolas/django-interval-field,mpasternak/django-interval-field,mpasternak/django-interval-field,nikolas/django-interval-field
test_project/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# __ \n# | |--.---.-.-----.---.-.-----.---.-. .--------.---.-.--.--.---.-.\n# | _ | _ | | _ | | _ |__| | _ | | | _ |\n# |_____|___._|__|_...
python
edit
1
1
mit
6e724725fca65d3e63b1bfe44f9c2bcb22ae862d
christophercrouzet/bana,christophercrouzet/banana.maya
banana/maya/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding=utf-8\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.db import models\nfrom django.utils.decorators import classproperty\nfrom taggit.managers import TaggableManager\n\nfrom translator.util impo...
python
edit
1
3
mit
e6c9ceb3f838a613d182a3fdea961ca1f73e90c4
dreipol/django-translator
translator/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\nfrom setuptools.dist import Distribution\n\n\nwith open(os.path.join(os.path.dirname(__file__), 'README')) as f:\n doc = f.read()\n\n\nclass BinaryDistribution(Distributio...
python
edit
1
1
bsd-3-clause
000bf4d3942c19facd254fcff2df8b2b35a8fd75
fireteam/python-json-stream
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, include, url\n\nfrom django.contrib import admin\nadmin.autodiscover()\n\nurlpatterns = patterns('',\n # include urls from your app like so\n # url(r'^', include('my_app.urls')),\n url(r'^admi...
python
edit
1
0
mit
b19eb216f1f1e9c059b083af7ff72864994f5920
jimray/django-project-skeleton,jimray/django-project-skeleton
project_name/project_name/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name = \"voltron\",\n version = \"0.1\",\n author = \"snare\",\n author_email = \"<EMAIL>\",\n description = (\"A UI for GDB & LLDB\"),\n license = \"Buy snare a beer\",\n keywor...
python
edit
1
0
mit
f41c05f7579b42300e8e202218657f4eeb37a3a6
snare/voltron,snare/voltron,snare/voltron,snare/voltron
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\ninstall_requires = [\n 'Flask',\n 'Flask-Babel',\n]\n\nwith open('README') as f:\n readme = f.read()\n\nsetup(\n name='Flask-Table',\n packages=['flask_table'],\n version='0.3.1',\n autho...
python
edit
1
0
bsd-3-clause
b2593ea8f4a8e98b2a92ccebae69376516fb860c
plumdog/flask_table,plumdog/flask_table,plumdog/flask_table
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# setup.py\n# colorific\n#\n\n\"\"\"\nPackage information for colorific.\n\"\"\"\n\nimport sys\n\n# check for the supported Python version\nversion = tuple(sys.version_info[:2])\nif version != (2, 7):\n sys....
python
edit
1
0
isc
e121493b7bab8f4cdd8485248a9acd7babb643c8
99designs/colorific
setup.py
rejected_duplicate
Near-duplicate of sample 4854
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(name='pytest-cov',\n version='1.6',\n description='py.test plugin for coverage reporting with '\n 'support for both centralised and distributed testing, '...
python
edit
1
0
mit
d024572a21e7e4baa2a72c30b617aafaea84801b
opoplawski/pytest-cov,moreati/pytest-cov,pytest-dev/pytest-cov,ionelmc/pytest-cover,wushaobo/pytest-cov,schlamar/pytest-cov
setup.py
rejected_duplicate
Near-duplicate of sample 12144
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\n from setuptools.command.test import test\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import set...
python
edit
2
0
apache-2.0
cb385d0e053078492c467a31cbde3e158e458571
disqus/durabledict
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nlong_description = (\n open('README.rst').read()\n + '\\n' +\n open('CHANGES.txt').read())\n\nsetup(\n name='more.static',\n version='0.10.dev0',\n description=\"BowerStatic i...
python
edit
1
0
bsd-3-clause
04182bff7a097b8842073f96bac834abb34f7118
morepath/more.static
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\n\nfrom setuptools import setup, find_packages\nsetup(\n name = \"docker-scripts\",\n version = \"0.2.2\",\n packages = find_packages(),\n entry_points={\n 'console_scripts': ['docker-scripts=docker_scri...
python
edit
1
0
mit
5c929cd84074d9fe17548afec4e6e81ad61416ae
lichia/docker-scripts,TomasTomecek/docker-scripts,goldmann/docker-scripts,goldmann/docker-squash,jpopelka/docker-scripts
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name='unicode-slugify',\n version='0.1.3',\n description='A slug generator that turns strings into unicode slugs.',\n long_description=open('README.md', encoding='utf-8').read(),\n aut...
python
edit
1
0
bsd-3-clause
02c20066e4af8fc5c929a19301f0d8e4bbba629b
DylannCordel/unicode-slugify
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nrequirements = [\n]\n\ntest_requirements = [\n]\n\nsetup(\n name='adb_android',\n version='0.1.0',\n descri...
python
edit
1
0
bsd-3-clause
c31dea7bb9dc104c23cf6960f61d56af86c8dea6
solarce/adb_android,vmalyi/adb_android
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, io\nfrom setuptools import setup, find_packages\n\nlong_description = (\n io.open('README.rst', encoding='utf-8').read()\n + '\\n' +\n io.open('CHANGES.txt', encoding='utf-8').read())\n\nsetup(name='more.jinja2',\n ...
python
edit
3
0
bsd-3-clause
bd30c70095c9e0fc4b6a552def45406bef5093e1
morepath/more.jinja2
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom distutils.core import setup\nimport request\n\nsetup(\n name='django-request',\n version='%s' % request.__version__,\n description='django-request is a statistics module for django. It stores requests in...
python
edit
1
0
bsd-2-clause
5883ccc3ca5ff073f571fa9cfe363d7a0be59d47
kylef/django-request,gnublade/django-request,kylef/django-request,gnublade/django-request,gnublade/django-request,kylef/django-request
setup.py
rejected_duplicate
Near-duplicate of sample 2562
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nFlask-MongoKit\n--------------\n\nFlask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask \napplications.\n\nLinks\n`````\n\n* `documentation <http://packages.python.org/Flask-MongoKit>`_\n* `sourcecode <http...
python
edit
1
0
bsd-3-clause
7d34d5953bbf4f1d8c3fc97c7c8b19b433d52ecd
jarus/flask-mongokit,jarus/flask-mongokit,VishvajitP/flask-mongokit,VishvajitP/flask-mongokit
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom shutil import rmtree\nfrom setuptools import setup, find_packages\n\n\nif sys.argv[:2] == ['setup.py', 'bdist_wheel']:\n # Remove previous build dir when creating a wheel build, since if files\n # have been removed fr...
python
edit
1
0
mit
68a6f8361dbc39ffb3b35428c04860178f004b77
jandd/django-gnupg-mails
setup.py
accepted
null
true