messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"Integration test base class and utils\"\"\"\n\nfrom contextlib import contextmanager\nimport unittest\n\nfrom pyon.container.cc import Container\nfrom pyon.core.bootstrap import bootstrap_pyon\n\n# Make this c...
python
edit
1
2
bsd-2-clause
d06ff3fede08430146a03efb7964363fa950b1c9
mkl-/scioncc,crchemist/scioncc,scionrep/scioncc,mkl-/scioncc,scionrep/scioncc,crchemist/scioncc,scionrep/scioncc,mkl-/scioncc,crchemist/scioncc,ooici/pyon,ooici/pyon
pyon/util/int_test.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements. See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this...
python
edit
1
0
apache-2.0
19656decb756db364d012cbfb13d0ddf30e15bae
h2oai/sparkling-water,h2oai/sparkling-water,h2oai/sparkling-water,h2oai/sparkling-water
py/tests/test_runner.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Test suite for distutils.\n\nThis test suite consists of a collection of test modules in the\ndistutils.tests package. Each test module has a name starting with\n'test' and contains a function test_suite(). The function is expected\...
python
edit
1
4
mit
4b54a8a038d5f9f2ead224b030f87f393d57d40b
pypa/setuptools,pypa/setuptools,pypa/setuptools
tests/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Vigenère Cipher Dictionary Hacker\n# https://www.nostarch.com/crackingcodes/ (BSD Licensed)\n\nfrom books.CrackingCodesWithPython.pyperclip import copy\nfrom books.CrackingCodesWithPython.Chapter11.detectEnglish import isEnglish\nfrom boo...
python
edit
1
4
mit
93d066f464a048881010a9d468a727a48e78c69d
JoseALermaIII/python-tutorials,JoseALermaIII/python-tutorials
books/CrackingCodesWithPython/Chapter20/vigenereDictionaryHacker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom import_export import resources\nfrom .models import Signature\n\n\nclass SignatureResource(resources.ModelResource):\n class Meta:\n exclude = ('created_on', 'modified_on')\n model = Signature\n\n```\n\nApply this chan...
python
edit
1
0
mit
b57a2e184e3861617c12801529295b0095257cd9
watchdogpolska/django-one-petition,watchdogpolska/django-one-petition,watchdogpolska/django-one-petition
petition/resources.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nvowels = ['a e i o u']\nconstanents = ['b c d f g h j k l m n p q r s t v w x y z 1 2 3 4 \\\n 5 6 7 8 9 0']\n\n\ndef inInventory(itemClass, player):\n for item in player.inventory:\n if isinstance(item...
python
edit
1
3
mit
37bedf8495834f0773f8a082c3f358321ebb8f77
allanburleson/python-adventure-game,disorientedperson/python-adventure-game
src/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors\n# MIT License. See license.txt\n\nfrom __future__ import unicode_literals\nimport webnotes\nfrom webnotes.webutils import WebsiteGenerator, cleanup_page_name, clear_ca...
python
edit
6
1
mit
bc6999e5e587a5e4dfd8b65f168de8ebce8bc93b
aboganas/frappe,RicardoJohann/frappe,gangadharkadam/letzfrappe,mbauskar/omnitech-demo-frappe,mhbu50/frappe,BhupeshGupta/frappe,gangadhar-kadam/laganfrappe,mbauskar/omnitech-frappe,shitolepriya/test-frappe,shitolepriya/test-frappe,mbauskar/tele-frappe,gangadharkadam/letzfrappe,gangadharkadam/frappecontribution,sbktechno...
webnotes/website/doctype/blog_category/blog_category.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom categories.models import Category, Keyword, Subcategory\nfrom rest_framework import serializers\n\n\nclass SubcategoryListSerializer(serializers.ModelSerializer):\n class Meta:\n model = Subcategory\n fields = ('pk', '...
python
edit
1
0
apache-2.0
3a57d826a957b864753895d8769dcf747d489e1b
belatrix/BackendAllStars
administrator/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#Set Cover=Cover\n#Set BookCover=%BookName%%Cover%\n#Set BookCoverHTML=%BookCover%%HTMLExt%\n#Call pandoc ..\\source\\%BookCover%%BookExt% -o %BookCoverHTML% --standalone %CSS_%%Cover%%CSSExt% --verbose\n\ndef GenerateCover():\n\tpass\n\nif...
python
edit
6
1
mit
8851223a1576a4e164449b589f68c0420966d622
fan-jiang/Dujing
PythonScript/GenerateBook.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nimport deployer.logger\nfrom celery.signals import setup_logging\n\n\n__version__ = '0.5.0'\n__author__ = 'sukrit'\n\ndeployer.logger.init_logging()\nsetup_logging.connect(deployer.logger.init_celery_...
python
edit
1
0
mit
795d76074b0d8336ebe29b3816186732d29c0cd2
totem/cluster-deployer,totem/cluster-deployer,totem/cluster-deployer
deployer/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom pyspark.sql.types import *\n\n\nclass Annotation:\n\n def __init__(self, annotator_type, begin, end, result, metadata, embeddings):\n self.annotator_type = annotator_type\n self.begin = begin\n self.end = end\n ...
python
edit
19
1
apache-2.0
0960ca60effa80ca52a715d30f9651741c3b9800
JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp
python/sparknlp/annotation.py
rejected_lint
Too many lint violations: 19
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import include, url\nfrom django.contrib import admin\n\n\nurlpatterns = [\n url(r'^admin/', include(admin.site.urls)),\n\n url(r'^flickr/', include('ditto.flickr.urls', namespace='flickr')),\n url(r'^pinboard...
python
edit
1
0
mit
5f73fd983caa758a77f0fd823425057bd8b36204
philgyford/django-ditto,philgyford/django-ditto,philgyford/django-ditto
devproject/devproject/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom os import getenv\nimport sqlite3\nimport win32crypt\ncsv_file = open(\"chromepass.csv\",'wb')\ncsv_file.write(\"link,username,password\\n\".encode('utf-8'))\nappdata = getenv(\"APPDATA\") \nif appdata[-7:] == \"Roaming\": #Some WINDOWS...
python
edit
1
4
mit
2ce08224bc87ae34f546211c80d2b89a38acd0ec
hassaanaliw/chromepass
chromepass.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .base import *\n\nDEBUG = True\n\ntry:\n\tfrom .local import *\nexcept ImportError:\n\tpass\n\nSOCIAL_AUTH_YAMMER_KEY = 'OCnfR7VJNBbcSS8GXMCi3A'\nSOCIAL_AUTH_YAMMER_SECRET = 'y1MZSoo0MuX8RJPEjMbZWJDvafR9mZmFWWUfHOcZgxM'\n\n```\n\nApply...
python
edit
3
0
cc0-1.0
fd03c80eb7b705f6f3e9e6c554950ed15a7ecdd4
m3brown/face_it,m3brown/face_it,excellalabs/face-off,m3brown/face_it,kave/Face-Off,m3brown/face_it,madridsoccer5/face-off,excellalabs/face-off,kave/Face-Off,excellalabs/face-off,madridsoccer5/face-off,kave/Face-Off,excellalabs/face-off,kave/Face-Off,madridsoccer5/face-off,madridsoccer5/face-off
face_it/settings/dev.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging, interfaces, os, IPy\nfrom StringIO import StringIO\n\nclass Shorewall(interfaces.IOpenMesherPlugin):\n def __init__(self):\n self._files = {}\n \n def process(self, mesh):\n logging.debug('Generating D...
python
edit
3
4
bsd-3-clause
8121924b8d056752a31255646b116e9eb6fbbaa6
heyaaron/openmesher,heyaaron/openmesher,darkpixel/openmesher,darkpixel/openmesher
plugins/reversedns.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
python
edit
1
1
apache-2.0
7a2e6723a925626b1d8ee6f70c656a9fd5befd5d
wooga/airflow,AllisonWang/incubator-airflow,sid88in/incubator-airflow,nathanielvarona/airflow,gritlogic/incubator-airflow,hgrif/incubator-airflow,gilt/incubator-airflow,sdiazb/airflow,andyxhadji/incubator-airflow,vijaysbhat/incubator-airflow,dmitry-r/incubator-airflow,mtagle/airflow,gritlogic/incubator-airflow,mrares/i...
airflow/utils/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport sys\nimport getpass\n\n### Kill a job and its chain of dependents (as created by sbatch_submit). ...
python
edit
2
0
mit
056b4ae938ab1aacf5e3f48a1e17919a79ff29b7
nyu-mll/spinn,nyu-mll/spinn,nyu-mll/spinn
scripts/sbatch_cancel.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n.. module:: config_parser\n :platform: linux\n :synopsis: Module to test the bunch YAML configuration parser.\n\n.. moduleauthor:: Paul Fanelli <<EMAIL>>\n\n.. modulecreated:: 6/26/15\n\n\"\"\"\nfrom bunch import Bunch\nimport p...
python
edit
1
1
mit
b0b57fd69378c3ed6ee35abd0c45c952a1c52dd1
paulfanelli/planet_alignment
planet_alignment/test/config/bunch_parser.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport torch\nfrom .mean import Mean\n\n\nclass LinearMean(Mean):\n def __init__(self, input_size, batch_shape=torch.Size(), bias=True):\n super().__init__()\n self.register_parameter(name='weights...
python
edit
1
2
mit
cef6f3cce4a942bea53d6bae639dcd48d680d05a
jrg365/gpytorch,jrg365/gpytorch,jrg365/gpytorch
gpytorch/means/linear_mean.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.db import models, migrations\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('oauth', '0003_move_github'),\n ]\n\n operation...
python
edit
3
1
mit
39708edfad5698b34771eba941ac822cbf84baa7
stevepiercy/readthedocs.org,techtonik/readthedocs.org,pombredanne/readthedocs.org,rtfd/readthedocs.org,stevepiercy/readthedocs.org,istresearch/readthedocs.org,techtonik/readthedocs.org,pombredanne/readthedocs.org,tddv/readthedocs.org,espdev/readthedocs.org,istresearch/readthedocs.org,rtfd/readthedocs.org,davidfischer/r...
readthedocs/oauth/migrations/0004_drop_github_and_bitbucket_models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\n\nfrom django.shortcuts import render\nfrom django.http import HttpResponse\nfrom source.forms.search_form import SearchForm\nfrom source.controllers.cater_controller import CaterController\n\n\ndef index(request):\n if requ...
python
edit
1
4
mit
994ef988e966499dbc5c7298a201105517692fc7
jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu,jeremyrea/caterblu
source/views/views.py
accepted
null
true
[ { "role": "user", "content": "Write python code for the following: Add new arg in message_handled signal definition" }, { "role": "assistant", "content": "from django.dispatch import Signal\n\nmessage_handled = Signal(\n providing_args=['message', 'instance', 'new_revision', 'transition_resul...
python
new_file
1
0
mit
f00fd0fde81a340cf00030bbe2562b8c878edd41
freevoid/yawf
src/yawf/signals.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nclass RedisCleanupMixin(object):\n client = None\n prefix = None\n\n def setUp(self):\n super(RedisCleanupMixin, self).setUp()\n self.assertIsNotNone(self.client, \"Need a redis client to be provided\")\n\n def tea...
python
edit
1
3
bsd-3-clause
5a76457e2b9596ad3497b0145410a2f4090a5c54
thread/django-lightweight-queue,thread/django-lightweight-queue
tests/mixins.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright 2012 Dietrich Epp <<EMAIL>>\n# See LICENSE.txt for details.\n\n@test\ndef nostdin_1():\n check_output(['./nostdin'], 'Test', '')\n\n@test(fail=True)\ndef nostdin_2_fail():\n check_output(['./nostdin'], 'Test', 'Bogus')\n\n...
python
edit
10
1
bsd-2-clause
48d0dc98fd859ea1d8cf25370fe0be9ac1350448
depp/idiotest,depp/idiotest
selftest/subdir/proc.py
rejected_lint
Too many lint violations: 10
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom . import integration\nimport os\nimport tempfile\n\n\ndef test_kcm_install():\n # Install kcm to a temporary directory.\n install_dir = tempfile.mkdtemp()\n integration.execute(integration.kcm(),\n [\"in...
python
edit
1
1
apache-2.0
e281c9ab30acdbc60439a143557efdeaf4757e1b
Intel-Corp/CPU-Manager-for-Kubernetes,Intel-Corp/CPU-Manager-for-Kubernetes,Intel-Corp/CPU-Manager-for-Kubernetes
tests/integration/test_kcm_install.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time, gevent\n\nseen = None\n\ndef used(url, http_pool):\n __patch()\n seen[(url, http_pool)] = time.time()\n \ndef __patch():\n global seen\n if seen is None:\n seen = {}\n gevent.spawn(clean)\n \...
python
edit
1
4
mit
e1529a2071779dc7f657c3bbb370f3c2c5fb240e
c00w/bitHopper,c00w/bitHopper
HTTPCloser.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport logging\n\n\nclass CommandLog:\n \"\"\"A simple cog to log commands executed.\"\"\"\n def __init__(self):\n self.log = logging.getLogger('liara.command_log')\n\n async def on_command(self, ctx):\n kwargs = ', '...
python
edit
1
4
mit
1a594aec0b5af4c815c90d9a19abdf941fb5f5e4
Thessia/Liara
cogs/command_log.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache...
python
edit
3
0
apache-2.0
dc04ba245522fe5b9376aa30621bffd8c02b600a
ijl/gossamer,ijl/gossamer
huxley/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\n\nfrom ..externals import External\n\ntry:\n from contextlib import GeneratorContextManager\nexcept ImportError:\n from contextlib import _GeneratorContextManager as GeneratorContextManager\n\nfrom ty...
python
edit
1
1
bsd-3-clause
cdcc2dd6342b47e1387beca54677ff7114fc48ec
dan-gamble/cms,jamesfoley/cms,dan-gamble/cms,lewiscollard/cms,jamesfoley/cms,dan-gamble/cms,jamesfoley/cms,danielsamuels/cms,danielsamuels/cms,lewiscollard/cms,lewiscollard/cms,danielsamuels/cms,jamesfoley/cms
cms/tests/test_externals.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import *\n# Smrtr\n\n# Uncomment the next two lines to enable the admin:\nfrom django.contrib import admin\nadmin.autodiscover()\n\n\nurlpatterns = patterns('',\n\n url(r'^1$', 'welcome.views.profile', name...
python
edit
8
0
bsd-3-clause
c9587decdb67474959e1957378f6a4987e4c320a
mfitzp/smrtr,mfitzp/smrtr
apps/welcome/urls.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom celery.schedules import crontab\nfrom celery.task import periodic_task\nfrom django.conf import settings\n\nfrom django.db import connections\n\n\n@periodic_task(run_every=crontab(minute=0, hour=0), acks_late=True)\ndef mo...
python
edit
1
4
bsd-3-clause
621432d1bafe54220ad22afc285aae1c71de0875
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
custom/icds_reports/tasks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n''' Provide common utils to validators '''\nimport subprocess\nimport sys\n\n# Run cli command. By default, exit when an error occurs\ndef run_cli_cmd(cmd, exit_on_fail=True):\n '''Run a command and return its output'''\n print \"Runn...
python
edit
4
3
apache-2.0
336d778a49e0e09996ea647b8a1c3c9e414dd313
tiwillia/openshift-tools,joelsmith/openshift-tools,tiwillia/openshift-tools,openshift/openshift-tools,joelddiaz/openshift-tools,joelddiaz/openshift-tools,twiest/openshift-tools,joelsmith/openshift-tools,blrm/openshift-tools,ivanhorvath/openshift-tools,rhdedgar/openshift-tools,rhdedgar/openshift-tools,drewandersonnz/ope...
jenkins/test/validators/common.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013 Tom McLoughlin\nimport socket\n# Configuration\nmyNick = \"Bot\"\nmyIdent = \"Bot\"\nmyReal = \"Bot\"\nmyIRC = \"irc.example.org\"\nmyPort = \"6667\"\nmyChan = \"#example\" # only supports a single channel\n\n# Do...
python
edit
null
null
mit
f56582dfcd8519a81c40d0df17df54f91f33f665
TommehM/pybot
main.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\nimport subprocess\nimport unittest\nimport glob\n\ndef runTestcase(self, input_file, result_file):\n spillProg = subprocess.Popen(['./spill', input_file],stdout=subprocess.PIPE)\n idProg = subprocess.Popen(['./id', result_file],stdout...
python
edit
2
2
bsd-3-clause
7d0300b8571fc0732818e194644a6a669c69ffeb
mhuesch/scheme_compiler,mhuesch/scheme_compiler
src/Spill/runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport os\nimport subprocess\nimport sys\n\nneonc = sys.argv[1]\nexecutor = sys.argv[2:]\n\nout = subprocess.check_output([neonc, \"t/import-optional-missing.neon\"], env={\"NEONPATH\": \"t/compile-time-only\"}, st...
python
edit
3
0
mit
0d8282f31b74b6546f07fa37e88b59ed12e945c8
ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang,ghewgill/neon-lang
scripts/test_import_optional.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport logging\n\nfrom flask import Blueprint, render_template, request, send_from_directory, current_app\n\nfrom ..webapp import db\nfrom ..action import export_manager, genre_manager, exporter\n\n\nbp = Blueprint(...
python
edit
4
2
apache-2.0
111019266e15f59a358c0842815cd7368d89982f
notapresent/rbm2m,notapresent/rbm2m
rbm2m/views/public.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Logging for the pip accelerator.\n#\n# Author: Peter Odding <<EMAIL>>\n# Last Change: July 21, 2013\n# URL: https://github.com/paylogic/pip-accel\n\n\"\"\"\nLogging for the pip accelerator.\n\"\"\"\n\n# Standard library modules.\nimport l...
python
edit
1
0
mit
e83ba5e0eef34e7e5acaad95a490d2e078325842
paylogic/pip-accel,theyoprst/pip-accel,pombredanne/pip-accel,matysek/pip-accel,matysek/pip-accel,theyoprst/pip-accel,paylogic/pip-accel,pombredanne/pip-accel
pip_accel/logger.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .utils import SESSION_KEY_CURRENT_OS\nfrom .forms import OSForm\n\n\nclass CurrentOSMixin(object):\n\n allowed_oses = OSForm.OS_CHOICES\n\n def get_context_data(self, **kwargs):\n \"\"\"Inject current active OS key and the...
python
edit
1
2
mit
30c97e8a377b40f42855d38167768f9eb8e374fc
djangogirlstaipei/djangogirlstaipei,djangogirlstaipei/djangogirlstaipei,djangogirlstaipei/djangogirlstaipei
base/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/bin/python\n\nimport removinator\nimport subprocess\n\n# This example cycles through each card slot in the Removinator. Any\n# slots that have a card present will then have the certificates on the\n# card printed out using the pkcs15-to...
python
edit
1
0
apache-2.0
513d8e83dc7aea052682df2bc93cd146b6799406
nkinder/smart-card-removinator
client/examples/cycle-cards.py
rejected_duplicate
Near-duplicate of sample 3595
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport argparse\nimport logging.config\nimport os\nfrom intexration import settings\nfrom intexration.server import Server\n\n# Logger\nlogging.config.fileConfig(settings.LOGGING_FILE)\n\n\ndef main():\n parser = argparse.ArgumentParser(...
python
edit
1
4
apache-2.0
c47df6cf4533676c33ca3466cb269657df3e228f
JDevlieghere/InTeXration,JDevlieghere/InTeXration
intexration/__main__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\npyblogit.posts\n~~~~~~~~~~~~~~\n\nThis module contains the data model to represent blog posts and methods\nto manipulate it.\n\"\"\"\n\nclass post(object):\n\n def __init__(self, post_id, title, url, author, content, images, labe...
python
edit
1
1
mit
352ab7fa385835bd68b42eb60a5b149bcfb28865
jamalmoir/pyblogit
pyblogit/posts.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"\nurl-shortener\n==============\n\nAn application for generating and storing shorter aliases for\nrequested URLs. Uses `spam-lists`__ to prevent generating a short URL\nfor an address recognized as spam, or to...
python
edit
4
0
mit
34211cad2b2601027af46bee63129fc39890f8d4
piotr-rusin/url-shortener,piotr-rusin/url-shortener
main.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport sys\nfrom django.conf import settings\nfrom django.core.management import execute_from_command_line\n\nif not settings.configured:\n settings.configure(\n DATABASES = {\n 'default': {\n ...
python
edit
1
1
apache-2.0
725bfcc3484826083c3e6cdca71b4af41b37a9c9
jpotterm/django-fluent-contents,ixc/django-fluent-contents,edoburu/django-fluent-contents,jpotterm/django-fluent-contents,ixc/django-fluent-contents,django-fluent/django-fluent-contents,jpotterm/django-fluent-contents,ixc/django-fluent-contents,django-fluent/django-fluent-contents,django-fluent/django-fluent-contents,e...
runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/python\nfrom __future__ import print_function\n\n__all__ = ['Fusion', 'FusionCollection', 'FusionError', 'FusionRequester', 'HttpFusionRequester']\n\n\nclass FusionError(IOError):\n def __init__(self, response, request_body=No...
python
edit
6
8
mit
52abe8ef49f77ce859cba0a9042ea5761fcbcd90
ke4roh/fusionpy
fusionpy/__init__.py
rejected_lint
Too many lint violations: 6
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# import the right SWIG module depending on Python version\nfrom sys import version_info\nfrom sys import path as sys_path\nfrom os import path as os_path\nif version_info[0] >= 3:\n sys_path.insert(0, os_path.join(os_path.dirname(__file...
python
edit
3
0
apache-2.0
39650fe82bea3fc2bc036b8292f6f0b783b2b4d6
open-power/eCMD,open-power/eCMD,open-power/eCMD,open-power/eCMD,open-power/eCMD
ecmd-core/pyapi/init/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport slackclient\nimport time\nimport os\n\nslackClient = slackclient.SlackClient(os.environ[\"SLACK_TOKEN\"])\nslackClient.rtm_connect()\n\nwhile True:\n print(slackClient.rtm_read())\n time.sleep(5)\n\n```\n\nApply this change: Ad...
python
edit
1
0
mit
c7b57235b669c3fac99bc1380d667fdd71e8ca3c
ollien/Slack-Welcome-Bot
main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os\n\n\"\"\"\nPerforms some core NLP operations as a proof of concept for the library.\n\"\"\"\n\nfrom stanford_corenlp_pywrapper import CoreNLP\n\nclass StanfordCoreNLP:\n\n proc = None\n \n \"\"\"\n ...
python
edit
1
5
mit
3b66c6d8e2945d783904ba0f220772861e8e20ef
rigatoni/linguine-python,Pastafarians/linguine-python
linguine/ops/StanfordCoreNLP.py
rejected_duplicate
Near-duplicate of sample 5269
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nModule to provide MySQL compatibility to salt.\n\nIn order to connect to MySQL, certain configuration is required \nin /etc/salt/minion on the relevant minions. Some sample configs\nmight look like:\n\nmysql.host: 'localhost'\nmysql.po...
python
edit
2
2
apache-2.0
2add786f3173754f95900e0027cd78934a454bcf
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
salt/modules/mysql.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.forms import widgets\nfrom django.utils.safestring import mark_safe\n\nCOUNTRY_CHANGE_HANDLER = \"\"\"\nthis.nextSibling.src = this.nextSibling.src.replace(/[a-z_]{2}(\\.[a-zA-Z]*)$/, (this.valu...
python
edit
2
3
mit
d82e1ab6b94df47b9b9693cf09162f1f579e9eee
velfimov/django-countries,pimlie/django-countries,schinckel/django-countries,fladi/django-countries,SmileyChris/django-countries,jrfernandes/django-countries,rahimnathwani/django-countries
django_countries/widgets.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\nimport requests\nfrom bs4 import BeautifulSoup\nfrom urllib.parse import urlparse\nimport urllib.request\nimport os\n\n\ndef save_file(url, filename):\n if (os.path.exists(filename)):\n print(filename + ' a...
python
edit
1
2
mit
9d961fb5f50882de687278996365233dc0794123
makehackvoid/govhack2014,makehackvoid/govhack2014
scripts/get_images.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom myuw_mobile.dao.gws import Member\nfrom myuw_mobile.logger.logback import log_time\n\ndef log_response_time(logger, message, timer):\n log_time(logger, message, timer) \n\ndef log_success_response(logger, timer):\n log_time(logge...
python
edit
1
8
apache-2.0
0b64ca640cff92a4e01d68b91a6f3147cc22ebd4
fanglinfang/myuw,uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw,uw-it-aca/myuw,fanglinfang/myuw,fanglinfang/myuw
myuw_mobile/logger/logresp.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import g\nfrom flask.views import View\n\n\nclass BaseController(View):\n \"\"\"Base Controller\n\n The base controller of this module, it shows how to make\n 'class based controller' with 'Flask Pluggable view'.\n Yo...
python
edit
1
1
mit
165e05e9641841b696ea99484e02bfd5aa0d02c1
openedoo/module_employee,openedoo/module_employee,openedoo/module_employee
controllers/base_controller.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import g\nfrom app import app, app_mongo\nfrom celery import Celery\n\ncelery = Celery(app.import_name, broker=app.config['CELERY_BROKER_URL'], backend=app.config[\"CELERY_RESULT_BACKEND\"])\ncelery.conf.update(app.config)\n\ntas...
python
edit
1
1
mit
56df83132b6885f8ef753fee42a39daff72f2f12
tritanium-industries/TITDev,macalik/TITDev,tritanium-industries/TITDev,macalik/TITDev,tritanium-industries/TITDev,macalik/TITDev
celery_app.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\ntest_collision.test_worlds\n\"\"\"\nfrom __future__ import unicode_literals, print_function, absolute_import\n\nimport unittest\n\nimport bullet\n\n\nclass DiscreteDynamicsWorldTestCas...
python
edit
1
2
mit
c09e01d6d7b98d2f2b0a99fea20988d422c1a1bd
Klumhru/boost-python-bullet,Klumhru/boost-python-bullet,Klumhru/boost-python-bullet
test_collision/test_worlds.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport random\n\nclass Blackjack:\n def __init__(self):\n self.deck = range(1, 53)\n self.shuffle()\n self.deal()\n\n def shuffle(self):\n random.shuffle(self.deck)\n\n def deal(self):\n self.play...
python
edit
3
3
mit
9ddc347b8f44f2c4ac4b74725cfa258abaeb1398
JustinTulloss/blackjack
blackjack.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\"\"\"\ntest_django-watchman\n------------\n\nTests for `django-watchman` views module.\n\"\"\"\n\nimport json\nimport unittest\n\nfrom mock import patch\n\nfrom watchman import views\n\n\nc...
python
edit
1
1
bsd-3-clause
5178318df905ed1a68d312adb3936e8748789b2b
JBKahn/django-watchman,mwarkentin/django-watchman,mwarkentin/django-watchman,ulope/django-watchman,gerlachry/django-watchman,blag/django-watchman,JBKahn/django-watchman,blag/django-watchman,gerlachry/django-watchman,ulope/django-watchman
tests/test_views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup, find_packages\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name = \"{{cookiecutter.repo_name}}\",\n version = \"{{cookiecutter.version...
python
edit
1
1
mit
94d6ac50b4ce48aec51d5f32989d8d4aea938868
hackebrot/cookiedozer,hackebrot/cookiedozer
{{cookiecutter.repo_name}}/setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, logging\nfrom flask import Flask\nfrom raven.contrib.flask import Sentry\n\napp = Flask(__name__)\n\napp.config.from_object(os.environ.get('SETTINGS'))\n\napp.logger.info(\"\\nConfiguration\\n%s\\n\" % app.config)\n\n# Sentry exc...
python
edit
1
0
mit
6461a380e6def18ce359139b416e2e1b93e60d57
LandRegistry/search-api-alpha,LandRegistry/search-api-alpha
searchapi/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom Crypto.Cipher import AES\nfrom base64 import b64decode\nimport json\nfrom openpassword.pkcs_utils import strip_byte_padding\nfrom openpassword.openssl_utils import derive_openssl_key\n\n\nclass KeychainItem:\n def __init__(self, ite...
python
edit
1
1
mit
3f317fd63bb5b0b762661c112a8d27075b705d92
openpassword/blimey,openpassword/blimey
openpassword/keychain_item.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nimport os\nimport json\n\n# Get project settings\nprojectData = open(\"project.json\")\nprojectConfig = json.load(projectData)\nbuildVersion = projectConfig[\"version\"]\nbuildCultures = projectConfig[\"cultures\"]\nbuildConfiguration = p...
python
edit
1
0
bsd-3-clause
34423fd3b4b8b4a6e257388740002343e34806ff
arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain,arbonagw/HeliumRain
Scripts/Build.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n \n#SSH with Paramiko pg 27\n\nimport threading, paramiko, subprocess\n\ndef usage(): #Provide description of program\n print \"Black Hat Python SSH with Paramiko pg 27\"\n print \"\"\n print \"Enter Syntax ...
python
edit
null
null
mit
5dcd5da3674294388c068a55942e8974eb7aa75a
n1cfury/BlackHatPython
bh_sshRcmd.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\ndef convert_answers_to_payload_0_0_2(answer_store, schema, routing_path):\n \"\"\"\n Convert answers into the data format below\n 'data': [\n {\n 'value': 'Joe Bloggs',\n 'block_id': 'household-composit...
python
edit
1
2
mit
182a9498fd2ef5a6cc973ea42fc99b47505ae4f4
ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner
app/submitter/convert_payload_0_0_2.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.conf import settings\nfrom django.utils.dateparse import parse_datetime\nimport os\nfrom .saltedge import SaltEdge\nfrom .models import Transaction, Category\nfrom decimal import Decimal\n\n\nclass Impo...
python
edit
5
3
mit
7447de560c064d251ec58ca35814f476005335ae
ltowarek/budget-supervisor
budgetsupervisor/transactions/forms.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (C) 2012 Peter Teichman\n\nimport itertools\nimport logging\n\nfrom cobe.analysis import (\n AccentNormalizer, StemNormalizer, TokenNormalizer, WhitespaceAnalyzer)\nfrom cobe.kvstore import SqliteStore\nfrom cobe.model import...
python
edit
1
1
mit
d58576bc658f1433351c0cf9ac0225537e17f472
wodim/cobe-ng,LeMagnesium/cobe,pteichman/cobe,tiagochiavericosta/cobe,meska/cobe,pteichman/cobe,LeMagnesium/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,DarkMio/cobe,meska/cobe,DarkMio/cobe
cobe/brain.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nStandalone benchmark runner\n\"\"\"\n\nimport cProfile\nimport pstats\nimport profile\nimport numpy as np\n\nprint(\"Running Rust, Python, and C++ benchmarks. 100 points, 50 runs.\\n\"...
python
edit
2
0
mit
49bc3e16e260765b76cb1015aa655cc7f57055d2
urschrei/pypolyline,urschrei/pypolyline,urschrei/pypolyline
benchmarks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#######################################################################\n# Name: test_pathologic_models\n# Purpose: Test for grammar models that could lead to infinite loops are\n# handled properly.\n# Author: Igo...
python
edit
1
1
mit
f41b06ca9a61b75bdb6cef0a0c534755ca80a513
leiyangyou/Arpeggio,leiyangyou/Arpeggio
tests/unit/test_pathologic_models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef GET(route, handler):\n return (\"GET\", route, handler)\n\n\ndef POST(route, handler):\n return (\"POST\", route, handler)\n\n\ndef PUT(route, handler):\n return (\"PUT\", route, handler)\n\n\ndef PATCH(route, handler):\n re...
python
edit
1
1
bsd-3-clause
bc012979f86b9ccd0842ef721b86a7e72811942c
brinkframework/brink
brink/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import url\nfrom django.contrib import admin\n\nfrom . import views, feeds\nfrom .api import views as api\n\n\nadmin.autodiscover()\n\napp_name = 'name'\nurlpatterns = [\n url(r'^$', views.landing, name='landing'),\...
python
edit
1
0
bsd-3-clause
0dbab7d21f6faf2091590c138e64d5f00f094eb5
unt-libraries/django-name,unt-libraries/django-name,unt-libraries/django-name
name/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import absolute_import\n\nimport ast\nimport sys\nimport struct\n\ntry:\n import ujson as json\nexcept ImportError:\n import json\n\nPY3 = sys.version_info[0] == 3\n\nif PY3:\n string_type...
python
edit
2
3
mit
dcddc500ec8ae45c1a33a43e1727cc38c7b7e001
aldanor/blox
blox/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nInternal utils\n\"\"\"\n\n\ndef add_media(dest, media):\n \"\"\"\n Optimized version of django.forms.Media.__add__() that doesn't create new objects.\n \"\"\"\n dest.add_css(media._css)\n dest.add_js(media._js)\n\n```...
python
edit
1
2
bsd-3-clause
120520e44d7dfcf3079bfdc9a118d28b5620cb14
chrisglass/django_polymorphic,chrisglass/django_polymorphic
polymorphic/formsets/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, url, include\nfrom servicerating import api\nfrom tastypie.api import Api\n\n\n# Setting the API base name and registering the API resources using\n# Tastypies API function\napi_resources = Api(api_nam...
python
edit
1
0
bsd-3-clause
cb0b742ad05adceb6b58a71ca5d1e33985145a54
praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control,praekelt/ndoh-control
servicerating/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Licensed under a 3-clause BSD style license - see LICENSE.rst\n\"\"\"Checks for optional dependencies using lazy import from\n`PEP 562 <https://www.python.org/dev/peps/pep-0562/>`_.\n\"\"\"\nimport importlib\n\n# This list is a duplicate ...
python
edit
1
3
bsd-3-clause
1f65142b754478570a3733f4c0abbf3ef24d9c7e
larrybradley/photutils,astropy/photutils
photutils/utils/_optional_deps.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nNotification\n===========\n\nThe :class:`Notification` provides access to public methods to create\nnotifications.\n\nSimple Examples\n---------------\n\nTo send notification::\n\n >>> from plyer import notification\n >>> title =...
python
edit
1
1
mit
14ebd4a0e570102e97fb65bbb0813d85e763c743
KeyWeeUsr/plyer,kivy/plyer,KeyWeeUsr/plyer,KeyWeeUsr/plyer,kivy/plyer,kivy/plyer
plyer/facades/notification.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\"\"\"\ncookiecutter.main\n-----------------\n\nMain entry point for the `cookiecutter` command.\n\nThe code in this module is also a good example of how to use Cookiecutter as a\nlibrary ra...
python
edit
1
3
bsd-3-clause
2ee763ae1e4564a57692cb7161f99daab4ae77b7
atlassian/cookiecutter,dajose/cookiecutter,luzfcb/cookiecutter,foodszhang/cookiecutter,Springerle/cookiecutter,willingc/cookiecutter,utek/cookiecutter,takeflight/cookiecutter,takeflight/cookiecutter,willingc/cookiecutter,stevepiercy/cookiecutter,vincentbernat/cookiecutter,cguardia/cookiecutter,0k/cookiecutter,nhomar/co...
cookiecutter/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport uuid\n\nfrom django.db import models\nfrom django.contrib.auth.models import User\nfrom django.utils.translation import ugettext as _\n\nfrom symposion.conference.models import Conference\n\nfrom root.models import Base\n\nclass Tshi...
python
edit
1
1
mit
d53b05f648053d46c6b4b7353d9acb96d6c18179
PyConPune/pune.pycon.org,PyConPune/pune.pycon.org,PyConPune/pune.pycon.org
inventory/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\nimport os\nimport sys\n\n# Add the Python root directory (fusion-engine-client/python/) to the import search path to enable FusionEngine imports\n# if this application is being run directly out of the repository an...
python
edit
8
0
mit
8be5a5bcbd228599ce7a4f226638feb3dc3318a8
PointOneNav/fusion-engine-client,PointOneNav/fusion-engine-client,PointOneNav/fusion-engine-client
python/examples/encode_message.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\nfrom IPython.external.qt_for_kernel import QtCore, QtGui\n\ndef inputhook(context):\n app = QtCore.QCoreApplication.instance()\n if not app:\n return\n event_loop = QtCore.QEventLoop(app)\n\n if sys.platform =...
python
edit
1
4
bsd-3-clause
3a42b33124d6036dacee85867e484cb25d32a903
ipython/ipython,ipython/ipython
IPython/terminal/pt_inputhooks/qt.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .. utils import TranspileTestCase, BuiltinFunctionTestCase\n\n\nclass ListTests(TranspileTestCase):\n pass\n\n\nclass BuiltinListFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):\n functions = [\"list\"]\n\n not_imple...
python
edit
1
0
bsd-3-clause
535dbef3caf4130cc8543be4aa54c8ce820a5b56
cflee/voc,glasnt/voc,pombredanne/voc,gEt-rIgHt-jR/voc,ASP1234/voc,Felix5721/voc,freakboy3742/voc,pombredanne/voc,Felix5721/voc,freakboy3742/voc,gEt-rIgHt-jR/voc,glasnt/voc,cflee/voc,ASP1234/voc
tests/builtins/test_list.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport gntp\nimport Growl\n\nclass GNTPRegister(gntp.GNTPRegister):\n\tdef send(self):\n\t\tprint 'Sending Registration'\n\t\tgrowl = Growl.GrowlNotifier(\n\t\t\tapplicationName\t\t\t= self.headers['Application-Name'],\n\t\t\tnotifications\...
python
edit
3
3
mit
2d25e6e70df357d19d9e873d94ac57d25bd7e6aa
kfdm/gntp-regrowl
local.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: UTF-8 -*-\n# Copyright 2016 Luc Saffre\n# License: BSD (see file COPYING for details)\n\"\"\"Fixtures specific for the Team variant of Lino Noi.\n\n.. autosummary::\n :toctree:\n\n models\n\n\n\"\"\"\n\nfrom lino_xl.lib.ti...
python
edit
3
2
bsd-2-clause
d95dd9d3acbd56fd91b67cdfcc1fa9d1758770eb
khchine5/noi,lsaffre/noi,lsaffre/noi,khchine5/noi,lsaffre/noi,lino-framework/noi,lino-framework/noi
lino_noi/lib/tickets/__init__.py
rejected_duplicate
Near-duplicate of sample 4908
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .. utils import TranspileTestCase, BuiltinFunctionTestCase\n\n\nclass DictTests(TranspileTestCase):\n pass\n\n\nclass BuiltinDictFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):\n functions = [\"dict\"]\n\n not_imple...
python
edit
1
0
bsd-3-clause
2848badf17fd77138ee9e0b3999805e7e60d24c0
cflee/voc,freakboy3742/voc,freakboy3742/voc,cflee/voc
tests/builtins/test_dict.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# encoding: utf8\n\n\nfrom __future__ import (absolute_import, print_function, division, unicode_literals)\n\n# See - http://www.python.org/dev/peps/pep-0440/\n# See - http://semver.org\n__author__ = 'Roy Levien'\n__c...
python
edit
1
0
bsd-3-clause
a0342631d6888f4748af9011839020ee0843a721
orome/crypto-enigma-py
crypto_enigma/_version.py
rejected_duplicate
Near-duplicate of sample 934
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"Package for coverage.space-cli.\"\"\"\n\nimport sys\n\n__project__ = 'coverage.space'\n__version__ = '0.6.1'\n\nAPI = 'http://api.coverage.space'\n\nVERSION = \"{0} v{1}\".format(__project__, __version__)\n\n```\n\nApply this change: ...
python
edit
3
0
mit
2ea8fa8d0f00e8b9b52e6af9fdfeb1db7dcd0787
jacebrowning/coverage-space-cli
coveragespace/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport uos\nfrom flashbdev import bdev\n\n\ndef check_bootsec():\n buf = bytearray(bdev.ioctl(5, 0)) # 5 is SEC_SIZE\n bdev.readblocks(0, buf)\n empty = True\n for b in buf:\n if b != 0xFF:\n empty = False\n ...
python
edit
1
4
mit
a780d95b76404e46f5060d830fb95b0179716569
pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython
ports/esp32/modules/inisetup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf8 -*-\nimport os\nfrom setuptools import setup, find_packages\n\nos.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'\n\n\ndef _read_long_description():\n try:\n import pypandoc\n return pypandoc.convert...
python
edit
1
2
mit
639eb2da0e239d362b3416e9137b9dcee8da1c87
frecar/django-basis
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nsetup(\n name='rest-server',\n version='0.1.0',\n url=\"http://github.io/boundary/rest-server\",\n author='David Gwartney',\n author_email='<EMAIL>',\n packages=['restserver', ],\n en...
python
edit
1
0
apache-2.0
381a266830bbc92bdf6cacb9e4a1ff7044c07c19
boundary/rest-server
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\nsetup(\n name='kai',\n version='0.1',\n d...
python
edit
1
0
bsd-3-clause
cc997a7fd67306891fa5a0a73700712505286be1
Pylons/kai,Pylons/kai
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os, sys\nsys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))\n\nfrom distutils.core import setup\nimport wtforms\n\nsetup(\n name='WTForms',\n version=wtforms.__version__,\n url='http://wtforms.simplecodes.com/',\...
python
edit
1
0
bsd-3-clause
ce8f864d3254acc19595e35dcb0b1e75efeb6b34
Khan/wtforms
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages, Command\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_pac...
python
edit
3
0
mit
4182b5edbc635842429e77cf8bb1b565f2ca6e31
vortec/versionbump
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\n# WARNING! WIP, doesn't work correctly.\n# Still needs to understand the assets folder and make an executable out of __main__\n\nfrom setuptools import setup, find_packages\n\n# We want to restrict newer versions w...
python
edit
2
0
mit
702f331cc70ee989d7542c81d85fc3dccbf550a0
TAOTheCrab/CrabBot
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\n\nsetup(\n name='pyenvsettings',\n version='1.0.0',\n author='Hugo Osvaldo Barrera',\n author_email='<EMAIL>',\n packages=['envsettings'],\n package_data={'': ['logging.json']},\n url...
python
edit
1
0
isc
fa55a1a93dd53023159c4a21963361d9678e52cf
hobarrera/envsettings,hobarrera/envsettings
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"distutils\n\nThe main package for the Python Module Distribution Utilities. Normally\nused from a setup script as\n\n from distutils.core import setup\n\n setup (...)\n\"\"\"\n\n# This module should be kept compatible with Python...
python
edit
1
0
mit
aa1f421161e9afe20e0f28532d2b0327a8654a13
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
Lib/distutils/__init__.py
rejected_duplicate
Near-duplicate of sample 3843
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"UtilityBelt\",\n version=\"0.1\",\n description=\"Utilities to make you a CND Batman\",\n url=\"https://github.com/sroberts/utilitybelt\",\n license=\"MIT\",\n ...
python
edit
1
0
mit
b890061942473f5ada953a7c33847937abdc36b0
yolothreat/utilitybelt,yolothreat/utilitybelt
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2015 Nicolas JOUANIN\n#\n# See the file license.txt for copying permission.\n\nfrom setuptools import setup, find_packages\nfrom hbmqtt.version import get_version\n\nsetup(\n name=\"hbmqtt\",\n version=get_version(),\n...
python
edit
1
0
mit
c1423ff0782c08886b2ab46355ad6d94fc54ba19
beerfactory/hbmqtt
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python2\n\nfrom distutils.core import setup\n\nsetup(name='visram',\n version='0.1.0',\n description='Graphical RAM/CPU Visualizer',\n license='MIT',\n author='Matthew Pfeiffer',\n author_email='<EMAI...
python
edit
1
0
mit
e1ad029fc8d9f34fc5fbbd5d2a12b9f6bd198bff
Spferical/visram
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport sys, os\n\nversion = '0.1'\n\nsetup(name='kotti_contactform',\n version=version,\n description=\"Simple contact form for Kotti sites\",\n long_description=\"\"\"\\\nThis is ...
python
edit
5
0
bsd-2-clause
6c1c38a9c293527bfb4bb5689675f0ef6b385f75
Kotti/kotti_contactform
setup.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(name='dltk',\n version='0.1',\n description='Deep Learning Toolkit for Medical Image Analysis',\n author='DLTK Contributors',\n url='https://d...
python
edit
1
0
apache-2.0
1b992df4b7e8a36a5836b05217861cb1a7c62f8b
DLTK/DLTK
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\nconfig = {\n 'description': 'A LMTP server class',\n 'long_description': 'A LMTP counterpart to smtpd in the Python standard library'...
python
edit
1
0
mit
e3c8e72341fea566113e510b058141c9ff75c0ea
moggers87/lmtpd
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n###############################################################################\n# Copyright 2015-2019 University of Florida. All rights reserved.\n# This file is part of UF CTS-IT's NACCulator project.\n# Use of this source code is governe...
python
edit
1
0
bsd-2-clause
469546a923aa4eceda787d468a6f4312594d45d0
ctsit/nacculator,ctsit/nacculator,ctsit/nacculator
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nversion = \"0.5.1\"\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n name=\"arxiv\",\n version=version,\n packages=[\"arxiv\"],\n\n # dependencies\n insta...
python
edit
1
0
mit
226f2a5674c9d1d16801cfe7b8c5ac636e849b4a
lukasschwab/arxiv.py
setup.py
accepted
null
true