messages
listlengths
2
2
language
stringclasses
8 values
prompt_type
stringclasses
2 values
lint_errors
int64
0
129
⌀
cyclomatic_complexity
int64
0
32
⌀
license
stringclasses
7 values
commit
stringlengths
40
40
repos
stringlengths
5
116k
new_file
stringlengths
4
220
status
stringclasses
6 values
error
stringlengths
26
74
⌀
is_valid_syntax
bool
2 classes
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\nsetup(\n name = 'gdaxcli',\n packages = ['gdaxcli'],\n version = '0.1',\n description = 'Commandline client for trading on GDAX',\n author = 'Son Pham',\n author_email = '<EMAIL>',\n ur...
python
edit
1
0
mit
f9f65019230f8c694a61053d571093cd87db4950
sonph/gdaxcli,sonph/gdaxcli
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport bookmarks\nimport unittest\n\n\nclass FlaskrTestCase(unittest.TestCase):\n def setUp(self):\n self.app = bookmarks.app.test_client()\n # with bookmarks.app.app_context():\n bookmarks.database.init_db()\n\n ...
python
edit
1
1
apache-2.0
397eb3ee376acec005a8d7b5a4c2b2e0193a938d
byanofsky/bookmarks,byanofsky/bookmarks,byanofsky/bookmarks
tests/test_bookmarks.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom control_milight.models import LightAutomation\nfrom control_milight.views import update_lightstate\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand, CommandError\nfrom django.utils.timezone import ...
python
edit
3
5
bsd-3-clause
f9a4ad56230de8c057e259b14fb14a309b2de0c0
ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display
homedisplay/control_milight/management/commands/run_timed.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import find_packages, setup\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\ndef requirements(fname):\n return [line.strip()\n for line in open(os....
python
edit
1
2
mit
3e7624aeeff08eb03935b29286a754de59ea318d
nkmrtty/SlackLogger
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport zipfile\n\nimport zipfile\ntry:\n import zlib\n mode= zipfile.ZIP_DEFLATED\nexcept:\n mode= zipfile.ZIP_STORED\n\n\n\ndef unzipDir(inputDir):\n for root, dirs, files in os.walk(inputDir):\n for f in file...
python
edit
8
5
mit
f11cf81bec8c1590aa8cbeb65209b493f96dd766
borchert/metadata-tools
general/zipUnzip.py
rejected_lint
Too many lint violations: 8
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom sqlalchemy import create_engine, Column, Float, Integer, String\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy.engine.url import URL\n\nimport settings\n\nDeclarativeBase = declarative_base()\n\ndef db_connec...
python
edit
1
1
mit
85542282162158e9e3d0ff339ee67d7809fb2a3c
piatra/ssl-project
src/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.test import TestCase\n\nfrom django.contrib.auth.models import User\n\nfrom pinax.ratings.models import Rating\n\nfrom .models import Car\n\n\nclass Tests(TestCase):\n\n def setUp(self):\n self.paltman = User.objects.c...
python
edit
1
1
mit
2e5ec8483930ad328b0a212ccc4b746f73b18c4c
rizumu/pinax-ratings,pinax/pinax-ratings,arthur-wsw/pinax-ratings,arthur-wsw/pinax-ratings,pinax/pinax-ratings,arthur-wsw/pinax-ratings,pinax/pinax-ratings,rizumu/pinax-ratings,rizumu/pinax-ratings
pinax/ratings/tests/tests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# This file is part of the Indico plugins.\n# Copyright (C) 2020 - 2021 CERN and ENEA\n#\n# The Indico plugins are free software; you can redistribute\n# them and/or modify them under the terms of the MIT License;\n# see the LICENSE file fo...
python
edit
1
0
mit
7a35cc6aa667b3fd144fabfa24bbf2397cd5c011
indico/indico-plugins,indico/indico-plugins,indico/indico-plugins,indico/indico-plugins
vc_zoom/setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport re\nfrom setuptools import setup\n\n_versionRE = re.compile(r'__version__\\s*=\\s*\\\"([^\\\"]+)\\\"')\n# read the version number for the settings file\nwith open('lib/glyphConstruction.py', \"r\") as settings:\n code = settings.r...
python
edit
1
0
mit
4ce1742472fc636aebd176a33b5fa7a819713fe7
typemytype/GlyphConstruction,moyogo/glyphconstruction,moyogo/glyphconstruction,typemytype/GlyphConstruction
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nfrom wdom.log import configure_logger\n\nconfigure_logger()\n\n```\n\nApply this change: Revert configure logger at initialization" }, { "role": "assistant", "content": "#!/usr/...
python
edit
1
0
mit
8bf5edab5cebb0e713d67c0ec5f866b2d63d537b
miyakogi/wdom,miyakogi/wdom,miyakogi/wdom
wdom/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nfrom lib.base_plugin import BasePlugin\nfrom lib.paths import SteamGamesPath\n\n\nclass HitmanCodename47Plugin(BasePlugin):\n Name = \"Hitman: Codename 47\"\n support_os = [\"Windows\"]\n\n def backup(self, _):\n ...
python
edit
1
2
mit
f8b52162748ccf62db881fad101e6a91ed014bd4
Pr0Ger/SGSB
plugins/Hitman_Codename_47.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport binascii\nimport base64\n\nimport click\n\n\ndef to_base64(value):\n value = base64.urlsafe_b64encode(value.encode(\"utf-8\")).decode(\"utf-8\")\n return f\"base64:{value}\"\n\n\ndef from_base64(value):\n if value.startswith...
python
edit
1
5
mit
b07964e8b243b151e64af86cb09a37e980f94eb1
vantage-org/vantage,vantage-org/vantage
vantage/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n__version__ = '0.3.6'\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
6602471252a7c8e3dd3ab94db54e45fccfc6e62f
toidi/hadoop-yarn-api-python-client
yarn_api_client/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom django.db import models\nfrom django_countries.fields import CountryField\n\n\nclass GuitarSociety(models.Model):\n \"\"\"\n Represents a single guitar society.\n\n .. versionadded:: 0.1\n \"\"\"\...
python
edit
1
1
bsd-3-clause
c6d50c3feed444f8f450c5c140e8470c6897f2bf
chrisguitarguy/GuitarSocieties.org,chrisguitarguy/GuitarSocieties.org
societies/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom setuptools import setup\nimport lib as asteval\n\nsetup(name = 'asteval',\n version = asteval.__version__,\n author = 'Matthew Newville',\n author_email = '<EMAIL>',\n url = 'http://github.co...
python
edit
1
0
mit
08bb3ffa6a82186557f5f7a1305b1039b7172305
newville/asteval
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom __future__ import print_function, unicode_literals\nfrom nikola import nikola\nn = nikola.Nikola()\nn.init_plugins()\n\nprint(\"\"\".. title: Path Handlers for Nikola\n.. slug: path-handlers\n.. author: The Nik...
python
edit
1
0
mit
0d7c0b045c4a2e930fe0d7aa68b96d5a99916a34
s2hc-johan/nikola,wcmckee/nikola,gwax/nikola,x1101/nikola,okin/nikola,masayuko/nikola,xuhdev/nikola,wcmckee/nikola,gwax/nikola,knowsuchagency/nikola,atiro/nikola,andredias/nikola,gwax/nikola,xuhdev/nikola,atiro/nikola,x1101/nikola,okin/nikola,knowsuchagency/nikola,wcmckee/nikola,okin/nikola,getnikola/nikola,masayuko/ni...
scripts/document_path_handlers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport codecs\n\nfrom os import path\nfrom setuptools import find_packages, setup\n\n\ndef read(*parts):\n filename = path.join(path.dirname(__file__), *parts)\n with codecs.open(filename, encoding=\"utf-8\") as fp:\n return fp...
python
edit
1
1
mit
02d842623a5b17e62d1cbfc829b0023508cf7f25
rizumu/pinax-likes,jacobwegner/phileo,pinax/phileo,jacobwegner/phileo,pinax/phileo,rizumu/pinax-likes,pinax/pinax-likes
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom tastypie import fields\nfrom tastypie.authorization import DjangoAuthorization\n\nfrom panda.api.utils import PandaApiKeyAuthentication, PandaModelResource, PandaSerializer\nfrom panda.models import ActivityLog...
python
edit
1
2
mit
bd2d1869894b30eb83eb11ec6e9814e7ab2d4168
ibrahimcesar/panda,PalmBeachPost/panda,ibrahimcesar/panda,NUKnightLab/panda,pandaproject/panda,datadesk/panda,newsapps/panda,ibrahimcesar/panda,newsapps/panda,pandaproject/panda,PalmBeachPost/panda,PalmBeachPost/panda,NUKnightLab/panda,pandaproject/panda,pandaproject/panda,ibrahimcesar/panda,ibrahimcesar/panda,PalmBeac...
panda/api/activity_log.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\ndef _is_requirement(line):\n \"\"\"Returns whether the line is a valid package requirement.\"\"\"\n line = line.strip()\n return line and not line.startswith(\"#\")\n\ndef _read_requir...
python
edit
1
3
mit
2bbe25ba8593569a530bbdfa7f6787395315ed4d
nyaruka/python-librato-bg
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport click\nimport sys\n\nfrom egpackager.datasources import GspreadDataSource\n\n@click.group()\ndef cli():\n '''\n\n '''\n pass\n\n\n@cli.command()\ndef register():\n click.echo(click.style('Initiali...
python
edit
4
6
mit
921421e4d9e2d536596980e14286db5faa83dd5c
VUEG/egpackager
egpackager/cli.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\nimport os\nimport sys\nimport string\n\ndef main():\n \"\"\"\n Executes the tests. Requires the CherryPy live server to be installed.\n \"\"\"\n command = \"python manage.py test\"\n options = \"--exe --with-s...
python
edit
1
2
mit
1c78dfa0e0d1905910476b4052e42de287a70b74
jtakayama/makahiki-draft,jtakayama/ics691-setupbooster,csdl/makahiki,yongwen/makahiki,yongwen/makahiki,jtakayama/makahiki-draft,yongwen/makahiki,justinslee/Wai-Not-Makahiki,csdl/makahiki,jtakayama/makahiki-draft,yongwen/makahiki,csdl/makahiki,csdl/makahiki,jtakayama/makahiki-draft,jtakayama/ics691-setupbooster,jtakayam...
runtests.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Flask\nimport logging\n\napp = Flask(__name__)\napp.debug = True\n\nstream_handler = logging.StreamHandler()\napp.logger.addHandler(stream_handler)\napp.logger.setLevel(logging.INFO)\n\n\n@app.route('/')\ndef root_url():\n...
python
edit
1
2
apache-2.0
384b2f1725e01d7f130670598821f03df64d32fe
CiprianAlt/hello_flask,CiprianAlt/hello_flask,ciprianc/hello_flask,ciprianc/hello_flask
hello_flask/hello_flask_web.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom django.template.defaultfilters import pluralize\n\nfrom .forms import EnvironmentVariableForm\nfrom .models import EnvironmentVariable, Project\n\n\nclass EnvironmentVariableMixin:\n form = Environm...
python
edit
1
2
mit
b3979a46a7bcd71aa9b40892167910fdeed5ad97
frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq
frigg/projects/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"errors and exceptions.\"\"\"\n\nfrom distutils.version import LooseVersion\nfrom pkg_resources import get_distribution\nfrom six import text_type\nfrom werkzeug import exceptions\n\nwerkzeug_exception = None\nwerkzeug_version = get_di...
python
edit
4
3
mit
5c11a65af1d51794133895ebe2de92861b0894cf
alisaifee/flask-limiter,alisaifee/flask-limiter
flask_limiter/errors.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\nfrom registration.models import RegistrationProfile\n\n\nclass RegistrationAdmin(admin.ModelAdmin):\n list_display = ('__unicode__', 'activation_key_expired')\n search_fields = ('user__username', 'u...
python
edit
1
0
bsd-3-clause
94596f036270f8958afd84eb9788ce2b15f5cbd4
rafaduran/django-pluggable-registration,rbarrois/django-registration,maraujop/django-registration,thedod/django-registration-hg-mirror,CoatedMoose/django-registration,AndrewLvov/django-registration,AndrewLvov/django-registration,aptivate/django-registration,fedenko/django-registration,CoatedMoose/django-registration,ch...
registration/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='tangled.contrib',\n version='0.1a3.dev0',\n description='Tangled namespace for contributed packages',\n long_description=open('README.rst').read(),\n url='http://tangledframewo...
python
edit
1
0
mit
4b933366d1a8e849ac8f07c9075e939dd4ed3f5f
TangledWeb/tangled.contrib
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nex import box\n\n\ndef test_glue_flex():\n h_box = box.HBox(contents=[box.Glue(dimen=100, stretch=50, shrink=20),\n box.Glue(dimen=10, stretch=350, shrink=21)],\n set_glue=False)\n ...
python
edit
1
1
mit
e49638c1b2f844e3fa74e00b0d0a96b7c9774c24
eddiejessup/nex
test/test_box.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='armet',\n version='0.3.0-pre',\n description='Clean and modern framework for creating RESTful APIs.',\n author='Concordus Applications',\n ...
python
edit
1
0
mit
738bab6b6df6ea0b7ac3b97ceadef8a50c90cf78
armet/python-armet
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport abc\nimport subprocess\n\nimport gitdir\n\nclass Host(abc.ABC):\n @abc.abstractmethod\n def __iter__(self):\n raise NotImplementedError()\n\n @abc.abstractmethod\n def __str__(self):\n raise NotImplementedEr...
python
edit
1
2
mit
c7a209d2c4455325f1d215ca1c12074b394ae00e
fenhl/gitdir
gitdir/host/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport cassiopeia as cass\nfrom cassiopeia.core import Summoner\n\ndef test_cass():\n name = \"Kalturi\"\n\n masteries = cass.get_masteries()\n for mastery in masteries:\n print(mastery.name)\n\n\nif __name__ == \"__main__\"...
python
edit
1
2
mit
384822f44d0731f425698cc67115d179d8d13e4c
10se1ucgo/cassiopeia,meraki-analytics/cassiopeia,robrua/cassiopeia
examples/mastery.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='polygraph',\n version='0.1.0',\n description='Python library for defining GraphQL schemas',\n url='https://github.com/polygraph-python/polygraph',\n author='Wei Yen, Lee',\n ...
python
edit
1
0
mit
509abc7bf7fc73dcb06b1eb1738b2e3a3ed4d438
polygraph-python/polygraph
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport time\nfrom django.test import TestCase\n\nfrom django.contrib.auth.models import User\nfrom django.conf import settings\n\nfrom rest_framework.renderers import JSONRenderer\nfrom rest_framework.parsers import JSONParser\nfrom io impo...
python
edit
33
1
bsd-3-clause
879b093f29135750906f5287e132991de42ea1fe
EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient
mqtt/tests/test_client.py
rejected_lint
Too many lint violations: 33
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#! /usr/bin/env python3\nfrom distutils.core import setup\n\nsetup(\n description = 'File downloader for danbooru',\n author = 'Todd Gaunt',\n url = 'https://www.github.com/toddgaunt/danboorsync',\n download_url = 'https://www.g...
python
edit
1
0
isc
3dc90a8173dd3520fd4f335efe9adb77b9167f80
toddgaunt/imgfetch
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom rest_framework import serializers\n\nfrom .models import Vacancy\n\n\nclass VacancySerializer(serializers.HyperlinkedModelSerializer):\n \"\"\"\n Common vacancy model serializer\n \"\"\"\n class Meta:\n model = Vacan...
python
edit
1
0
mit
a389f20c7f2c8811a5c2f50c43a9ce5c7f3c8387
pyshopml/jobs-backend,pyshopml/jobs-backend
jobs_backend/vacancies/serializers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright Hybrid Logic Ltd. See LICENSE file for details.\n\n\"\"\"\nTests for top-level ``flocker`` package.\n\"\"\"\n\nfrom sys import executable\nfrom subprocess import check_output, STDOUT\n\nfrom twisted.trial.unittest import Synchr...
python
edit
1
1
apache-2.0
61cef22952451df6345355ad596b38cb92697256
beni55/flocker,hackday-profilers/flocker,achanda/flocker,adamtheturtle/flocker,mbrukman/flocker,Azulinho/flocker,w4ngyi/flocker,agonzalezro/flocker,agonzalezro/flocker,1d4Nf6/flocker,moypray/flocker,AndyHuu/flocker,lukemarsden/flocker,wallnerryan/flocker-profiles,mbrukman/flocker,w4ngyi/flocker,Azulinho/flocker,LaynePe...
flocker/test/test_flocker.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding=utf8\n\nimport os\n\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(name='simplekv',\n version='0.9.4...
python
edit
1
1
mit
592f43df660fe87e0fce30e390019ed0a031a5aa
karteek/simplekv,fmarczin/simplekv,fmarczin/simplekv,mbr/simplekv,mbr/simplekv,karteek/simplekv
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom scipy import optimize as o\nimport clean as c\n\ndef minimize(func, guess):\n return o.minimize(func, guess)\n\n\n\ndef minimize_scalar(func, options):\n bracket = options['bracket']\n bounds = options['bounds']\n method ...
python
edit
3
2
mit
94dad4c56a4b6a1968fa15c20b8482fd56774f32
acjones617/scipy-node,acjones617/scipy-node
optimize/py/main.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom nose.tools import eq_, ok_\nfrom tornado.httpclient import HTTPRequest\nimport json\n\nfrom astral.api.tests import BaseTest\nfrom astral.models.node import Node\nfrom astral.models.tests.factories import NodeFactory\n\nclass NodesHand...
python
edit
1
3
mit
e419deba7b1081d1ece70a1840c770d9faad51f0
peplin/astral
astral/api/tests/test_nodes.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\nbase_dir = os.path.dirname(__file__)\nsetup(\n name='elastalert',\n version='0.0.72',\n description='Runs custom filters ...
python
edit
1
0
apache-2.0
c3c95bcfda3af1bc88370dc5108aa7032bcdacff
dvopsway/elastalert,Yelp/elastalert,ltagliamonte/elastalert,rprabhat/elastalert,jetyang2005/elastalert,jetyang2005/elastalert,jetyang2005/elastalert,iamrudra/elastalert
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"picoCTF API v1 app.\"\"\"\n\nfrom flask import Blueprint, jsonify\nfrom flask_restplus import Api\n\nfrom api.common import PicoException\n\nfrom .achievements import ns as achievements_ns\nfrom .problems import ns as problems_ns\nfro...
python
edit
1
1
mit
502d99042428175b478e796c067e41995a0ae5bf
royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF
picoCTF-web/api/apps/v1/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\nfrom Crypto.Cipher import AES\nimport base64\nimport random\nimport string\nfrom modoboa.lib import parameters\n\n\ndef random_key(l=16):\n \"\"\"Generate a random key\n\n :param integer l: the key's length\n :retu...
python
edit
2
3
isc
8bacd0f657a931754d8c03e2de86c5e00ac5f791
tonioo/modoboa,modoboa/modoboa,bearstech/modoboa,carragom/modoboa,tonioo/modoboa,modoboa/modoboa,bearstech/modoboa,carragom/modoboa,bearstech/modoboa,bearstech/modoboa,modoboa/modoboa,carragom/modoboa,modoboa/modoboa,tonioo/modoboa
modoboa/lib/cryptutils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom datetime import datetime\n\nfrom qrcode import ERROR_CORRECT_L, ERROR_CORRECT_M, ERROR_CORRECT_Q, ERROR_CORRECT_H\n\nfrom qr_code.qrcode.image import SVG_FORMAT_NAME\n\nQR_CODE_GENERATION_VERSION_DATE = datetime(year=2018, month=3, day...
python
edit
1
0
bsd-3-clause
ca350c19c068989f3261ea544e660ba14566c376
dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code
qr_code/qrcode/constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.forms import ModelForm\nfrom rest_api.models import Url\n\nclass UrlForm(ModelForm):\n class Meta:\n model = Url\n\n```\n\nApply this change: Remove Url model from admin" }, { "role": "assistant", "content"...
python
edit
1
0
bsd-2-clause
db6cb95d5d4261780482b4051f556fcbb2d9f237
victorpoluceno/shortener_frontend,victorpoluceno/shortener_frontend
rest_api/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\r\nfile: caslogging.py\r\nauthor: Ben Grawi <<EMAIL>>\r\ndate: October 2013\r\ndescription: Sets up the logging information for the CAS Reader\r\n\"\"\"\r\nfrom config import config\r\nimport logging as root_logging\r\n\r\n# Set up t...
python
edit
1
0
mit
00cbac852e83eb1f3ddc03ed70ad32494f16fdbf
bumper-app/bumper-bianca,bumper-app/bumper-bianca
caslogging.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc.\n#\n# Permission to use, copy, modify, and distribute this software and its\n# documentation for any purpose with or without fee is hereby granted,\n# provided that the above copyright noti...
python
edit
1
2
isc
a4bdb7113dba8ed819d8454a1e8f2916ee33d9a6
rcorrieri/dnspython,leeclemens/dnspython,Abhayakara/dnspython,fjxhkj/dnspython,tow/dnspython,cluck/dnspython,tomlanyon/dnspython,preo/dnspython
dns/exception.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom google.appengine.ext import db\n\nTOP_LEVEL_DOMAINS = 'com net org biz info'.split()\n\n\nclass Lookup(db.Model):\n \"\"\"\n The datastore key name is the domain name, without top level.\n\n IP address fields use 0 (zero) for ...
python
edit
2
2
mit
edd5adc9be2a700421bd8e98af825322796b8714
jcrocholl/nxdom,jcrocholl/nxdom
dns/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals, division, absolute_import, print_function\n\nimport os\nimport site\nimport sys\n\nfrom . import build_root, requires_oscrypto\nfrom ._import import _preload\n\n\ndeps_dir = os.path....
python
edit
1
4
mit
3410fba1c8a39156def029eac9c7ff9f779832e6
wbond/oscrypto
dev/ci.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np\nfrom scipy.io import wavfile\n\ndef normalize(samples):\n max_value = np.max(np.abs(samples))\n return samples / max_value if max_value != 0 else samples\n\ndef save_wav(samples, filename, fs=44100, should_normaliz...
python
edit
1
2
mit
9d2161ada6a0d957ca13e49431533770ef672014
bzamecnik/tfr,bzamecnik/tfr
files.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n# Define your item pipelines here\n#\n# Don't forget to add your pipeline to the ITEM_PIPELINES setting\n# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html\nfrom scrapy.exceptions import DropItem\n\n...
python
edit
1
2
mit
4be8c3f8164fe0973d6277ea0d827b777cd4a988
iandees/all-the-places,iandees/all-the-places,iandees/all-the-places
locations/pipelines.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nCartoDB Services Python Library\n\nSee:\nhttps://github.com/CartoDB/geocoder-api\n\"\"\"\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='cartodb_services',\n\n version='0.6.2',\n\n description='CartoDB Serv...
python
edit
1
0
bsd-3-clause
9ad55a4d532dc98f257206ae82b5d06f4203a4d4
CartoDB/geocoder-api,CartoDB/geocoder-api,CartoDB/dataservices-api,CartoDB/dataservices-api,CartoDB/dataservices-api,CartoDB/geocoder-api,CartoDB/dataservices-api,CartoDB/geocoder-api
server/lib/python/cartodb_services/setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom .models import Quote, Category, Product\nfrom django.views.generic.edit import CreateView, UpdateView\n\n\nclass QuoteCreateView(CreateView):\n model = Quote\n fields = ['name']\n template_name = 'quote.html'\n success_url ...
python
edit
1
1
mit
436b005217ab92fd06526d9681bc37266c394212
Estmator/EstmatorApp,Estmator/EstmatorApp,Estmator/EstmatorApp
estmator_project/est_quote/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport functools\nimport os.path\nimport shutil\nimport sys\nimport tempfile\n\nimport pytest\n\n\n@pytest.fixture(scope=\"function\")\ndef HOME(tmpdir):\n home = os.path.join(tmpdir, 'john')\n os.mkdir(home)\n # NOTE: homely._util...
python
edit
2
4
mit
4b4ed18f01c13c321285463628bb0a3b70a75ac5
phodge/homely,phodge/homely
test/conftest.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport numpy as np\nfrom pybotics.types import Vector\n\n\ndef test_vector():\n x = [1.1, 2.2, 3.3]\n assert isinstance(x, Vector)\n\n x = np.array([1.1, 2.2, 3.3])\n assert isinstance(x, Vector)\n\n x = (1.1, 2.2, 3.3)\n ...
python
edit
5
1
mit
fd48bda18bac9fe5380205ba1333af0d4066ae82
nnadeau/pybotics
tests/test_types.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django import forms\nfrom logs.models import Log\n\nclass LineCountForm(forms.Form):\n linesToFetch = forms.IntegerField(label=\"Number of lines to show\", min_value=0, initial=Log.defaultLinesToShow)\n```\n\nApply this change: Add to...
python
edit
1
0
mit
5d71215645683a059a51407a3768054c9ea77406
sizlo/RPiFun,sizlo/RPiFun
pisite/logs/forms.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom mbaas.settings import *\n\nINSTALLED_APPS += ('django_nose',)\n\nTEST_RUNNER = 'django_nose.NoseTestSuiteRunner'\n\nNOSE_ARGS = [\n '--cover-erase',\n '--with-xunit',\n '--with-coverage',\n '--cover-xml',\n '--cover-html...
python
edit
5
0
apache-2.0
e9814c857bdbf3d163352abddade1d12f0e30810
nnsnodnb/django-mbaas,nnsnodnb/django-mbaas,nnsnodnb/django-mbaas
mbaas/settings_jenkins.py
rejected_lint
Too many lint violations: 5
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nThis file is run by the system python, and outputs paths the\nimport mechanism in the virtualenv will need to be able to\nimport libraries from.\n\"\"\"\n\nimport json\nimport os\nimport sys\n\n\"\"\"\nReturn paths from the system p...
python
edit
2
1
mit
bfbb685854724285bdbfcd583b3d6c41674a6222
stuaxo/vext
vext/syspy/pyinfo.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import absolute_import, division\n\nfrom genshi.output import DocType\nfrom genshi.template import TemplateLoader\n\nfrom .restzeug import Response, Request as BaseRequest\n\nclass Request(BaseRequest):\n '''This is the c...
python
edit
3
1
mit
6346c8844bc654806e39cf294dad3c57ec303589
gdamjan/vezilka
vezilka/lib/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport tldextract\nimport pyphen\nfrom random import choice\n\nTITLES = ('Mister', 'Little Miss')\nSUFFIXES = ('Destroyer of Worlds', 'the Monkey Botherer', 'PhD')\n\n\ndef generate_name(domain):\n title = choice(TITLES)\n\n _parts = ...
python
edit
1
5
apache-2.0
89d9987f742fa74fc3646ccc163610d0c9400d75
ohmygourd/dewbrick,ohmygourd/dewbrick,ohmygourd/dewbrick
dewbrick/utils.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom itertools import product\nfrom collections import defaultdict\n\n__all__ = (\n 'MouseHandlers',\n)\n\n\nclass MouseHandlers(object):\n \"\"\"\n Two dimentional raster of callbacks for...
python
edit
1
2
bsd-3-clause
316b1f87be3ec75ea629cd95d7727151d8f11391
jonathanslenders/python-prompt-toolkit
prompt_toolkit/layout/mouse_handlers.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.utils import timezone\n\nfrom django.utils.datetime_safe import strftime\n\nfrom hashlib import sha256\n\nfrom markdownx.models import MarkdownxField\n\n\ndef generate_unsub_token(email, date):\n ...
python
edit
1
2
mit
453730335b1e8d5d159350e0752faf282378f5e6
davidjrichardson/uwcs-zarya,davidjrichardson/uwcs-zarya
newsletter/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.urls import reverse\n\n\nclass Document(models.Model):\n FILE_TYPES = ('md', 'txt')\n\n repo = models.ForeignKey('interface.Repo', related_name='documents')\n path = models.TextField()\n ...
python
edit
1
1
mit
6eca222d0bc36b2573a09c1345d940239f8e9d4d
ZeroCater/Eyrie,ZeroCater/Eyrie,ZeroCater/Eyrie
documents/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ntry:\n from hashlib import md5\nexcept ImportError:\n from md5 import md5\n\nfrom django.http import HttpResponseBadRequest\n\nfrom secretballot.middleware import SecretBallotIpUseragentMiddleware\n\n\nclass SecretBallotUserIpUseragen...
python
edit
3
3
bsd-3-clause
6dc90420dcd7dbfa787bd1e132cf5b304f72bfe7
Afnarel/django-likes,Afnarel/django-likes,Afnarel/django-likes
likes/middleware.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Module: defaults\n# Date: 14th May 2008\n# Author: James Mills, prologic at shortcircuit dot net dot au\n\n\"\"\"defaults - System Defaults\n\nThis module contains default configuration and sane defaults for various\nparts of the ...
python
edit
1
0
mit
2f60d4665a960578ab97bdaf313893ec366c24f1
prologic/kdb,prologic/kdb,prologic/kdb
kdb/default_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sh, os\nfrom PblCommand import PblCommand\n\nclass PblBuildCommand(PblCommand):\n name = 'build'\n help = 'Build your Pebble project'\n\n def configure_subparser(self, parser):\n parser.add_argument('--sdk', help='Path to Pebbl...
python
edit
2
2
mit
f2fd7fa693b5be7ae37445fc185611e80aacddf3
pebble/libpebble,pebble/libpebble,pebble/libpebble,pebble/libpebble
pebble/PblBuildCommand.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport os\nimport zipfile\nimport tempfile\n\nfrom datapackage_pipelines.wrapper import ingest, spew\n\nimport gobble\n\nparams, datapackage, res_iter = ingest()\nspew(datapackage, res_iter)\n\nuser = gobble.user.User()\nin_filename = open(...
python
edit
1
0
mit
94351ce09112c7bd4c9ed58722334ee48fe99883
openspending/datapackage-pipelines-fiscal
datapackage_pipelines_fiscal/processors/upload.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# coding: utf-8\nfrom __future__ import unicode_literals\nfrom importlib import import_module\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\n\n\ndef load_test_module():\n \"\"\"\n Import ...
python
edit
1
3
mit
89a7a834638a1384bd9f1a560902b4d3aab29423
djentlemen/django-smoked
smoked/loader.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport watson\nfrom cms.apps.pages.models import ContentBase\nfrom cms.models import HtmlField, SearchMetaBase\nfrom django.db import models\n\n\nclass Careers(ContentBase):\n\n # The heading that the admin places this content under.\n ...
python
edit
1
1
mit
691093e38598959f98b319f7c57852496a26ba90
onespacemedia/cms-jobs,onespacemedia/cms-jobs
apps/careers/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\nfrom rgbmatrix import RGBMatrix\nfrom random import randint\nimport numpy\nimport math\nimport time\n\nrows = 16\nchains = 1\nparallel = 1\nledMatrix = RGBMatrix(rows, chains, parallel)\n\nheight = ledMatrix.height\nw...
python
edit
null
null
mit
5e2aae6070d60f2149c49e1137ab2a99f3966b3a
DarkAce65/rpi-led-matrix,DarkAce65/rpi-led-matrix
python/volumeBars.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n# LING 573 Question Answering System\n# Code last updated 4/17/14 by Clara Gordon\n# This code implements an InfoRetriever for the question answering system.\n\n\nfrom pymur import *\nfrom general_classes import *\n\n\nclass InfoRetriever:\...
python
edit
null
null
mit
ae5a0b42ed6e0e44868e7a0e0a4d5901e2cf9e6b
amkahn/question-answering,amkahn/question-answering
src/info_retrieval/info_retrieval.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom django.utils.html import format_html\nfrom django.urls import reverse\nfrom django.utils.translation import gettext_lazy as _\n\nfrom froide.helper.admin_utils import make_nullfilter\n\nfrom .models im...
python
edit
1
4
mit
a0ceb84519d1bf735979b3afdfdb8b17621d308b
stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide
froide/problem/admin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom flask import Blueprint, render_template, current_app, request\n\nfrom flask_truss.async._task import _task\nfrom flask_truss.libs.logger import log_flask_request\n\n\n_blueprint = Blueprint('_blueprint', __name__, template_folder='temp...
python
edit
null
null
mit
25d93bf202e1735f21b6c3ad5830e660824efde6
bmoar/flask-truss,bmoar/flask-truss
flask_truss/blueprints/_blueprint/__init__.py
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```python\n#\n# This file is part of gruvi. Gruvi is free software available under the terms\n# of the MIT license. See the file \"LICENSE\" that was provided together with\n# this source file for the licensing terms.\n#\n# Copyright (c) 2012 the gruv...
python
edit
1
0
mit
8277a92ed16516a60d7abaaee20603017a511d8e
geertj/gruvi,geertj/gruvi,swegener/gruvi,swegener/gruvi
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Copyright (c) 2013 The Chromium Authors. All rights reserved.\n# Use of this source code is governed by a BSD-style license that can be\n# found in the LICENSE file.\n\n\"\"\"Configuration file for android gtest suites.\"\"\"\n\n# Add new...
python
edit
1
0
bsd-3-clause
7675547ab7669d1df03bf258ffc676799879a191
jaruba/chromium.src,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,Chilledheart/chromium,patrickm/chromium.src,hgl888/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,mark...
build/android/pylib/gtest/gtest_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom poliastro.bodies import (\n Earth,\n Jupiter,\n Mars,\n Mercury,\n Neptune,\n Saturn,\n Uranus,\n Venus,\n)\nfrom poliastro.plotting.core import OrbitPlotter2D, OrbitPlotter3D\nfrom poliastro.twobody import Orbi...
python
edit
3
4
mit
7e2d6cfa6b6a536d1df6e2d2d523a4bb4094f5eb
Juanlu001/poliastro,Juanlu001/poliastro,Juanlu001/poliastro,poliastro/poliastro
src/poliastro/plotting/misc.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom module_interface import Module, ModuleType\nfrom message import IRCResponse, ResponseType\nfrom pyheufybot import globalvars\n\nclass NickServIdentify(Module):\n def __init__(self):\n self.moduleType = ModuleType.PASSIVE\n ...
python
edit
4
2
mit
741133b4fa502fc585c771abef96b6213d3f5214
Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot
pyheufybot/modules/nickservidentify.py
rejected_lint
Too many lint violations: 4
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\n.. module:: dj-stripe.contrib.rest_framework.permissions.\n\n :synopsis: dj-stripe - Permissions to be used with the dj-stripe REST API.\n\n.. moduleauthor:: @kavdev, @pydanny\n\n\"\"\"\nfrom rest_framework.permissions import Bas...
python
edit
1
2
mit
1986000f7e3fff1366de245dadf8cd3b6e53f238
dj-stripe/dj-stripe,dj-stripe/dj-stripe,pydanny/dj-stripe,pydanny/dj-stripe
djstripe/contrib/rest_framework/permissions.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom django.core.management.base import BaseCommand\nfrom django.core.urlresolvers import reverse\n\nfrom ...auth import EmailTokenAuthBackend\n\n\nclass Command(BaseCommand):\n help = \"E-mail login without send...
python
edit
1
4
mit
6cfc9de7fe8fd048a75845a69bdeefc7c742bae4
leandigo/django-oneall,ckot/django-oneall,leandigo/django-oneall,ckot/django-oneall
oneall/django_oneall/management/commands/emaillogin.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom distutils.core import setup\n\nfrom setuptools import find_packages\n\nsetup(\n name='mediawiki-utilities',\n version=\"0.4.15\",\n author='Aaron Halfaker',\n author_email='<EMAIL>',\n packages=find_packages(),\n scri...
python
edit
1
0
mit
e36f55a8a39c6ee696432c2be43d6af1a57db2c2
mediawiki-utilities/python-mediawiki-utilities,halfak/Mediawiki-Utilities
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\nimport urllib.request\n\n\nclass WebAdapter:\n def get(self, urllike):\n url = self.mk_url(urllike)\n try:\n res = urllib.request.urlopen(url)\n return res.read()\n except Exception as e:\n ...
python
edit
1
1
mit
e30e5e9780cfe674a70856609ad6010056936263
kanosaki/PicDump,kanosaki/PicDump
picdump/webadapter.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\n# Constants representing the setting keys for this plugin\nclass PluginSettings:\n HISTOMICSTK_DEFAULT_DRAW_STYLES = 'histomicstk.default_draw_styles'\n\n```\n\nApply this change: Use n...
python
edit
1
0
apache-2.0
9c52c82fab42ee5667791fdea612bcb94b17445e
DigitalSlideArchive/HistomicsTK,DigitalSlideArchive/HistomicsTK
server/constants.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\ndef main():\n pass\n\n\nif __name__ == \"__main__\":\n # execute only if run as a script\n main()\n\n```\n\nApply this change: Check environment variables before the tests are started" }, { "role": "assistant", "content...
python
edit
12
2
apache-2.0
4616fdefc1c7df8acccdd89ea792fa24ecfa9ca6
tisnik/fabric8-analytics-common,tisnik/fabric8-analytics-common,jpopelka/fabric8-analytics-common,tisnik/fabric8-analytics-common,jpopelka/fabric8-analytics-common,jpopelka/fabric8-analytics-common
perf-tests/src/perf-tests.py
rejected_lint
Too many lint violations: 12
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom ..aecdata import ticket_sort_key\n\n\ndef apply_ticket_sort(items):\n return list(sorted(items, key=ticket_sort_key))\n\n\ndef test_a_c_already_sorted():\n assert(apply_ticket_sort(['A', 'B', 'C']) == ['A', 'B', 'C'])\n\n\ndef te...
python
edit
1
1
apache-2.0
155ab92dd2ff4340e4773e22762d52f557b300e8
grahame/dividebatur,grahame/dividebatur,grahame/dividebatur
dividebatur/tests/test_ticket_sort_key.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n return ''\n\nsetup(\n name='todoist-python',...
python
edit
1
2
mit
71523cf20e1fc8525d3065c631c512ab76ed7339
Doist/todoist-python
setup.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntemplate = \"\"\"#!/bin/bash\n#PBS -l walltime=72:00:00\n#PBS -l nodes=1:ppn=1\n\ncd /RQusagers/vanmerb/rnnencdec\n\nexport PYTHONPATH=/RQusagers/vanmerb/rnnencdec/groundhog-private/:$PYTHONPATH\n\npython /RQusagers...
python
edit
2
0
bsd-3-clause
f67746750bdd2a1d6e662b1fc36d5a6fa13098c5
rizar/groundhog-private
scripts/generate.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n\"\"\"\nsentry.queue.client\n~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom kombu import BrokerConnection\nfrom kombu.common import m...
python
edit
1
2
bsd-3-clause
e905334869af72025592de586b81650cb3468b8a
imankulov/sentry,BuildingLink/sentry,zenefits/sentry,korealerts1/sentry,kevinastone/sentry,fotinakis/sentry,fuziontech/sentry,ngonzalvez/sentry,mvaled/sentry,Kronuz/django-sentry,ngonzalvez/sentry,looker/sentry,felixbuenemann/sentry,ngonzalvez/sentry,nicholasserra/sentry,camilonova/sentry,jokey2k/sentry,llonchj/sentry,...
sentry/queue/client.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, url\n\nfrom sitecontent import views\n\n\nurlpatterns = patterns('',\n url(\"^rss/(?P<format>.*)$\",\n \"sitecontent.views.blog_post_feed_richtext_filters\", name=\"blog_post_feed_richtext_fi...
python
edit
3
0
mit
2a4d78be3df2d068431fe007b6f2d73956dc23d4
vjousse/viserlalune,vjousse/viserlalune,vjousse/viserlalune,vjousse/viserlalune
sitecontent/urls.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom sqlalchemy import create_engine, Column, Integer, String\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy.orm import sessionmaker\n\n\nBase = declarative_base()\n\n\nclass Listing(Base):\n __tablename__ = 'l...
python
edit
1
0
mit
525e7d5061326c7c815f4ede7757afb7c085ff78
rlucioni/apartments,rlucioni/craigbot,rlucioni/craigbot
apartments/models.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom __future__ import print_function\nfrom timeit import default_timer as timer\n\nimport json\nimport datetime\n\nprint('Loading function') \n\n\ndef eratosthenes(n):\n sieve = [ True for i in range(n+1) ]\n def markOff(pv):\n ...
python
edit
2
6
mit
0f0a5e42422f71143c8bcbc3278ad0dc3b81c818
jconning/lambda-cpu-cost,jconning/lambda-cpu-cost
eratosthenes_lambda.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom django.shortcuts import render\nfrom django.utils.translation import get_language\n\nfrom lemon.sitemaps.models import Item\n\n\ndef sitemap_xml(request):\n qs = Item.objects.filter(sites=request.site, enabled=True, language=get_lan...
python
edit
1
1
bsd-3-clause
9477478f81315edcc0e5859b2325ea70694ea2be
trilan/lemon,trilan/lemon,trilan/lemon
lemon/sitemaps/views.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Just to insure requirement\nimport colorlog # noqa\n\n# Development mode: use a local OSF dev version and more granular logging\nDEV_MODE = False # TODO (abought): auto-set flag when using `inv start_for_tests`\n\n# General settings\nPR...
python
edit
1
0
apache-2.0
678054b5c890456b903eb43b08855091288d12cc
chennan47/OSF-Offline,chennan47/OSF-Offline
osfoffline/settings/defaults.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Lint as: python2, python3\n# Copyright 2019 Google LLC. 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 c...
python
edit
1
2
apache-2.0
05c9039c364d87c890cffdb9de7f0c8d1f7f9cb3
tensorflow/tfx,tensorflow/tfx
tfx/orchestration/config/kubernetes_component_config.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport json\nimport tornadoredis.pubsub\nimport tornadoredis\nfrom .base_provider import BaseProvider\n\n\nclass RedisSubProvider(BaseProvider):\n def __init__(self):\n self._subscriber = tornadoredis.pubsub.SockJSSubscriber(torna...
python
edit
1
5
bsd-3-clause
d4e03bfcbc6292d3a50237f95c9d67ba5d89a475
sahlinet/swampdragon,boris-savic/swampdragon,michael-k/swampdragon,denizs/swampdragon,aexeagmbh/swampdragon,jonashagstedt/swampdragon,jonashagstedt/swampdragon,d9pouces/swampdragon,boris-savic/swampdragon,sahlinet/swampdragon,aexeagmbh/swampdragon,jonashagstedt/swampdragon,bastianh/swampdragon,boris-savic/swampdragon,m...
swampdragon/pubsub_providers/redis_sub_provider.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom fabric.api import env\n\nenv.client = 'zsoobhan'\nenv.project_code = 'prometheus'\n\nenv.web_dir = 'www'\n\n# Environment-agnostic folders\nenv.project_dir = '/var/www/%(client)s/%(project_code)s' % env\nenv.static_dir = '/mnt/static/%...
python
edit
1
1
mit
d9262650eb1ce108c196bc10b0edcd8de6429dc2
zsoobhan/prometheus,zsoobhan/prometheus,zsoobhan/prometheus,zsoobhan/prometheus
fabconfig.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nimport sys\r\n\r\nfrom .base import Field\r\n\r\n\r\nclass Reserved(Field):\r\n def __init__(self, *args, **kwargs):\r\n super(Reserved, self).__init__(*args, **kwargs)\r\n\r\n # Hack to add the reserved field to the class ...
python
edit
1
3
bsd-3-clause
7e068075c6cd231926cc5f5469472f3fafba7c18
gulopine/steel
biwako/bin/fields/util.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n'''\nReturn data to a mongodb server\n\nThis is the default interface for returning data for the butter statd subsytem\n'''\n\nimport logging\nimport pymongo\n\nlog = logging.getLogger(__name__)\n\n__opts__ = {\n 'mongo.host': 's...
python
edit
1
5
apache-2.0
833ed3352c2e40923c167ddb41edba17db292bb7
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
salt/returners/mongo_return.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Python 2\r\n\r\nimport sys\r\n\r\ndef search_inside(G, P, R, C, r, c):\r\n for i in range(R - r + 1):\r\n for j in range(C - c + 1):\r\n valid = True\r\n for k in range(r):\r\n if G[i + k][j:...
python
edit
3
6
mit
f8d8aac9f342c10268165f4e2e641a6c667f97fd
ugaliguy/HackerRank,ugaliguy/HackerRank,ugaliguy/HackerRank
Algorithms/Implementation/the-grid-search.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# Dutch Language Test\nfrom seleniumbase.translate.dutch import Testgeval\n\n\nclass MijnTestklasse(Testgeval):\n\n def test_voorbeeld_1(self):\n self.openen(\"https://nl.wikipedia.org/wiki/Hoofdpagina\")\n self.controleren...
python
edit
1
1
mit
6bc1f6e466fa09dd0bc6a076f9081e1aa03efdc7
seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase
examples/translations/dutch_test_1.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom functools import partial\nfrom os import environ\nfrom subprocess import Popen, PIPE\n\nLMOD_SYSTEM_NAME = environ.get('LMOD_SYSTEM_NAME', '')\n\ndef module(command, *args):\n cmd = (environ['LMOD_CMD'], 'python', '--terse', command...
python
edit
3
4
mit
f5d4f543cc7265433bf6040335b2f6d592b52b91
cmd-ntrf/jupyter-lmod,cmd-ntrf/jupyter-lmod,cmd-ntrf/jupyter-lmod
lmod/__init__.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\nfrom . import AWSObject, AWSProperty, Tags\nfrom .validators import boolean\n\n\nclass DataResource(AWSProperty):\n props = {\n \"Type\": (str, True),\n \"Values\": ([str], False),\n }\n\n\nclass EventSelector(AWSPropert...
python
edit
1
0
bsd-2-clause
b5006a2820051e00c9fe4f5efe43e90129c12b4d
cloudtools/troposphere,cloudtools/troposphere
troposphere/cloudtrail.py
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```python\n# This file is part of BenchExec, a framework for reliable benchmarking:\n# https://github.com/sosy-lab/benchexec\n#\n# SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nimp...
python
edit
3
4
apache-2.0
889473ba81816aa0ad349823515843c337a6b985
ultimate-pa/benchexec,sosy-lab/benchexec,sosy-lab/benchexec,ultimate-pa/benchexec,ultimate-pa/benchexec,ultimate-pa/benchexec,ultimate-pa/benchexec,sosy-lab/benchexec,ultimate-pa/benchexec,sosy-lab/benchexec,sosy-lab/benchexec,sosy-lab/benchexec
benchexec/tools/deagle.py
accepted
null
true