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 optparse import make_option\nfrom datetime import datetime as dt\n\nfrom django.core.management.base import BaseCommand\nfrom django.utils import translation\nfrom django.conf import settings\nfrom dateutil.relativedelta import *\n\nfr... | python | edit | 5 | 4 | apache-2.0 | 46b60e3bb2b84685e27035a270e8ae81551f3f72 | PressLabs/silver,PressLabs/silver,PressLabs/silver | silver/management/commands/generate_docs.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom json import dumps\nfrom oauthlib.common import urldecode\nfrom urlparse import parse_qsl\n\n\ndef facebook_compliance_fix(session):\n\n def _compliance_fix(r):\n # if Facebook claims to be sending us json, let's trust them.\n... | python | edit | 1 | 5 | isc | 33309df85823bde19fcdd2b21b73db9f1da131ab | abhi931375/requests-oauthlib,gras100/asks-oauthlib,requests/requests-oauthlib,singingwolfboy/requests-oauthlib,jayvdb/requests-oauthlib,lucidbard/requests-oauthlib,dongguangming/requests-oauthlib,jsfan/requests-oauthlib,jayvdb/requests-oauthlib,sigmavirus24/requests-oauthlib,elafarge/requests-oauthlib | requests_oauthlib/compliance_fixes/facebook.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nfrom rest_framework import status\nfrom rest_framework.exceptions import APIException\n\n\ndef json_api_exception_handler(exc, context):\n \"\"\"\n Custom exception handler that returns errors object as an array\n \"\"\"\n fro... | python | edit | 1 | 9 | apache-2.0 | 60a9ace22f219f7b125b3a618090c4dd36cded4c | abought/osf.io,mfraezz/osf.io,rdhyee/osf.io,GageGaskins/osf.io,TomHeatwole/osf.io,Ghalko/osf.io,pattisdr/osf.io,HalcyonChimera/osf.io,billyhunt/osf.io,brianjgeiger/osf.io,cosenal/osf.io,danielneis/osf.io,caseyrygt/osf.io,haoyuchen1992/osf.io,cslzchen/osf.io,acshi/osf.io,emetsger/osf.io,Nesiehr/osf.io,samanehsan/osf.io,... | api/base/exceptions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom MaxCliquesPercolation import MaxCliquesPercolationWeighted\n\n\nclass MaxCliquesPercolationSA(MaxCliquesPercolationWeighted):\n def __init__(self, graph, edges_weight, nodes_id, k, threshold):\n super(MaxCliquesPercolationSA,... | python | edit | 4 | 3 | mit | 13be198c8aec08f5738eecbb7da2bfdcafd57a48 | studiawan/pygraphc | pygraphc/clustering/MaxCliquesPercolationSA.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.template.loader import render_to_string\nfrom django.utils.safestring import mark_safe\nfrom django.forms.util import flatatt\nfrom django.utils.encoding import force_text\n\nfrom taggit.utils import pa... | python | edit | 4 | 5 | mit | 2da190d0a6b6f8b6acc70b7e2b6e903283a1e735 | mi6gan/django-taggit-bootstrap,mi6gan/django-taggit-bootstrap | taggit_bootstrap/widgets.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom django.conf.urls import patterns, url\nfrom . import views\nfrom django.contrib.admin.views.decorators import staff_member_required\n\n\nurlpatterns = patterns(\n \"\",\n url(r\"^hello/$\"... | python | edit | 1 | 0 | mit | 18d06379a2dd89ef3d8db0d045f563b8f38f57db | tgs/django-badgekit-webhooks | badgekit_webhooks/urls.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\nfrom django.conf import settings\nfrom django.db import models\n\nfrom . import tenant\n\n\nif 'DJANGO_TENANT' in os.environ:\n tenant._set_for_tenant(os.environ['DJANGO_TENANT'])\nelse:\n tenant._set_default()\n \ntenan... | python | edit | 1 | 2 | bsd-3-clause | 1ec98e066eda1faa212816abf1de99c4ed87f8a0 | Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto | mysite/multitenancy/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- encoding: utf-8\n\nimport pygments\nimport pygments.lexers\n\n\nclass Lexer:\n def __init__(self, app):\n self.app = app\n\n def lex(self, code, lex):\n \"\"\"Return tokenified code.\n\n Return a list of tup... | python | edit | 1 | 12 | mit | fb15b0735a8d2710baa33ac4e74d1dc88de209bc | twolfson/suplemon,richrd/suplemon,richrd/suplemon,severin31/suplemon,twolfson/suplemon,trylle/suplemon | suplemon/lexer.py | rejected_complexity | Cyclomatic complexity too high: 12 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .base import *\n\n\n# Debug Settings\nDEBUG = False\n\nTEMPLATE_DEBUG = False\n\n# Media Settings\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\n\n# Staticfile Setttings\nSTATICFILES_DIRS = (\n os.path.join(BASE_DIR, 'static'),\n)\n... | python | edit | 14 | 0 | bsd-3-clause | 85d6a10891e8c8c3f800a28db28a8d6a1c5684be | unt-libraries/texas-choropleth,unt-libraries/texas-choropleth,damonkelley/texas-choropleth,damonkelley/texas-choropleth,unt-libraries/texas-choropleth,damonkelley/texas-choropleth,damonkelley/texas-choropleth,unt-libraries/texas-choropleth | src/texas_choropleth/settings/production.py | rejected_lint | Too many lint violations: 14 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding:utf-8 -*-\nfrom __future__ import (absolute_import, division, print_function,\n unicode_literals)\n\nfrom django.test import TestCase\n\nfrom django_mysql_tests.models import MyModel\n\n\nclass SimpleTest... | python | edit | 1 | 1 | mit | 9aaf3bd6c376f608911b232d5f811e0b7964022f | nickmeharry/django-mysql,nickmeharry/django-mysql,arnau126/django-mysql,adamchainz/django-mysql,arnau126/django-mysql,graingert/django-mysql,graingert/django-mysql | tests/django_mysql_tests/tests.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"export_all_data.py - script for exporting all available data\"\"\"\n\nimport os\nfrom collectionbatchtool import *\n\n\ndef export_all_data(output_dir=None):\n \"\"\"\n Export table data to CSV files.\n\... | python | edit | 4 | 4 | mit | b0dd95950058d174e50589ceeb18c6a0e2a16ec8 | jmenglund/CollectionBatchTool | docs/source/_static/export_all_data.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\n# Copyright (c) 2011 Google Inc. 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\"\"\"\nSmoke-tests 'settings' blocks.\n\"\"\"\n\nimpo... | python | edit | 1 | 0 | bsd-3-clause | bca736ac15b06263c88d0265339b93b8c2b20d79 | witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp,witwall/gyp | test/settings/gyptest-settings.py | rejected_duplicate | Near-duplicate of sample 403 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\nclass ServiceTests(object):\n\n def test_bash(self):\n return self.check(\n input='bc -q\\n1+1\\nquit()',\n type='org.tyrion.service.bash',\n output='2',\n error='',\n code=... | python | edit | 1 | 1 | mit | ff2def37816fbf1a8cf726914368036c0081e869 | silas/tyrion,silas/tyrion,silas/tyrion,silas/tyrion,silas/tyrion | tests/integration/shared.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\nimport unittest\nimport waybackpack\nimport sys, os\n\n# via https://github.com/jsvine/waybackpack/issues/39\n\nURL = \"https://indianexpress.com/section/lifestyle/health/feed/\"\n\nclass Test(unittest.TestCase):\n ... | python | edit | 4 | 1 | mit | 1a575129299985471c69cef083224f939c68052f | jsvine/waybackpack | tests/test-empty-results.py | rejected_lint | Too many lint violations: 4 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib.staticfiles.testing import StaticLiveServerTestCase\n\nfrom selenium import webdriver\nfrom selenium.webdriver.common.keys import Keys\n\nfrom system_maintenance.tests.utilities import populate_test_db\n\n\nclass Functio... | python | edit | 3 | 1 | bsd-3-clause | b0fd983269fca4c514a8a21d0bb17d47d46780c3 | mfcovington/django-system-maintenance,mfcovington/django-system-maintenance,mfcovington/django-system-maintenance | system_maintenance/tests/functional/base.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .test_great_expectations import *\nfrom .test_util import *\nfrom .test_dataset import *\nfrom .test_pandas_dataset import *\nfrom tests.pandas.test_pandas_dataset_distributional_expectations import *\nfrom .test_expectation_decorators... | python | edit | 1 | 0 | apache-2.0 | 3d027b8d4d39fcdbc839bd0e186ea225e1c7b976 | great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations | tests/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\nfrom sanic import Sanic\nfrom sanic_openapi import swagger_blueprint\n\n\n@pytest.fixture()\ndef app():\n app = Sanic('test')\n app.blueprint(swagger_blueprint)\n return app\n\n```\n\nApply this change: Test: Add cle... | python | edit | 1 | 1 | mit | fa1b111e63ebd069c027a3b969f679b2de54949f | channelcat/sanic-openapi,channelcat/sanic-openapi | tests/conftest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom __future__ import unicode_literals\nfrom __future__ import print_function\nfrom __future__ import division\nfrom __future__ import absolute_import\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom agents.dp... | python | edit | 1 | 1 | mit | 3a2936bf55019dfd9203031ebe73966846b6f041 | toslunar/chainerrl,toslunar/chainerrl | tests/test_dpp.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\nfrom mock import patch, MagicMock\n\nfrom gitfs.worker.merge import MergeWorker\n\n\nclass TestMergeWorker(object):\n def test_run(self):\n mocked_queue = MagicMock()\n mocked_idle = MagicMock(side_effect=Val... | python | edit | 3 | 1 | apache-2.0 | 04e5083006ee1faffbbdc73bd71b4601ff1db3ae | rowhit/gitfs,bussiere/gitfs,PressLabs/gitfs,PressLabs/gitfs,ksmaheshkumar/gitfs | tests/workers/test_merge.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nimport cerebro.core.entities as en\nimport cerebro.core.usecases as uc\n\n\nclass TestUseCases(unittest.TestCase):\n def setUp(self):\n self.neurons_path = [\"./cerebro/neurons\"]\n\n self.neuron_test = (... | python | edit | 1 | 1 | mit | 835b8adfb610cdac0233840497f3a1cf9860f946 | Le-Bot/cerebro | cerebro/tests/core/test_usecases.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\"\"\"\nSimple script to combine JUnit test results into a single XML file.\n\nUseful for Jenkins.\n\nTODO: Pretty indentation\n\"\"\"\n\nimport os\nfrom xml.etree import cElementTree as ET\n\ndef find_all(name, path)... | python | edit | 3 | 3 | bsd-3-clause | 8aabbacd06e0b634b40a77270e6bf20257289f56 | stuarthodgson/cocotb,mkreider/cocotb2,stuarthodgson/cocotb,mkreider/cocotb2,mkreider/cocotb2,stuarthodgson/cocotb | bin/combine_results.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf import settings\nfrom django.http import HttpResponsePermanentRedirect\n\n\nclass SSLifyMiddleware(object):\n \"\"\"Force all requests to use HTTPs. If we get an HTTP request, we'll just\n force a redirect to HTTPs.\n... | python | edit | 1 | 3 | unlicense | 2cee4fbfee7d922dfb83d154c2fa023cb647c4b3 | rdegges/django-sslify | sslify/middleware.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os import environ\n\nimport dj_database_url\n\nfrom .base import *\n\n\nINSTALLED_APPS += (\n 'djangosecure',\n)\n\nPRODUCTION_MIDDLEWARE_CLASSES = (\n 'djangosecure.middleware.SecurityMiddleware',\n)\n\nMIDDLEWARE_CLASSES = PROD... | python | edit | 5 | 0 | mit | 477822717759df88624644df8b4e64aa81463c42 | jpadilla/feedleap,jpadilla/feedleap | kippt_reader/settings/production.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" Assumes softplus activations for gaussian\n\"\"\"\nimport tensorflow as tf\nimport numpy as np\n\ndef log_bernoulli_with_logits(x, logits):\n return -tf.reduce_sum(tf.nn.sigmoid_cross_entropy_with_logits(logits, x), 1)\n\ndef log_... | python | edit | 1 | 2 | mit | a0775510c81494777ab1adf7c822c4ca9a0227b2 | RuiShu/tensorbayes | tensorbayes/distributions.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport json\nimport os\n\nfrom elasticsearch import Elasticsearch\nfrom elasticsearch_dsl import Index\nfrom model import APIDoc\n\n_dirname = os.path.dirname(__file__)\nwith open(os.path.join(_dirname, 'mapping.json'), 'r') as file:\n S... | python | edit | 1 | 2 | mit | f603d382ab8b93677713d6c9c26f9b6a2616ba13 | Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI,Network-of-BioThings/smartAPI | src/utils/indices.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport warnings\n\nimport wagtail\n\nif wagtail.VERSION < (2, 0):\n warnings.warn(\"GeoPanel only works in Wagtail 2+\", Warning) # NOQA\n warnings.warn(\"Please import GeoPanel from wagtailgeowidget.legacy_edit_handlers instead\", W... | python | edit | 1 | 1 | mit | 876d414f85297d45dca4f2c9158f9257dfd6cf5f | Frojd/wagtail-geo-widget,Frojd/wagtail-geo-widget,Frojd/wagtail-geo-widget,Frojd/wagtail-geo-widget | wagtailgeowidget/edit_handlers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.utils.translation import ugettext_lazy as _\nfrom ...setting.models import Setting\n\n\nclass SettingForm(forms.ModelForm):\n class Meta:\n model = Setting\n exclude = []\n\n def cle... | python | edit | 1 | 2 | bsd-3-clause | d3d88d628c61a87b1a36f9a25bdea807dd2d12a2 | tfroehlich82/saleor,KenMutemi/saleor,itbabu/saleor,maferelo/saleor,KenMutemi/saleor,jreigel/saleor,tfroehlich82/saleor,HyperManTT/ECommerceSaleor,mociepka/saleor,KenMutemi/saleor,itbabu/saleor,mociepka/saleor,car3oon/saleor,HyperManTT/ECommerceSaleor,car3oon/saleor,car3oon/saleor,mociepka/saleor,UITools/saleor,UITools/... | saleor/dashboard/settings/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef duration(value):\n ONE_SECOND = 1000\n ONE_MINUTE = ONE_SECOND * 60\n\n if not value:\n return '0 s'\n\n if value < 3 * ONE_SECOND:\n return '%d ms' % (value,)\n elif value < 5 * ONE_MINUTE:\n return ... | python | edit | 1 | 4 | apache-2.0 | e28c9da712574618eb28b6ff82631462fee67c16 | bowlofstew/changes,wfxiang08/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes,dropbox/changes,dropbox/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,bowlofstew/changes,wfxiang08/changes | changes/utils/times.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom six import BytesIO\nfrom django.core.management import call_command\nfrom django.test import TestCase\nfrom mock import patch\n\nfrom contentstore.models import Schedule\nfrom seed_stage_based_messaging import test_utils as utils\n\n\n... | python | edit | 1 | 1 | bsd-3-clause | d466785a4faaf1c01519935317ededf336f9dd14 | praekelt/seed-staged-based-messaging,praekelt/seed-stage-based-messaging,praekelt/seed-stage-based-messaging | contentstore/management/commands/tests/test_sync_schedules.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom django.test import TestCase\nfrom django.conf import settings\n\nfrom geotrek.trekking.factories import TrekFactory\nfrom geotrek.trekking.models import Trek\n\n\nclass AltimetryMixinTest(TestCase):\n def test_get_eleva... | python | edit | 1 | 1 | bsd-2-clause | fcd523105e9f158f423018d45b05527435a41fb0 | GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,makinacorpus/Geotrek,makinacorpus/Geotrek | geotrek/altimetry/tests/test_models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom .actions import (\n BasicValidationAction,\n NamespacedValidationAction,\n NoOpAction,\n SummarizeAndStoreAction,\n)\n\nfrom .validation_operators import (\n DefaultActionAwareValidationOperator\n)\n```\n\nApply this cha... | python | edit | 8 | 0 | apache-2.0 | 68452ffc8490d976b043f660a0e3e1f19c4ed98e | great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations | great_expectations/actions/__init__.py | rejected_lint | Too many lint violations: 8 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom os.path import basename\n\nfrom website import settings\n\ndef serialize_addon_config(config):\n lookup = config.template_lookup\n\n return {\n 'addon_short_name': config.short_name,\n 'addon_full_name': config.full... | python | edit | 1 | 6 | apache-2.0 | dabd787a647e345bdd9f3fd2fee1474b04347512 | aaxelb/osf.io,DanielSBrown/osf.io,bdyetton/prettychart,HalcyonChimera/osf.io,rdhyee/osf.io,caseyrygt/osf.io,dplorimer/osf,icereval/osf.io,alexschiller/osf.io,pattisdr/osf.io,zachjanicki/osf.io,petermalcolm/osf.io,jmcarp/osf.io,KAsante95/osf.io,acshi/osf.io,cwisecarver/osf.io,adlius/osf.io,cldershem/osf.io,kch8qx/osf.io... | website/addons/base/utils.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport unittest\n\nimport jeni\n\nfrom test_jeni import BasicInjector\n\n\nclass Python3AnnotationTestCase(unittest.TestCase):\n def test_annotate_without_annotations(self):\n def fn(hello):\n \"unused\"\n jeni.a... | python | edit | 3 | 2 | bsd-2-clause | 222935ffc347f9787f08b50cccb1981151db5cec | groner/jeni-python,rduplain/jeni-python | test_jeni_python3.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Copyright 2021 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 | 45046857f688d4f640dc0b920a42d5b92faa4d9c | google/jax,google/jax,google/jax,google/jax | jax/_src/lib/mlir/dialects/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n# Standard packages\nimport sys\nimport argparse\n\n# Third-party packages\nfrom toil.job import Job\n\n# Package methods\nfrom ddb import configuration\nfrom ddb_ngsflow import gatk\nfrom ddb_ngsflow import pipelin... | python | edit | 1 | 0 | mit | e9941e34253768e33cbfa54ff2bb9cf2e8267e1d | dgaston/ddb-scripts,GastonLab/ddb-scripts,dgaston/ddb-ngsflow-scripts | workflow-diagnosetargets.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\n\n\ndef forwards(apps, schema_editor):\n DualText = apps.get_model('testmigrate', 'DualText')\n for obj in DualText.objects.all():\n... | python | edit | 1 | 2 | bsd-3-clause | 1fc2e747f1c02d5b8559f03187464eecda008190 | orcasgit/django-fernet-fields | fernet_fields/test/testmigrate/migrations/0004_copy_values.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\ntest_compat\n------------\n\nTests for `cookiecutter.compat` module.\n\"\"\"\n\nfrom cookiecutter.compat import unittest, which\n\n\ndef test_existing_command():\n assert which('c... | python | edit | 1 | 1 | bsd-3-clause | dc6d9ec75ffb2ac776d10a924395d05284bc031e | luzfcb/cookiecutter,jhermann/cookiecutter,christabor/cookiecutter,terryjbates/cookiecutter,audreyr/cookiecutter,agconti/cookiecutter,vincentbernat/cookiecutter,kkujawinski/cookiecutter,atlassian/cookiecutter,foodszhang/cookiecutter,lucius-feng/cookiecutter,nhomar/cookiecutter,benthomasson/cookiecutter,ionelmc/cookiecut... | tests/test_compat.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport pytest\nfrom numpy import random, ceil\nfrom lightning import Lightning, Visualization\n\n\nclass TestLightningAPIClient(object):\n\n @pytest.fixture(scope=\"module\")\n def lgn(self, host):\n lgn = Lightning(host)\n ... | python | edit | 3 | 1 | mit | 3607309193c5d8b2b5ce0fd98d976b6e6aa49644 | garretstuber/lightning-python,garretstuber/lightning-python,peterkshultz/lightning-python,lightning-viz/lightning-python,garretstuber/lightning-python,lightning-viz/lightning-python,peterkshultz/lightning-python,peterkshultz/lightning-python | test/test_client.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nDefinition of the plugin.\n\"\"\"\nfrom django.utils.translation import ugettext_lazy as _\nfrom fluent_contents.extensions import ContentPlugin, plugin_pool\n\nfrom . import models\n\n\n@plugin_pool.register\nclass ImageGalleryPlug... | python | edit | 1 | 0 | mit | 270d06c880fe72987b82fe00f234852e8d49eca0 | ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit | icekit/plugins/image_gallery/content_plugins.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\n\nfrom qingcloud.cli.misc.utils import explode_array\nfrom qingcloud.cli.iaas_client.actions.base import BaseAction\n\n\nclass ResetInstancesAction(BaseAction):\n\n action = 'ResetInstances'\n command = 'reset-instanc... | python | edit | 2 | 2 | apache-2.0 | 55af2016102ec16a4ec3878f45306e3ac4d520e6 | yunify/qingcloud-cli | qingcloud/cli/iaas_client/actions/instance/reset_instances.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"Run autopep8 on the selected buffer in Vim.\n\nmap <C-I> :pyfile <path_to>/vim_autopep8.py<CR>\n\nReplace \":pyfile\" with \":py3file\" if Vim is built with Python 3 support.\n\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nimp... | python | edit | 1 | 6 | mit | b45c0cc0e9f2964ad442115f7a83292fb83611ec | SG345/autopep8,MeteorAdminz/autopep8,Vauxoo/autopep8,hhatto/autopep8,Vauxoo/autopep8,MeteorAdminz/autopep8,SG345/autopep8,vauxoo-dev/autopep8,vauxoo-dev/autopep8,hhatto/autopep8 | test/vim_autopep8.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport matplotlib.pyplot as plt\n\n\ndef imshow(*args, **kwargs):\n if plt.gca().has_data():\n plt.figure()\n kwargs.setdefault('interpolation', 'nearest')\n kwargs.setdefault('cmap', 'gray')\n plt.imshow(*args, **kwargs)... | python | edit | 1 | 2 | bsd-3-clause | 8f4d0247b56ae157e8486c37e38992015e55ac3e | emon10005/scikit-image,vighneshbirodkar/scikit-image,ofgulban/scikit-image,Midafi/scikit-image,bennlich/scikit-image,chriscrosscutler/scikit-image,dpshelio/scikit-image,emon10005/scikit-image,ofgulban/scikit-image,newville/scikit-image,WarrenWeckesser/scikits-image,Britefury/scikit-image,juliusbierk/scikit-image,GaZ3ll... | skimage/io/_plugins/matplotlib_plugin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import, division, print_function\n\nfrom django.conf import settings\nfrom polyaxon_schemas.polyaxonfile import constants\n\nJOB_NAME = 'plxjob-{task_type}{task_idx}-{experiment_uuid}... | python | edit | 1 | 1 | apache-2.0 | 1c3d4488566576e3181f7acbf902f0adab3876dd | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | api/spawner/templates/constants.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Testing suite for ARG class.\n\n\"\"\"\nfrom __future__ import print_function, division\n\nimport unittest as ut\nimport numpy as np\n\nfrom skewstudent import SkewStudent\n\n__author__ ... | python | edit | 1 | 1 | mit | 0673df239d14edb8d65c17eaa8291ac26fd0b976 | khrapovs/skewstudent | test_skewstudent.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\nimport os\nimport sys\nimport ctypes\nimport platform\n\nif platform.system() == 'Windows':\n libbase = os.path.join(os.path.dirname(__file__), 'cppinterface', 'lib')\n lib32 = os.path.join(libbase, 'intel32')... | python | edit | 5 | 0 | bsd-3-clause | 427931c5c8847d01e4ce563a9c605a78eceb39f3 | ampl/amplpy,ampl/amplpy,ampl/amplpy | amplpy/amplpython/__init__.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport logging\nimport wpilib\n\n\nclass PeriodicFilter:\n \"\"\"\n Periodic Filter to help keep down clutter in the console.\n Simply add this filter to your logger and the logger will\n only print periodically.\n\n... | python | edit | 1 | 2 | bsd-3-clause | 66e16d6e3d80ab81967232d5d154c64c8e277def | Twinters007/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities,robotpy/robotpy-wpilib-utilities,Twinters007/robotpy-wpilib-utilities | robotpy_ext/misc/periodic_filter.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport waffle\nfrom rest_framework.exceptions import NotFound\n\ndef require_flag(flag_name):\n \"\"\"\n Decorator to check whether flag is active.\n\n If inactive, raise NotFound.\n \"\"\"\n def wrapper(fn):\n def che... | python | edit | 1 | 2 | apache-2.0 | 3d5de4b69be9d99fec4a8ffb46338f0684ffac26 | brianjgeiger/osf.io,HalcyonChimera/osf.io,chennan47/osf.io,laurenrevere/osf.io,adlius/osf.io,mfraezz/osf.io,binoculars/osf.io,pattisdr/osf.io,binoculars/osf.io,brianjgeiger/osf.io,felliott/osf.io,laurenrevere/osf.io,aaxelb/osf.io,cslzchen/osf.io,aaxelb/osf.io,caseyrollins/osf.io,pattisdr/osf.io,erinspace/osf.io,mfraezz... | api/base/waffle_decorators.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef topological_sort():\n\tpass\n\n\ndef main():\n\tpass\n\nif __name__ == '__main__':\n\tmain()\n\n```\n\nApply this change: Add topolofical_sort_recur(), 2 functions’s doc strings and DAG"
},
{
"role": "assistant",
"content": ... | python | edit | 3 | 1 | bsd-2-clause | 4831c45b53d53d31a6514d5c3e2d0465283b4076 | bowen0701/algorithms_data_structures | topological_sort.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 spacy.kb import KnowledgeBase\nfrom spacy.util import ensure_path\n\nfrom spacy.lang.en import English\nfrom spacy.tests.util import make_tempdir\n\n\ndef test_issue4674():\n ... | python | edit | 1 | 2 | mit | 7c69d30de5aa58d330a183a0e5015e67c36ca7bc | honnibal/spaCy,spacy-io/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy,spacy-io/spaCy,spacy-io/spaCy,honnibal/spaCy,spacy-io/spaCy,spacy-io/spaCy,explosion/spaCy,honnibal/spaCy | spacy/tests/regression/test_issue4674.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom telegram import Updater\nimport json\nimport os\n\n\ndef getToken():\n token = []\n if not os.path.exists(file_path):\n token.append(input('Insert Token here: '))\n with open('token.json', 'w') as f:\n js... | python | edit | 2 | 2 | mit | 6a330523ad683b7883cefa3878c7690fcb5dbd75 | h4llow3En/IAmTalkingToYouBot | TalkingToYouBot.py | accepted | null | true |
[
{
"role": "user",
"content": "Write python code for the following: Add code to unequal segment length example"
},
{
"role": "assistant",
"content": "# -*- coding: utf-8 -*-\n\"\"\" Example of calculation of g-functions with unequal segment lengths using\n uniform and equal borehole wall tempe... | python | new_file | 5 | 1 | bsd-3-clause | 64c967eff68163754ed9b9593030e70c26d65f50 | MassimoCimmino/pygfunction | pygfunction/examples/unequal_segment_lengths.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nTastypie API Authorization handlers\n\"\"\"\n\nfrom tastypie.authentication import Authentication\nfrom tastypie.authorization import Authorization\n\n\nclass ApplicationAuthentication(Authentication):\n \"\"\"\n Authenticate ... | python | edit | 1 | 1 | mit | 86a7b0e989e983063a1ff5afd098600bf34da401 | infoxchange/ixwsauth | ixwsauth_server/api.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\n\"\"\"py.test utilities.\"\"\"\n\n#------------------------------------------------------------------------------\n# Imports\n#------------------------------------------------------------------------------\n\nimpo... | python | edit | 1 | 2 | bsd-3-clause | e3b5e23566830ab20a7e0358e1040e7a6a889b22 | rossant/podoc,podoc/podoc,rossant/podoc,podoc/podoc | podoc/conftest.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport random\nimport re\nfrom typing import Match\nfrom discord import Message\nfrom MoMMI import master, always_command, MChannel\n\n@always_command(\"wyci\")\nasync def wyci(channel: MChannel, _match: Match, message: Message) -> None:\n ... | python | edit | 3 | 4 | mit | eb63b0979763375522bc71ce2f06fb625151ea08 | PJB3005/MoMMI,PJB3005/MoMMI,PJB3005/MoMMI | MoMMI/Modules/wyci.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom ella.core.newman_admin import ListingInlineAdmin, PublishableAdmin,\\\n RelatedInlineAdmin\nfrom ella.articles.models import Article\nimport ella_newman\n\n\nclass ArticleAd... | python | edit | 1 | 0 | bsd-3-clause | a0fb20f910f59737be725a1fc3d49d17cafa9107 | WhiskeyMedia/ella,MichalMaM/ella,petrlosa/ella,whalerock/ella,petrlosa/ella,whalerock/ella,WhiskeyMedia/ella,ella/ella,whalerock/ella,MichalMaM/ella | ella/articles/newman_admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ...testcases import DustyIntegrationTestCase\nfrom ...fixtures import busybox_single_app_bundle_fixture\n\nclass TestSyncCLI(DustyIntegrationTestCase):\n def setUp(self):\n super(TestSyncCLI, self).setUp()\n busybox_si... | python | edit | 1 | 2 | mit | 455cf39de018762d22b5d212f3a2c08491840bbf | gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty | tests/integration/cli/sync_test.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport numpy as np\n\nfrom fitparse import FitFile\n\ndef load_power_from_fit(filename):\n \"\"\" Method to open the power data from FIT file into a numpy array.\n\n Parameters\n ----------\n filename: str,\n Path to the ... | python | edit | 1 | 4 | mit | 22855458c7c683353f2ed7b577289b63da8bc9c6 | glemaitre/power-profile,glemaitre/power-profile,clemaitre58/power-profile,clemaitre58/power-profile | src/scikit-cycling/skcycling/utils/io_fit.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nRESTful interface to interacting with OCR plugins.\n\"\"\"\nfrom django.http import HttpResponse, HttpResponseRedirect, Http404\nfrom django.shortcuts import render_to_response\n\nfrom ocradmin.ocrtasks.models import OcrTask\nfrom o... | python | edit | 5 | 1 | apache-2.0 | 844e3635aeb0144f7e4cc0d9de3bfc219312bbe5 | vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium | ocradmin/plugins/views.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Write python code for the following: Increase package version to 0.10.0"
},
{
"role": "assistant",
"content": "__version__ = '0.10.0'\n\nfrom dicomweb_client.api import DICOMwebClient\n"
}
] | python | new_file | 3 | 0 | mit | 049287c2ec73d46bbc4ad0c4b4778719d6fd4505 | MGHComputationalPathology/dicomweb-client | src/dicomweb_client/__init__.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | python | edit | 1 | 0 | apache-2.0 | 07d62f1e9525719be48d862a86f3623368c02d9d | openstack/kuryr,openstack/kuryr | kuryr/lib/constants.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#-*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nimport likert_field.forms as forms\n\n\nclass LikertField(models.IntegerField):\n ... | python | edit | 1 | 4 | bsd-3-clause | da9058064e2a94f717abe2f97af80d2daa4fa292 | kelvinwong-ca/django-likert-field,kelvinwong-ca/django-likert-field | likert_field/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\n\"\"\"Patched Conics Computations\n\nContains methods to compute interplanetary trajectories approximating the three\nbody problem with Patched Conics.\n\"\"\"\n\nfrom astropy import units as u\nfrom poliastro.twobody impor... | python | edit | 1 | 3 | mit | b052c2fd93cd578723c93dbe7357f1f3c82273eb | anhiga/poliastro,Juanlu001/poliastro,anhiga/poliastro,poliastro/poliastro,newlawrence/poliastro,newlawrence/poliastro,Juanlu001/poliastro,newlawrence/poliastro,anhiga/poliastro,Juanlu001/poliastro | src/poliastro/patched_conics.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ... | python | edit | 1 | 1 | apache-2.0 | a3ca99ab519401df8f2418ce877065dc3aa63146 | forseti-security/real-time-enforcer | app/parsers/models.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.conf.urls import url\nfrom django.contrib import admin\n\nfrom admin_sso import settings\nfrom admin_sso.models import Assignment\n\n\nclass AssignmentAdmin(admin.ModelAdmin):\n list_display = ('__unicode__', 'username', 'use... | python | edit | 1 | 1 | bsd-3-clause | 9f208fd476c8864a1b4c294b80d5d8191c400fb5 | matthiask/django-admin-sso,diegobz/django-admin-sso,diegobz/django-admin-sso,matthiask/django-admin-sso | admin_sso/admin.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nTest suite for Reflex Axelrod PD player.\n\"\"\"\nimport axelrod\nfrom test_player import TestPlayer\n\n\nclass Reflex_test(TestPlayer):\n\n def test_initial_nice_strategy(self):\n \"\"\" First response should always be co... | python | edit | 1 | 1 | mit | e5e068c5fa94d68aa81dbcd3e498ba17dae37d2c | emmagordon/Axelrod,uglyfruitcake/Axelrod,kathryncrouch/Axelrod,emmagordon/Axelrod,mojones/Axelrod,drvinceknight/Axelrod,bootandy/Axelrod,uglyfruitcake/Axelrod,bootandy/Axelrod,risicle/Axelrod,risicle/Axelrod,mojones/Axelrod,kathryncrouch/Axelrod | axelrod/tests/test_reflex.py | rejected_duplicate | Near-duplicate of sample 6417 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nimport click\n\nfrom parsec.cli import pass_context\nfrom parsec import options\nfrom parsec import config\nfrom parsec.io import warn, info\n\nCONFIG_TEMPLATE = \"\"\"## Parsec Global Configuration File.\n# Each stanza should ... | python | edit | 3 | 4 | apache-2.0 | 4b18a9fe5454055131202c60f057ffa3372dadbb | galaxy-iuc/parsec | parsec/commands/cmd_config_init.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport redis\n\nfrom api.utils import config\n\n\nclass RedisPools(object):\n EXPERIMENTS_STATUS = redis.ConnectionPool.from_url(\n config.get_string('POLYAXON_REDIS_EXPERIMENTS_STATUS_URL'))\n JOBS_STATUS = redis.ConnectionPoo... | python | edit | 1 | 0 | apache-2.0 | 9cf29c769e3902c44914d3e216ae9457aa7e5fef | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | api/api/config_settings/redis_settings.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nConnect to the UGent Biblio API\n\"\"\"\nfrom .biblio import search, BASE_URL, publications_by_person\n\n__author__ = 'Stef Bastiaansen'\n__email__ = '<EMAIL>'\n__copyright__ = 'Copyright (c) 2016 LT3 - UGent'\n__license__ = 'Apache... | python | edit | 5 | 0 | apache-2.0 | c87b5a51bc0fd69ed3ec1eddeedd3111820d3252 | megasnort/python-ugent-biblio | biblio/__init__.py | rejected_lint | Too many lint violations: 5 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# coding: utf-8\n\n\"\"\"\nProvides a class to customize template information on a per-view basis.\n\nTo customize template properties for a particular view, create that view\nfrom a class that subclasses TemplateSpec. The \"Spec\" in Temp... | python | edit | 1 | 0 | mit | e255b92589000c2d485d35f9008b78e0313b4374 | nitish116/pystache,rismalrv/pystache,charbeljc/pystache,rismalrv/pystache,harsh00008/pystache,arlenesr28/pystache,defunkt/pystache,beni55/pystache,nitish116/pystache,nitish116/pystache,rismalrv/pystache,jrnold/pystache,jrnold/pystache,harsh00008/pystache,harsh00008/pystache,charbeljc/pystache,arlenesr28/pystache,beni55... | pystache/template_spec.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom surveyextractor import QualtricsExtractor\nimport getopt\nimport sys\n\n### Script for scheduling regular EdxQualtrics updates\n### Usage for cron should be \"cronRefreshEdxQualtrics.py -m -s -r\"\n\n# Append directory for dependencies... | python | edit | 1 | 0 | bsd-3-clause | c7d9287b770a0033cb54f9c1f9ac5f8beb25d528 | paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation,paepcke/json_to_relation | scripts/cronRefreshEdxQualtrics.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom twisted.plugin import IPlugin\nfrom twisted.words.protocols import irc\nfrom txircd.module_interface import IMode, IModuleData, Mode, ModuleData\nfrom txircd.utils import ModeType\nfrom zope.interface import implements\n\nclass LimitMo... | python | edit | 1 | 3 | bsd-3-clause | ecb3a296b379f4abdc03ce5de447b30ada5f124e | Heufneutje/txircd,ElementalAlchemist/txircd | txircd/modules/rfc/cmode_l.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\"\nbyceps.services.tourney.models.tourney\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:Copyright: 2006-2019 Jochen Kupperschmidt\n:License: Modified BSD, see LICENSE for details.\n\"\"\"\n\nfrom typing import NewType\nfrom uuid import U... | python | edit | 1 | 1 | bsd-3-clause | 250458aeb6619587443d6896c46a49c9754951e4 | homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps | byceps/services/tourney/models/tourney.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django import forms\nfrom django.utils.translation import ugettext_lazy as _\nfrom mptt.forms import TreeNodeChoiceField\n\nfrom ...product.models import Category\n\n\nclass CategoryForm(forms.ModelForm):\n class Meta:\n mode... | python | edit | 1 | 3 | bsd-3-clause | 66b49f913513545e5ae0484963412e965c8f9aa1 | rchav/vinerack,HyperManTT/ECommerceSaleor,rchav/vinerack,taedori81/saleor,jreigel/saleor,tfroehlich82/saleor,avorio/saleor,paweltin/saleor,laosunhust/saleor,UITools/saleor,spartonia/saleor,arth-co/saleor,spartonia/saleor,taedori81/saleor,arth-co/saleor,rchav/vinerack,tfroehlich82/saleor,avorio/saleor,josesanch/saleor,U... | saleor/dashboard/category/forms.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom ceph_deploy.hosts import suse \n\nclass TestSuseInit(object):\n def setup(self):\n self.host = suse\n\n def test_choose_init_default(self):\n self.host.release = None\n init_type = self.host.choose_init()\n ... | python | edit | 1 | 1 | mit | d5049edc8567cebf936bb07847906c5400f9a6d9 | zhouyuan/ceph-deploy,shenhequnying/ceph-deploy,ceph/ceph-deploy,ghxandsky/ceph-deploy,zhouyuan/ceph-deploy,imzhulei/ceph-deploy,SUSE/ceph-deploy,Vicente-Cheng/ceph-deploy,ceph/ceph-deploy,branto1/ceph-deploy,trhoden/ceph-deploy,trhoden/ceph-deploy,osynge/ceph-deploy,ghxandsky/ceph-deploy,SUSE/ceph-deploy,branto1/ceph-d... | ceph_deploy/tests/unit/hosts/test_suse.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom tectonic import prefork\n\n\ndef test_WorkerMetadata():\n \"\"\"\n This is a simple test, as WorkerMetadata only holds data\n \"\"\"\n\n pid = 'pid'\n health_check_read = 100\n last_seen = 'now'\n metadata = prefor... | python | edit | 1 | 2 | bsd-3-clause | 4ad92bfcbfd2145b008cd18e934ebd6dc3be53e9 | markrwilliams/tectonic | pytest/test_prefork.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n\"\"\" \n\nCamoco Library - CoAnalysis of Molecular Components \n\nCacheMoneyCorn\n\n\"\"\"\n\n__license__ = \"\"\" \n Creative Commons Non-Commercial 4.0 Generic\n http://creativecommons.org/licenses/by-nc/4.0/\n\"\"\"\n\nimport pyxi... | python | edit | 15 | 0 | mit | d8f33c46b6462788ef6e38dc5aefcdda2144eb66 | schae234/Camoco,schae234/Camoco | camoco/__init__.py | rejected_lint | Too many lint violations: 15 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom django.contrib.auth.models import User\n\nfrom rest_framework import serializers\n\nfrom .models import UserDefinedCategory\nfrom .models import EntryInstance\n\n\nclass UserDefinedCategorySerializer(serializers.HyperlinkedModelSeriali... | python | edit | 1 | 0 | mit | 9256844b08edaff1b9755a6ffc25acc0df76934d | swpease/MoodJournal,swpease/MoodJournal,swpease/MoodJournal | MoodJournal/entries/serializers.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ndef sort(arr):\n\treturn arr;\n\nif __name__ == '__main__':\n\tunsorted = list(reversed(range(1000)));\n\tprint sort(unsorted);\n```\n\nApply this change: Add length parameter to sort and remove semicolons\n\nThe sort function requires a le... | python | edit | 2 | 2 | mit | cb8bf92ab2f71767de8b471992d79131e4dde9a1 | timpel/stanford-algs,timpel/stanford-algs | quicksort/quicksort.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read()\n\nwith open('HISTORY.rst') as history_file:\n history = history_file.read()\n\nre... | python | edit | 1 | 0 | mit | 45369df80923fdd42f7d5c079f6131c0ace43130 | oldani/HtmlTestRunner,oldani/HtmlTestRunner | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom distutils.core import setup\nsetup(\n name='cyrtranslit',\n packages=['cyrtranslit'],\n version='0.4',\n description='Bi-directional Cyrillic transliteration. Transliterate Cyrillic script text to Roman alphabet text and vice versa... | python | edit | 1 | 0 | mit | 5a12f027079d109228456c6f3e4912317721246a | opendatakosovo/cyrillic-transliteration | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nimport os\n\nfrom setuptools import find_packages, setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme:\n README = readme.read().split('h1>', 2)[1]\n\nsetup(\n name='django-postgres-ex... | python | edit | 1 | 0 | mit | 5fb92c2cf19fc7990db9945c89db31ca32930696 | SectorLabs/django-postgres-extra | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(\n name=\"pysolr\",\n version=\"3.0.3\",\n description=\"Lightweight python wrapper for Apache Solr.\",\n author='Danie... | python | edit | 1 | 0 | bsd-3-clause | 1e117182e6169645940a7d7acc3eba9181e5715e | rokaka/pysolr,toastdriven/pysolr,mbeacom/pysolr,CANTUS-Project/pysolr-tornado,mylanium/pysolr,swistakm/pysolr,toastdriven/pysolr,mbeacom/pysolr,django-searchstack/skisolr,10clouds/pysolr,django-haystack/pysolr,mylanium/pysolr,CANTUS-Project/pysolr-tornado,django-searchstack/skisolr,swistakm/pysolr,upayavira/pysolr,shas... | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nimport os\n\nhere = os.path.abspath(os.path.dirname(__file__))\nwith open(os.path.join(here, 'README')) as f:\n README = f.read()\n\nrequires = []\n\nsetup(name='pytho... | python | edit | 1 | 0 | mit | 363dbc3dac71b9ce2d5ab7d9178253fc9b5bf483 | petertodd/dust-b-gone | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"PyRundeck\",\n version=\"0.3.4\",\n description=\"A thin, pure Python wrapper for the Rundeck API\",\n author=\"Panagiotis Koutsourakis\",\n author_email=\"<EMAIL... | python | edit | 1 | 0 | bsd-3-clause | ed8b46542c831b5e3692368c15619a46fbe338e1 | EKT/pyrundeck | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nPACKAGE_VERSION = '1.0'\ndeps = []\n\nsetup(name='wptserve',\n version=PACKAGE_VERSION,\n description=\"Python webserver intended for in web browser testing\",\n long_description=open(\"README.... | python | edit | 1 | 0 | bsd-3-clause | 19a47d8390ed1db3f91568375bb2726ee56d24f3 | youennf/wptserve | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import find_packages, setup\n\n\nsetup(\n name=\"redshift-etl\",\n version=\"0.27b.1\",\n author=\"Harry's Data Engineering and Contributors\",\n description=\"ETL code to ferry data from PostgreSQL databases (or... | python | edit | 1 | 0 | mit | dcf4d88b6562cafb7a365e14d66a3a1967365210 | harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nwith open('README.rst') as readme_file:\n readme = readme_file.read()\n\nwith open... | python | edit | 1 | 0 | isc | f22cb6c576d167bd20658e35f6b28066871a80a2 | sharoonthomas/fulfil-python-api,fulfilio/fulfil-python-api | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nreadme = open('README.rst').read()\nhistory = open('HISTORY.rst').read().replace('.. ... | python | edit | 1 | 0 | bsd-3-clause | 0ff0ca626c7f1e313fafdb034db77933424fe7ca | petrilli/generalwords | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(name = \"clrsvsim\",\n version = \"0.0.2\",\n description = \"Color Genomics Structural Variant Simulator\",\n autho... | python | edit | 1 | 0 | apache-2.0 | 17d2bde78fb195536bd57b5b92aa8ba557d4314b | color/clrsvsim | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\nsetup(name=\"hal-json\",\n version=\"0.1\",\n description=\"Parse and encode links according to RFC 5988 or HAL specs\",\n autho... | python | edit | 1 | 0 | mit | c0a8ead2092f6479621bed030bac5f3ee1c5872a | inean/LinkHeader | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python3\n\"\"\"Setup module.\"\"\"\nfrom setuptools import setup, find_packages\nimport os\n\n\ndef read(fname):\n \"\"\"Read and return the contents of a file.\"\"\"\n return open(os.path.join(os.path.dirname(__file__)... | python | edit | 1 | 1 | mit | b91e458c0250b090de8a7327f5dee1cd4f105f56 | kalmanolah/macmond | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\n\"\"\"Package setup script; requires setuptools (or Python >=3.4 which\nbundles it).\"\"\"\n\nfrom setuptools import setup\n\nsetup(name='Treepace',\n version='0.2',\n description='Tree Transformation Lang... | python | edit | 1 | 0 | mit | a10caabf5a8ece0ba05fac2d9166a6a85ac39b38 | sulir/treepace | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='zeit.content.infobox',\n version='1.23.6dev',\n author='gocept',\n author_email='<EMAIL>',\n url='https://svn.gocept.com/repos/gocept-int/zeit.cms',\n descripti... | python | edit | 1 | 0 | bsd-3-clause | 7aaaeef4cbcd1c3010bb633599770fab39031822 | ZeitOnline/zeit.content.infobox | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n# -*- coding: utf-8 -*-\n\nfrom distribute_setup import use_setuptools\nuse_setuptools()\n\nfrom setuptools import setup\n\n\nsetup(\n name='cotede',\n version='0.1.2',\n author='Guilherme Castelão',\n author_email='<EMAIL>',\n ... | python | edit | 1 | 0 | bsd-3-clause | 40c4ffd480f291e35ffa69c3145d240146dbcd6c | castelao/CoTeDe | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom os import path\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nreadme_file = path.join(path.dirname(path.abspath(__file__)), 'REA... | python | edit | 1 | 0 | mit | 0b8c12fba3f6819616edf9b02d5207c129635688 | miyakogi/syncer | setup.py | accepted | null | 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 | d1537c9111a3834de07a330953ab0c1a31240ec4 | toddgaunt/imgfetch | setup.py | rejected_duplicate | Near-duplicate of sample 451 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nimport wsgiservice\nsetup(\n name='WsgiService',\n version=wsgiservice.__version__,\n description=\"A lean WSGI framework for easy creation of REST services\",\n author=\", \".join(ws... | python | edit | 1 | 0 | bsd-2-clause | 3a4ff183940f3af7e3ec7cfe491f7d60409f5fea | pneff/wsgiservice,beekpr/wsgiservice | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup\n\nsetup(\n name = 'PyFVCOM',\n packages = ['PyFVCOM'],\n version = '1.3.4',\n description = (\"PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot i... | python | edit | 1 | 0 | mit | 270d58388effc5777dea7a186d9578116bd0afb4 | pwcazenave/PyFVCOM | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\nfrom setuptools import setup, find_packages\nfrom os.path import join, dirname\n\nversion = 0.1\nshort_description = \"Git cherry pick tracking.\"\nlong_description = open(join(dirname(__file__), \"README.txt\"), \"r\").read()\n\nsetup(name... | python | edit | 1 | 0 | mit | 612b9244560afd0d5eb4d7b1bf27464c4b2946d4 | kergoth/git-origin | setup.py | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```python\n#!/usr/bin/env python\n\nimport setuptools\nimport sys\n\nif not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5)\n or sys.version_info.major > 3):\n exit(\"Sorry, Python's version must be later than 3.5.\")\n\nimport shak... | python | edit | 1 | 0 | unlicense | aafd9f66610dc801a197e634cc98c7e855670d35 | raviqqe/shakyo | setup.py | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.