conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Fix for requirements, and increment version\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nsetup(\n name='tango-shared-core',\n version='0.6.4',\n author=u'Tim Baxter',\n... | python | chosen |
[
{
"from": "system",
"value": "Use CC0 and Public Domain for license\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nimport os\nfrom subprocess import call\nfrom setuptools import Command\nfrom distutils.command.build_ext import build_ext as _build_ext\nfrom setu... | python | chosen |
[
{
"from": "system",
"value": "Allow to install in development mode\n\nUser can now install with python setup.py develop\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(\n name='hamms',\n packages=['hamms'],\n version='0.6',\n description='Malformed server... | python | chosen |
[
{
"from": "system",
"value": "Remove gdata dependency from install reqs\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import find_packages, Command\n\n\nsetup_params = dict(\n name='bugimporters',\n version=0.1,\n author='Various contributers to the OpenHatch... | python | chosen |
[
{
"from": "system",
"value": "Change ucldc-iiif back to barbara's repo\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n\n# allow setup.py to be run from any path\nos.chdir(os.p... | python | chosen |
[
{
"from": "system",
"value": "Remove stuff that doesn't need to be here.\n"
},
{
"from": "human",
"value": "\"\"\"pyledgertools setup file\"\"\"\n\nfrom setuptools import setup\n\n\ndef readme():\n with open('README.md') as f:\n return f.read()\n\n\nsetup(name='pyledgertools',\n v... | python | chosen |
[
{
"from": "system",
"value": "Bump up version to 0.3\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom distutils.core import setup\nfrom setuptools import find_packages\n\nsetup(\n\tname = 'djiki',\n\tversion = '0.2',\n\tdescription = 'Django Wiki Application',\n\turl = 'https://g... | python | chosen |
[
{
"from": "system",
"value": "Update package version to 2.0.0-beta.2\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n# coding=utf-8\n\nfrom setuptools import setup\n\n\n# Get long description (used on PyPI project page)\ndef get_long_description():\n with open('README.md', 'r') as ... | python | chosen |
[
{
"from": "system",
"value": "Change the way data is printed\n"
},
{
"from": "human",
"value": "import pandas as pd\nimport geonames as gn\n\n#Enter csv path\npath = \"/Users/larshelin/Documents/PycharmProjects/CEP/nyc-taxi/backend/parser/trips_shortend.csv\"\n\n#Open Dataframe\ndf = pd.read_csv... | python | chosen |
[
{
"from": "system",
"value": "Test script to UTF-8 and output category.\n"
},
{
"from": "human",
"value": "#!/usr/bin/python -O\n\nimport sqlite3\nfrom parser import SQLITE3_DB_NAME\nfrom random import randint, randrange\n\ndef main():\n \"\"\" Ouputs a random clue (with game ID) from 10 random... | python | chosen |
[
{
"from": "system",
"value": "Enable Wikidata for Wikimedia Commons\n\nChange-Id: Ibc8734f65dcd97dc7af9674efe8655fe01dc61d3\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n__version__ = '$Id$'\n\nfrom pywikibot import family\n\n\n# The Wikimedia Commons family\nclass Family(family... | python | chosen |
[
{
"from": "system",
"value": "Change parameters to match StressModel2\n\nand so the results.\n"
},
{
"from": "human",
"value": "\"\"\"recharge_func module\r\n\r\nAuthor: R.A. Collenteur\r\n\r\nContains the classes for the different models that are available to calculate\r\nthe recharge from evap... | python | chosen |
[
{
"from": "system",
"value": "Reorder imports in alphabetical order\n"
},
{
"from": "human",
"value": "from graphqlapi.proxy import proxy_request\nfrom graphqlapi.interceptor import RequestException\nfrom flask_restplus import Resource, fields, Namespace, Api\nfrom docker.errors import APIError\... | python | chosen |
[
{
"from": "system",
"value": "Fix \"legacy mode\" trying to install scripts when there are none.\n\n--HG--\nbranch : setuptools\nextra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041777\n"
},
{
"from": "human",
"value": "from distutils.command.instal... | python | chosen |
[
{
"from": "system",
"value": "Work for the empty url\n"
},
{
"from": "human",
"value": "from django.conf.urls.defaults import *\nimport views\n\nurlpatterns = patterns('',\n (r'^(?P<url>.+)/?', views.article),\n)\n"
},
{
"from": "gpt",
"value": "from django.conf.urls.defaults impo... | python | chosen |
[
{
"from": "system",
"value": "Set version to 1.0 final !\n"
},
{
"from": "human",
"value": "__version_info__ = (1, 0, 0, 'dev')\n\n\n# Dot-connect all but the last. Last is dash-connected if not None.\n__version__ = '.'.join([str(i) for i in __version_info__[:-1]])\nif __version_info__[-1] is no... | python | chosen |
[
{
"from": "system",
"value": "Delete platform so that it doesn't end up in the user's namespace\n"
},
{
"from": "human",
"value": "import platform\n\ntry:\n if platform.python_implementation() == 'PyPy':\n from .vector import * # use pure python vector for PyPy\n else:\n f... | python | chosen |
[
{
"from": "system",
"value": "Fix a bug introduced in the last commit\n"
},
{
"from": "human",
"value": "import os\n\nfrom google.appengine.api import apiproxy_stub_map\nfrom google.appengine.api.app_identity import get_application_id\n\nhave_appserver = bool(apiproxy_stub_map.apiproxy.GetStub('... | python | chosen |
[
{
"from": "system",
"value": "Reword guard test on upper bounds\n"
},
{
"from": "human",
"value": "import pytest\nimport itertools\nfrom main import Primes, Sieve\n\n\ndef test_sieve_limit():\n limit = 10000\n with Sieve(limit) as s:\n assert s.upper_bound() >= limit\n\n\ndef test_u... | python | chosen |
[
{
"from": "system",
"value": "Fix package path issue caused by previous refactoring commit.\n"
},
{
"from": "human",
"value": "from django.contrib.auth.models import User, Group\nfrom ztreeauth.models import LocalUser\nfrom ztree.component.factories import create_node_factory\n\nimport logging\n... | python | chosen |
[
{
"from": "system",
"value": "Use importlib from Python instead from Django\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom axes.models import AccessAttempt\nfrom django.conf import settings\nfrom django.db.models.signals import post_save\nfrom django.dispatch import receiver\... | python | chosen |
[
{
"from": "system",
"value": "Fix single vs double quote inconsistency\n"
},
{
"from": "human",
"value": "\"\"\"QueryList provides a simple way to filter lists of objects.\"\"\"\nfrom querylist.list import QueryList\nfrom querylist.dict import BetterDict\n\n__version__ = \"0.2.0\"\n__author__ = ... | python | chosen |
[
{
"from": "system",
"value": "Fix model id to auto increment\n"
},
{
"from": "human",
"value": "# This is an auto-generated Django model module.\n# You'll have to do the following manually to clean this up:\n# * Rearrange models' order\n# * Make sure each model has one field with primary_key... | python | chosen |
[
{
"from": "system",
"value": "Add function to extract surface elevation from a 2D array of surface elevations\n"
},
{
"from": "human",
"value": "from netCDF4 import Dataset, MFDataset\n\ndef readFVCOM(file, varList, noisy=False):\n \"\"\"\n Read in the FVCOM results file and spit out numpy... | python | chosen |
[
{
"from": "system",
"value": "Make octal number compatible with Python3\n"
},
{
"from": "human",
"value": "import os\nimport stat\n\n\nclass CopyFilter(object):\n def sub(self, line):\n return line\n\n\ndef is_only_user_readable(filename):\n \"\"\"Return true if and only if filename... | python | chosen |
[
{
"from": "system",
"value": "Return the user in the pipeline if the backend is google oauth2\n"
},
{
"from": "human",
"value": "from django.utils.translation import ugettext\nfrom django.contrib.auth.models import User\n\nfrom social_auth.backends.pipeline.user import create_user as social_auth... | python | chosen |
[
{
"from": "system",
"value": "Add 2011 to the year range in the about dialog\n"
},
{
"from": "human",
"value": "'''\nFile : AboutDialog.py\nAuthor : Nadav Samet\nContact : thesamet@gmail.com\nDate : 2010 Jun 17\n\nDescription : Controller for the about dialog.\n'''\n\nfrom webilder import... | python | chosen |
[
{
"from": "system",
"value": "Add comment about the motivation behind YunohostError"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\" License\n\n Copyright (C) 2018 YUNOHOST.ORG\n\n This program is free software; you can redistribute it and/or modify\n it under the term... | python | chosen |
[
{
"from": "system",
"value": "Add compatibility with Python 3.3.\n"
},
{
"from": "human",
"value": "import pynmea2\r\nfrom tempfile import TemporaryFile\r\n\r\ndef test_stream():\r\n data = \"$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D\\n\"\r\n\r\n sr = pynme... | python | chosen |
[
{
"from": "system",
"value": "Create a test asserting the useradd command\n"
},
{
"from": "human",
"value": "import pytest\n\nfrom mock import patch, Mock\n\nfrom spanky.lib import users\n\n\nclass TestCreateUsers(object):\n\n def setup(self):\n self.conf = [\n {'username': ... | python | chosen |
[
{
"from": "system",
"value": "Add DATE_FORMAT for parsing any datetime strings\n\nPoloniex seems to use a fixed output format for datetime strings\n"
},
{
"from": "human",
"value": "\"\"\"\nConstant values for the Poloniex API\n\"\"\"\n\nPUBLIC_API = 'https://poloniex.com/public'\nPRIVATE_API = ... | python | chosen |
[
{
"from": "system",
"value": "Add missing host field to Apple TV\n"
},
{
"from": "human",
"value": "\"\"\"Discover Apple TV media players.\"\"\"\nfrom . import MDNSDiscoverable\n\n\n# pylint: disable=too-few-public-methods\nclass Discoverable(MDNSDiscoverable):\n \"\"\"Add support for Apple T... | python | chosen |
[
{
"from": "system",
"value": "Patch settings from inside the command module\n"
},
{
"from": "human",
"value": "from __future__ import unicode_literals\n\nimport os\nimport mock\n\nfrom django import test\nfrom django.core.management import call_command\n\nBASE_DIR = os.path.dirname(os.path.dirna... | python | chosen |
[
{
"from": "system",
"value": "Add unit tests for binary search recursive and iterative\n"
},
{
"from": "human",
"value": "import unittest\n\nfrom sorting_and_searching import binary_search_recursive\n\nclass BinarySearchTestCase(unittest.TestCase):\n '''\n Unit tests for binary search\n\n ... | python | chosen |
[
{
"from": "system",
"value": "Undo setting CI_DEBUG to true by default\n\nChange-Id: I24ca35ada7591e93413cdda1905ee01f77131889\nSigned-off-by: Romanos Skiadas <2ae8a933f732975064e7c256d0625d1633389b98@intracom-telecom.com>\n"
},
{
"from": "human",
"value": "import os\nimport re\n\ndefault_envs =... | python | chosen |
[
{
"from": "system",
"value": "Change error message to loss\n"
},
{
"from": "human",
"value": "import torch\n\n\ndef mean_squared_error(true, pred):\n return torch.mean((true - pred)**2)\n\n\ndef binary_crossentropy(true, pred, eps=1e-9):\n p1 = true * torch.log(pred + eps)\n p2 = (1 - t... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Add a \"e\" prefix to avoid issue when reaching the ID 46656\"\n\nThis reverts commit e730c552c0b6095a8962f29a114069fb335d7ec6.\n"
},
{
"from": "human",
"value": "\"\"\"Urls for the Zinnia entries short link\"\"\"\nfrom django.conf.urls import url\nfrom dja... | python | chosen |
[
{
"from": "system",
"value": "Fix user selection for speaker add\n\nWhen adding a speaker in the admin, the staff person had to\npick a user from a huge dropdown with all the users, unsorted.\n\nChange 'user' to a raw id field, meaning to pick a user, the staff member clicks a magnifying glass icon next to ... | python | chosen |
[
{
"from": "system",
"value": "Fix up the example to be proper XML.\n\nSigned-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>\n"
},
{
"from": "human",
"value": "\"\"\"\nClass for automated operating system installation.\n\nOz is a set of classes to do automated oper... | python | chosen |
[
{
"from": "system",
"value": "Add fun answer to 1 multiples of 3 and 5\n"
},
{
"from": "human",
"value": "def multiples_of_3_and_5(num=1000):\n for i in range(num):\n if i % 3 == 0 or i % 5 == 0:\n yield i\n\nif __name__ == '__main__':\n print(sum(multiples_of_3_and_5()))... | python | chosen |
[
{
"from": "system",
"value": "Move commands out of test.\n"
},
{
"from": "human",
"value": "\"\"\"\n Copyright (C) 2016-2022 Kerygma Digital Co.\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this ... | python | chosen |
[
{
"from": "system",
"value": "Set comparable state of node.\n"
},
{
"from": "human",
"value": "from django.conf import settings\n\n\ndef is_comparable():\n\n \"\"\"Sets the value of TemplateNode.comparable to True or False.\"\"\"\n\n value = settings.OPENBUDGETS_COMPARABLE_TEMPLATENODE_DEF... | python | chosen |
[
{
"from": "system",
"value": "Exclude \"serve\" view (static files)\n"
},
{
"from": "human",
"value": "from django.conf import settings\nfrom django.core.urlresolvers import RegexURLResolver, RegexURLPattern\n\n\nclass ApiDocumentation(object):\n excluded_apps = [\"admin\", \"drfdocs\"]\n ... | python | chosen |
[
{
"from": "system",
"value": "Move production Cling settings into production-only block\n\nThe Cling import and call are moved into an if-block that is only\nexecuted when the server is run with production settings. This\nmakes the server run locally again.\n\nResolves: #42\n"
},
{
"from": "human",
... | python | chosen |
[
{
"from": "human",
"value": "Set up the initial calling of the minion routines\n"
},
{
"from": "gpt",
"value": "'''\nMake me some salt!\n'''\n# Import python libs\nimport os\nimport optparse\n# Import salt libs\nimport salt.master\nimport salt.minion\nimport salt.utils\n\nclass Master(object):\n... | python | chosen |
[
{
"from": "system",
"value": "Return 400 when state is invalid\n"
},
{
"from": "human",
"value": "from django.shortcuts import render\n\nfrom rest_framework import status\nfrom rest_framework.decorators import api_view\nfrom rest_framework.response import Response\n\nfrom countylimits.models imp... | python | chosen |
[
{
"from": "system",
"value": "Add some debugging output to webmentions\n"
},
{
"from": "human",
"value": "from webmentiontools.send import WebmentionSend\nfrom webmentiontools.urlinfo import UrlInfo\n \ndef handle_new_or_edit(post):\n url = post.permalink_url\n in_reply_to = post.in_rep... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Added files via upload\"\n\nThis reverts commit d93c66fc467a9899343eacdd85e90bdfe8a0dbd3.\n"
},
{
"from": "human",
"value": "from math import cos,sqrt\r\nimport numpy as np\r\nfrom scipy.optimize import fsolve\r\n\t\r\ndef func(p, *data):\r\n\tx,y = p\r\n\t... | python | chosen |
[
{
"from": "system",
"value": "Fix traceback because outputter expects data in {'host', data.. } format\n"
},
{
"from": "human",
"value": "'''\nExecute overstate functions\n'''\n\n# Import salt libs\nimport salt.overstate\nimport salt.output\n\n\ndef over(env='base', os_fn=None):\n '''\n Ex... | python | chosen |
[
{
"from": "system",
"value": "Revise main()'s weighted negative graph\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import division\n\n\ndef bellman_ford(w_graph_d, start_vertex):\n \"\"\"Bellman-Ford algorith... | python | chosen |
[
{
"from": "system",
"value": "Clean up CLI a bit\n\nDefault arguments are useful.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"\nCopyright [2009-2020] EMBL-European Bioinformatics Institute\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use... | python | chosen |
[
{
"from": "system",
"value": "Fix typo on job module\n"
},
{
"from": "human",
"value": "import sys\nimport time\nimport logging\nlogging.basicConfig(level=logging.DEBUG)\n\nfrom redis import StrictRedis\nfrom rq import Queue\nfrom apscheduler.schedulers.blocking import BlockingScheduler\n\nfrom ... | python | chosen |
[
{
"from": "system",
"value": "Test is still disabled, but access through public module\n"
},
{
"from": "human",
"value": "from test.test_support import vereq, TestFailed\n\nimport _symtable\n\nsymbols = _symtable.symtable(\"def f(x): return x\", \"?\", \"exec\")\n\n## XXX\n## Test disabled becau... | python | chosen |
[
{
"from": "system",
"value": "Fix test for \"pio test\"\n"
},
{
"from": "human",
"value": "# Copyright 2014-present PlatformIO <contact@platformio.org>\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# Y... | python | chosen |
[
{
"from": "system",
"value": "Change testing database to sqlite\n"
},
{
"from": "human",
"value": "import os\n\n\nclass Config(object):\n \"\"\"Parent configuration class.\"\"\"\n DEBUG = False\n CSRF_ENABLED = True\n SECRET_KEY = os.getenv('SECRET_KEY')\n SQLALCHEMY_DATABASE_URI ... | python | chosen |
[
{
"from": "system",
"value": "Add Random number with seed\n"
},
{
"from": "human",
"value": "__author__ = 'Jacob Bieker'\nimport os, sys\nimport numpy\nfrom multiprocessing import Pool\nfrom astropy.io import fits\n\n\n\ndef line_solve():\n # TODO: Find the Least Squares for a line\n retur... | python | chosen |
[
{
"from": "system",
"value": "Make TemporaryStorage backend's location less random.\n"
},
{
"from": "human",
"value": "import tempfile\nimport shutil\n\nfrom django.core.files.storage import FileSystemStorage\n\n\"\"\"\nTemporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails ... | python | chosen |
[
{
"from": "system",
"value": "Add help description for annotator.\n"
},
{
"from": "human",
"value": "import sys\nimport argparse\n\nimport pandas as pd\n\nfrom pyim.tools.annotate.rbm import RbmAnnotator\n\nANNOTATORS = {\n 'rbm': RbmAnnotator\n}\n\n\ndef main():\n # Setup main argument pa... | python | chosen |
[
{
"from": "system",
"value": "Make division float to fix divide by zero issues\n"
},
{
"from": "human",
"value": "\n# -*- coding: utf-8 -*-\nimport sys\n\nticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')\n\ndef scale_data(d):\n data_range = max(d) - min(d)\n divider = data_range / (len(tic... | python | chosen |
[
{
"from": "system",
"value": "Fix pylint presubmit check, related to buildbot 0.8.x vs 0.7.x\n\nTBR=nsylvain@chromium.org\nBUG=\nTEST=\n\n\nReview URL: http://codereview.chromium.org/7631036\n\ngit-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@97254 0039d316-1c4b-4281-b951-d872f2087c98\n"
},
{
"f... | python | chosen |
[
{
"from": "system",
"value": "Make atom from filename before throwing an error in get_source.\n"
},
{
"from": "human",
"value": "import os\nimport sys\nimport py\nfrom prolog.interpreter.error import throw_existence_error\n\npath = os.path.dirname(__file__)\npath = os.path.join(path, \"..\", \"p... | python | chosen |
[
{
"from": "system",
"value": "Remove Northern Irish counties. These are part of the UK, not Ireland\n"
},
{
"from": "human",
"value": "\"\"\"\nSources:\n Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland \n\"\"\"\nfrom django.utils.translation import ugettext_lazy as _\n\nIE... | python | chosen |
[
{
"from": "system",
"value": "Add source to project build index query\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import, division, unicode_literals\n\nfrom flask import Response, request\nfrom sqlalchemy.orm import joinedload\n\nfrom changes.api.base import APIView\nfrom ... | python | chosen |
[
{
"from": "system",
"value": "Implement logic for file creation\n"
},
{
"from": "human",
"value": "import os\n\ndef createFile(directoryPath, fileName):\n return None\n\ndef createDirectory(directoryPath):\n return None\n\ndef getFileContents(filePath):\n return None\n\ndef deleteFile(f... | python | chosen |
[
{
"from": "system",
"value": "Fix tests to comply with new home view\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\"\"\"Tests.\"\"\"\n\nfrom pyramid import testing\nfrom balistos.testing import createTestDB\nfrom pyramid_basemodel import Session\nimport unittest\n\n\nclass TestHom... | python | chosen |
[
{
"from": "system",
"value": "Add Apache 2.0 license to source file\n\nAs per OpenStack licensing guide lines [1]:\n[H102 H103] Newly contributed Source Code should be licensed under\nthe Apache 2.0 license.\n\n[1] http://docs.openstack.org/developer/hacking/#openstack-licensing\n\nChange-Id: I714355371a6c5... | python | chosen |
[
{
"from": "system",
"value": "Fix warnings on Python 3\n\nFixes #74. Use `inspect.signature()` on Python 3 instead of the deprecated `inspect.getargspec()`.\n"
},
{
"from": "human",
"value": "# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_litera... | python | chosen |
[
{
"from": "system",
"value": "Add the number of channels in each SPW\n"
},
{
"from": "human",
"value": "\n# Line SPW setup for 17B-162 w/ rest frequencies\nlinespw_dict = {0: [\"HI\", \"1.420405752GHz\"],\n 1: [\"H166alp\", \"1.42473GHz\"],\n 2: [\"H164alp\", \"1.4... | python | chosen |
[
{
"from": "system",
"value": "Fix path read error for secret_cfg\n"
},
{
"from": "human",
"value": "import os\nimport ConfigParser\n\n\nos.environ['PYTHONINSPECT'] = 'True'\nbasedir = os.path.abspath(os.path.dirname(__file__))\nparser = ConfigParser.ConfigParser()\nparser.read(\"secret_config.cf... | python | chosen |
[
{
"from": "system",
"value": "Make 0.9.10_pre4 to match the webapp\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport os\nfrom glob import glob\nfrom distutils.core import setup\n\n\nsetup(\n name='whisper',\n version='0.9.10-pre3',\n url='https://launchpad.net/graphite',\n a... | python | chosen |
[
{
"from": "system",
"value": "Use ArchiveIndexView to reduce code\n"
},
{
"from": "human",
"value": "from django.views.generic import ListView, MonthArchiveView, DateDetailView\nfrom django.shortcuts import get_object_or_404\nfrom django.utils import timezone\nfrom django.conf import settings\nf... | python | chosen |
[
{
"from": "system",
"value": "Change the name back to pyhumod\n\nWith the change of name from pyhumod to humod this would be a separate pypi package and we don't want that."
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport os\nfrom distutils.core import setup\nfrom humod import __... | python | chosen |
[
{
"from": "system",
"value": "Add long description for package\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(\n name='ingreedypy',\n py_modules=['ingreedypy'],\n version='1.3.2',\n description='ingreedy-py parses recipe ingredient lines into a object',\n ... | python | chosen |
[
{
"from": "system",
"value": "Set the min version of skosprovider to 0.5.0\n\nSkosprovider 0.5.0 is required because of the\nProviderUnavailableException.\n"
},
{
"from": "human",
"value": "import os\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from distutil... | python | chosen |
[
{
"from": "system",
"value": "Switch to websocket-client for python3\n"
},
{
"from": "human",
"value": "from setuptools import setup\nimport sys\n\nVERSION = \"0.2.0\"\n\nif sys.version_info >= (3,):\n requirements = [\"websocket-client-py3\"]\nelse:\n requirements = [\"websocket-client\"]... | python | chosen |
[
{
"from": "system",
"value": "Add requests as an installation requirement.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(name='django-forge',\n version=__import__('forge').__version__,\n author='Justin Bronn',\n author_email='jbronn@gmail.com',\n ... | python | chosen |
[
{
"from": "system",
"value": "Prepare to use marina as a package\n"
},
{
"from": "human",
"value": "from marina.plugins import get_plugins_configuration\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='Marina',\n version='2.0',\n description='A stack based on docker to r... | python | chosen |
[
{
"from": "system",
"value": "Make python-isal a requirement on macos as well."
},
{
"from": "human",
"value": "import sys\nfrom setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n long_description = f.read()\n\nsetup(\n name='xopen',\n use_scm_version={'write_to':... | python | chosen |
[
{
"from": "system",
"value": "Remove period after package description\n"
},
{
"from": "human",
"value": "\"\"\"setup.py\"\"\"\n#pylint:disable=line-too-long\n\nfrom setuptools import setup\nfrom codecs import open as codecs_open\n\nwith codecs_open('README.rst', 'r', 'utf-8') as f:\n readme =... | python | chosen |
[
{
"from": "system",
"value": "Update to less strict version requirement for go_api\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name=\"go-contacts\",\n version=\"0.1.5a\",\n url='http://github.com/praekelt/go-contacts-api',\n license='BSD... | python | chosen |
[
{
"from": "system",
"value": "Use github page as homepage\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\n\nDESCRIPTION=\"\"\"\n\"\"\"\n\nsetup(\n name=\"django-moneyfield\",\n description=\"Django Money Model Field\",\n long_description=DESCRIPTION,\n version=... | python | chosen |
[
{
"from": "system",
"value": "Define explicit url for required package deps\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nsetup(\n name='adm-client',\n version='0.1',\n author='Andrew Druchenko',\n... | python | chosen |
[
{
"from": "system",
"value": "Make install_requires into an array\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom distutils.core import setup\n\n# Don't import stripe module here, since deps may not be installed\nsys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe')... | python | chosen |
[
{
"from": "system",
"value": "Use requests 0.14.1 from now on.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# coding: utf-8\nfrom setuptools import setup\nfrom setuptools import find_packages\n\n\nclassifiers = [\n \"Intended Audience :: Developers\",\n \"Programming Language ... | python | chosen |
[
{
"from": "system",
"value": "Sort package list in required installs\n"
},
{
"from": "human",
"value": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n__version__ = \"0.13.0\"\n\nsetup(\n name='pyramid_zipkin',\n version=... | python | chosen |
[
{
"from": "system",
"value": "Add LICENSE to package data\n\nThe LICENSE file isn't included with the version found on PyPI. Including it in the `package_data` argument passed to `setup` should fix this.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport ... | python | chosen |
[
{
"from": "system",
"value": "Add yaml to requires list\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python2\n\nfrom distutils.core import setup\n\nsetup(\n name = 'periodical',\n description = 'Create a Kindle periodical from given URL(s)',\n version = '0.1.0',\n author = 'Tom ... | python | chosen |
[
{
"from": "system",
"value": "Refactor API to a more readable form\n"
},
{
"from": "human",
"value": "import sublime_plugin\n\nDEFAULT_NAME = 'Find Results'\nALT_NAME = 'Find Results '\n\n\nclass OpenSearchInNewTab(sublime_plugin.EventListener):\n\n # set a bit changed name\n # so the tab ... | python | chosen |
[
{
"from": "system",
"value": "Tag increment and new keyword."
},
{
"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_options... | python | chosen |
[
{
"from": "system",
"value": "Bump tensorflow from 2.5.1 to 2.5.2\n\nBumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.5.1 to 2.5.2.\n- [Release notes](https://github.com/tensorflow/tensorflow/releases)\n- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)\n- [Com... | python | chosen |
[
{
"from": "system",
"value": "Add aioauth-client into package install_requires\n"
},
{
"from": "human",
"value": "import re\nfrom pathlib import Path\n\nfrom setuptools import setup, find_packages\n\n\nwith Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:\n VERSION... | python | chosen |
[
{
"from": "system",
"value": "Increment version for minor 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_optio... | python | chosen |
[
{
"from": "system",
"value": "Fix url metadata so zest works\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nversion = '0.0.7dev'\n\nsetup(\n name = 'buildbot_travis',\n version = version,\n description = \"Adapt buildbot to work a little more like Trav... | python | chosen |
[
{
"from": "system",
"value": "Fix release version to 0.4.2\n"
},
{
"from": "human",
"value": "import setuptools\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetuptools.setup(\n name='scholarly',\n version='0.4.1',\n author='Steven A. Cholewiak, Panos Ip... | python | chosen |
[
{
"from": "system",
"value": "Remove explicit depend on distribute.\n\nThings in the world are moving towards setuptools 0.7, and\nthere is not a path between distribute and setuptools. Our explicit\ndependency on setuptools is causing us to have to write patches to\ntry to jump through additional hoops to ... | python | chosen |
[
{
"from": "system",
"value": "Use README.md as long description\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='hashmerge',\n version='0.1',\n url='https://github.com/lebauce/hashmerge',\n author='Sylvain Baubeau',\n autho... | python | chosen |
[
{
"from": "system",
"value": "Print all resource validation errors\n"
},
{
"from": "human",
"value": "\"\"\"Metadata constants and methods.\"\"\"\n\nfrom .classes import Resource\nfrom .resources import RESOURCES\n\nRESOURCES = {name: Resource.from_id(name) for name in RESOURCES}\n"
},
{
... | python | chosen |
[
{
"from": "system",
"value": "Save figures with white space cropped out\n"
},
{
"from": "human",
"value": "import os\nimport matplotlib.pyplot as plt\n\ndef savefig(filename,path=\"figs\",fig=None,ext='eps',**kwargs):\n\t# try:\n\t# os.remove(path)\n\t# except OSError as e:\n\t# ... | python | chosen |
[
{
"from": "system",
"value": "Add help_text for time_from and time_until"
},
{
"from": "human",
"value": "from django.db import models\nfrom django.core.urlresolvers import reverse\n\n\nclass Chart(models.Model):\n\ttitle = models.CharField(max_length=50)\n\turl = models.CharField(max_length=102... | python | chosen |
[
{
"from": "system",
"value": "Fix annoying issue with view scrolling\n"
},
{
"from": "human",
"value": "import sublime\nimport sublime_plugin\n\n\nclass MoveByLinesCommand(sublime_plugin.TextCommand):\n\n def run(self, edit, forward=True, extend=False, number_of_lines=1):\n for _ in ra... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.