conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Switch existing command to standard approach\n\nThis is the suggested approach in the documentation [1] and using\nit makes it clearer what's going on and to add other commands with\narguments, which we'll do in the next commit.\n\n[1]: https://flask.palletsprojects.com/en/2.0.... | python | chosen |
[
{
"from": "system",
"value": "Make the position of the roms work for everybody.\n\nHere you previously used a directory that mentions your particular setting. Substitute it by a relative directory so it works for everybody. Also, suggest at the read file to create a 'rome' directory with 'breakout.bin' in i... | python | chosen |
[
{
"from": "system",
"value": "Print container logs only in case of failed scenario\n"
},
{
"from": "human",
"value": "import time\n\nfrom itest_utils import wait_for_marathon\nfrom itest_utils import print_container_logs\n\n\ndef before_all(context):\n wait_for_marathon()\n\n\ndef after_scena... | python | chosen |
[
{
"from": "system",
"value": "Fix failing integration test on /internet-health/\n"
},
{
"from": "human",
"value": "# 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\n# file, You can obtain one at http://mo... | python | chosen |
[
{
"from": "system",
"value": "Fix - send JSON to the API, not raw data\n"
},
{
"from": "human",
"value": "\"\"\"Basic checks for the server API.\"\"\"\nfrom behave import then, when\nfrom urllib.parse import urljoin\n\nimport requests\n\nfrom src.authorization_tokens import authorization\nfrom s... | python | chosen |
[
{
"from": "system",
"value": "Test DatadogMetricsBackend against datadog's get_hostname\n\nThis fixes tests in Travis since the hostname returned is different\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\n\nimport socket\n\nfrom mock import patch\n\nfrom sentry.metri... | python | chosen |
[
{
"from": "system",
"value": "Add unit tests for push, peek, pop and size"
},
{
"from": "human",
"value": "import unittest\n\nfrom aids.stack.stack import Stack\n\nclass StackTestCase(unittest.TestCase):\n '''\n Unit tests for the Stack data structure\n\n '''\n \n def setUp(self):\n\... | python | chosen |
[
{
"from": "system",
"value": "Test handling of reclaim timeout.\n"
},
{
"from": "human",
"value": "import unittest\n\nfrom .framework import DestructiveYubikeyTestCase, exactly_one_yubikey_present\nfrom yubikit.core.otp import OtpConnection\nfrom yubikit.core.fido import FidoConnection\nfrom yub... | python | chosen |
[
{
"from": "system",
"value": "Update data for the High Line, NYC\n\nLooks like it was turned into a multipolygon relation in [this changeset](http://www.openstreetmap.org/changeset/47542769).\n"
},
{
"from": "human",
"value": "from shapely.geometry import shape\n\n# this is mid way along the Hig... | python | chosen |
[
{
"from": "system",
"value": "Print out errors to log."
},
{
"from": "human",
"value": "#!/usr/bin/env python\n#\n# dials.util.__init__.py\n#\n# Copyright (C) 2013 Diamond Light Source\n#\n# Author: James Parkhurst\n#\n# This code is distributed under the BSD license, a copy of which is\n# i... | python | chosen |
[
{
"from": "system",
"value": "Reformat total_after function + Remove itertools\n"
},
{
"from": "human",
"value": "# File: grains.py\n# Purpose: Write a program that calculates the number of grains of wheat\n# on a chessboard given that the number on each square doubles.\... | python | chosen |
[
{
"from": "system",
"value": "Add functional tests for container metadata and delete\n\nChange-Id: Id13073b37d19482ca6ff6e53e315aaa424c3f1b9\n"
},
{
"from": "human",
"value": "# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance wi... | python | chosen |
[
{
"from": "system",
"value": "Fix path to script in test_track_output\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport os\nimport sys\nimport glob\nimport shutil\nfrom subprocess import call\n\n# If vtk python module is not available, we can't run track.py so skip this\n# test\... | python | chosen |
[
{
"from": "system",
"value": "Add exception handling to the read-evaluate-loop\n"
},
{
"from": "human",
"value": "\"\"\"\n The top level of the APL Read-Evaluate-Print loop\n\n UNDER DEVELOPMENT\n\n This version adds a dummy evaluate routine.\n\"\"\"\n\nimport sys\n\n# -----------------... | python | chosen |
[
{
"from": "system",
"value": "Check length of argv before accessing it\n"
},
{
"from": "human",
"value": "from sys import argv\n\nfrom examples.connect4.connect4 import Connect4Network\n\n\nif __name__ == '__main__':\n if argv[1] == 'connect4':\n Connect4Network().play()\n"
},
{
... | python | chosen |
[
{
"from": "system",
"value": "Fix an issue in the tests\n"
},
{
"from": "human",
"value": "import unittest as unittest\nfrom syntax import Syntax\nfrom jscodegen import CodeGenerator\n\n\ndef add_cases(generator):\n def class_decorator(cls):\n \"\"\"Add tests to `cls` generated by `gen... | python | chosen |
[
{
"from": "system",
"value": "Use the docstring as the CLI description.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# pylint: disable=import-error\n\"\"\"Generate files from Jinja2 templates and environment variables.\"\"\"\n\nfrom __future__ import (\n absolute_import,\n div... | python | chosen |
[
{
"from": "system",
"value": "Fix a typo in Hyperband’s test\n"
},
{
"from": "human",
"value": "from .tuner import Hyperband\nimport unittest\n\n\nclass HyperbandTestCase(unittest.TestCase):\n def test_run(self):\n observed_ns = []\n observed_rs = []\n observed_cs = []\n ... | python | chosen |
[
{
"from": "system",
"value": "Test running: exit with run test status\n"
},
{
"from": "human",
"value": "from os import getcwd\nfrom sys import path as ppath\nppath.insert(1,getcwd()+'/modules') # TODO: win32 compatibilite (python path)\n\nimport unittest\nfrom lifegame.test.LifeGameTestSuite im... | python | chosen |
[
{
"from": "system",
"value": "Complete testing, change back to production code\n"
},
{
"from": "human",
"value": "#!/usr/local/bin/python2.7\n\nimport sys\n\nfrom datetime import date\nfrom main import app\nfrom upload_s3 import set_metadata\nfrom flask_frozen import Freezer\n\n# cron is called ... | python | chosen |
[
{
"from": "system",
"value": "Change reference from modelview/0035_auto_20160426 to 0035_auto_20170724\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# Generated by Django 1.10.3 on 2017-03-22 15:22\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models... | python | chosen |
[
{
"from": "system",
"value": "Change default arg value for pynuxrc\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf8 -*-\n\nimport sys\nimport argparse\nfrom deepharvest.deepharvest_nuxeo import DeepHarvestNuxeo\n\n\ndef main(argv=None):\n\n parser = argparse.Argume... | python | chosen |
[
{
"from": "system",
"value": "Print full stdout / stderr when image build fails\n"
},
{
"from": "human",
"value": "# pylint: disable=line-too-long\n\"\"\" Handles docker compose \"\"\"\n\nfrom lib.docker_tools import docker_compose\nfrom lib.tools import show_status\n\n\ndef set_up(pg_version, e... | python | chosen |
[
{
"from": "system",
"value": "Enable syntax highlighting with Markdown.\n"
},
{
"from": "human",
"value": "from markdown import markdown\nimport docutils.core\nfrom docutils.writers.html4css1 import Writer as rst_html_writer\n\nclass Renderer(object):\n extensions = []\n\n @classmethod\n ... | python | chosen |
[
{
"from": "system",
"value": "Add environment variable for configuring logging\n"
},
{
"from": "human",
"value": "\"\"\"\nWSGI application target.\n\nThis module is designed for use when running the Jacquard server from a WSGI\nweb server such as waitress or gunicorn. `jacquard.wsgi` would be th... | python | chosen |
[
{
"from": "system",
"value": "Add namespace to jwt_knox URLs\n"
},
{
"from": "human",
"value": "\"\"\"xea_core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/1.9/topics/http/urls/\nExamples:\nFunction view... | python | chosen |
[
{
"from": "system",
"value": "Add hex check to basic info\n"
},
{
"from": "human",
"value": "import string\nimport textwrap\n\nfrom veryprettytable import VeryPrettyTable\n\nfrom plugins import BasePlugin\n\n\n__author__ = 'peter'\n\n\nclass BasicInfoPlugin(BasePlugin):\n short_description = ... | python | chosen |
[
{
"from": "system",
"value": "Add capability to resubmit multiple files\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python2\n\nimport pickle, sys\nsys.path.append('../')\nfrom lewas.parsers import UnitParser, AttrParser, field_rangler\nimport lewas.datastores\nimport lewas.models\n\nconfig... | python | chosen |
[
{
"from": "system",
"value": "Add test for encrypt and decrypt\n"
},
{
"from": "human",
"value": "from __future__ import unicode_literals\n\nimport pytest\n\nfrom bugbuzz import BugBuzzClient\n\n\n@pytest.fixture\ndef bugbuzz_client(base_url='http://localhost'):\n return BugBuzzClient(base_ur... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Nix helpful admin login requirement\"\n\nThis reverts commit 684dc38622d6cbe70879fb900ce5d73146a0cb40.\n\nWe can put it back in because we're going to stick with LDAP basic\nauth.\n"
},
{
"from": "human",
"value": "from django.conf import settings\nfrom dja... | python | chosen |
[
{
"from": "system",
"value": "Remove `get_` prefix on page functions.\n"
},
{
"from": "human",
"value": "from flask import request\nfrom flaskext.genshi import render_response\n\nfrom yoi.app import app\n\n@app.route('/')\ndef get_index():\n return render_response('index.html')\n\n@app.route(... | python | chosen |
[
{
"from": "system",
"value": "Add static helper for jinja2\n"
},
{
"from": "human",
"value": "from feincms.templatetags.feincms_tags import feincms_render_region\nfrom jingo import register\nfrom jinja2 import Markup\n\n\n@register.function\ndef render_region(feincms_page, region, request):\n ... | python | chosen |
[
{
"from": "system",
"value": "Add external access for demo process\n\nAvoid using Lynx web browser on a Raspberry pi for reaching localhost on console :-)"
},
{
"from": "human",
"value": "# Based on \"Flask is Fun\" demo from Flask documentation.\n\nimport os\n\nfrom flask import Flask\napp = Fl... | python | chosen |
[
{
"from": "system",
"value": "Convert timestamps to native datetime objects (breaking change)\n"
},
{
"from": "human",
"value": "import requests\n\n\nclass HackerNews():\n\n def __init__(self):\n self.url = 'https://hacker-news.firebaseio.com/v0/{uri}'\n\n def request(self, method, ... | python | chosen |
[
{
"from": "system",
"value": "conan: Make cmake-module-common a dev-only requirement\n"
},
{
"from": "human",
"value": "from conans import ConanFile\nfrom conans.tools import download, unzip\nimport os\n\nVERSION = \"0.1.2\"\n\n\nclass CMakeIncludeGuardConan(ConanFile):\n name = \"cmake-inclu... | python | chosen |
[
{
"from": "system",
"value": "Remove nested serializer for groups, make password optional in serializer for user edition\n"
},
{
"from": "human",
"value": "from rest_framework import serializers\nfrom django.contrib.auth.models import User, Group\n\n\nclass GroupSerializer(serializers.ModelSeria... | python | chosen |
[
{
"from": "system",
"value": "Remove unwanted whitespace in tests\n"
},
{
"from": "human",
"value": "# Tests for SecretStorage\n# Author: Dmitry Shachnev, 2013\n# License: BSD\n\n# Various exception tests\n\nimport unittest\nimport secretstorage\nfrom secretstorage.exceptions import ItemNotFound... | python | chosen |
[
{
"from": "system",
"value": "Fix test that wasn't running\n"
},
{
"from": "human",
"value": "from framewirc import exceptions\n\n\nclass MissingAttributesTest:\n def test_message(self):\n attrs = ['some', 'attrs']\n expected = 'Required attribute(s) missing: {}'.format(attrs)\n... | python | chosen |
[
{
"from": "system",
"value": "Drop FK before dropping instance_id column."
},
{
"from": "human",
"value": "# vim: tabstop=4 shiftwidth=4 softtabstop=4\n\n# Copyright 2011 OpenStack LLC.\n# All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# ... | python | chosen |
[
{
"from": "system",
"value": "Update Detective per 2021-03-15 changes\n"
},
{
"from": "human",
"value": "# Copyright (c) 2020, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSObject\n\n\nclass Graph(AWSObject):\n resource_type = \... | python | chosen |
[
{
"from": "system",
"value": "Change serializer field name from ayah to ayah_number\n"
},
{
"from": "human",
"value": "from django.urls import reverse\n\nfrom rest_framework import serializers\n\nfrom .models import Tafseer, TafseerText\n\n\nclass TafseerSerializer(serializers.ModelSerializer):\... | python | chosen |
[
{
"from": "system",
"value": "Change how we get config settings\n\n- Flask recommends using `app.config.from_object` to get config settings.\n- Don't get config settings if we're using travis, since it won't have the\n settings from the repo.\n"
},
{
"from": "human",
"value": "import flask\nimp... | python | chosen |
[
{
"from": "system",
"value": "Fix response when user successfully confirms 2fa\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport httplib as http\n\nfrom framework import request\nfrom framework.auth.decorators import must_be_logged_in\nfrom framework.exceptions import HTTPError\... | python | chosen |
[
{
"from": "system",
"value": "Add delay 3 times the rate limit to avoid API errors\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nimport time\n\n# -----------------------------------------------------------------------------\n\nroot = os.path.dirname(os.path... | python | chosen |
[
{
"from": "system",
"value": "Use log10 to get the amount of digits\n"
},
{
"from": "human",
"value": "#!/bin/env python\n\nimport os\nimport sys\n\ndef main():\n if len(sys.argv) == 1 or sys.argv[1].lower() == \"-h\" or sys.argv[1].lower() == \"--help\":\n print(\"Syntax: fenum.py [fi... | python | chosen |
[
{
"from": "system",
"value": "Move TODO tag to correct class\n"
},
{
"from": "human",
"value": "from flask.ext.wtf import Form\nfrom wtforms import SelectField, BooleanField, IntegerField, TextField, \\\n validators\n\n\n# TODO add vailidation\nclass TeamForm(Form):\n number = IntegerField... | python | chosen |
[
{
"from": "system",
"value": "Fix goof in classification fix\n"
},
{
"from": "human",
"value": "from pax import plugin, units\n\n\nclass AdHocClassification(plugin.TransformPlugin):\n\n def transform_event(self, event):\n\n for peak in event.peaks:\n\n # Don't work on noise ... | python | chosen |
[
{
"from": "system",
"value": "Use context manager for PIL Open\n\nThis is currently kind of buggy with Python3. A harmless warning is\nemitted since the handle is still closed late inside PIL/Pillow.\n"
},
{
"from": "human",
"value": "\"\"\"\n # # #### ##### # # ##### # # # ... | python | chosen |
[
{
"from": "system",
"value": "Fix the router's interfaces listing view to show only the\ninterfaces on the user's networks filtering out interfaces\non the mgt and public networks.\n\nDHC-1512\n\nChange-Id: I9b68b75d5e8325c4c70090fa500a417e23b1836f\nSigned-off-by: Rosario Di Somma <73b2fe5f91895aea2b4d0e894... | python | chosen |
[
{
"from": "system",
"value": "Add test parameter for site url\n"
},
{
"from": "human",
"value": "def pytest_addoption(parser):\n parser.addoption(\"--domain\", action=\"append\", default=[],\n help=\"list of stringinputs to pass to test functions\")\n\ndef pytest_generate_tests(metafun... | python | chosen |
[
{
"from": "system",
"value": "Remove flags that drastically slow down writes\n"
},
{
"from": "human",
"value": "#!/usr/bin/python3\n\nimport argparse\nimport os\n\nimport icon_lib\n\n\nparser = argparse.ArgumentParser(description='iconograph persistent')\nparser.add_argument(\n '--chroot-path... | python | chosen |
[
{
"from": "system",
"value": "Add new exception type for unknown variants\n"
},
{
"from": "human",
"value": "\nclass InvalidPDFError(ValueError):\n pass\n\n\nclass FieldParseError(Exception):\n pass\n"
},
{
"from": "gpt",
"value": "\nclass InvalidPDFError(ValueError):\n pass... | python | chosen |
[
{
"from": "system",
"value": "Return float for interval instead of int.\n"
},
{
"from": "human",
"value": "from random import randint\n\n\nclass BackoffTimer(object):\n def __init__(self, ratio=1, max_interval=None, min_interval=None):\n self.c = 0\n self.ratio = ratio\n\n ... | python | chosen |
[
{
"from": "system",
"value": "PEP8: Bring scripts folder up to pep8 standards\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport serial\nimport os\nimport sys\nimport time\n\n# Make and flash the unit test\nFILE_LOCATION = os.path.dirname(os.path.abspath(__file__))\nos.chdir(FIL... | python | chosen |
[
{
"from": "system",
"value": "Increase timeout for agent update to 5 minutes."
},
{
"from": "human",
"value": "#!/usr/bin/env python\n__metaclass__ = type\nfrom jujupy import (\n check_wordpress,\n Environment,\n format_listing,\n until_timeout,\n)\n\nfrom collections import defaultd... | python | chosen |
[
{
"from": "system",
"value": "Make Input importable from root\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\r\n\r\nfrom . import activations\r\nfrom . import applications\r\nfrom . import backend\r\nfrom . import datasets\r\nfrom . import engine\r\nfrom . import layer... | python | chosen |
[
{
"from": "system",
"value": "Fix typo in Course table name\n"
},
{
"from": "human",
"value": "from openerp import models, fields, api\n\n\nclass Course(models.Model):\n '''\n This class creates a model for courses\n '''\n _name = 'openacademey.course'\n\n name = fields.Char(strin... | python | chosen |
[
{
"from": "system",
"value": "Set readthedocs theme in docs build\n"
},
{
"from": "human",
"value": "import sys\n\nfrom os.path import dirname, abspath\n\nsys.path.insert(0, dirname(dirname(abspath(__file__))))\n\nfrom django.conf import settings\n\nsettings.configure()\n\nproject = 'django-slac... | python | chosen |
[
{
"from": "system",
"value": "Return a 1 when we don't have user to install.\n\nTODO: Make better return code\n"
},
{
"from": "human",
"value": "import click\nfrom spanky.cli import pass_context\nfrom spanky.lib.users import UserInit\n\n\n@click.command('users', short_help='creates users base on... | python | chosen |
[
{
"from": "system",
"value": "Add before_request callback to handle www redirects\n"
},
{
"from": "human",
"value": "from flask import Flask\n\nfrom config import config\n\nfrom . import extensions, modules\n\n\ndef create_app(config_name):\n config_obj = config[config_name]()\n app = Flas... | python | chosen |
[
{
"from": "system",
"value": "Remove debug and adjusted print.\n"
},
{
"from": "human",
"value": "import sys\nimport os\nsys.path.insert(0, os.path.join(\n os.path.dirname(os.path.realpath(__file__)), '..'))\n\nfrom crnpy.crn import CRN, from_react_file\n\n__author__ = \"Elisa Tonello\"\n__co... | python | chosen |
[
{
"from": "system",
"value": "Make the favicon available at /favicon.ico\n"
},
{
"from": "human",
"value": "from flask import render_template\n\nfrom app import app\n\n@app.route('/')\ndef index():\n return render_template('index.html', active='index')\n\n@app.route('/contact/')\ndef contact(... | python | chosen |
[
{
"from": "system",
"value": "Make mpi an optional dependency\n"
},
{
"from": "human",
"value": "from distutils.core import setup\n\nsetup(name=\"zutil\",\n version='0.1.4',\n description=\"Utilities used for generating zCFD control dictionaries\",\n author=\"Zenotech\",\n au... | 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": "Bump to 0.3.0a post release\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name=\"django-service-rating-store\",\n version=\"0.3.0\",\n url='https://github.com/praekelt/django-service-rating-store',\n license='... | python | chosen |
[
{
"from": "system",
"value": "Update the PyPI version to 7.0.1.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport os\nfrom setuptools import setup\n\ndef read(fname):\n try:\n return open(os.path.join(os.path.dirname(__file__), fname)).read()\n except:\n retu... | python | chosen |
[
{
"from": "system",
"value": "Include templates and static data in packaging\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom setuptools import setup\n\n# Utility function to read the README file.\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname)).re... | python | chosen |
[
{
"from": "system",
"value": "Update the classifier for all the tested versions of python\n"
},
{
"from": "human",
"value": "from distutils.core import setup\nfrom setuptools import find_packages\n\nwith open('README.md') as fp:\n long_description = fp.read()\n\nsetup(\n name='sendwithus',... | python | chosen |
[
{
"from": "system",
"value": "Add py24 and py25 to classifiers\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom setuptools import setup, find_packages\n\nclassifiers = [\n \"Development Status :: 4 - Beta\",\n \"Intended Audience :: System Administrators\",\n \"License :... | python | chosen |
[
{
"from": "system",
"value": "Increment minor version once again"
},
{
"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_opt... | python | chosen |
[
{
"from": "system",
"value": "Add some files for reverse-engineering\n"
},
{
"from": "human",
"value": "from os.path import dirname\n\nfrom puresnmp.pdu import PDU\nfrom puresnmp.test import readbytes_multiple\nfrom puresnmp.x690.types import pop_tlv\n\nHERE = dirname(__file__)\n\nfor row in rea... | python | chosen |
[
{
"from": "system",
"value": "Fix content_type for JSON responses\n"
},
{
"from": "human",
"value": "import json\n\nfrom django.conf import settings\nfrom django.views.decorators.http import require_http_methods\nfrom django.http import HttpResponse, HttpResponseServerError\n\nfrom healthcheck.h... | python | chosen |
[
{
"from": "system",
"value": "Change it to upload to pypi\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\ntry:\n from setuptools import setup, find_packages\n from setuptools.command.test import test\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setupto... | python | chosen |
[
{
"from": "system",
"value": "Allow wider range of dependencies\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\n\n\nsetup(\n version='0.4.0',\n name='incuna-groups',\n packages=find_packages(),\n include_package_data=True,\n install_requires=[\n ... | python | chosen |
[
{
"from": "system",
"value": "Convert README to Restructured Text for distribution.\n"
},
{
"from": "human",
"value": "\"\"\"Setuptools file for a MultiMarkdown Python wrapper.\"\"\"\nfrom codecs import open\nfrom os import path\nfrom distutils.core import setup\nfrom setuptools import find_pack... | python | chosen |
[
{
"from": "system",
"value": "Add astralctl script to console scripts section of package config.\n"
},
{
"from": "human",
"value": "import astral\nimport os\nfrom setuptools import find_packages, setup\n\nROOT_PATH = os.path.abspath(os.path.dirname(__file__))\nlong_description = open(os.path.joi... | python | chosen |
[
{
"from": "system",
"value": "Add url field to Person object\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(name='pypif',\n version='2.0.1',\n url='http://github.com/CitrineInformatics/pypif',\n description='Python tools for working with th... | python | chosen |
[
{
"from": "system",
"value": "Revert \"cleaning up a few unnecessary modules\"\n\nThis reverts commit 6b6911ca54a8bb61a1715c19be71729a55497278.\n"
},
{
"from": "human",
"value": "\"\"\"\nsetup script\n\n\"\"\"\n\nfrom setuptools import setup, find_packages\n\n_VERSION = '0.7'\n\nsetup(\n name... | python | chosen |
[
{
"from": "system",
"value": "Correct py_modules as a list\n"
},
{
"from": "human",
"value": "#! /usr/bin/env python\n# -*- coding:utf-8 -*-\n\n\"\"\" Install the `arte_plus7` script \"\"\"\n\n\nfrom setuptools import setup\n\nNAME = 'arte_plus7'\n\n\ndef get_version(module):\n \"\"\" Extract... | python | chosen |
[
{
"from": "system",
"value": "Add checks to get_app_instance to avoid Resolver404 even if namespace does not exists\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom app_data import AppDataContainer, app_registry\nfrom cms.apphook_pool import apphook_pool\nfrom django.core.urlreso... | python | chosen |
[
{
"from": "system",
"value": "Fix for encoding bug during installation on Windows\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nfrom jamo import __version__\nimport sys\n\nif sys.version_info <= (3, 0):\n print(\"ERROR: jamo requires Python 3.0 or later \"\n ... | python | chosen |
[
{
"from": "system",
"value": "Add sphinx & theme to requirements\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n\nfrom distutils.core import setup\n\nsetup(\n name='LoadStone',\n version='0.1',\n description='Interface for FFXIV Lodestone',\n author='Sami Elahmadie',\n ... | python | chosen |
[
{
"from": "system",
"value": "Add classifiers since python3 now supported\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\nsetup(\n name = \"pyscribe\",\n version = \"0.1.1\",\n author = \"Alexander Wang\",\n author_email = \"alexanderw@berkeley.edu\",\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix issue with deleting boto3 from ZIP file\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nfrom os import path\n\nhere = path.abspath(path.dirname(__file__))\n\nsetup(\n name='publish-aws-lambda',\n version='0.3',\n descript... | python | chosen |
[
{
"from": "system",
"value": "Add Python & Django classifiers\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name='django-ical',\n version='1.4',\n description=\"iCal feeds for Django based on Django's syndication feed... | python | chosen |
[
{
"from": "system",
"value": "Resolve warning \"Unknown distribution option: 'include_data'\"\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nwith open('requirements.txt', 'r') as f:\n requirements = f.readlines()\n\nsetup(\n name='resultsdb-updater',\n ... | python | chosen |
[
{
"from": "system",
"value": "Update package version for Pypi\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom setuptools import setup\n\nsetup(name='sophiabus230',\n version='0.4',\n description='Module to get the timetable of the Sophia Antipo... | python | chosen |
[
{
"from": "system",
"value": "Use suds-jurko for python 3\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nwith open('README.rst') as README:\n long_description = README.read()\n long_description = long_description[long_description.index('Description'):]\n\nsetup(name='wo... | python | chosen |
[
{
"from": "system",
"value": "Add whitespace to version spec?\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom os import path\nfrom setuptools import find_packages, setup\n\nREADME_rst = path.join(path.abspath(path.dirname(__file__)), 'README.rst')\n\nwith open(README_rst, 'r')... | python | chosen |
[
{
"from": "system",
"value": "Add blank line between README and CHANGES in long_description\n"
},
{
"from": "human",
"value": "import codecs\nfrom setuptools import setup\n\n\nlines = codecs.open('README', 'r', 'utf-8').readlines()[3:]\nlines.extend(codecs.open('CHANGES', 'r', 'utf-8').readlines... | python | chosen |
[
{
"from": "system",
"value": "Fix vigil only working in dev mode.\n\n- Be careful in future with pip dev mode. Unfortunately its\n possible for code to work in dev mode but not when deployed.\n For example in this case, when files aren't listed in setup.py\n package_data.\n"
},
{
"from": "human"... | python | chosen |
[
{
"from": "system",
"value": "Remove dodgy mention from _short_description\n\nThe package name shouldn't be in the description."
},
{
"from": "human",
"value": "# -*- coding: UTF-8 -*-\nfrom distutils.core import setup\n\nfrom setuptools import find_packages\n\nfrom dodgy import __pkginfo__\n\n_... | python | chosen |
[
{
"from": "system",
"value": "Update local version identifier. Name txyam2 per dev discussion."
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import setup, find_packages\n\nsetup(\n name=\"txyam\",\n version=\"0.4+weasyl.1\",\n description=\"Yet Another Memcache... | python | chosen |
[
{
"from": "system",
"value": "Allow newer versions of pyinotify"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(\n name = 'spotter',\n version = '1.7',\n url = \"http://github.com/borntyping... | python | chosen |
[
{
"from": "system",
"value": "Create path ~/.eDisGo on install\n\nFor all of those already installed eDisGo run\n\n\tpip3 install -U .\n\nagain.\n"
},
{
"from": "human",
"value": "from setuptools import find_packages, setup\n\nsetup(\n name='eDisGo',\n version='0.0.1',\n packages=find_p... | python | chosen |
[
{
"from": "system",
"value": "Modify shops for dynamic columns\n\nRefs SH-64\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.\n#\n# This source code is licensed under the AGPLv3 license found ... | python | chosen |
[
{
"from": "system",
"value": "Use send so no templates are evald by python.\n"
},
{
"from": "human",
"value": "# Run with `python viewer.py PATH_TO_RECORD_JSON.\n\nimport json\nimport sys\n\nfrom flask import Flask, jsonify\nfrom flask.templating import render_template\n\n\napp = Flask(__name__,... | python | chosen |
[
{
"from": "system",
"value": "Add unused DATABASE_ENGINE, DATABASE_NAME to pacify celeryinit\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nCELERY_BACKEND = \"mongodb\"\n\nAMQP_SERVER = \"localhost\"\nAMQP_PORT = 5672\nAMQP_VHOST = \"celeryvhost\"\nAMQP_USER = \"celeryuser\"\nAMQP_P... | python | chosen |
[
{
"from": "system",
"value": "Remove redundant flag from flake8 task\n\nThe max line length is already specified in Flake8's configuration.\n"
},
{
"from": "human",
"value": "import os\nimport sys\n\nfrom invoke import task, util\n\n\nin_ci = os.environ.get(\"CI\", \"false\") == \"true\"\nif in_... | python | chosen |
[
{
"from": "system",
"value": "Update barrow in furness coords from council\n"
},
{
"from": "human",
"value": "from data_importers.management.commands import BaseDemocracyCountsCsvImporter\n\n\nclass Command(BaseDemocracyCountsCsvImporter):\n council_id = \"BAR\"\n addresses_name = \"2021-0... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.