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 __future__ import absolute_import\nfrom django.http import HttpRequest, HttpResponse\nfrom .github_webhook import api_github_webhook\nfrom .github import api_github_landing\n\n\ndef api_github_webhook_dispatch(request):\n # type: (H... | python | edit | 4 | 2 | apache-2.0 | a61386cbbcbe3e68bcdf0a98c23547117a496fec | AZtheAsian/zulip,dhcrzf/zulip,JPJPJPOPOP/zulip,christi3k/zulip,hackerkid/zulip,verma-varsha/zulip,j831/zulip,Diptanshu8/zulip,dhcrzf/zulip,ryanbackman/zulip,shubhamdhama/zulip,Galexrt/zulip,hackerkid/zulip,andersk/zulip,amyliu345/zulip,j831/zulip,mahim97/zulip,brainwane/zulip,SmartPeople/zulip,ryanbackman/zulip,Galexrt... | zerver/views/webhooks/github_dispatcher.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\n**damn** (aka *digital audio for music nerds*) is an easy-to-use python package\nfor digital audio signal processing, analysis and synthesis.\n\"\"\"\n\n__version__ = '0.0.0'\n\n```\n\nApply this change: [DEV] Add meta information f... | python | edit | 1 | 0 | mit | e43596395507c4606909087c0e77e84c1a232811 | rclement/yodel,rclement/yodel | damn/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nInteractive Crossfilter\n=======================\nThis example shows a multi-panel view of the same data, where you can interactively\nselect a portion of the data in any of the panels to highlight that portion in any\nof the other ... | python | edit | 1 | 0 | bsd-3-clause | f9c7a911411429972929bb4372b370192bd4cf8a | altair-viz/altair,jakevdp/altair | altair/examples/interactive_layered_crossfilter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom urllib.parse import urljoin\nfrom urllib.request import urlopen\nfrom urllib.error import URLError\n\nimport sys\n\nGITHUB_USERS = [('Polymer', '0.5.2')]\n\ndef resolve_missing_user(user, branch, package):\n assets = [\"{}.html\".fo... | python | edit | 1 | 8 | mit | e676877492057d7b370431f6896154702c8459f1 | prophile/webshack | webshack/auto_inject.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name = 'g1.http.servers',\n packages = [\n 'g1.http.servers',\n ],\n install_requires = [\n 'g1.bases',\n 'g1.asyncs.kernels',\n 'g1.asyncs.servers',\n ... | python | edit | 1 | 0 | mit | b87ebdd208e365d135ba2e9d9c96d9e94b8caf8e | clchiou/garage,clchiou/garage,clchiou/garage,clchiou/garage | py/g1/http/servers/setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\n\nsetup(\n name='django-setmagic',\n version='0.2',\n author='Evandro Myller',\n author_email='<EMAIL>',\n description='Magically editable settings for winged pony lovers',\n url='https://gi... | python | edit | 1 | 0 | mit | 1f6c830e68aede8a2267b5749b911d87801f9e5b | 7ws/django-setmagic | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\n\nfrom go.vumitools.conversation.definition import (\n ConversationDefinitionBase, ConversationAction)\n\n\nclass ViewLogsAction(ConversationAction):\n action_name = 'view_logs'\n action_display_name = 'View Sandbox Lo... | python | edit | 1 | 4 | bsd-3-clause | 737d069c57c3cb2d6305f8e5d1f7d88402ef1327 | praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go,praekelt/vumi-go | go/apps/jsbox/definition.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 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\nclass Metric(object):\n \"\"\"Base class for all the metrics that are us... | python | edit | 1 | 1 | bsd-3-clause | c97e5cf11fc21e2ef4ee04779a424e4d6a2b96ae | mogoweb/chromium-crosswalk,Just-D/chromium-1,M4sse/chromium.src,dushu1203/chromium.src,Jonekee/chromium.src,Just-D/chromium-1,ChromiumWebApps/chromium,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,M4sse/chr... | tools/perf/metrics/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nfrom calendar import timegm\nfrom datetime import datetime\n\nfrom django.conf import settings\nfrom django.utils import six\nfrom django.utils.functional import lazy\nfrom django.utils.timezone im... | python | edit | 1 | 3 | mit | 65ecd11b4d4689108eabd464377afdb20ff95240 | davesque/django-rest-framework-simplejwt,davesque/django-rest-framework-simplejwt | rest_framework_simplejwt/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright (c) 2012-2013, Mark Peek <<EMAIL>>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom aws import Action\n\nservice_name = 'Amazon DynamoDB'\nprefix = 'dynamodb'\n\nBatchGetItem = Action(prefix, 'BatchGetIte... | python | edit | 1 | 3 | bsd-2-clause | 0b1587a484bd63632dbddfe5f0a4fe3c898e4fb0 | craigbruce/awacs,cloudtools/awacs | awacs/dynamodb.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nrequired = ['requests>=0.11.2',\n ... | python | edit | 1 | 1 | mit | 4f722f2574740e79bda114fcd27d0f81ee6ce102 | nous-consulting/basecamp-next | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\"\"\"This example shows how to use the Joystick Click wrapper of the LetMeCreate.\n\nIt continuously reads the position of the joystick, prints it in the terminal\nand displays a pattern on the LED's based on the x ... | python | edit | null | null | bsd-3-clause | 08de3f0bf326e8625462d9dbdb7297d8749bc416 | francois-berder/PyLetMeCreate | examples/joystick_example.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom devito.ir.support import (SEQUENTIAL, PARALLEL, PARALLEL_IF_ATOMIC, VECTOR,\n TILABLE, WRAPPABLE)\n\n__all__ = ['analyze']\n\n\ndef analyze(clusters):\n return clusters\n\n```\n\nApply this change: ir: ... | python | edit | 10 | 1 | mit | a7c49480e1eb530aa4df494709ec1f7edd875e1a | opesci/devito,opesci/devito | devito/ir/clusters/analysis.py | rejected_lint | Too many lint violations: 10 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\ndef next_palindrome(k):\n\tpalin = list(k)\n\tn = len(k)\n\tmid = n // 2\n\t\n\t# case 1: forward right\n\tjust_copy = False\n\tfor i in range(mid, n):\n\t\tmirrored = n - 1 - i\n\t\tif k[i] < k[mirrored]:\n\t\t\tjus... | python | edit | 1 | 10 | mit | eb33d70bfda4857fbd76616cf3bf7fb7d7feec71 | mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming | spoj/00005/palin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport setuptools\n\nsetuptools.setup(\n name='sprockets.handlers.status',\n version='0.1.2',\n description='A small handler for reporting application status',\n long_description=open('test-requirements.txt', 'r').read(),\n u... | python | edit | 1 | 0 | bsd-3-clause | 17594ab5b3d591ae8c45c30834fefbe49644cb5f | sprockets/sprockets.handlers.status | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nElixir-related Ultisnips snippet helper functions.\nNOTE: Changes to this file require restarting Vim!\n\"\"\"\nimport re\n\n_DASHES_AND_UNDERSCORES = re.compile(\"[-_]\")\n_MODULE_FILEPATH = re.compile(r\"lib\\/([^\\/]+)\\/([\\w+\\... | python | edit | 1 | 2 | mit | 713fcc3f86b4be4d35f0c5ba081a4f786648320a | paulfioravanti/dotfiles,paulfioravanti/dotfiles,paulfioravanti/dotfiles | vim/pythonx/elixir_helpers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\r\n# Pre-commit check\r\n#\r\n\r\nimport pipes\r\nimport sys\r\n\r\ndef main():\r\n git_pipe = pipes.Template()\r\n git_pipe.prepend('git diff --cached --name-status', '.-')\r\n diff_output = git_pipe.open('files', 'r')\r\n li... | python | edit | 2 | 7 | apache-2.0 | 80264289fa7fc4085069df011cd8499c64767dc5 | eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang | elang/tools/pre-commit.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\"\"\"WSGI app setup.\"\"\"\nimport os\nimport sys\n\nif 'lib' not in sys.path:\n # Add lib as primary libraries directory, with fallback to lib/dist\n # and optionally to lib/dist.zip, loaded using zipimport.... | python | edit | 1 | 2 | bsd-3-clause | 3bd2c8c48d81c22ca38b2c7a32ef9007eb8e2a8f | pombreda/tipfy,adilhz/tipfy,google-code-export/tipfy,pombreda/tipfy,google-code-export/tipfy,google-code-export/tipfy,adilhz/tipfy,pombreda/tipfy | project/app/main.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\nimport megatableau, data_prob\nimport scipy, scipy.optimize\n\n# Argument parsing\nassert len(sys.argv)==2\ntableau_file_name = sys.argv[1]\n\n# Read in data\nmt = megatableau.MegaTableau(tableau_file_name)\nw_0 = -scipy.rand(le... | python | edit | 1 | 1 | bsd-3-clause | 536716d095b152355dfb00cff713552a96b95857 | rdaland/PhoMEnt | calc_weights.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\nwith open(path.join(here, 'README.rst')) as readme_file:\n long_description = readme_file.read()\n\nsetup(\n name='pyfds',\n\n descri... | python | edit | 1 | 0 | bsd-3-clause | 95e15792b50f28c5c40dcad17de2fd4535345bc8 | emtpb/pyfds | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/python\n\"\"\"Setuptools-based setup script for datreant.\n\nFor a basic installation just type the command::\n\n python setup.py install\n\n\"\"\"\n\nfrom setuptools import setup\n\nsetup(name='datreant',\n version='0.5.1... | python | edit | 1 | 0 | bsd-3-clause | 23f2306617a4e4bceecd20190c328b2b3418abc4 | datreant/datreant,dotsdl/datreant,datreant/datreant.core,datreant/datreant.core,datreant/datreant,datreant/datreant.data | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\n\nfrom . import models\n\nadmin.site.register(models.Weekday)\nadmin.site.register(models.Meal)\nadmin.site.register(models.MealOption)\nadmin.site.register(models.Course)\nadmin.site.register(models.Timeta... | python | edit | 1 | 0 | mit | dce5c6f7f7cfd2b7384aba5d887700bb90ab2e39 | teamtaverna/core | app/timetables/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nclass Interpolator:\n def __init__(self):\n self.data = []\n\n def addIndexValue(self, index, value):\n self.data.append((index, value))\n\n def valueAtIndex(self, target_index):\n if target_index < self.data[0... | python | edit | 1 | 7 | bsd-3-clause | d90edf3b4d8fa714e7e24acbc22fb35bc828911d | gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2,gizmo-cda/g2x-submarine-v2 | services/controllers/interpolator.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport os\n\nversion = '0.3.10'\nhere = os.path.abspath(os.path.dirname(__file__))\ntry:\n README = open(os.path.join(here, 'README.txt')).read()\n CHANGES = open(os.path.join(here, 'docs/H... | python | edit | 1 | 0 | mit | 110f62562a4802f99c93a53ea09e1e3deb2b3714 | pedersen/tgtools.tgext-admin,pedersen/tgtools.tgext-admin | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport cmd\n\n\nclass LMShell(cmd.Cmd):\n def __init__(self, lmapi, completekey='tab', stdin=None, stdout=None):\n cmd.Cmd.__init__(self, completekey, stdin, stdout)\n self._lmapi = lmapi\n\n def do_list(self, line):\n ... | python | edit | 2 | 2 | bsd-3-clause | 9346b34c68fc08dfba0002e907d73829000068cd | jamesls/labmanager-shell | labmanager/shell.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.test import TestCase as BaseTestCase\n\nfrom django.test import RequestFactory\n\nfrom permissions import PermissionsRegistry as BasePermissionsRegistry\n\n\nclass PermissionsRegistry(BasePermissionsRegistry):\n\n def _get_mo... | python | edit | 1 | 2 | mit | 64533459ffa6c33d4708bbc6ff0de9f295ef771d | PSU-OIT-ARC/django-perms,wylee/django-perms | permissions/tests/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Usage: prog [-vqr] [FILE]\n prog INPUT OUTPUT\n prog --help\n\nOptions:\n -v print status messages\n -q report only file names\n -r show all occurrences of the same error\n --help\n\n\"\"\"\nfrom docopt import... | python | edit | 1 | 1 | mit | f1b0b1fc96802bf236cf9bfbc894ebdf47704b33 | docopt/docopt,jagguli/docopt,benthomasson/docopt,kenwilcox/docopt,devonjones/docopt,snowsnail/docopt,Zearin/docopt,wkentaro/docopt,crcsmnky/docopt | test_example.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\r\nfrom django.forms.util import flatatt\r\nfrom django.template.loader import render_to_string\r\nfrom django.utils.encoding import force_text\r\nfrom django.utils.safestring import mark_safe\r\n\r\n\r\nclass RichT... | python | edit | 1 | 2 | bsd-2-clause | cefaa6c8f0fd3c26be2bf6fba75d01b2f5095a34 | knyghty/strapmin,knyghty/strapmin,knyghty/strapmin | strapmin/widgets.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# coding=UTF-8\n\"\"\"Module containing Gcode parsing functions\"\"\"\n\n__author__ = \"Dylan Armitage\"\n__email__ = \"<EMAIL>\"\n\n\n####---- Imports ----####\nfrom pygcode import Line, GCodeLinearMove\n\ndef boundi... | python | edit | 5 | 2 | mit | c25297735f38d1e2a6ddb6878f919d192f9faedd | RootAccessHackerspace/k40-laser-scripts,RootAccessHackerspace/k40-laser-scripts | GcodeParser.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\nimport os\nimport urllib\nimport zipfile\n\nscript_path = os.path.dirname(os.path.realpath(__file__))\npacker_archive_path = script_path + \"/packer.zip\"\nbin_path = script_path + \"/bin\"\n\nif not os.path.isfile(... | python | edit | 1 | 0 | unlicense | c89abd6a285225313c91ba03c0fd8ab2cfed399d | dharmab/centos-vagrant | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom lib2to3.fixer_base import BaseFix\nfrom lib2to3.pytree import Leaf\n\nSPACES = ' ' * 4\n\nclass FixTabs(BaseFix):\n '''\n For new projects, spaces-only are strongly recommended over tabs. ... | python | edit | 1 | 4 | apache-2.0 | bc8e064e41d43a4579c8111f1480b55e660ca186 | spulec/pep8ify | pep8ify/fixes/fix_tabs.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\nversion_file = open(os.path.join(os.path.dirname(__file__), 'VERSION'))\nversion = version_file.read().strip()\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()\n\nsetup(\... | python | edit | 1 | 0 | mit | 67b8b26309f82130ab808ee6be5ede7260162b3b | penzance/canvas_python_sdk | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\r\nfrom flask import render_template, request, Response, redirect, flash\r\nfrom flask import Module, escape\r\nfrom flexget.webui import register_plugin, manager, BufferQueue\r\nfrom Queue import Empty\r\nfrom flask.helpers ... | python | edit | 4 | 4 | mit | f3fef8dab576ef5d7a4120a4041ade326868f0ca | oxc/Flexget,tsnoam/Flexget,offbyone/Flexget,malkavi/Flexget,ibrahimkarahan/Flexget,ratoaq2/Flexget,asm0dey/Flexget,sean797/Flexget,OmgOhnoes/Flexget,ibrahimkarahan/Flexget,drwyrm/Flexget,jawilson/Flexget,thalamus/Flexget,tarzasai/Flexget,tvcsantos/Flexget,tarzasai/Flexget,Danfocus/Flexget,drwyrm/Flexget,xfouloux/Flexge... | flexget/plugins/ui/execute.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__title__ = 'libtmux'\n__package_name__ = 'libtmux'\n__version__ = '0.8.0'\n__description__ = 'scripting library / orm for tmux'\n__email__ = '<EMAIL>'\n__author__ = 'Tony Narlock'\n__github__ = 'https://github.com/tmux-python/libtmux'\n__l... | python | edit | 1 | 0 | bsd-3-clause | 11be4b77e84c721ef8de583b0dcf1035367d4b25 | tony/libtmux | libtmux/__about__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import absolute_import\nfrom .impl import *\n\n\n__version__ = (0, 3)\n\n```\n\nApply this change: Increment version number for new release."
},
{
"role": "assistant",
"content": "from __future__ import absolute_... | python | edit | 2 | 0 | bsd-2-clause | a6ce4b1add0bcc664240cd63b27e460194e27c3f | musically-ut/python-glob2 | src/glob2/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport rospy\nfrom sound_play.msg import SoundRequest\nfrom sound_play.libsoundplay import SoundClient\nfrom std_msgs.msg import String\n\nclass ChatbotSpeaker:\n def __init__(self):\n rospy.init_node('chatbot_s... | python | edit | null | null | mit | 2b99108a817a642c86be06a14ac8d71cdc339555 | jstnhuang/chatbot | scripts/speak.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nsetup(\n name='MobOff',\n version='0.1',\n py_modules=['moboff'],\n packages=find_packages(),\n description = 'Download yo... | python | edit | null | null | mit | 1a37d53df02942cb27794303e68fe041f73f5135 | Parth-Vader/MobOff | setup.py | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django_countries import CountryField\n\n\nclass Address(models.Model):\n \"\"\"\n A postal address.\n \"\"\"\n address_line1 = models.CharField(max_length=100, blank=True)\n address_line2 = ... | python | edit | 1 | 1 | bsd-3-clause | b916f1e3ad294c780c782e93222f018fa57ee981 | onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site | apps/bluebottle_utils/models.py | rejected_duplicate | Near-duplicate of sample 2158 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nA management command which deletes expired accounts (e.g.,\naccounts which signed up but never activated) from the database.\n\nCalls ``RegistrationProfile.objects.delete_expired_users()``, which\ncontains the actual logic for deter... | python | edit | 1 | 1 | bsd-3-clause | 0983361e6fba5812416d8fb5b695f6b3034bc927 | sergafts/django-registration,timgraham/django-registration,sergafts/django-registration,pando85/django-registration,pando85/django-registration,allo-/django-registration,allo-/django-registration,timgraham/django-registration | registration/management/commands/cleanupregistration.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nimport os\nfrom setuptools import setup, find_packages\n\nsetup(\n name = 'temps',\n version = '0.1',\n license = 'MIT',\n description = 'Context managers for creating and cleaning up temporary directories and files.',\n lo... | python | edit | 3 | 0 | mit | 33691c04db2eb039a090bd85a811f3eaf80f315d | todddeluca/temps | setup.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 migrations\nfrom django.contrib.auth.models import Group\nimport logging\n\nlogger = logging.getLogger(__file__)\n\n\ndef add_groups(*args):\n grou... | python | edit | 1 | 4 | apache-2.0 | edd50431f9c99bcbc765cc85786ead60ba8ba6e4 | brianjgeiger/osf.io,chennan47/osf.io,CenterForOpenScience/osf.io,sloria/osf.io,Johnetordoff/osf.io,leb2dg/osf.io,brianjgeiger/osf.io,monikagrabowska/osf.io,binoculars/osf.io,acshi/osf.io,chrisseto/osf.io,acshi/osf.io,crcresearch/osf.io,aaxelb/osf.io,erinspace/osf.io,brianjgeiger/osf.io,chrisseto/osf.io,erinspace/osf.io... | admin/base/migrations/0002_groups.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls.defaults import *\n\nfrom .views import IndexView, ItemListView, ItemDetailView\n\nurlpatterns = patterns('',\n (r'^$',\n IndexView, {},\n 'index'),\n (r'^(?P<slug>[a-z\\-]+)/$',\n ItemListView, {... | python | edit | 3 | 0 | apache-2.0 | a7b95dada6098dc2837c4072a7820818c6efc538 | mollyproject/mollyproject,mollyproject/mollyproject,mollyproject/mollyproject | molly/apps/feeds/events/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\nfrom setuptools import setup\n\ninit_py = open('wikipediabase/__init__.py').read()\nmetadata = dict(re.findall(\"__([a-z]+)__ = '([^']+)'\", init_py))\nmetadata['doc'] = re.findall('\"\"\"(.+)\"\"\"', init_py)[0]\n\nsetup(\n n... | python | edit | 1 | 0 | apache-2.0 | e6457c384eaa13eff82217ef4eb15f580efd8121 | fakedrake/WikipediaBase | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\n\n\"\"\"\n.. codeauthor:: Tsuyoshi Hombashi <<EMAIL>>\n\"\"\"\n\nfrom __future__ import absolute_import\n\nfrom ._common import _validate_null_string\nfrom ._app import validate_excel_sheet_name\nfrom ._app import sanitiz... | python | edit | 14 | 0 | mit | 158987eebbcd2d58270cf55cc42aa6e2e5738390 | thombashi/pathvalidate | pathvalidate/__init__.py | rejected_lint | Too many lint violations: 14 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\ntests_require = []\n\nset... | python | edit | 1 | 0 | apache-2.0 | 5e38dda82bfc2f9f59fb591a9dde6ab52929d62e | disqus/mule | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom pypinfo import db\n\nCREDS_FILE = '/path/to/creds_file.json'\n\n\ndef test_get_credentials(tmp_path):\n # Arrange\n db.DB_FILE = str(tmp_path / 'db.json') # Mock\n\n # Assert\n assert db.get_credentials() is None\n\n\ndef ... | python | edit | 1 | 1 | mit | 2c6dd79d419699e61970719dbb369aefe359ea6e | ofek/pypinfo | tests/test_db.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\n\nfrom setuptools import find_packages, setup\n\nsetup(name='oemof.db',\n # Unfortunately we can't use a `__version__` attribute on `oemof.db` as\n # we can't import that module here. It depends on packages... | python | edit | 1 | 0 | mit | 80f59dd5b99605d212243641d01fcd635ddd0d93 | oemof/oemof.db | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom base64 import standard_b64encode, standard_b64decode\n\nimport nacl.bindings\nimport nacl.utils\nfrom nacl.secret import SecretBox\n\nfrom pymacaroons.field_encryptors.base_field_encryptor import (\n BaseFieldEncryptor\n)\nfrom pyma... | python | edit | 1 | 3 | mit | 9d7b39708a2abd953aedf6c211fe242d86caed78 | matrix-org/pymacaroons,matrix-org/pymacaroons | pymacaroons/field_encryptors/secret_box_encryptor.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nsetup(\nname = 'taskcat',\npackages = ['taskcat'],\ndescription = 'An OpenSource Cloudformation Deployment Framework',\nauthor = 'Tony Vattathil',\nauthor_email = '<EMAIL>',\nurl = 'https://github.com/avattathi... | python | edit | 1 | 0 | apache-2.0 | c451e87115bae4da01dd4c0ca3611433ee573220 | aws-quickstart/taskcat,aws-quickstart/taskcat,aws-quickstart/taskcat | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n'''\nCreated on 3.12.2011\n\n@author: xaralis\n'''\nfrom os.path import dirname, join\n\nfrom django.db import models, connection\n\nfrom boris import reporting\nfrom boris.reporting import models as reporting_app\n\ndef install_views(app, ... | python | edit | 2 | 2 | mit | 4d7f94e7ee5b2ffdfe58b353688ae5bfc280332c | fragaria/BorIS,fragaria/BorIS,fragaria/BorIS | boris/reporting/management.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport os\n\nfrom mopidy import ext, config\nfrom mopidy.exceptions import ExtensionError\n\n\n__version__ = '1.0.4'\n\n\nclass BeetsExtension(ext.Extension):\n\n dist_name = 'Mopidy-Beets'\n ... | python | edit | 1 | 1 | mit | b888e6e6fac1a8dca0c8b64134de0380f9c5096b | mopidy/mopidy-beets | mopidy_beets/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\nimport generate\n\ngenerate.run()\n\nsetup(\n name='nnpy',\n version='0.1',\n url='https://github.com/nanomsg/nnpy',\n license='MIT',\n author='Dirkjan Ochtman',\n author_email='<EMAIL>',\n ... | python | edit | 1 | 0 | mit | 621968ca6bd2fb986d83ccc8d4c0d5a83ce3aadb | nanomsg/nnpy | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport sys\n\nfrom setuptools import setup, find_packages\n\nfrom exam import __version__\n\ntry:\n import multiprocessing\nexcept ImportError:\n pass\n\ninstall_requires = []\nlint_requires = ['pep8', 'pyflakes... | python | edit | 2 | 0 | mit | 600eef6ae431ad0b0e555832b3405be9d11ad8b6 | gterzian/exam,Fluxx/exam,Fluxx/exam,gterzian/exam | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.... | python | edit | 1 | 0 | apache-2.0 | c5635d1146fc2c0ff284c41d4b2d1132b25ae270 | GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples,GoogleCloudPlatform/python-docs-samples | composer/workflows/use_local_deps.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nimport docker\nimport os\nimport sys\nimport requests\n\n\nDEFAULT_TIMEOUT_SECONDS = 600\n\n\ndef docker_client():\n # Default timeout 10 minutes\n try:\n timeout = int(os.getenv('DOCKER_TIMEOUT', 600... | python | edit | 3 | 7 | mit | 865651b0d23274d0dcbd9e3123ea9497a06172cf | lichia/docker-scripts,jpopelka/docker-scripts,goldmann/docker-scripts,goldmann/docker-squash,TomasTomecek/docker-scripts | docker_scripts/lib/common.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup\nfrom setuptools import find_packages\nimport re\n\n\ndef find_version():\n return re.search(r\"^__version__ = '(.*)'$\",\n open('cantools/version.py', 'r').read()... | python | edit | 1 | 1 | mit | e57e13bde61a233b18504ab1617c6ecabad20fc3 | eerimoq/cantools,cantools/cantools | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\nclass FacebookProfileModel(models.Model):\n '''\n Abstract class to add to your profile model.\n \n NOTE: If you don't use this this abstract class, make sure you copy/paste\n the fields in.\n ... | python | edit | 1 | 1 | bsd-3-clause | a5b73a7ded0e277662308e0b4d38ac0429c404fb | pjdelport/Django-facebook,QLGu/Django-facebook,Shekharrajak/Django-facebook,VishvajitP/Django-facebook,troygrosfield/Django-facebook,QLGu/Django-facebook,cyrixhero/Django-facebook,rafaelgontijo/Django-facebook-fork,fyndsi/Django-facebook,jcpyun/Django-facebook,abendleiter/Django-facebook,danosaure/Django-facebook,cyrix... | django_facebook/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\ntry:\n import ez_setup\n ez_setup.use_setuptools()\nexcept ImportError:\n pass\n\n\nsetup(\n name = \"django-tsearch2\",\n version = \"0.2\",\n packages = ['tsearch2', 'tsearch2.management', '... | python | edit | 1 | 0 | bsd-3-clause | 6e0f2880c80150a71cc719ff652f1bfbde08a1fa | hcarvalhoalves/django-tsearch2 | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom rest_framework import serializers\nfrom .models import Animal\n\nclass AnimalSerializer(serializers.HyperlinkedModelSerializer):\n class Meta:\n model = Animal\n fields = ('id', 'name', 'dob', 'active', 'own')\n```\n\n... | python | edit | 1 | 0 | apache-2.0 | 8ef3e88c99602dbdac8fca1b223c7bab8308d820 | mmlado/animal_pairing,mmlado/animal_pairing | backend/backend/serializers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name = \"sanitize\",\n version = \"0.33\",\n description = \"bringing sanitiy to world of messed-up data\",\n author = \"Aaron Swartz\",\n author_email = \"<EMAIL>\",\n url... | python | edit | 2 | 0 | bsd-2-clause | 58433fad565aaf4889f0c5144fc3b4694a61b896 | Alir3z4/python-sanitize | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# vim: ai ts=4 sts=4 et sw=4\n\nimport unittest\nfrom harness import MockRouter\n\nclass TestLog(unittest.TestCase):\n def test_backend_irc (self):\n router = MockRouter()\n try:\n import i... | python | edit | 2 | 2 | bsd-3-clause | a4931218fbb00d646dbc8de6f8861e4647ef7ab4 | catalpainternational/rapidsms,caktus/rapidsms,ken-muturi/rapidsms,rapidsms/rapidsms-core-dev,catalpainternational/rapidsms,caktus/rapidsms,lsgunth/rapidsms,peterayeni/rapidsms,rapidsms/rapidsms-core-dev,lsgunth/rapidsms,dimagi/rapidsms,ken-muturi/rapidsms,peterayeni/rapidsms,peterayeni/rapidsms,lsgunth/rapidsms,ehealth... | lib/rapidsms/tests/test_backend_irc.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.core.validators import MinValueValidator\n\n\nclass Volunteer(models.Model):\n first_name = models.CharField(_('First name'), max_length=1... | python | edit | 1 | 2 | mit | d2d822a9fb60bbc8ded7f9e3c70d91cf25f794b2 | mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign,mrts/foodbank-campaign | src/volunteers/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport socket\n\nfrom flask import Flask, abort, make_response, request\n\nfrom whip.db import Database\n\napp = Flask(__name__)\napp.config.from_envvar('WHIP_SETTINGS', silent=True)\n\n\ndb = None\n\n\n@app.before_... | python | edit | 1 | 4 | bsd-3-clause | af5eae0b477c73c1c8d1bbce646d94858d157142 | wbolster/whip | whip/web.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Namespace package: https://docs.python.org/2/library/pkgutil.html\nfrom pkgutil import extend_path\n__path__ = extend_path(__path__, __name__)\n\n__VERSION__ = \"1.0.0\"\n__AUTHOR__ = \"GDS Developers\"\n__AUTHOR_EMAIL__ = \"\"\n\n```\n\n... | python | edit | 2 | 0 | mit | 681f322c4cc57f9fdac1efb59f431360c209232d | gds-attic/backdrop-collector,gds-attic/backdrop-collector | backdrop/collector/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom setuptools import setup\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(\n name = \"seqfile\",\n version ... | python | edit | 1 | 1 | mit | 6fd24b15375f836c591c435ce1ded9dc96dc24f5 | musically-ut/seqfile | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nUsage instructions:\n\n- If you are installing: `python setup.py install`\n- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`\n\"\"\"\n\ntry:\n import pypandoc\n long_description = pypa... | python | edit | 1 | 0 | mit | 20117a8c35ef47842a98bff92fc98773508ebbe0 | boppreh/keyboard,glitchassassin/keyboard | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.db import models\n\nfrom construct import Construct\n\n\nclass Typed (Construct, models.Model):\n\n \"\"\"Indicates that a Topic Maps construct is typed. `Association`s,\n `Role`s, `Occurrence`s, and `Name`s are typed.\"\"... | python | edit | 1 | 2 | apache-2.0 | a244623642cdf26bd6615cdc7ff2540c9361d10d | ajenhl/django-tmapi | tmapi/models/typed.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport os, sys\n\nimport django\nfrom django.conf import settings\n\nDIRNAME = os.path.dirname(__file__)\nsettings.configure(\n DEBUG = True,\n DATABASES = {\n 'default': {'ENGINE': 'django.db.bac... | python | edit | 1 | 0 | bsd-2-clause | a3347eff5791c89949a88988a958c45ec50cccdf | potatolondon/django-hashbrown | runtests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom django.core.management.base import BaseCommand\n\nfrom peering.models import InternetExchange\n\n\nclass Command(BaseCommand):\n help = ('Deploy configurations each IX hav... | python | edit | 1 | 5 | apache-2.0 | 6d964e5ce83b8f07de64ef8ed5b531271725d9c4 | respawner/peering-manager,respawner/peering-manager,respawner/peering-manager,respawner/peering-manager | peering/management/commands/deploy_configurations.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# Copyright (C) 2008 Jason Davies\n# All rights reserved.\n#\n# This software is licensed as described in the file COPYING, which\n# you should have received as part of this distribution.\n... | python | edit | 1 | 0 | bsd-3-clause | 2a3943ff603a042fbb04ab2ba89080172ce41fae | jasondavies/couchdb-fuse,cozy-labs/cozy-fuse | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#! /usr/bin/env python\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='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 | fea8e206f3ef2755710a585b6aa76ce5c148a817 | armet/python-armet | setup.py | rejected_duplicate | Near-duplicate of sample 447 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\nfrom django.utils.module_loading import import_string\n\n\ndef _load(module):\n return import_string(module) if isinstance(module, str) else module\n\n\nclass view():\n def __init__(self, model, view, slug_field):\n ... | python | edit | 1 | 5 | mit | 345ac9264fbfab5860835b544d2c8951821fe522 | c0ntribut0r/django-mptt-urls,c0ntribut0r/django-mptt-urls | mptt_urls/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from shlex import quote as shell_quote\nexcept ImportError:\n from pipes import quote as shell_quote\n\ndef format_cmdline(args, maxwidth=80):\n def lines():\n line = ''\n for a in (shell_quote(a) for a in args... | python | edit | 1 | 5 | mit | caf245e14421472adb0668e57adf5a3e3ae68424 | JonathonReinhart/scuba,JonathonReinhart/scuba,JonathonReinhart/scuba | scuba/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom collections import defaultdict\nfrom django import template\n\nfrom ..models import ProblemReport\nfrom ..forms import ProblemReportForm\n\nregister = template.Library()\n\n\n@register.inclusion_tag('problem/message_toolbar_item.html')... | python | edit | 1 | 6 | mit | fc818ccd0d83ff6b37b38e5e9d03abcae408b503 | stefanw/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide,stefanw/froide,stefanw/froide,fin/froide,fin/froide | froide/problem/templatetags/problemreport_tags.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport markgen\nfrom bs4 import BeautifulSoup\n\nTAGS = {\n 'p': 'paragraph',\n 'div': 'paragraph',\n 'a': 'link',\n 'strong': 'emphasis',\n 'em': 'emphasis',\n 'b': 'emphasis',\n 'i': 'emphasis',\n 'u': 'emphasis',\... | python | edit | 1 | 4 | bsd-3-clause | 75d435e55e42fefe1c28095dadb9abb56284c1fb | 1stvamp/marked | marked/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom suponoff import __version__ as version\n\n\nif __name__ == '__main__':\n with open(\"README.rst\") as f:\n long_description = f.read()\n setup(\n name=\"suponoff\",\n ... | python | edit | 1 | 0 | bsd-2-clause | 8cf4651568eb83e3b754529675bfa22abcd5223a | GambitResearch/suponoff,lciti/suponoff,lciti/suponoff,lciti/suponoff,GambitResearch/suponoff,GambitResearch/suponoff | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom setuptools import setup, find_pa... | python | edit | 1 | 2 | mit | aae0a19e6b03c9b42272f403cc1e5e7c943ea8ab | mback2k/python-hcalendar | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ._base import *\n\nSITE_PUBLIC_PORT = None # Default: SITE_PORT\n\n# DJANGO ######################################################################\n\nCACHES['default'].update({\n # 'BACKEND': 'django_redis.cache.RedisCache',\n '... | python | edit | 5 | 0 | mit | 9c44a1c97b1ba60fd7340c15dd82ebe1ceb6d8c3 | ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit | icekit/project/settings/_production.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# encoding: utf-8\n\nimport sys\n\n\nclass _const(object):\n class ConstError(TypeError):\n pass\n\n class ConstCaseError(ConstError):\n pass\n\n def __setattr__(self, name, value):\n if name in self.__dict__:\... | python | edit | 1 | 3 | mit | 85efa9c105ddb9240a25be433de76ef21b3ed2b3 | xgfone/pycom,xgfone/xutils | xutils/const.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport re\n\n\nclass Presenters(object):\n\n def __init__(self):\n return None\n\n def present(self, value, question_content):\n if \"type\" in question_content:\n field_type = question_content[\"type\"]\n ... | python | edit | 1 | 3 | mit | 0e7a7f960ff970262ffbe1569dc3437dcae2599c | mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace... | app/main/helpers/presenters.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"empty message\n\nRevision ID: 538eeb160af6\nRevises: 1727fb4309d8\nCreate Date: 2015-09-17 04:22:21.262285\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '538eeb160af6'\ndown_revision = '1727fb4309d8'\n\nfrom alembi... | python | edit | 1 | 1 | apache-2.0 | 3327c204f34a725a2d070beb24a7a5a66d414930 | bunjiboys/security_monkey,stackArmor/security_monkey,markofu/security_monkey,bunjiboys/security_monkey,bunjiboys/security_monkey,markofu/security_monkey,markofu/security_monkey,Netflix/security_monkey,stackArmor/security_monkey,Netflix/security_monkey,Netflix/security_monkey,stackArmor/security_monkey,Netflix/security_... | migrations/versions/538eeb160af6_.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"empty message\n\nRevision ID: 8f9ea78776f4\nRevises: 3b7eee912b41\nCreate Date: 2022-03-11 13:53:08.996055\n\n\"\"\"\n\n# revision identifiers, used by Alembic.\nrevision = '8f9ea78776f4'\ndown_revision = '3b7eee912b41'\n\nfrom alembi... | python | edit | 1 | 1 | mit | e75201bb34f7e930c04e393ff630fdbc1549fd77 | kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io | core/admin/migrations/versions/8f9ea78776f4_.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\nimport datetime\nimport hiro\nimport redis\nfrom sifr.span import Minute, Day\nfrom sifr.storage import MemoryStorage, RedisStorage\n\n\nclass RedisStorageTests(unittest.TestCase):\n def setUp(self):\n self.redis ... | python | edit | 5 | 1 | mit | 1cc68fee10975f85ca5a2e2a63b972314a1b62d9 | alisaifee/sifr,alisaifee/sifr | tests/test_redis_storage.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 distutils.core import setup\n\nsetup(name=\"taggert\",\n\tversion=\"1.0\",\n\tauthor=\"Martijn Grendelman\",\n\tauthor_email=\"<EMAIL>\",\n\tmaintainer=\"Martijn Grendelman\",\n\tmaintainer_email=\"<EMAIL>\",\n... | python | edit | 1 | 0 | apache-2.0 | d7d6819e728edff997c07c6191f882a61d30f219 | tinuzz/taggert | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport nineml\nfrom nineml.abstraction_layer.testing_utils import RecordValue, TestableComponent\nfrom nineml.abstraction_layer import ComponentClass\nfrom nineml.abstraction_layer.testing_utils import std_pynn_simulation\n\n# Load the Comp... | python | edit | 4 | 0 | bsd-3-clause | 883df49451aaa41ca5e20d1af799af2642615d5a | INCF/lib9ML | nineml/examples/AL/demos/demo1b_load_save_izekevich.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport arrow\n\nimport dateparser\n\nfrom share.normalize import *\n\n\nclass Person(Parser):\n given_name = ParseName(ctx).first\n family_name = ParseName(ctx).last\n additional_name = ParseName(ctx).middle\n suffix = ParseName... | python | edit | 41 | 3 | apache-2.0 | f16c8f696a282da6c04de6b7530f1d0316eda88b | CenterForOpenScience/SHARE,laurenbarker/SHARE,aaxelb/SHARE,aaxelb/SHARE,laurenbarker/SHARE,zamattiac/SHARE,zamattiac/SHARE,CenterForOpenScience/SHARE,laurenbarker/SHARE,CenterForOpenScience/SHARE,zamattiac/SHARE,aaxelb/SHARE | providers/edu/harvarddataverse/normalizer.py | rejected_lint | Too many lint violations: 41 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pip\n\npip.main(['install', '-q', 'requests'])\n\nimport requests\n\nr = requests.get('https://google.com')\nassert(r.status_code == 200)\n\n```\n\nApply this change: Fix \"python-pip-requests-ssl\" test to no longer \"import pip\"\n... | python | edit | 1 | 0 | apache-2.0 | 4fd6a98a887a59dabcc41361a6ba2791393d875e | docker-library/official-images,docker-flink/official-images,docker-library/official-images,31z4/official-images,davidl-zend/official-images,jperrin/official-images,infosiftr/stackbrew,neo-technology/docker-official-images,31z4/official-images,dinogun/official-images,docker-flink/official-images,neo-technology/docker-of... | test/tests/python-pip-requests-ssl/container.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import patterns, url\n\n\nurlpatterns = patterns('projects.views',\n url(r'^add/$', 'add_project', name='add_project'),\n url(r'^edit/(?P<project_id>\\d+)/$', 'edit_project', name='edit_project'),\n url(r'^sta... | python | edit | 1 | 0 | mit | 4551732c93b248e669b63d8ea6a9705c52b69dc3 | Hackfmi/Diaphanum,Hackfmi/Diaphanum | projects/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n__version__ = (2014, 10, 0)\n\n\ndef get_version():\n \"\"\"\n :rtype: str\n \"\"\"\n return '.'.join(str(i) for i in __version__)\n\n\nclass Gignore(object):\n BASE_URL = 'https://raw.githubusercontent.com/github/gitignore/m... | python | edit | 1 | 2 | bsd-3-clause | 77b1f64633d2b70e4e4fc490916e2a9ccae7228f | Alir3z4/python-gignore | gignore/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport sys\n\n\nif sys.version_info[0] < 3:\n _available = False\nelse:\n try:\n from chainerx import _core\n _available = True\n except Exception:\n _available = False\n\n\nif _available:\n from numpy impor... | python | edit | 1 | 1 | mit | fec7885d2632b887002f0071f4898faf52dd927c | okuta/chainer,jnishi/chainer,chainer/chainer,ktnyt/chainer,ktnyt/chainer,okuta/chainer,hvy/chainer,niboshi/chainer,ktnyt/chainer,chainer/chainer,ktnyt/chainer,hvy/chainer,wkentaro/chainer,jnishi/chainer,jnishi/chainer,okuta/chainer,wkentaro/chainer,keisuke-umezawa/chainer,niboshi/chainer,chainer/chainer,keisuke-umezawa... | chainerx/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib import admin\nfrom app.models import Category, Bookmark, Trash\n\nclass CategoryAdmin(admin.ModelAdmin):\n\tlist_display = ['name', 'user', 'row_number', 'column_number', 'progress_bar_color']\n\tlist_filter = ['user']\n... | python | edit | 1 | 0 | mit | 170fa50af3dc5809713ea274b2b6bb1537c22941 | GSC-RNSIT/bookmark-manager,rohithpr/bookmark-manager,rohithpr/bookmark-manager,GSC-RNSIT/bookmark-manager | bm/app/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ... | python | edit | 1 | 0 | apache-2.0 | 8098b4e73f0b407c47ecbe53318f2a246bd07d37 | DataBiosphere/dsub,DataBiosphere/dsub | dsub/_dsub_version.py | rejected_duplicate | Near-duplicate of sample 2591 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nprint \"Loading \", __name__\n\nimport geometry, from_poser, to_lux\nreload(geometry)\nreload(from_poser)\nreload(to_lux)\nimport from_poser, to_lux\n\n\nclass GeometryExporter(object):\n def __init__(self, subject, convert_material = No... | python | edit | 6 | 3 | mit | bb6f4302937e477f23c4de0d6a265d1d6f8985a0 | odf/pydough | geometry_export.py | rejected_lint | Too many lint violations: 6 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import template\nfrom django.contrib.messages.utils import get_level_tags\n\n\nLEVEL_TAGS = get_level_tags()\n\nregister = template.Library()\n\n\n@register.simple_tag()\ndef get_message_tags(message):\n \"\"\"\n Returns t... | python | edit | 1 | 3 | mit | b728470c61fbd742052e5befb4c27adbacef1a7e | grahamu/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,foraliving/foraliving,jacobwegner/pinax-theme-bootstrap,druss16/danslist,druss16/danslist,foraliving/foraliving,foraliving/foraliving,grahamu/pinax-theme-bootstrap,jacobwegner/pinax-theme-bootstrap,grahamu/pinax-theme-bootstrap,druss16/danslist | pinax_theme_bootstrap/templatetags/pinax_theme_bootstrap_tags.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom . import controllers\nfrom . import heads\nfrom . import init\nfrom . import memory\nfrom . import nonlinearities\nfrom . import ntm\nfrom . import similarities\nfrom . import updates\n```\n\nApply this change: Fix import name from ntm... | python | edit | 10 | 0 | mit | 6bb63c6133db2155c1985d6bb2827f65d5ae3555 | snipsco/ntm-lasagne | ntm/__init__.py | rejected_lint | Too many lint violations: 10 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom contextlib import contextmanager\nfrom functools import wraps\n\nfrom fastats.core.ast_transforms.convert_to_jit import convert_to_jit\nfrom fastats.core.ast_transforms.processor import AstProcessor\n\n\n@contextmanager\ndef code_tra... | python | edit | 1 | 6 | mit | 7169f578892f9a72c2c14baa9bfd1ce2b7f9b9ec | fastats/fastats,dwillmer/fastats | fastats/core/decorator.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2017 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# ... | python | edit | 1 | 0 | apache-2.0 | 0d1904345d73bf067f8640d62f9d4186757239b6 | DataBiosphere/dsub,DataBiosphere/dsub | dsub/_dsub_version.py | rejected_duplicate | Near-duplicate of sample 2591 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\n\n__version__ = '0.2.0.dev'\n\nfrom folium.folium import Map, initialize_notebook\n\n```\n\nApply this change: Make features accessible from root"
},
{
"role": "assist... | python | edit | 27 | 0 | mit | 052042e2f48b7936a6057c18a128f497d5e5b1a4 | QuLogic/folium,talespaiva/folium,andrewgiessel/folium,themiurgo/folium,shankari/folium,python-visualization/folium,talespaiva/folium,QuLogic/folium,BibMartin/folium,ocefpaf/folium,themiurgo/folium,talespaiva/folium,andrewgiessel/folium,BibMartin/folium,ocefpaf/folium,python-visualization/folium,shankari/folium,shankari... | folium/__init__.py | rejected_lint | Too many lint violations: 27 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom scriptcwl import WorkflowGenerator as WFGenerator\n\nfrom .utils import CWL_PATH\n\n\nclass WorkflowGenerator(WFGenerator):\n def __init__(self, working_dir=None, copy_steps=True):\n WFGenerator.__init__(self, steps_dir=CWL_P... | python | edit | 1 | 1 | apache-2.0 | 82740c7956a2bae0baceedd658b9ad9352254ad0 | WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln | nlppln/wfgenerator.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\n\nimport json\nfrom datetime import dateti... | python | edit | 4 | 2 | mit | 3672d178ac4f9a3f9308acf1e43e9eea663fe30a | Liebeck/OnlineParticipationDatasets | OnlineParticipationDataset/pipelines.py | rejected_lint | Too many lint violations: 4 | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.