conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "BUG: Fix mismatched logic error in compatibility check\n"
},
{
"from": "human",
"value": "\"\"\"\nDetect incompatible version of OpenPyXL\n\nGH7169\n\"\"\"\n\nfrom distutils.version import LooseVersion\n\nstart_ver = '1.6.1'\nstop_ver = '2.0.0'\n\n\ndef is_compat():... | python | chosen |
[
{
"from": "system",
"value": "Read input file from stdin.\n"
},
{
"from": "human",
"value": "import argparse\n\nimport yaml\n\nfrom .bocca import make_project, ProjectExistsError\n\n\ndef main():\n parser = argparse.ArgumentParser()\n parser.add_argument('file', help='Project description f... | python | chosen |
[
{
"from": "system",
"value": "Clean useless format string in remote command\n"
},
{
"from": "human",
"value": "import datetime\n\nimport arrow\n\nfrom marty.commands import Command\nfrom marty.printer import printer\n\n\nclass Remotes(Command):\n\n \"\"\" Show the list of configured remotes.\... | python | chosen |
[
{
"from": "system",
"value": "test: Add missing method required for test\n\n- backported create_or_update_social_login_key from v13\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Copyright (c) 2017, Frappe Technologies and Contributors\n# See license.txt\nfrom __future__ import un... | python | chosen |
[
{
"from": "system",
"value": "Add fab task to build\n"
},
{
"from": "human",
"value": "from fabric.api import cd, env, run, task\n\ntry:\n import fabfile_local\n _pyflakes = fabfile_local\nexcept ImportError:\n pass\n\n@task\ndef update():\n with cd(\"~/vagrant-installers\"):\n ... | python | chosen |
[
{
"from": "system",
"value": "[REF] openacademy: Add domain or and ilike\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom openerp import fields, models\n\nclass Session(models.Model):\n _name = 'openacademy.session'\n\n name = fields.Char(required=True)\n start_date = field... | python | chosen |
[
{
"from": "system",
"value": "Fix for inability to define contact information.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n\"\"\"Event model.\"\"\"\n\nimport mongoengine as db\n\nfrom web.extras.contentment.components.page.model import Page\nfrom widgets import fields\n\n\nlog = __im... | python | chosen |
[
{
"from": "system",
"value": "Test script now against default python version.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python2\n\n\nimport os\nimport time\n\nfrom expjobs.helpers import run_class\n\n\nclass DummyWorker(object):\n\n param = 2\n\n def set_out_path_and_name(self, pat... | python | chosen |
[
{
"from": "system",
"value": "Check index on merge datadrame test\n"
},
{
"from": "human",
"value": "from sharepa.analysis import merge_dataframes\n\nimport pandas as pd\n\n\ndef test_merge_dataframes():\n dream = pd.DataFrame({'Rhodes': 'Dusty'}, index=['Rhodes'])\n stardust = pd.DataFram... | python | chosen |
[
{
"from": "system",
"value": "Increase lock timeout for refreshing engagement data task\n"
},
{
"from": "human",
"value": "import logging\nimport time\n\nfrom dash.orgs.tasks import org_task\n\nlogger = logging.getLogger(__name__)\n\n\n@org_task(\"refresh-engagement-data\", 60 * 60)\ndef refresh... | python | chosen |
[
{
"from": "system",
"value": "Fix docstring on shell_script plugin\n\nChange-Id: I6e92a00c72d5ee054186f93cf344df98930cdd13\n"
},
{
"from": "human",
"value": "# Copyright 2013 Rackspace Australia\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file ... | python | chosen |
[
{
"from": "system",
"value": "Move start-time calculation so it measures each initialization\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import, division\nfrom __future__ import print_function, unicode_literals\nfrom past.builtins import range\n\nfrom clifford import Cl, r... | python | chosen |
[
{
"from": "system",
"value": "Add collision_scene_distances to set of tests to run\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# This is a workaround for liburdf.so throwing an exception and killing\n# the process on exit in ROS Indigo.\n\nimport subprocess\nimport os\nimport sys\n... | python | chosen |
[
{
"from": "system",
"value": "Add pipeline step that adds spider name to properties\n"
},
{
"from": "human",
"value": "# -*- 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... | python | chosen |
[
{
"from": "system",
"value": "Use UberProxy URL for 'tryserver.chromiumos'\n\nBUG=352897\nTEST=None\n\nReview URL: https://codereview.chromium.org/554383002\n\ngit-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@291886 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"from": "human",
"value": "# Co... | python | chosen |
[
{
"from": "system",
"value": "Update chpl_task to only default to muxed when ugni comm is used.\n\nThis expands upon (and fixes) #1640 and #1635.\n\n* [ ] Run printchplenv on mac and confirm it still works.\n* [ ] Emulate cray-x* with module and confirm comm, tasks are ugni, muxed.\n\n```bash\n(\n export C... | python | chosen |
[
{
"from": "system",
"value": "Integrate answers with Flask frontend\n"
},
{
"from": "human",
"value": "import random\nfrom flask import Flask, render_template, abort, redirect, request\n\n\napp = Flask(__name__)\n\n\nquestions = [{\n 'question': 'How many shillings were there in a pre-decimal... | python | chosen |
[
{
"from": "system",
"value": "Support both python 2 and 3"
},
{
"from": "human",
"value": "#! /usr/bin/env python3\n\nimport sys\nimport os\n\nimport git_multimail\n\n\n# It is possible to modify the output templates here; e.g.:\n\ngit_multimail.FOOTER_TEMPLATE = \"\"\"\\\n\n-- \\n\\\nThis email... | python | chosen |
[
{
"from": "system",
"value": "Address review comment: Add link to upstream ticket.\n"
},
{
"from": "human",
"value": "# Copyright Hybrid Logic Ltd. See LICENSE file for details.\n# -*- test-case-name: flocker.test -*-\n\n\"\"\"\nFlocker is a hypervisor that provides ZFS-based replication and fa... | python | chosen |
[
{
"from": "system",
"value": "Make the dependency on lxml optional.\n"
},
{
"from": "human",
"value": "import bleach\nfrom lxml.html.clean import Cleaner\n\nallowed_tags = bleach.ALLOWED_TAGS + ['p', 'h1', 'h2', 'h3', 'h4', 'h5',]\nallowed_attributes = bleach.ALLOWED_ATTRIBUTES.copy()\nallowed_a... | python | chosen |
[
{
"from": "system",
"value": "Remove package-level imports of middleware classes. This will break some configs, but they should never have been there in the first place.\n"
},
{
"from": "human",
"value": "\"\"\"Middleware classes to process messages on their way in and out of workers.\n\"\"\"\n\... | python | chosen |
[
{
"from": "system",
"value": "structures: Add a hacky update_cataclysm_locales method to Skeleton\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom pywow.structures import Structure, Skeleton\nfrom .fields import *\nfrom .main import *\nfrom .custom import *\nfrom .generated imp... | python | chosen |
[
{
"from": "system",
"value": "Remove useless mock side effect\n"
},
{
"from": "human",
"value": "import pytest\nfrom unittest import TestCase, mock\n\nimport core.config\nimport core.widget\nimport modules.contrib.publicip\n\n\ndef build_module():\n config = core.config.Config([])\n return... | python | chosen |
[
{
"from": "system",
"value": "Change title test, add comments of To-do user story\n"
},
{
"from": "human",
"value": "from selenium import webdriver \nbrowser = webdriver.Chrome()\nbrowser.get('http://localhost:5000') \nassert 'tdd_with_python' in browser.title\n"
},
{
"from": "gpt",
... | python | chosen |
[
{
"from": "system",
"value": "Update after forum views now is class based\n"
},
{
"from": "human",
"value": "from django import template\n\nregister = template.Library()\n\ndef paginator(context, adjacent_pages=4):\n \"\"\"\n To be used in conjunction with the object_list generic view.\n\n... | python | chosen |
[
{
"from": "system",
"value": "Add todo for color extract\n"
},
{
"from": "human",
"value": "from keras import backend as K\nfrom keras.layers import Layer\n\n\nclass ColorExtract(Layer):\n \"\"\" TODO: Make is scalable to any amount of channels. \"\"\"\n def __init__(self, channel, **kwarg... | python | chosen |
[
{
"from": "system",
"value": "Make batch_checkbox a bit more resilient against problems with context variables\n"
},
{
"from": "human",
"value": "from django import template\n\n\nregister = template.Library()\n\n\n@register.simple_tag\ndef batch_checkbox(form, id):\n \"\"\"\n Checkbox whic... | python | chosen |
[
{
"from": "human",
"value": "Test lockdown and make sure it has style.\n"
},
{
"from": "gpt",
"value": "from django.test.client import RequestFactory\n\nfrom bluebottle.auth.middleware import LockdownMiddleware\nfrom bluebottle.test.utils import BluebottleTestCase\n\n\nclass LockdownTestCase(Blu... | python | chosen |
[
{
"from": "system",
"value": "Use plugin_dir as base for script_path\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport sys\nfrom bashscriptrunner import BashScriptRunner\n\nname = \"chef\"\nscript = BashScriptRunner(script_path=[\"roushagent/plugins/lib/%s\" % name])\n\n\ndef se... | python | chosen |
[
{
"from": "system",
"value": "Add basic documentation to ModelReport\n"
},
{
"from": "human",
"value": "from copy import deepcopy\n\nclass ModelReport(object):\n \"\"\"\n An abstraction of a model report that wraps access to various sections\n of the report.\n \"\"\"\n\n \"\"\"\n ... | python | chosen |
[
{
"from": "system",
"value": "Use more readable version comparision\n"
},
{
"from": "human",
"value": "import sys\nimport pstats\nimport cProfile\nimport unittest\nfrom django.test.simple import DjangoTestSuiteRunner\n\n\nclass ProfilingTestRunner(DjangoTestSuiteRunner):\n def run_suite(self,... | python | chosen |
[
{
"from": "system",
"value": "Fix email in package init\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\n\n__author__ = 'Markus Holtermann'\n__email__ = 'info@sinnwerkstatt.com'\n__version__ = '0.3.2'\n\ndefault_app_config = 'dynamic_forms.ap... | python | chosen |
[
{
"from": "system",
"value": "Make sure log level gets reset afterwards\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom sqlalchemy import Table, MetaData\nfrom corehq.db import connection_manager\nfrom django.db import... | python | chosen |
[
{
"from": "system",
"value": "Change line end characters to UNIX (\\r\\n -> \\n)\n"
},
{
"from": "human",
"value": "from django.conf import settings\r\nfrom os import path, listdir\r\nfrom lxml import etree\r\n\r\nclass XmlJsonImportModuleException(Exception):\r\n pass\r\n\r\nif not hasattr(s... | python | chosen |
[
{
"from": "system",
"value": "Prepare development of new version."
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n# Copyright ยฉ 2009 Ben Finney <ben+python@benfinney.id.au>\n# Copyright ยฉ 2006 Robert Niederreiter\n#\n# This is free software: you may copy, modify, and/or distribute th... | python | chosen |
[
{
"from": "system",
"value": "Fix required for Django 1.11\n\nUpdate to fix \"context must be a dict rather than RequestContext\" error in Django 1.11"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom django import template\nfrom django.template.loader import render_to_string\n\n\... | python | chosen |
[
{
"from": "system",
"value": "Add support for serializing lists to json via self.write()\n"
},
{
"from": "human",
"value": "from cyclone import web\n\nclass OONIBHandler(web.RequestHandler):\n pass\n\nclass OONIBError(web.HTTPError):\n pass\n"
},
{
"from": "gpt",
"value": "impo... | python | chosen |
[
{
"from": "system",
"value": "Add -Wno-dev to avoid cmake policy warnings.\n"
},
{
"from": "human",
"value": "from spack import *\n\nclass Ravel(Package):\n \"\"\"Ravel is a parallel communication trace visualization tool that\n orders events according to logical time.\"\"\"\n\n home... | python | chosen |
[
{
"from": "system",
"value": "Simplify regex in url matching\n"
},
{
"from": "human",
"value": "from django.conf.urls import url\n\nfrom modelview import views\nfrom oeplatform import settings\nfrom django.conf.urls.static import static\n\nurlpatterns = [\n url(r'^(?P<sheettype>[\\w\\d_]+)s/$... | python | chosen |
[
{
"from": "system",
"value": "docs: Fix simple typo, ussage -> usage\n\nThere is a small typo in magicembed/templatetags/magicembed_tags.py.\n\nShould read `usage` rather than `ussage`.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom django import template\nfrom django.utils.saf... | python | chosen |
[
{
"from": "system",
"value": "Address feedback, reformat, simplify, fix bugs and typo"
},
{
"from": "human",
"value": "\"\"\"Show this help\"\"\"\nimport pkgutil\nimport sys\nfrom setuptools import find_packages\nfrom pkgutil import iter_modules\nimport fontTools\nimport importlib\n\n\ndef get_d... | python | chosen |
[
{
"from": "system",
"value": "Add S3 Generator to generators module\n"
},
{
"from": "human",
"value": "from .databricks_generator import DatabricksTableGenerator\nfrom .glob_reader_generator import GlobReaderGenerator\nfrom .subdir_reader_generator import SubdirReaderGenerator\nfrom .in_memory_g... | python | chosen |
[
{
"from": "system",
"value": "Create archive folder if it does not exist.\n"
},
{
"from": "human",
"value": "from imaplib import IMAP4, IMAP4_SSL\n\nfrom .base import EmailTransport, MessageParseError\n\n\nclass ImapTransport(EmailTransport):\n def __init__(self, hostname, port=None, ssl=Fals... | python | chosen |
[
{
"from": "system",
"value": "Use 'source' command instead of deprecated '.' alias\n\nCloses #125\n"
},
{
"from": "human",
"value": "from __future__ import print_function\nimport os\nimport sys\nimport pkg_resources\n\n\nif __name__ == \"__main__\":\n version = pkg_resources.get_distribution(... | python | chosen |
[
{
"from": "system",
"value": "Make bitboard script output easier to read\n"
},
{
"from": "human",
"value": "'''\nPretty prints a bitboard to the console given its hex or decimal value.\n'''\nimport sys, textwrap\n\nif len(sys.argv) == 1:\n print 'Syntax: showbb.py <bitboard>'\n sys.exit(1)... | python | chosen |
[
{
"from": "system",
"value": "Tag commit for v0.0.14-master generated by gitmake.py\n"
},
{
"from": "human",
"value": "major = 0\nminor=0\npatch=13\nbranch=\"master\"\ntimestamp=1376507610.99"
},
{
"from": "gpt",
"value": "major = 0\nminor=0\npatch=14\nbranch=\"master\"\ntimestamp=13... | python | chosen |
[
{
"from": "system",
"value": "Add assert to validator test cases\n"
},
{
"from": "human",
"value": "import unittest\nimport quantities as pq\nclass ValidatorTestCase(unittest.TestCase):\n def register_test(self):\n class TestClass():\n intValue = 0\n def getIntVal... | python | chosen |
[
{
"from": "system",
"value": "Use RedirectView in urlpatterns (needed for Django 1.5)\n\n'django.views.generic.simple.redirect_to' is not supported in Django 1.5\r\n\r\nUseย RedirectView.as_view instead.\r\n\r\nThe existing code was already importing RedirectView but still using the oldย 'django.views.generic... | python | chosen |
[
{
"from": "system",
"value": "Use plan name instead of description"
},
{
"from": "human",
"value": "from django.conf import settings\nfrom django.core.management.base import BaseCommand\n\nimport stripe\n\n\nclass Command(BaseCommand):\n \n help = \"Make sure your Stripe account has the pl... | python | chosen |
[
{
"from": "system",
"value": "Fix terrible error when filter_horizontal of admin class has not existed.\n"
},
{
"from": "human",
"value": "from django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\ndef register(cls, admin_cls):\n cls.add_to_class('code', models.F... | python | chosen |
[
{
"from": "system",
"value": "Set cov-core dependency to 1.12\n"
},
{
"from": "human",
"value": "import setuptools\n\nsetuptools.setup(name='pytest-cov',\n version='1.6',\n description='py.test plugin for coverage reporting with '\n 'support for bo... | python | chosen |
[
{
"from": "system",
"value": "Update the commit_over_52 template tag to be more efficient.\n\nReplaced several list comprehensions with in-database operations and map calls for significantly improved performance.\n"
},
{
"from": "human",
"value": "from datetime import timedelta\nfrom datetime im... | python | chosen |
[
{
"from": "system",
"value": "Fix if encoding is not utf-8\n"
},
{
"from": "human",
"value": "import setuptools\n\nsetuptools.setup(\n name='mailcap-fix',\n version='0.1.1',\n description='A patched mailcap module that conforms to RFC 1524',\n long_description=open('README.rst').read... | python | chosen |
[
{
"from": "system",
"value": "Fix bug where installer wasn't working on non ipython-pip machines.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom __future__ import print_function\nfrom setuptools import setup\ntry:\n from ipythonpip import cmdclass\nexcept:\n cmdclass = la... | python | chosen |
[
{
"from": "system",
"value": "Change my email. Very important.\n\nNot actually important at all.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\nimport os\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname... | python | chosen |
[
{
"from": "system",
"value": "tests: Fix python_version_check on python 3\n"
},
{
"from": "human",
"value": "\nimport os\nimport sys\n\ncurrent_version = list(sys.version_info[:3])\nprint(\"current_version: %s\" % str(current_version))\n\nexpected_version = map(int, os.environ[\"EXPECTED_PYTHON_... | python | chosen |
[
{
"from": "system",
"value": "Update PyPI status to alpha\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nwith open('README.rst') as readme:\n next(readme)\n long_description = ''.join(readme).strip()\n\nsetup(\n name='pytest-xpara',\n version='0.0.0... | python | chosen |
[
{
"from": "system",
"value": "Use uuid as file name\n"
},
{
"from": "human",
"value": "import os\nimport boto\nimport boto.s3\nfrom boto.s3.key import Key\nimport requests\nimport uuid\n\n\n# http://stackoverflow.com/a/42493144\ndef upload_url_to_s3(image_url):\n image_res = requests.get(imag... | python | chosen |
[
{
"from": "system",
"value": "Fix instance variable in graph sync job\n"
},
{
"from": "human",
"value": "import datetime\nfrom cucoslib.models import Analysis, Package, Version, Ecosystem\nfrom cucoslib.workers import GraphImporterTask\n\nfrom .base import BaseHandler\n\n\nclass SyncToGraph(Base... | python | chosen |
[
{
"from": "system",
"value": "Move clinical disclaimer to doc.\n"
},
{
"from": "human",
"value": "import os\nimport sys\nimport qiprofile_rest\n\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo']\nautoclass_content = \"both\"\nautodoc_default_flags= ['members', 'sh... | python | chosen |
[
{
"from": "system",
"value": "Add NullHandler to avoid logging complaining for nothing.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# -----------------------------------------------------------------------------\n# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more detail... | python | chosen |
[
{
"from": "system",
"value": "Update : RangeIter args name changed\n"
},
{
"from": "human",
"value": "from .base import Client\n\n\nclass RangeIter(object):\n def __init__(self, range_datas):\n self._container = range_datas if self._valid_range(range_datas) else None\n\n def _valid_... | python | chosen |
[
{
"from": "system",
"value": "Add use with python3 in the classifiers\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport os\nfrom setuptools import setup, find_packages\n\n\nREADME = os.path.join(os.path.dirname(__file__), 'README.rst')\n\n# when running tests using tox, README.md ... | python | chosen |
[
{
"from": "system",
"value": "8: Create documentation of DataSource Settings \n\nTask-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8"
},
{
"from": "human",
"value": "######\n# Check ExId (GUID) by Email through JDBC\n#\n# Author: Christoph Stoettner\n# Mail: christoph.... | python | chosen |
[
{
"from": "system",
"value": "Increment version number for updated pypi package\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os\n\nversion = '0.1.1'\n\nLONG_DESCRIPTION = \"\"\"\n===============\ndjango-helpdesk\n===============\n\nThis is a Django-power... | python | chosen |
[
{
"from": "system",
"value": "Increment version for mock test fix"
},
{
"from": "human",
"value": "import subprocess\nimport sys\n\nfrom setuptools import Command, setup\n\n\nclass RunTests(Command):\n user_options = []\n\n def initialize_options(self):\n pass\n\n def finalize_op... | python | chosen |
[
{
"from": "system",
"value": "Add long description for PyPI upload\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n#\n# Author: Logan Gunthorpe <logang@deltatee.com>\n# Copyright (c) Deltatee Enterprises Ltd. 2015, All rights reserved.\n#\n# This library is free software; you can redis... | python | chosen |
[
{
"from": "system",
"value": "Add asn1crypto as a dependency\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport oscrypto\n\n\nsetup(\n name='oscrypto',\n version=oscrypto.__version__,\n\n description='Crytographic services provided by the operating sy... | python | chosen |
[
{
"from": "system",
"value": "Switch use of getattr to getattribute.\n"
},
{
"from": "human",
"value": "from collections import OrderedDict\n\n\nclass AttrDict(OrderedDict):\n def __init__(self, *args, **kwargs):\n super(AttrDict, self).__init__(*args, **kwargs)\n\n def __getattr__(... | python | chosen |
[
{
"from": "system",
"value": "Add the Language classifiers for 3.x and 2.x\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\ninstall_requires=['django>=1.5', 'django-easysettings', 'pytz']\n\ntry:\n import importlib\nexcept ImportError:\n install_requires.... | python | chosen |
[
{
"from": "system",
"value": "Change package name for pypi\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nversion = '0.2.0'\n\nsetup(\n name='cmsplugin-plaintext',\n version=version,\n description='Adds a plaintext plugin for django-cms.',\n author=... | python | chosen |
[
{
"from": "system",
"value": "Add additional trove classifiers for supported Pythons\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\r\n\r\n\"\"\"Setup script for the pyparsing module distribution.\"\"\"\r\n\r\n# Setuptools depends on pyparsing (via packaging) as of version 34, so allow... | python | chosen |
[
{
"from": "system",
"value": "Improve the metadata describing the package\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\n'''A setuptools script to install strip_recipes\n'''\n\nfrom setuptools import setup\n\nsetup(\n name='strip_recipes',\n version='1.0.0',\n descripti... | python | chosen |
[
{
"from": "system",
"value": "Test WidgetEncoder to get coverage to 100%\n"
},
{
"from": "human",
"value": "from praw.models import (SubredditWidgets, SubredditWidgetsModeration,\n Widget, WidgetModeration)\n\nfrom ... import UnitTest\n\n\nclass TestWidgets(UnitTest):\n ... | python | chosen |
[
{
"from": "system",
"value": "Add \"include_initial\" kwarg to support tailing stack updates\n\n`get_events` will return all events that have occurred for a stack. This\nis useless if we're tailing an update to a stack.\n"
},
{
"from": "human",
"value": "import time\n\n\ndef _tail_print(e):\n ... | python | chosen |
[
{
"from": "system",
"value": "Revert the versioning back until the versioning discussion is settled."
},
{
"from": "human",
"value": "# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n\"\"\"Base widget class for widgets provided in Core\"\"\... | python | chosen |
[
{
"from": "system",
"value": "Add internal function for test to set settings flexibly.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\n\nfrom flask import Flask\nfrom flask_debugtoolbar import DebugToolbarExtension\n\nfrom .config import settings\n... | python | chosen |
[
{
"from": "system",
"value": "Remove the unused unicode module.\n"
},
{
"from": "human",
"value": "from setuptools import setup\nsetup(\n name=\"hashi\",\n packages=[\"hashi\"],\n version=\"0.0\",\n description=\"Web centric IRC client.\",\n author=\"Nell Hardcastle\",\n author... | python | chosen |
[
{
"from": "system",
"value": "USe git Python Social Auth to get Fedora nicknames\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='Dapi',\n version='1.0',\n description='DevAssistant Package Index',\n author='Miro Hroncok',\n ... | python | chosen |
[
{
"from": "system",
"value": "Change package_data to have LICENSE in a list\n\nThis is required by setuptools and as of a recent version fails if the\nvalue(s) are not provided as a list or tuple of strings.\n\nSee: https://github.com/pypa/setuptools/commit/8f848bd777278fc8dcb42dc45751cd8b95ec2a02\n"
},
... | python | chosen |
[
{
"from": "system",
"value": "Increment to tag 0.2.3 for release\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n\tname=\"arxiv\",\n\tversion=\"0.2.2\",\n\tpackages=[\"arxiv\"],\n\n\t# dependencies\n\tinstall_requires=[\n\t\t'feedparser',\n\t\t'requests',\n\t],\n\n\t# ... | python | chosen |
[
{
"from": "system",
"value": "Add pandas as an optional dependency\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\n\nsetup(name='openmc',\n version='0.6.2',\n packages=find_packages(),\n scripts=glob.... | python | chosen |
[
{
"from": "system",
"value": "Add docopt as a dependency.\n"
},
{
"from": "human",
"value": "import distutils.core\n\n# Uploading to PyPI\n# =================\n# $ python setup.py register -r pypi\n# $ python setup.py sdist upload -r pypi\n\nversion = '0.0'\ndistutils.core.setup(\n name='... | python | chosen |
[
{
"from": "human",
"value": "Add functional test for both password are the same\n"
},
{
"from": "gpt",
"value": "from .base import FunctionalTest\n\nimport time\nclass RegistrationFormTest(FunctionalTest):\n def test_two_passwords_are_correct(self):\n # ํ์ ์ด๋ ํ์๊ฐ์
์ ํ๊ณ ์ถ์ดํ๋ค.\n self... | python | chosen |
[
{
"from": "system",
"value": "Use codecs.open for py2/py3-compatible utf8 reading\n\nFixes gh-6\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport sys\nimport os.path\n\nimport numpy as np\n\n# Must be one line or PyPI will cut it off\nDESC = (\"A powerful, ac... | python | chosen |
[
{
"from": "system",
"value": "Add comments for Windows mingw compilation\n"
},
{
"from": "human",
"value": "from setuptools import setup\nfrom setuptools.extension import Extension\nfrom Cython.Build import cythonize\n\nextensions = [\n Extension(\"smartquadtree\",\n [\"smartquad... | python | chosen |
[
{
"from": "system",
"value": "Add templates, bump version number\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='icecake',\n version='0.1.0',\n py_modules=['icecake'],\n url=\"https://github.com/cbednarski/icecake\",\n author=\"Chri... | python | chosen |
[
{
"from": "system",
"value": "Replace PFI with PFN in copyright notice.\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup, find_packages\nexcept ImportError:\n from distutils.core import setup\n\nimport os\nimport sys\nimport unittest\nimport os.path\nimport platform\n... | python | chosen |
[
{
"from": "system",
"value": "Use HTTPS for GitHub URLs\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom __future__ import print_function\nfrom codecs import open\nfrom setuptools import setup\n\n\nsetup(name=\"abzer\",\n author=\"Wieland Hoffmann\",\n author_email=\"them... | python | chosen |
[
{
"from": "system",
"value": "Fix problem file importing bug\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"\nmathdeck.settings\n~~~~~~~~~~~~~~~~~\n\nThis module accesses the settings file located at\n/etc/mathdeck/mathdeckconf.json\n\n:copyright: (c) 2015 by Patrick Spencer... | python | chosen |
[
{
"from": "system",
"value": "Add pycrypto to optional module\n\nIt's not used by core code at the moment\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='Flask-RESTful',\n version='0.2.1',\n url='https://www.githu... | python | chosen |
[
{
"from": "system",
"value": "Add license and shebang to build-metadata.py\n"
},
{
"from": "human",
"value": "import sys\n\nfrom bakery_cli.scripts import genmetadata\n\n\ndef main(argv=None):\n if argv is None:\n argv = sys.argv\n if len(argv) != 2:\n genmetadata.usage()\n ... | python | chosen |
[
{
"from": "system",
"value": "Include README as long description\n"
},
{
"from": "human",
"value": "\"\"\"\nFlask-Autodoc\n-------------\n\nFlask autodoc automatically creates an online documentation for your flask application.\n\"\"\"\nfrom setuptools import setup\n\n\nsetup(\n name='Flask-A... | python | chosen |
[
{
"from": "system",
"value": "Add typing module as dependencies\nfor python versions older than 3.5\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport os.path\nimport re\n\npackage_name = 'sqlalchemy_dict'\n\n# reading package's version (same way sqlalchemy do... | python | chosen |
[
{
"from": "system",
"value": "Fix for matrixmultiply != dot on Numeric < 23.4\n\n\ngit-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@857 94b884b6-d6fd-0310-90d3-974f1d3f35e1\n"
},
{
"from": "human",
"value": "\nfrom info_scipy_base import __doc__\nfrom scipy_base_version import scipy_base_ver... | python | chosen |
[
{
"from": "system",
"value": "Add console scripts for both examples\n\nNow they are callable from console via\n\n$ demandlib_power_example\n\nand\n\n$ demandlib_heat_example\n\nwhen installed bia pip3.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env python\n\n\"\"\"TODO: Maybe add a docstring... | python | chosen |
[
{
"from": "system",
"value": "Modify videoloop to allow for audio\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\nimport logging\nimport re\n\nfrom gi.repository import Gst\n\nfrom lib.config import Config\nfrom lib.sources.avsource import AVSource\n\n\nclass VideoLoopSource(AVSource)... | python | chosen |
[
{
"from": "system",
"value": "Add feedback to global settings\n"
},
{
"from": "human",
"value": "from django.shortcuts import reverse\nfrom django.views.generic import FormView\n\nfrom pretix.control.forms.global_settings import GlobalSettingsForm\nfrom pretix.control.permissions import Administ... | python | chosen |
[
{
"from": "system",
"value": "TST: Fix two failing typing tests\n\nMypy 0.800 changed one of its error messages;\nthe `fail` tests have now been altered to reflect this change\n"
},
{
"from": "human",
"value": "import numpy as np\n\na: np.ndarray\ngenerator = (i for i in range(10))\n\nnp.require... | python | chosen |
[
{
"from": "system",
"value": "Remove pkg_resources import from top-level package, will just need to remember updating the version in two places.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2006-2008 Edgewall Software\n# All rights reserved.\n#\n# This software ... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.