conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Implement fetching annotations for a given group\n"
},
{
"from": "human",
"value": "import requests\n"
},
{
"from": "gpt",
"value": "import requests\nfrom indra.config import get_config\nfrom .processor import HypothesisProcessor\n\n\nbase_url = 'https:/... | python | chosen |
[
{
"from": "system",
"value": "Fix deprecation warnings - RemovedInDjango19Warning\n\nExtend fix in review #9160 for subsequent changes.\n\nChange-Id: I25fbe759cfd28ac683ef94b58a8da098141e8d48\n"
},
{
"from": "human",
"value": "# Copyright (C) 2015 Linaro Limited\n#\n# Author: Stevan Radakovic <s... | python | chosen |
[
{
"from": "system",
"value": "Add index for Measurement model\n"
},
{
"from": "human",
"value": "#coding: utf-8\n\nfrom django.db import models\n\nclass Substance(models.Model):\n name = models.TextField(unique=True, db_index=True)\n alias = models.TextField()\n\nclass Station(models.Model... | python | chosen |
[
{
"from": "system",
"value": "Mark test_default_config as skip; Scheduler needs to be rewritten\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\"\"\"Test Factory Module\n\nThis module contains the tests for the OpenRecords Application Factory\n\"\"\"\nimport os\n\nimport flask\nimpo... | python | chosen |
[
{
"from": "system",
"value": "Change test, so that view has a request object\n"
},
{
"from": "human",
"value": "from unittest import TestCase\nfrom mock import Mock, patch\n\nfrom regulations.generator.layers.layers_applier import *\nfrom regulations.views.partial import *\n\nclass PartialParagr... | python | chosen |
[
{
"from": "system",
"value": "Make known_assertions.txt cross-machine and hopefully also cross-platform.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\ndef amiss(logPrefix):\n global ignoreList\n foundSomething = False\n\n currentFile = file(logPrefix + \"-err\", \"r\")\n ... | python | chosen |
[
{
"from": "system",
"value": "Add search_enabled to site settings context processor\n"
},
{
"from": "human",
"value": "from django.conf import settings\nfrom django.db.models import Count, Max\n\nfrom comics.core.models import Comic\n\ndef site_settings(request):\n return {\n 'site_tit... | python | chosen |
[
{
"from": "system",
"value": "Add Etag header to proxy response from s3\n"
},
{
"from": "human",
"value": "import boto\nimport logging\nfrom tpt import private_settings\nfrom boto.s3.key import Key\nfrom django.http import StreamingHttpResponse\nfrom django.http import Http404\n\nlogger = loggin... | python | chosen |
[
{
"from": "system",
"value": "Add `clowder init` logic to Cement controller\n"
},
{
"from": "human",
"value": "from cement.ext.ext_argparse import expose\n\nfrom clowder.cli.abstract_base_controller import AbstractBaseController\n\n\nclass InitController(AbstractBaseController):\n class Meta:... | python | chosen |
[
{
"from": "system",
"value": "Remove trailing slash (google charts don't like it)\n"
},
{
"from": "human",
"value": "# pipeurlbuilder.py\n#\n\nimport urllib\nfrom pipe2py import util\n\ndef pipe_urlbuilder(context, _INPUT, conf, **kwargs):\n \"\"\"This source builds a url and yields it foreve... | python | chosen |
[
{
"from": "system",
"value": "Fix file read, start on sell price"
},
{
"from": "human",
"value": "import requests\nfrom bs4 import BeautifulSoup \n\nURL = 'https://finance.yahoo.com/quote/'\nsecutities = []\n\nwith open(\"ticker-updates,cong\", r) as conf_file:\n securities = conf_file.readli... | python | chosen |
[
{
"from": "system",
"value": "Allow barcode classes to be optionally specified\n"
},
{
"from": "human",
"value": "from . import shippers\n\n\ndef barcode(b):\n for klass in ['DHL', 'FedExExpress', 'FedExGround96', 'UPS', 'USPSIMpb', 'USPS13']:\n shipper = getattr(shippers, klass)(b)\n ... | python | chosen |
[
{
"from": "system",
"value": "Add function to format subtraction filename\n"
},
{
"from": "human",
"value": "\"\"\"\nUtilities focussing on formatting FASTA files.\n\n\"\"\"\n\n\ndef format_fasta_entry(otu_name: str, isolate_name: str, sequence_id: str, sequence: str) -> str:\n \"\"\"\n Cr... | python | chosen |
[
{
"from": "system",
"value": "Add import for Django exception\n"
},
{
"from": "human",
"value": "\"\"\"Module for checking glossary links found within Markdown conversions.\"\"\"\n\nfrom utils.errors.CouldNotFindGlossaryTerm import CouldNotFindGlossaryTerm\nfrom topics.models import GlossaryTerm... | python | chosen |
[
{
"from": "system",
"value": "Logger: Add Docstring for public modules\n"
},
{
"from": "human",
"value": "\"\"\"Initialise logging functionality.\"\"\"\nimport sys\nimport logging\n\n\ndef initialise(handler_name):\n \"\"\"Initialise the logger based on user preference.\"\"\"\n logging.bas... | python | chosen |
[
{
"from": "system",
"value": "Revert \"confirm query params never overwrite dynamic url components\"\n\nThis reverts commit 9aa3a57a289985d24877515995b3f1d589624a8d.\n\nConflicts:\n\tcherryontop/decorators/qp.py\n"
},
{
"from": "human",
"value": "import functools\nimport inspect\n\nimport cherry... | python | chosen |
[
{
"from": "system",
"value": "Add exception to tempest plugin\n\nException 'SnapshotBuildErrorException' was used, but\nwas not defined.\n\nChange-Id: Ida7554d65eb6657fa05b7d53cbfa452cc0239f74\n"
},
{
"from": "human",
"value": "# Copyright 2014 Mirantis Inc.\n# All Rights Reserved.\n#\n# Lice... | python | chosen |
[
{
"from": "system",
"value": "Include initial solution for the water level problem problem\n"
},
{
"from": "human",
"value": "'''\nCreated on Aug 1, 2017\n\n@author: alkaitz\n'''\n\n'''\n [3 2 3] -> 1\n'''\nif __name__ == '__main__':\n pass"
},
{
"from": "gpt",
"value": "'''\nC... | python | chosen |
[
{
"from": "system",
"value": "Add an option to also return intermediate example norms\n"
},
{
"from": "human",
"value": "import numpy as np\n\n\ndef hyperplanes(means, stds, n_planes):\n if len(means) != len(stds):\n raise ValueError('means and stds must have the same length')\n\n n... | python | chosen |
[
{
"from": "system",
"value": "Add django contrib redirects on opps core init\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.conf import settings\n\n\n\ntrans_app_label = _('Opps')\n\nsettings.INSTALLED_APPS += ('op... | python | chosen |
[
{
"from": "system",
"value": "Create EReader object using EClientSocket.createReader()"
},
{
"from": "human",
"value": "'''Unit test package for module \"tws._EReader\".'''\n\n__copyright__ = \"Copyright (c) 2008 Kevin J Bluck\"\n__version__ = \"$Id$\"\n\nimport unittest\nfrom StringIO import ... | python | chosen |
[
{
"from": "system",
"value": "Increase implicitly wait limit to 10 seconds\n\nThis is due to loading external scripts e.g. sharethis which take a\nlonger to load\n"
},
{
"from": "human",
"value": "from django.contrib.staticfiles.testing import StaticLiveServerTestCase\nfrom selenium import webdr... | python | chosen |
[
{
"from": "system",
"value": "Fix for empty strings (previously '' was just removed)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n\"\"\"\nCopyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)\nSee the file 'doc/COPYING' for copying permission\n\"\"\"\n\nimport re\n\nfrom ... | python | chosen |
[
{
"from": "system",
"value": "Make documentation generator strip copyright header from inline examples\n"
},
{
"from": "human",
"value": "# Copyright 2014 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 ... | python | chosen |
[
{
"from": "system",
"value": "Add method for instrument bank\n"
},
{
"from": "human",
"value": "#import pygame.midi.Output\nfrom pygame.midi import Output\n\n\nclass Output(Output):#pygame.midi.Output):\n \n def set_pan(self, pan, channel):\n assert (0 <= channel <= 15)\n ass... | python | chosen |
[
{
"from": "system",
"value": "Make count of words default 0\n"
},
{
"from": "human",
"value": "from django.db import models\n\n\nclass DataIngredient(models.Model):\n \"\"\"\"Class used to Store Ingredients of the recipes found in the crawling process\"\"\"\n\n ingredient = models.CharFiel... | python | chosen |
[
{
"from": "system",
"value": "Add trailing slash to url\n"
},
{
"from": "human",
"value": "from django.conf.urls.defaults import *\n\nurlpatterns = patterns('corehq.apps.importer.views',\n url(r'^excel/config/$', 'excel_config', name='excel_config'),\n url(r'^excel/fields/$', 'excel_fields... | python | chosen |
[
{
"from": "system",
"value": "Fix missing ^ in url patterns\n"
},
{
"from": "human",
"value": "from django.conf.urls import include, url\nfrom django.contrib import admin\n\nurlpatterns = [\n url(r'admin/', include(admin.site.urls)),\n\n url(r'rankedmodel/', include('awl.rankedmodel.urls')... | python | chosen |
[
{
"from": "system",
"value": "Set widgets for textareas so we can set placeholder attribute\n"
},
{
"from": "human",
"value": "from django import forms\n\nfrom discussion.models import Comment, Post, Discussion\n\n\nclass CommentForm(forms.ModelForm):\n class Meta:\n exclude = ('user',... | python | chosen |
[
{
"from": "system",
"value": "Fix dimensions of periodic kernel parameters\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport math\n\nimport torch\nfr... | python | chosen |
[
{
"from": "system",
"value": "Add output check on the pressure quantity\n"
},
{
"from": "human",
"value": "import hoomd\nimport io\n\n\ndef test_table_pressure(simulation_factory, two_particle_snapshot_factory):\n \"\"\"Test that write.table can log MD pressure values.\"\"\"\n thermo = hoo... | python | chosen |
[
{
"from": "system",
"value": "Support setting alpha in colors\n"
},
{
"from": "human",
"value": "# Copyright 2017 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You ma... | python | chosen |
[
{
"from": "system",
"value": "Allow one last call to process before stopping\n"
},
{
"from": "human",
"value": "import threading\nimport queue\n\nclass Routine(threading.Thread):\n def __init__(self):\n threading.Thread.__init__(self)\n self.queue = queue.Queue()\n self.m... | python | chosen |
[
{
"from": "system",
"value": "openings: Fix tests for positioned stages\n"
},
{
"from": "human",
"value": "from django.test import TestCase\n\nfrom ..factories._applications import ApplicationFactory\nfrom ..factories._companysettings import InterviewStageFactory\nfrom ..factories._openings impo... | python | chosen |
[
{
"from": "system",
"value": "Use new dmagellan worker tarball (854e51d)\n"
},
{
"from": "human",
"value": "# run this with python -i\nimport dask, distributed\nfrom distributed import Client\nfrom distributed.deploy.adaptive import Adaptive\nfrom dask_condor import HTCondorCluster\nimport loggi... | python | chosen |
[
{
"from": "system",
"value": "Fix URL typo full_import ==> full-import\n"
},
{
"from": "human",
"value": "import requests\nimport ipdb\nimport mc_config\nimport psycopg2\nimport psycopg2.extras\nimport time\n\ndef get_solr_location():\n ##TODO -- get this from the yaml file\n return 'http:... | python | chosen |
[
{
"from": "system",
"value": "Update template to use new react-dom\n\nIn React 0.14, the DOM manipulation algorithms have been pulled out into\na new package called react-dom. We update our template to use this new\npackage.\n"
},
{
"from": "human",
"value": "MOUNT_JS = \\\n\"\"\"\nif (typeof {v... | python | chosen |
[
{
"from": "system",
"value": "Add loading of logging config\n"
},
{
"from": "human",
"value": "# -*- coding: utf8 -*-\nfrom fabric import colors\nfrom frigg.worker.fetcher import fetcher\n\n\nclass Commands(object):\n\n @staticmethod\n def start():\n print(colors.green(\"Starting fr... | python | chosen |
[
{
"from": "system",
"value": "Use json_build_object, rather than jsonb_build_object\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Generated by Django 1.9.13 on 2018-05-07 16:20\nfrom __future__ import unicode_literals\n\nimport django.contrib.postgres.fields.jsonb\nfrom django.db... | python | chosen |
[
{
"from": "system",
"value": "Exit 1 based on whether or not it was shutdown correctly\n"
},
{
"from": "human",
"value": "from django.core.management.base import BaseCommand\nfrom django.conf import settings\nfrom celery import Celery\n\n\nclass Command(BaseCommand):\n help = \"Gracefully shu... | python | chosen |
[
{
"from": "system",
"value": "Create Disk check to monitor inodes\n"
},
{
"from": "human",
"value": "from sauna.plugins import PluginRegister\nfrom sauna.plugins.base import PsutilPlugin\n\nmy_plugin = PluginRegister('Disk')\n\n\n@my_plugin.plugin()\nclass Disk(PsutilPlugin):\n\n @my_plugin.c... | python | chosen |
[
{
"from": "system",
"value": "ADD loadcert_config to make module uninstallable\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport wsafip_certificate_alias\nimport wsafip_certificate\nimport wsafip_server\nimport wsafip_connection\n\n# vim:expandtab:smartindent:tabstop=4:softtabst... | python | chosen |
[
{
"from": "system",
"value": "Add filter for limiting to one account\n"
},
{
"from": "human",
"value": "from tastypie import fields\nfrom tastypie.resources import ModelResource, ALL\nfrom tastypie.authentication import ApiKeyAuthentication\nfrom tastypie.authorization import Authorization\nfrom... | python | chosen |
[
{
"from": "system",
"value": "Fix parsing of taskWarrior's output\n\nI don't know for older versions, but the latest stable release already\nhave '[' and ']' when doing an export. This lead to raising an exception\nbecause it makes a nested list and you try to access it using a string\nrather than an intege... | python | chosen |
[
{
"from": "human",
"value": "Add Splunk API for log clustering\n"
},
{
"from": "gpt",
"value": "from os import system, remove\n\n\nclass PySplunk(object):\n def __init__(self, username, source, host, output_mode, tmp_file='/tmp/pysplunk_cluster.csv'):\n self.username = username\n ... | python | chosen |
[
{
"from": "system",
"value": "Add the basic configuration for PostgreSQL for the dev\n"
},
{
"from": "human",
"value": "from pycon.settings import *\n\nDEFAULT_URL_PREFIX='http://localhost:8000'\nDEBUG=True\n\nPAYPAL_TEST = True\n\nTEMPLATES[0]['OPTIONS']['debug'] = True\n\nINSTALLED_APPS = INST... | python | chosen |
[
{
"from": "system",
"value": "Change command to update all persons\n"
},
{
"from": "human",
"value": "import logging\n\nfrom django.core.management.base import BaseCommand\n\nfrom parliament.models import Parliament\nfrom openkamer.parliament import add_tk_person_id\n\nlogger = logging.getLogger... | python | chosen |
[
{
"from": "system",
"value": "bii: Call fetch_and_import on the right module\n"
},
{
"from": "human",
"value": "# /ciscripts/coverage/bii/coverage.py\n#\n# Submit coverage totals for a bii project to coveralls\n#\n# See /LICENCE.md for Copyright information\n\"\"\"Submit coverage totals for a bi... | python | chosen |
[
{
"from": "system",
"value": "Break line in an odd place to keep the build from breaking.\n"
},
{
"from": "human",
"value": "import decimal\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\n\nimport stripe\n\n\nclass Command(BaseCommand):\n\n help = \"M... | python | chosen |
[
{
"from": "system",
"value": "Test valid but unsupported report type (Platform Report)\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\n\nimport unittest\n\nfrom pycounter import report\nimport pycounter.exceptions\n\n\nclass TestParseBad(unittest.TestCase):\n def te... | python | chosen |
[
{
"from": "system",
"value": "Correct method to detect known organisms\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"\nCopyright [2009-2017] EMBL-European Bioinformatics Institute\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file ... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Update comment for _distutils_system_mod.\" as Fedora is not using that hook.\n\nThis reverts commit 8c64fdc8560d9f7b7d3926350bba7702b0906329.\n"
},
{
"from": "human",
"value": "\"\"\"distutils\n\nThe main package for the Python Module Distribution Utilitie... | python | chosen |
[
{
"from": "system",
"value": "Add a todo to remove Load, Del, Store\n"
},
{
"from": "human",
"value": "import enum\nimport sys\n\nPY37 = sys.version_info >= (3, 7)\nPY38 = sys.version_info >= (3, 8)\nPY39 = sys.version_info >= (3, 9)\nPY310 = sys.version_info >= (3, 10)\n\n\nclass Context(enum.E... | python | chosen |
[
{
"from": "system",
"value": "Add DCMAKE_BUILD_TYPE flag for *nix\n"
},
{
"from": "human",
"value": "# -*- coding: UTF-8 -*-\n\nimport os\nimport platform\nimport logging\n\nif __name__ == \"__main__\":\n #logging.basicConfig(level = logging.DEBUG)\n\n directory_solution = r'build/'\n b... | python | chosen |
[
{
"from": "system",
"value": "Mark test as xfail since it requires a fork of pyregion"
},
{
"from": "human",
"value": "from .. import pvregions\nfrom astropy import wcs\nfrom astropy.io import fits\nimport numpy as np\nimport os\n\ndef data_path(filename):\n data_dir = os.path.join(os.path.di... | python | chosen |
[
{
"from": "system",
"value": "Add slash to initiative submit url\n"
},
{
"from": "human",
"value": "from django.conf.urls import url\n\nfrom bluebottle.initiatives.views import (\n InitiativeList, InitiativeDetail, InitiativeImage,\n InitiativeReviewTransitionList\n)\n\n\nurlpatterns = [\n... | python | chosen |
[
{
"from": "system",
"value": "[RM-14742] Set default init to systemd for (open)SUSE\n\n(open)SUSE is now using systemd moving forward, this patch corrects behavior\non Tumbleweed and LEAP\n\nopenSUSE Tumbleweed distribution is a pure rolling release version of openSUSE\nrunning the latest packages.\n\nopenS... | python | chosen |
[
{
"from": "system",
"value": "Fix demographics resolve form formatting.\n"
},
{
"from": "human",
"value": "from django.forms import ModelForm\n\nfrom crispy_forms.helper import FormHelper\nfrom crispy_forms.layout import Submit, Layout, Fieldset\n\nfrom . import models\n\n\nclass DemographicsFor... | python | chosen |
[
{
"from": "system",
"value": "Fix getting category's descendants before save\n"
},
{
"from": "human",
"value": "from django import forms\nfrom django.utils.text import slugify\nfrom django.utils.translation import ugettext_lazy as _\nfrom mptt.forms import TreeNodeChoiceField\nfrom unidecode imp... | python | chosen |
[
{
"from": "system",
"value": "Increment the version for the next update to pypi"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom distutils.core import setup\n\nsetup(name='xml_models',\n version='0.3',\n description='XML backed models queried from external REST apis',\n ... | python | chosen |
[
{
"from": "system",
"value": "Read README as UTF-8, always\n"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import find_packages, setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:\n README = readme.read()\n\nsetup(\n name='django-postgres-e... | python | chosen |
[
{
"from": "system",
"value": "Exclude tests directory from install\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, find_packages\n\nsetu... | python | chosen |
[
{
"from": "system",
"value": "Add forward to list of bridges"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='regrowl',\n description='Regrowl server',\n author='Paul Traylor',\n url='https://github.com/kfdm/gntp-regrowl',\n version='0.0.1',\n pac... | python | chosen |
[
{
"from": "system",
"value": "Add links to Github for source and bug tracker\n"
},
{
"from": "human",
"value": "import io\nfrom setuptools import setup\n\nAUTHOR = \"Brian Curtin\"\nEMAIL = \"brian@python.org\"\n\n\nsetup(name=\"deprecation\",\n version=\"2.0\",\n description=\"A libra... | python | chosen |
[
{
"from": "system",
"value": "chore(pins): Update pin to new dictionary hotfix pin\n\n- Update pin to new dictionary hotfix pin\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='gdcdatamodel',\n packages=find_packages(),\n install_requires=... | python | chosen |
[
{
"from": "system",
"value": "Set full versions on all dependencies and updated most to latest version\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\npackage_data = ['static/css/*', 'static/img/*', 'static/js/*', 'static/js/templates/*', 'templates/djukebox/*']... | python | chosen |
[
{
"from": "system",
"value": "Add initial release to Pypi.\n"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import setup, find_packages\n\nversion = '1.0.0'\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetup(name='django-cas',\... | python | chosen |
[
{
"from": "system",
"value": "Add updated version to PyPi\n"
},
{
"from": "human",
"value": "\"\"\"\nSetup and installation for the package.\n\"\"\"\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\nsetup(\n name=\"three\",\n version=... | python | chosen |
[
{
"from": "system",
"value": "Revert version number to 0.2.10\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.11',\n url='https://www.github.com/twilio/flask-restful/',\n author='... | python | chosen |
[
{
"from": "system",
"value": "Use lib/ instead of src/lib.\n"
},
{
"from": "human",
"value": "#/usr/bin/env python2.6\n#\n# $Id: setup.py 87 2010-07-01 18:01:03Z ver $\n\nfrom distutils.core import setup\n\n\ndescription = \"\"\"\nThe Jersey core libraries provide common abstractions used by Jer... | python | chosen |
[
{
"from": "system",
"value": "Add deprecated >= 1.2.0 to install_requires\n"
},
{
"from": "human",
"value": "from setuptools import setup\nfrom os import path\n\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:\n ... | python | chosen |
[
{
"from": "system",
"value": "Add long_description field to avoid PyPi page error.\n"
},
{
"from": "human",
"value": "#!/bin/env python\n\nfrom setuptools import setup\n\n# Load module version from ovr/version.py\nexec(open('src/openvr/version.py').read())\n\nsetup(\n name='openvr',\n vers... | python | chosen |
[
{
"from": "system",
"value": "ZON-3409: Update to version with celery.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nsetup(\n name='zeit.content.gallery',\n version='2.7.4.dev0',\n author='gocept, Zeit Online',\n author_email='zon-backend@zeit.de... | python | chosen |
[
{
"from": "system",
"value": "Use the README.rst file as the contents for the long_description\n\nThis renders a lot better on PyPI: https://pypi.python.org/pypi/charlesbot\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nlong_description = \"\"\"\nFull details a... | python | chosen |
[
{
"from": "system",
"value": "Add python_requires to help pip, update classifiers"
},
{
"from": "human",
"value": "from distutils.core import setup\nimport os\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\nsetup(name='pandocfilters',\n versi... | python | chosen |
[
{
"from": "system",
"value": "Update to 0.1.1 for license fix\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\n\n\ndescription = \"\"\"\nSimply library to sign and verify SOAP XML requests using the\nBinarySecurityToken specification.\n\"\"\".strip()\n\nsetup(\n ... | python | chosen |
[
{
"from": "system",
"value": "Add Python 3 trove classifiers\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nimport base32_crockford\n\n\nsetup(\n name='base32-crockford',\n version='0.2.0',\n description=(\"A Python implementation of Douglas ... | python | chosen |
[
{
"from": "system",
"value": "chore: Update classifiers to include python 3.10"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n with open(os.path.join(os.path.dirname(__file__), fname)) as f:\n return f.read()\n\n\nsetup(... | python | chosen |
[
{
"from": "system",
"value": "Reduce the number of files in dist folder\n"
},
{
"from": "human",
"value": "from distutils.core import setup\r\nimport py2exe\r\n\r\nsetup(\r\n console=[{'script':'check_forbidden.py','version':'1.1.0',}],\r\n )\r\n\r\n'''\r\ncd dropbox/codes/check_forbid... | python | chosen |
[
{
"from": "system",
"value": "Allow newer versions of dependencies\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='GingerioChartioUtilities',\n version='0.1',\n author='Jeremy A Johnson',\n author_email='jeremy@ginger.io',\n packages=['chartio'],\... | python | chosen |
[
{
"from": "system",
"value": "Revert version update made for our mirror.\n"
},
{
"from": "human",
"value": "import os\n\nfrom setuptools import setup, find_packages\n\nversion = '1.5.0_patch1'\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n\nsetu... | python | chosen |
[
{
"from": "system",
"value": "Return empty response when StopIteration is raised on exhausted iterator\n"
},
{
"from": "human",
"value": "from django.core.urlresolvers import reverse\nfrom avocado.events import usage\nfrom .base import FieldBase\n\n\nclass FieldStats(FieldBase):\n \"Field Sta... | python | chosen |
[
{
"from": "system",
"value": "Add postgres as response processing for travis\n"
},
{
"from": "human",
"value": "DEBUG = False\n\nBROKER_URL = 'amqp://guest@localhost'\n\nRECORD_HTTP_TRANSACTIONS = False\n\nCELERY_EAGER_PROPAGATES_EXCEPTIONS = True\n\nRAW_PROCESSING = ['cassandra', 'postgres']\nN... | python | chosen |
[
{
"from": "system",
"value": "Add ordereddict as required package (for 2.6)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# Copyright (c) The ppd team\n# See LICENSE for details.\n\n\nfrom distutils.core import setup\n\nsetup(\n name='ppd',\n version='0.1.0',\n description='... | python | chosen |
[
{
"from": "system",
"value": "Add repoze.{squeeze,profile} and stompservice to our dependency list\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='moksha',\n version='0.1',\n description='',\n author='',\n author_email='',\n #url... | python | chosen |
[
{
"from": "system",
"value": "Include `tests` subpackage in installation\n\nThe tests subpackage has helpers that are useful for running tests in\ndjango projects, such as `mock_browserid`. Include this subpackage in\nthe distutils script so that it won't be ignored by pip, easy_install,\netc.\n"
},
{
... | python | chosen |
[
{
"from": "system",
"value": "Add slightly more descriptive keywords for PyPI\n"
},
{
"from": "human",
"value": "#!/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') ... | python | chosen |
[
{
"from": "system",
"value": "Remove version range for py-sonic\n\npy-sonic stopped supporting python2 > 0.6.2\nUsing pip to install results in an error if this is not set\n"
},
{
"from": "human",
"value": "from __future__ import unicode_literals\n\nimport re\nfrom setuptools import setup, find_... | python | chosen |
[
{
"from": "system",
"value": "Change case of Django to django else pypi lookup fails\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name='django-dfp',\n version='0.3.2',\n description='DFP implementation for Django',\n long_description = op... | python | chosen |
[
{
"from": "system",
"value": "Fix typo in tests_require parameter\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nVERSION = __import__('location_field').__version__\n\n\nsetup(\n name='django-location-field',\n version=VERSION,\n description=\"Locatio... | python | chosen |
[
{
"from": "system",
"value": "Remove tox from style extras\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\n\nsetup(\n name=\"feeds\",\n version=\"2017.08.14\",\n # Author details\n author=\"Florian Preinstorfer, Lukas Anzinger\",\n author_email=\"fl... | python | chosen |
[
{
"from": "system",
"value": "Add 2.7 to PyPI trove classifiers\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nfrom distutils.core import setup\n\nsetup(\n name='json-store',\n version='1.1',\n packages=['json_store',],\n scripts=['bin/shelve2json.py',],\n description=\"A s... | python | chosen |
[
{
"from": "system",
"value": "Raise min required Python version to 3.5\nPython 3.4 reached eol\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom distutils.core import setup\n\ndef read(filename):\n return open(os.path.join(os.path.dirname(__file__), filename)).read()\n\nif sys.ve... | python | chosen |
[
{
"from": "system",
"value": "Solve the xcffib chicken and egg problem\n\nSee https://groups.google.com/forum/#!topic/python-cffi/NgGybV5LLMs for more\ninfo.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport subprocess\n\nfrom setuptools import setup, find... | python | chosen |
[
{
"from": "system",
"value": "Add MANIFEST.in to keep tox happy\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nfrom kafka_info import __version__\n\n\nsetup(\n name=\"kafka-info\",\n version=__version__,\n author=\"Federico Giraud\",\n author_email=\"fgiraud@yelp.... | python | chosen |
[
{
"from": "system",
"value": "Add sqlalchemy to gimlet dependencies\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(name=\"gimlet\",\n version='0.1',\n description='Simple High-Performance WSGI Sessions',\n long_description='',\n classifiers=[\n ... | python | chosen |
[
{
"from": "system",
"value": "Increment version number to 1.0.4.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='edit_distance',\n version='1.0.3',\n author='Ben Lambert',\n author_email='blambert@gmail.com',\n packages=['edit_distance'],\n lic... | python | chosen |
[
{
"from": "system",
"value": "Emphasize that we support Python 3.4.x\n"
},
{
"from": "human",
"value": "\"\"\"\nCQLSL\n-----\n\nCQL for Python without any additional abstraction layers.\nDesigned to be simple and fast tool for communication with Cassandra.\nCQLSL is something between native Cass... | python | chosen |
[
{
"from": "system",
"value": "Update the package description text.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nversion = '0.1.0'\n\n#\n# determine requirements\n#\nrequirements = ['pyzmq']\ntests_require = []\n\nsetup(\n name='canary',\n version=versio... | python | chosen |
[
{
"from": "system",
"value": "Remove obsolete pypy+flake8 segfault guard\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\"\"\"setup.py for get_user_headers\"\"\"\n\n__author__ = \"Stephan Sokolow (deitarion/SSokolow)\"\n__license__ = \"MIT\"\n\nimport sys\n\nif __name__ == '__main__' ... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.