conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Declare Python 3 support, bump version.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nVERSION = '0.5'\n\nsetup(\n name='conllu',\n packages=[\"conllu\"],\n version=VERSION,\n description='CoNLL-U Parser parse... | python | chosen |
[
{
"from": "system",
"value": "Mark this version as compatible with redis.py up to 2.6.x\n"
},
{
"from": "human",
"value": "import os\nfrom distutils.core import setup\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.rst')).read()\nCHANGES = open(os.p... | python | chosen |
[
{
"from": "system",
"value": "Switch from nosetest -> pytest\n"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import setup\n\ndef get_version():\n \"\"\"Get the version info from the mpld3 package without importing it\"\"\"\n import ast\n\n with open(os.path.join(\"geneim... | python | chosen |
[
{
"from": "system",
"value": "Add anyhist as an installed script.\n"
},
{
"from": "human",
"value": "#-*- coding: utf-8 -*-\n#\n# setup.py\n# anytop\n#\n# Created by Lars Yencken on 2011-10-09.\n# Copyright 2011 Lars Yencken. All rights reserved.\n#\n\nfrom distutils.core import setup\n\nset... | python | chosen |
[
{
"from": "system",
"value": "Set package author to Bertrand Bordage\n"
},
{
"from": "human",
"value": "import io\n\nfrom setuptools import find_packages, setup\n\n\ndef read(fname):\n with io.open(fname, encoding='utf-8') as f:\n return f.read()\n\n\nsetup(\n name='wagtail-pg-searc... | python | chosen |
[
{
"from": "system",
"value": "Add missing function in __all__.\n"
},
{
"from": "human",
"value": "# Copyright 2012 Kevin Goodsell\n#\n# This software is licensed under the Eclipse Public License (EPL) V1.0.\n\n'''\nInterface to the STAF API.\n'''\n\n# Using __all__ makes pydoc work properly. Oth... | python | chosen |
[
{
"from": "system",
"value": "Add semver version limit due to compat changes\n\nThe semver library stopped working for legacy Python versions after the\n2.9.1 release. This adds a less than 2.10 restriction to the abstract\ndependency requirements so that folks don't need to all add a pin to\ntheir requirem... | python | chosen |
[
{
"from": "system",
"value": "Change require from grpc to grpcio\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nfrom codecs import open\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nwith open(path.join(here, 'README.rst'), encoding='utf-8... | python | chosen |
[
{
"from": "system",
"value": "Put the code to create the package's long_description into a function.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# coding: utf-8\n\nimport os\nimport sys\n\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import... | python | chosen |
[
{
"from": "system",
"value": "Add dependency on github version of fonttools\n"
},
{
"from": "human",
"value": "# Copyright 2015 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 Lice... | python | chosen |
[
{
"from": "system",
"value": "Add six as a requirement.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom __future__ import absolute_import\nfrom __future__ import unicode_literals\nfrom setuptools import setup, find_packages\nfrom milestones import __version__ as VERSION\n\nsetup... | python | chosen |
[
{
"from": "system",
"value": "Make the package_data globs less specific to pick up examples.css too and\n(hopefully) not miss resource files added in future.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='formal',\n version='0.8.2',\n de... | python | chosen |
[
{
"from": "system",
"value": "Add flake8 to installation dependencies\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import find_packages\nfrom setuptools import setup\nimport sys\n\n\nsys.path.insert(0, os.path.abspath('lib'))\n\nexec(open('lib/ansiblereview/version.py').read())\... | python | chosen |
[
{
"from": "system",
"value": "Add colorama to requirements for Windows\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='EasyEuler',\n version='0.1',\n py_modules=['EasyEuler'],\n install_requires=[\n 'Click',\n 'Jinja2'\n ],\n entr... | python | chosen |
[
{
"from": "system",
"value": "Fix sniffer test, rename stop to delete\n"
},
{
"from": "human",
"value": "from mock import patch\n\nfrom django.test import TestCase\nfrom breach.sniffer import Sniffer\n\n\nclass SnifferTest(TestCase):\n def setUp(self):\n self.endpoint = 'http://localho... | python | chosen |
[
{
"from": "system",
"value": "Use shutil for 'which docker'\n"
},
{
"from": "human",
"value": "import os\nimport pytest\n\nfrom subprocess import Popen, PIPE\n\n\ndef has_installed(program):\n \"\"\"Checks to see if a program is installed using ``which``.\n\n :param str program: the name o... | python | chosen |
[
{
"from": "system",
"value": "Add notification to manager at expense creation\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2017 Compassion CH (http://www.compassion.ch)\n# Rele... | python | chosen |
[
{
"from": "system",
"value": "db: Add annotations var to returned data\n"
},
{
"from": "human",
"value": "import os\nfrom dbcollection.utils.file_load import load_json\n\n\ndef load_data_test(set_name, image_dir, annotation_path, verbose=True):\n \"\"\"\n Load test data annotations.\n \... | python | chosen |
[
{
"from": "system",
"value": "Fix bug in changeling title fix - it used to remove some lines on the way...\n"
},
{
"from": "human",
"value": "import json\n\nif __name__ == \"__main__\":\n input = sys.argv[1]\n output = sys.argv[2]\n processor = fix_changeline_budget_titles().process(inp... | python | chosen |
[
{
"from": "system",
"value": "Implement Baron Geddon, Cairne Bloodhoof and Malygos\n"
},
{
"from": "human",
"value": "import random\nfrom ...card import *\n\n\n# Ragnaros the Firelord\nclass EX1_298(Card):\n\tcantAttack = True\n\tdef onTurnEnd(self, player):\n\t\tself.hit(random.choice(self.cont... | python | chosen |
[
{
"from": "system",
"value": "Disable Sentry due to sync behavior\n"
},
{
"from": "human",
"value": "import changes\nimport urlparse\n\nfrom flask import render_template, current_app, redirect, url_for, session\nfrom flask.views import MethodView\n\n\nclass IndexView(MethodView):\n def get(se... | python | chosen |
[
{
"from": "system",
"value": "Fix buildscript for Python2 on OSX\n"
},
{
"from": "human",
"value": "import sys\nimport platform\nimport llvm\n\nfrom llvm.core import Module\nfrom llvm.ee import EngineBuilder\nfrom llvm.utils import check_intrinsics\n\nm = Module.new('fjoidajfa')\neb = EngineBuil... | python | chosen |
[
{
"from": "system",
"value": "Fix bug in docstring references Studiawan2016a\n"
},
{
"from": "human",
"value": "import networkx as nx\nfrom ClusterUtility import ClusterUtility\n\n\nclass ConnectedComponents:\n \"\"\"This is a class for connected component detection method to cluster event lo... | python | chosen |
[
{
"from": "system",
"value": "Add new line in the end of the file\n"
},
{
"from": "human",
"value": "import networkx as nx\n\n\nclass ConnectedComponents:\n \"\"\"This is a class for connected component detection method to cluster event logs [1]_.\n\n .. [1] H. Studiawan, B. A. Pratomo, an... | python | chosen |
[
{
"from": "system",
"value": "Implement Vertex class’s __init__ and helper functions\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\n\nclass Vertex(object):\n\t\"\"\"Vertex class.\n\n It uses ... | python | chosen |
[
{
"from": "system",
"value": "[FIX] Remove unneeded and inefficient \"store=True\"\n"
},
{
"from": "human",
"value": "# Copyright 2017 ACSONE SA/NV\n# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).\n\nfrom odoo import fields, models\n\n\nclass AccountMoveLine(models.Model):\n\n ... | python | chosen |
[
{
"from": "system",
"value": "Test for bad setting value\n\n"
},
{
"from": "human",
"value": "# coding: utf-8\nimport requests\n\n\ndef test_forbidden_get(live_server):\n\n r = requests.get(live_server.url + '/all-rpc/')\n assert r.status_code == 405\n\n r2 = requests.post(live_server.u... | python | chosen |
[
{
"from": "system",
"value": "ENH: Allow logging to be config w/o filename\n"
},
{
"from": "human",
"value": "import logging.config\n\n\ndef configure_logging(filename):\n time_format = '[%(asctime)s] :: %(name)s - %(levelname)s - %(message)s'\n simple_format = '%(name)s - %(message)s'\n\n... | python | chosen |
[
{
"from": "system",
"value": "Make threads run in daemon mode\n"
},
{
"from": "human",
"value": "import redis_collections\nimport threading\nimport time\nimport __main__\n\n\nclass RedisDict(redis_collections.Dict):\n def __init__(self, **kwargs):\n super().__init__(**kwargs)\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix misplaced colon in test suite"
},
{
"from": "human",
"value": "#! usr/bin/env python3\n\n\nimport unittest\nfrom sqlviz import Schema\n\n# Tests will go here...eventually\n\nclass InventorySchemaSpec (unittest.TestCase):\n \n def setUp (self):\n sel... | python | chosen |
[
{
"from": "system",
"value": "Add compact and delete stubs\n"
},
{
"from": "human",
"value": "import grpc\n\nfrom etcd3.etcdrpc import rpc_pb2 as etcdrpc\nimport etcd3.exceptions as exceptions\n\n\nclass Etcd3Client(object):\n def __init__(self, host='localhost', port=2379):\n self.cha... | python | chosen |
[
{
"from": "system",
"value": "Delete whitespace at line 7\n\nDelete a white space for travis\n"
},
{
"from": "human",
"value": "from django.test import TestCase\nfrom django.core.urlresolvers import reverse\nfrom django.contrib.auth.models import User\n\n\nclass ControlerLogoutTest(TestCase):\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix the migration script so that the down revision is pointing to the migration scripts in the merge\n"
},
{
"from": "human",
"value": "\"\"\"empty message\n\nRevision ID: 0003_create_tokens\nRevises: 0001_initialise_data\nCreate Date: 2016-01-13 17:07:49.061776\n\n... | python | chosen |
[
{
"from": "system",
"value": "Return JSON from pypuppetdbquery.parse() by default\n\nThis will be the most useful mode of operation when combined with\npypuppetdb, so make life easy for people.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n#\n# This file is part of pypuppetdbquery.... | python | chosen |
[
{
"from": "system",
"value": "Increase point size in example\n"
},
{
"from": "human",
"value": "\"\"\"\nCreate Triangulated Surface\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nCreate a surface from a set of points through a Delaunay triangulation.\n\"\"\"\n\n# sphinx_gallery_thumbnail_number = 2\nimport vtk... | python | chosen |
[
{
"from": "system",
"value": "Set a default if the browser doesn't send the DNT header\n"
},
{
"from": "human",
"value": "# This file is part of Workout Manager.\n# \n# Workout Manager is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public ... | python | chosen |
[
{
"from": "system",
"value": "Revert \"only fetch translator from ipfs if it doesn't exist locally from prev run\"\n\n- IPFS cache has these on the fs already\n\nThis reverts commit a77349df4b80e4b3cd037c518fc9c69f784072a0.\n"
},
{
"from": "human",
"value": "from mediachain.datastore.ipfs import... | python | chosen |
[
{
"from": "system",
"value": "Remove rest_framework routers, add urlpattern for users api\n"
},
{
"from": "human",
"value": "from django.conf.urls import url, include\nfrom rest_framework import routers\nfrom . import views\n\nrouter = routers.DefaultRouter()\nrouter.register(r'users', views.Use... | python | chosen |
[
{
"from": "system",
"value": "Add docstrings to JSON migrations functions\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom glob import glob\nfrom importlib import import_module\n\n__all__ = ['migrate', 'get_migrations']\n\nHERE = os.path.dirname(__file__)\n\npackage = sys.modules[_... | python | chosen |
[
{
"from": "system",
"value": "Change default value for folder parameter.\n"
},
{
"from": "human",
"value": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function\n\nimport json\nimport os\nimport sys\nimport re\nimport hashlib\n\nfrom datetime import datet... | python | chosen |
[
{
"from": "system",
"value": "Make DEBUG configurable on staging\n"
},
{
"from": "human",
"value": "# Django settings for moscowdjango project.\nfrom .settings import *\n\nDEBUG = True\n\nEMBEDLY_KEY = os.environ.get('EMBEDLY_KEY')\nSECRET_KEY = os.environ.get('SECRET_KEY')\n\n# Amazon credentia... | python | chosen |
[
{
"from": "system",
"value": "qutebrowser: Use Arial as Fantasy font\n"
},
{
"from": "human",
"value": "config.load_autoconfig()\n\nc.tabs.background = True\nc.new_instance_open_target = 'window'\nc.downloads.position = 'bottom'\nc.spellcheck.languages = ['en-US']\n\nconfig.bind(',ce', 'config-e... | python | chosen |
[
{
"from": "system",
"value": "Add __active property to rule\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\"\"\"\n:Author Patrik Valkovic\n:Created 23.06.2017 16:39\n:Licence GNUv3\nPart of grammpy\n\n\"\"\"\n\nfrom .Constants import EPSILON\n\n\nclass Rule:\n right = [EPSILON]\n ... | python | chosen |
[
{
"from": "system",
"value": "Speed up loading, don't update for now. "
},
{
"from": "human",
"value": "import logging\n\nimport sqlaload as sl\n\nfrom regenesis.core import app, engine\n\nlog = logging.getLogger(__name__)\n\n\n\n\ndef load_cube(cube):\n cube_table = sl.get_table(engine, 'cub... | python | chosen |
[
{
"from": "system",
"value": "Update reference in TimeFunction test.\n"
},
{
"from": "human",
"value": "\"\"\"This module tests the TimeFunction class\"\"\"\n\nimport pytest\nimport pandas as pd\n\nfrom tssim.functions import TimeFunction\n\n\n@pytest.fixture\ndef ts():\n \"\"\"Setup test dat... | python | chosen |
[
{
"from": "system",
"value": "Update cmd to allow args\n\nChange the cmd string so that the \"args\" argument can be used in linter settings. The way it was any args would be inserted between the '-file' and the filename which broke the '-file' argument. \r\n\r\nFor this config,\r\n\"cflint\": {\r\n \"@d... | python | chosen |
[
{
"from": "system",
"value": "Apply `restore' utility to dictionary only\n"
},
{
"from": "human",
"value": "\nfrom contextlib import contextmanager\nimport copy\n\n\n@contextmanager\ndef restore(obj, copy_func=copy.deepcopy):\n \"\"\"Backup an object in a with context and restore it when leav... | python | chosen |
[
{
"from": "system",
"value": "Handle multiline go vet messages.\n"
},
{
"from": "human",
"value": "from SublimeLinter.lint import Linter, util\n\n\nclass Govet(Linter):\n cmd = ('go', 'tool', 'vet')\n regex = r'.+?:(?P<line>\\d+):((?P<col>\\d+):)?\\s+(?P<message>.+)'\n tempfile_suffix =... | python | chosen |
[
{
"from": "system",
"value": "Use username and password for MongoDB on ShiningPanda.\n"
},
{
"from": "human",
"value": "\"\"\"Tests for mongodb backend\n\nAuthors:\n\n* Min RK\n\"\"\"\n\n#-------------------------------------------------------------------------------\n# Copyright (C) 2011 The ... | python | chosen |
[
{
"from": "system",
"value": "Add profile command to CLI\n"
},
{
"from": "human",
"value": "# coding: utf8\nfrom __future__ import print_function\n# NB! This breaks in plac on Python 2!!\n#from __future__ import unicode_literals\n\nif __name__ == '__main__':\n import plac\n import sys\n ... | python | chosen |
[
{
"from": "system",
"value": "Use `MultipleChoiceField` for `tags` field\n"
},
{
"from": "human",
"value": "from django.contrib.auth.models import User\nfrom django.core.signing import BadSignature, SignatureExpired\nfrom django import forms\n\nfrom . import user_service\n\n\nclass SubscribeForm... | python | chosen |
[
{
"from": "system",
"value": "Return GoogleAddressCityStateSerializer on address field instead of pk in OrganizationSearchSerializer\n"
},
{
"from": "human",
"value": "from django.core.exceptions import ValidationError\n\nfrom ovp_core import validators as core_validators\nfrom ovp_core.serializ... | python | chosen |
[
{
"from": "system",
"value": "Remove bodgy static tag\nRemove duplicate capfirst helper\n"
},
{
"from": "human",
"value": "import ast\n\nfrom django.core.urlresolvers import reverse\nfrom django.utils.encoding import iri_to_uri\n\nimport datetime\n\nfrom knights.library import Library\n\nregiste... | python | chosen |
[
{
"from": "system",
"value": "tests: Purge images and containers before each test\n\nSigned-off-by: Esben Haabendal <da90c138e4a9573086862393cde34fa33d74f6e5@haabendal.dk>\n"
},
{
"from": "human",
"value": "import pytest\nimport io\nimport contextlib\nimport tempfile\nimport shutil\nimport os\n\... | python | chosen |
[
{
"from": "system",
"value": "SERVER-242: Make ID of regions be definite.\n"
},
{
"from": "human",
"value": "import os\nimport json\n\nfrom django.db import migrations\nfrom django.conf import settings\n\n\ndef dfs(apps, root, deep, superset=None, leaf=True):\n Region = apps.get_model('app', ... | python | chosen |
[
{
"from": "system",
"value": "Add --check support to the invocations.blacken task\n"
},
{
"from": "human",
"value": "\"\"\"\nShortcuts for common development check tasks\n\"\"\"\n\nfrom __future__ import unicode_literals\n\nfrom invoke import task\n\n@task(name='blacken', iterable=['folder'])\nd... | python | chosen |
[
{
"from": "system",
"value": "Fix string extraction. The \"ignore\" setting was getting us lots of non-string stuff.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nFunctionality for resolving ASCII printable strings within\nthe debuggee's address spac... | python | chosen |
[
{
"from": "system",
"value": "Update unexpected handler message, with http code and body.\n"
},
{
"from": "human",
"value": "from BeautifulSoup import *\nimport exception\n\ndef auth_fail(response, **kwargs):\n\n\tcode = response['http_code']\n\tmessage = 'Authentication failed - incorrect us... | python | chosen |
[
{
"from": "system",
"value": "Add annotations to the methods\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\"\"\"\nVisual console \"toys\".\n\"\"\"\n\nimport time\nimport sys\nimport threading\n\n\nclass Roller(threading.Thread):\n \"\"\"\n Roller of some fun sequences while waiting.... | python | chosen |
[
{
"from": "system",
"value": "Remove workaround for issue with older python versions.\n"
},
{
"from": "human",
"value": "# Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation.\n# Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp>\n#\n# Licensed under the Apache License... | python | chosen |
[
{
"from": "system",
"value": "Join word tokens into space-delimited string in InfoRetriever\n"
},
{
"from": "human",
"value": "# LING 573 Question Answering System\n# Code last updated 4/17/14 by Clara Gordon\n# This code implements an InfoRetriever for the question answering system.\n\n\nfrom p... | python | chosen |
[
{
"from": "system",
"value": "Add API traversal to the management app\n"
},
{
"from": "human",
"value": "class Root(object):\n \"\"\"ManagementRoot\n\n The main root object for any management traversal\n \"\"\"\n\n __name__ = None\n __parent__ = None\n\n def __init__(self, requ... | python | chosen |
[
{
"from": "system",
"value": "Fix dodo-upgrade (nothing was executed)\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom plumbum import local\n\n\ndef main(): # noqa\n pip = local[os.path.join(os.path.dirname(sys.executable), \"pip\")]\n pip[\"install\", \"--upgrade\", \"dodo_... | python | chosen |
[
{
"from": "system",
"value": "Use list comprehension instead of map lambda\n"
},
{
"from": "human",
"value": "# MIT licensed\n# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.\n\nfrom .cmd import run_cmd # type: ignore\n\nasync def get_version(\n name, conf, *, cache, keymanage... | python | chosen |
[
{
"from": "system",
"value": "Fix chainer v4 error about type_check._argname\n"
},
{
"from": "human",
"value": "from chainer.backends import cuda\nfrom chainer import function_node\nfrom chainer import utils\nfrom chainer.utils import type_check\n\n\nclass Arctanh(function_node.FunctionNode):\n\... | python | chosen |
[
{
"from": "system",
"value": "Add support for completed-job email to mocks\n"
},
{
"from": "human",
"value": "import datetime\n\n\nclass DictCursor(object):\n def __init__(self, conn):\n self.conn = conn\n\n def execute(self, sql, args=()):\n self.sql, self.args = sql, args\n... | python | chosen |
[
{
"from": "system",
"value": "Enable not loading theming CSS by explicitely setting ADMIN_TOOLS_THEMING_CSS to None\n"
},
{
"from": "human",
"value": "\"\"\"\nTheming template tags.\n\nTo load the theming tags just do: ``{% load theming_tags %}``.\n\"\"\"\n\nfrom django import template\nfrom dja... | python | chosen |
[
{
"from": "system",
"value": "Add 01 to function name\n"
},
{
"from": "human",
"value": "from evalset.test_funcs import TestFunction, lzip\nimport numpy\n\nclass MultioptTestFunction(TestFunction):\n\n def __init__(self, dim):\n super(MultioptTestFunction, self).__init__(dim)\n self.local... | python | chosen |
[
{
"from": "system",
"value": "Remove the test cases for handle_errors to fix the py27 gate issue\n\nAs we just change the exceptions handle method in horizon, now the\ntest cases have some issues, so disable them first to fix all py27\ngate fails.\n\nChange-Id: Ic369434a40ff209b06de9481884637d46ee588f7\n"
... | python | chosen |
[
{
"from": "system",
"value": "Add peek function to Queue class\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n'''Implementation of a simple queue data structure.\nThe queue has `enqueue`, `dequeue`, and `peek` methods.\nItems in the queue have `value` and `behind` attributes.\nThe q... | python | chosen |
[
{
"from": "system",
"value": "Fix compat for python 2.6\n"
},
{
"from": "human",
"value": "from collections import OrderedDict\n\nfrom sequere.query import QuerySetTransformer\nfrom sequere import utils\n\n\nclass RedisQuerySetTransformer(QuerySetTransformer):\n def __init__(self, client, cou... | python | chosen |
[
{
"from": "system",
"value": "Make sure that Linux line endings are used.\n"
},
{
"from": "human",
"value": "EXTERN_START = \"\\n#ifdef __cplusplus\\nextern \\\"C\\\" {\\n#endif\\n\\n\"\nEXTERN_STOP = \"#ifdef __cplusplus\\n}\\n#endif\\n\\n\"\n\nEXTERN_FIND1 = \"extern \\\"C\\\" {\\n\"\nEXTERN_F... | python | chosen |
[
{
"from": "system",
"value": "Add statsmodels as a dependency\n"
},
{
"from": "human",
"value": "# pylint: disable=missing-docstring\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nsetup(name='mltils',\n version='0.1',\n description='A package with utility functi... | python | chosen |
[
{
"from": "system",
"value": "Add Python 3.4 to supported list\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nsetup(\n name='blanc-basic-news',\n version='0.3',\n description='Blanc Basic News for Django',\n long_description=o... | python | chosen |
[
{
"from": "system",
"value": "Change the development status to Beta\n"
},
{
"from": "human",
"value": "import distutils.core\nimport sys\n\nfrom rabbitpy import __version__\n\ntests_require = ['nose', 'mock']\nif sys.version_info < (2, 7, 0):\n tests_require.append('unittest2')\n\ndesc = 'A m... | python | chosen |
[
{
"from": "system",
"value": "Fix migration for Postgres < 9.5\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Generated by Django 1.10.1 on 2017-03-22 14:53\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations\n\nfrom ..models import IndexEntry\n\n\ntable =... | python | chosen |
[
{
"from": "system",
"value": "Add more specific Python version classifiers\n"
},
{
"from": "human",
"value": "import setuptools \nimport sys\nimport os.path\nimport subprocess\n\n\n# Build README.txt from README.md if not present, and if we are actually building for distribution to pypi\nif not ... | python | chosen |
[
{
"from": "system",
"value": "Switch to only requiring azure-storage\n\nThis switches the requirement to match azure@1.0.3. We no longer\nrequire all of the Azure packages in order to use the storage\nadapter. This should not be a breaking change, it only reduces the\nscope of the requirements to be as mini... | python | chosen |
[
{
"from": "system",
"value": "Bump version to fix URL\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name = \"simplecpreprocessor\",\n version = \"0.0.4\",\n author = \"Seppo Yli-Olli\",\n author_email = \"seppo.yli-olli@iki.fi\",\n description = \"Sim... | python | chosen |
[
{
"from": "system",
"value": "Exclude common unwanted package patterns\n"
},
{
"from": "human",
"value": "from django_rocket import __version__, __author__, __email__, __license__\n\nfrom setuptools import setup, find_packages\n\nREADME = open('README.rst').read()\n# Second paragraph has the sho... | python | chosen |
[
{
"from": "system",
"value": "Use new 'Faker' package for fake-factory\n"
},
{
"from": "human",
"value": "import sys\n\nfrom setuptools import setup, find_packages\n\nimport populous\n\nrequirements = [\n \"click\",\n \"cached-property\",\n \"fake-factory\",\n \"dateutils\",\n \"P... | python | chosen |
[
{
"from": "system",
"value": "Remove redundant __iter__ from APIJsonObject base class\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nfrom __future__ import unicode_literals, absolute_import\n\nfrom collections import Mapping\nfrom abc import ABCMeta\n\nfrom .base_api_json_object import Ba... | python | chosen |
[
{
"from": "system",
"value": "Use pandoc to convert the markdown readme to rst.\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(\n name='cardscript',\n version='0.6',\n description=\"A scriptable card game processing engine.\",\n author=\"Charles Nelson\"... | python | chosen |
[
{
"from": "system",
"value": "Add projectSlug to build flaky tests API response\n\nSummary: We will use it in the test quarantine service to whitelist projects which support quarantine.\n\nTest Plan:\nTested locally.\n\n{\n \"projectSlug\": \"changesjenkins\",\n \"repositoryUrl\": \"https://github.com/dro... | python | chosen |
[
{
"from": "system",
"value": "Fix URL that was killing serving static files.\n"
},
{
"from": "human",
"value": "from django.conf.urls import patterns, include, url\nfrom django.conf import settings\n\n# Uncomment the next two lines to enable the admin:\n# from django.contrib import admin\n# admi... | python | chosen |
[
{
"from": "system",
"value": "Fix passing GCC compiler options on Windows"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport os\nimport sys\nimport io\ntry:\n import setuptools\nexcept ImportError:\n from distribute_setup import use_setuptools\n use_setuptools()\nfrom setupt... | python | chosen |
[
{
"from": "system",
"value": "Resolve syntax errror during install\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nsetup(name='pixiedust',\n version='1.1.18',\n description='Productivity library for Jupyter Notebook',\n url='https://github.com/pixie... | python | chosen |
[
{
"from": "system",
"value": "Set classifiers to indicate this project supoorts both Python 2 and 3\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -----------------------------------------------------------------------------\n# FreeType high-level python API - copyright 2011 Nicola... | python | chosen |
[
{
"from": "system",
"value": "Bump version for relative path fix\n"
},
{
"from": "human",
"value": "\"\"\"Setuptools configuration for rpmvenv.\"\"\"\n\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n\nwith open('README.rst', 'r') as readmefile:\n\n README = readmefile.... | python | chosen |
[
{
"from": "system",
"value": "Fix dev status trove classifier.\n"
},
{
"from": "human",
"value": "import os\n\nimport relman\nimport setuptools\n\n\nBASEPATH = os.path.abspath(os.path.dirname(__file__))\n\n\ndef load_requirements(filename):\n \"\"\"load requirements from a pip requirements fi... | python | chosen |
[
{
"from": "system",
"value": "Fix too loose url regex for snapshot creation\n\nCurrent regex '^(?P<instance_id>[^/]+)/create' for url\nprojects/images/<instance-id>/create will match all urls start with 'create' by\nmistake. The '$' added will make sure the regex only match 'create' as expect.\n\nChange-Id:... | python | chosen |
[
{
"from": "system",
"value": "Update package description to specify OpenGL 3.3+\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name=\"demosys-py\",\n version=\"0.3.10\",\n description=\"Modern OpenGL 4.1+ Framework inspired by Django\",\n long_description... | python | chosen |
[
{
"from": "system",
"value": "Add URL and long-desc to metadata\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='pytest-relaxed',\n version='0.0.1',\n description='Relaxed test discovery/organization for pytest',\n... | python | chosen |
[
{
"from": "system",
"value": "Add trove classifiers for all supported Python versions\n"
},
{
"from": "human",
"value": "from distutils.core import setup\nfrom setuptools import find_packages\n\n\nVERSION = __import__(\"import_export\").__version__\n\nCLASSIFIERS = [\n 'Framework :: Django',\... | python | chosen |
[
{
"from": "system",
"value": "Add more classifiers. Check if Cython compilation is available or not.\n"
},
{
"from": "human",
"value": "from distutils.core import Extension, setup\n\nfrom Cython.Build import cythonize\n\n\nextensions = [\n Extension('*', ['mathix/*.pyx']),\n]\n\n\nsetup(\n ... | python | chosen |
[
{
"from": "system",
"value": "Remove version requirement for numpy"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# coding=utf-8\n\nfrom setuptools import setup, find_packages\nimport os\n\n\ndef find_scripts(scriptdir):\n \"\"\"scrape all available scripts from 'bin' folder\"\"\"\n ... | python | chosen |
[
{
"from": "system",
"value": "Use only one method to recalculate event counters\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n##############################################################################\n# For copyright and license notices, see __openerp__.py file in root direc... | python | chosen |
[
{
"from": "system",
"value": "Add messagepack to the list of dependencies, since runtime wont run without it.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env python\nimport os\nfrom setuptools import setup, find_packages\n\n\ndef read(filename):\n with open(os.path.join(os.path.dirname(__f... | python | chosen |
[
{
"from": "system",
"value": "Add static files to data_files\n"
},
{
"from": "human",
"value": "import setuptools\n\nsetuptools.setup(\n name=\"nbresuse\",\n version='0.1.0',\n url=\"https://github.com/yuvipanda/nbresuse\",\n author=\"Yuvi Panda\",\n description=\"Simple Jupyter e... | python | chosen |
[
{
"from": "system",
"value": "Use correct environment markers syntax in the extras_require section.\n\nSee https://github.com/pypa/setuptools/issues/1087\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\nfrom channels import __version__\n\nsetup(\n name='channels... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.