conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Declare queues when broker is instantiated\n"
},
{
"from": "human",
"value": "\"\"\"\nsentry.queue.client\n~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom kombu... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Fix openweather unit tests\"\n\nThis reverts commit 36e100e649f0a337228a6d7375358d23afd544ff.\n\nOpen Weather Map has reverted back to their old api or something like that...\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport bot_mock\nfrom ... | python | chosen |
[
{
"from": "system",
"value": "Fix % only showing 0 or 100%, everything between goes to 0%.\n\n\nAutoconverted from SVN (revision:1548)\n"
},
{
"from": "human",
"value": "from django.template import Node, Library\n\nregister = Library()\n\n@register.filter('percentage')\ndef percentage(value, tot... | python | chosen |
[
{
"from": "system",
"value": "Remove \"validation\" from RejectionException docstring\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n\"\"\"Exception classes shared by all automata.\"\"\"\n\n\nclass AutomatonException(Exception):\n \"\"\"The base class for all automaton-related err... | python | chosen |
[
{
"from": "system",
"value": "Fix implied_group, it still refers to the old module name\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2015 Agile Business Group sagl\n# (<http://... | python | chosen |
[
{
"from": "system",
"value": "Fix interpretation of parameters for names list modification\n"
},
{
"from": "human",
"value": "from txircd.modbase import Mode\n\nclass InvisibleMode(Mode):\n\tdef namesListEntry(self, recipient, channel, user, representation):\n\t\tif channel not in recipient.chan... | python | chosen |
[
{
"from": "system",
"value": "Fix image path in manifest\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# © 2013-2016 Numérigraphe SARL\n# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).\n\n{\n \"name\": \"Hierarchical Inventory adjustments\",\n \"summary\":... | python | chosen |
[
{
"from": "system",
"value": " [FIX][11.0] Make debugger record a debug message instead of error when importing validate_email in partner_email_check\n"
},
{
"from": "human",
"value": "# Copyright 2019 Komit <https://komit-consulting.com>\n# License AGPL-3.0 or later (https://www.gnu.org/license... | python | chosen |
[
{
"from": "system",
"value": "Modify the author email address\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom distutils.core import setup\n\npackages = [\n 'upho',\n 'upho.phonon',\n 'upho.harmonic',\n 'upho.analysis',\n 'upho.structure',\n 'upho.irreps',\n 'u... | python | chosen |
[
{
"from": "system",
"value": "Change the version of the package."
},
{
"from": "human",
"value": "\nfrom setuptools import setup, find_packages\nimport sys, os\n\nversion = '1.1.1'\n\nsetup(\n name = 'daprot',\n version = version,\n description = \"daprot is a data prototyper and mapper... | python | chosen |
[
{
"from": "system",
"value": "Adjust minidump dependency to >= 0.0.10\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup\n from setuptools import find_packages\n packages = find_packages()\nexcept ImportError:\n from distutils.core import setup\n import os\n ... | python | chosen |
[
{
"from": "system",
"value": "Add utf-8 support for long description\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nfrom os.path import join, dirname\nimport sys\n\nif sys.version_info.major < 3:\n print(\"Sorry, currently only Python 3 is supported!\")\n s... | python | chosen |
[
{
"from": "system",
"value": "Add `scout.py` as a script.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='scout',\n version=__import__('scout').__version__,\n description='scout',\n author='Charles Leifer',\n author_email='coleifer@gmail.com',\n ... | python | chosen |
[
{
"from": "system",
"value": "Include data files in built package\n"
},
{
"from": "human",
"value": "# !/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\nsetup(name='symbtrsynthesis',\n version='1.0.1-dev',\n description='An (adaptive) synthesizer for SymbTr-MusicXM... | python | chosen |
[
{
"from": "system",
"value": "Increment minor version and set up for git flow\n"
},
{
"from": "human",
"value": "try:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nconfig = {\n 'description': 'TRX',\n 'author': 'Kyle Maxwell, based on Pater... | python | chosen |
[
{
"from": "system",
"value": "Add tests package and specify platforms\n"
},
{
"from": "human",
"value": "from os import path\nfrom setuptools import setup\n\nfrom hip_pocket.constants import VERSION\n\n\ndef load(file_name):\n here = path.dirname(path.abspath(__file__))\n return open(path.... | python | chosen |
[
{
"from": "system",
"value": "Add fuel-download to installed scripts\n"
},
{
"from": "human",
"value": "\"\"\"Installation script.\"\"\"\nfrom os import path\nfrom setuptools import find_packages, setup\n\nHERE = path.abspath(path.dirname(__file__))\n\nwith open(path.join(HERE, 'README.rst')) as... | python | chosen |
[
{
"from": "system",
"value": "Update the startup command to use the new version of the rug\n\nChange-Id: Ie014dcfb0974b048025aeff96b16a868f672b84a\nSigned-off-by: Rosario Di Somma <73b2fe5f91895aea2b4d0e8942a5edf9f18fa897@dreamhost.com>\n"
},
{
"from": "human",
"value": "from setuptools import s... | python | chosen |
[
{
"from": "system",
"value": "Install the tests and test utilities\n"
},
{
"from": "human",
"value": "\nimport os\n\nfrom setuptools import setup\n\nbase_dir = os.path.dirname(__file__)\n\nwith open(os.path.join(base_dir, \"README.rst\")) as f:\n long_description = f.read()\n\nsetup(\n nam... | python | chosen |
[
{
"from": "system",
"value": "Use `open` instead of `file` for compatibility\n"
},
{
"from": "human",
"value": "\nimport os\nfrom setuptools import setup, find_packages\n\nVERSION = '1.4.5'\n\n\nsetup(\n namespace_packages = ['tiddlywebplugins'],\n name = 'tiddlywebplugins.atom',\n... | python | chosen |
[
{
"from": "system",
"value": "Correct the description and update the dev status to stable.\n"
},
{
"from": "human",
"value": "from setuptools import setup\nimport os\n\ndef read(filename):\n with open(filename) as fin:\n return fin.read()\n\nsetup(\n name='dictobj',\n version='0.2.5',\n a... | python | chosen |
[
{
"from": "system",
"value": "Set 0.1.1 as minimum version of loam\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nwith open('README.rst') as rdm:\n README = rdm.read()\n\nsetup(\n name='qjobs',\n use_scm_version=True,\n\n description='Get a clean and flexible outp... | python | chosen |
[
{
"from": "system",
"value": "Update GitHub repos from blancltd to developersociety\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom codecs import open\n\nfrom setuptools import find_packages, setup\n\n\nwith open('README.rst', 'r', 'utf-8') as f:\n readme = f.read()\n\n\nsetup(... | python | chosen |
[
{
"from": "system",
"value": "Include base version for msgpack, because 0.3 doesn't work\n\nIf I import neovim with less than version 0.4 of msgpack installed, I get this stack trace:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"<stdin>\", line 1, in <module>\r\n File \"/home/chartdev/venvs... | python | chosen |
[
{
"from": "system",
"value": "Change the version to be the release version\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nsetup(\n name = 'django-globals',\n version = '0.2.1-rc1',\n description = 'Very simple application, that allow to define a thread s... | python | chosen |
[
{
"from": "system",
"value": "Add gevent 1.0 as a dependency\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport sys, os\n\nversion = '0.1'\n\nsetup(name='ouimeaux',\n version=version,\n description=\"Python API to Belkin WeMo devices\",\n long_d... | python | chosen |
[
{
"from": "system",
"value": "Change version number for new pypi image\n"
},
{
"from": "human",
"value": "\nimport sys\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n# typing library was introduced as a core module in version 3.5.0\nrequires... | python | chosen |
[
{
"from": "system",
"value": "Increment version number, fix homepage\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='opengithub',\n version='0.1.2',\n author='Kevin Schaul',\n author_email='kevin.schaul@gmail.com',\n url='http://www.kevinschaul.co... | python | chosen |
[
{
"from": "system",
"value": "Upgrade tangled.web from 0.1a5 to 0.1a9\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\nsetup(\n name='tangled.auth',\n version='0.1a4.dev0',\n description='Tangled auth integration',\n long_description=open('README.rst').read(),\n ... | python | chosen |
[
{
"from": "system",
"value": "Update deps for initial release\n"
},
{
"from": "human",
"value": "__version__ = '0.1'\n\nimport os\n\nfrom setuptools import setup, find_packages\n\nhere = os.path.abspath(os.path.dirname(__file__))\nREADME = open(os.path.join(here, 'README.rst')).read()\nCHANGES =... | python | chosen |
[
{
"from": "system",
"value": "Remove plain 'django-admin-sortable' from requirements\n\nThis is only required to test migrations, not for new installs.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom setuptools import setup, find_packages\nfrom aldryn_faq import __version__\n\nR... | python | chosen |
[
{
"from": "system",
"value": "Allow mutiple hooks for packets\n"
},
{
"from": "human",
"value": "packetFunctions = {}\ncommands = {}\nonStart = []\nonConnection = []\nonConnectionLoss = []\n\nclass packetHook(object):\n\tdef __init__(self, pktType, pktSubtype):\n\t\tself.pktType = pktType\n\t\ts... | python | chosen |
[
{
"from": "system",
"value": "Update for compatibility with python 3"
},
{
"from": "human",
"value": "#!/usr/bin/python\nimport pymongo\nimport bson\nimport time\nimport sys\nfrom mongo_connector import util\n\nmongo_url = 'mongodb://localhost:27017'\nif len(sys.argv) == 1:\n\tprint \"First argu... | python | chosen |
[
{
"from": "system",
"value": "Allow for use in daily.py\n"
},
{
"from": "human",
"value": "#!/bin/env python\n\"\"\"Runs the three manual-building scripts\"\"\"\nif __name__=='__main__':\n import os, sys\n d = os.path.dirname(sys.argv[0])\n\n #need a quiet mode for the test suite \n ... | python | chosen |
[
{
"from": "system",
"value": "Update outdated link to repository, per @cknv\n"
},
{
"from": "human",
"value": "import os\nimport sys\nfrom distutils.core import setup\n\nif sys.version_info < (3,):\n print('\\nSorry, but Adventure can only be installed under Python 3.\\n')\n sys.exit(1)\n\... | python | chosen |
[
{
"from": "system",
"value": "Remove dev indentifier; crank Development Status; updated URL to point to project page\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='kf5py',\n py_modules = ['kf5py'],\n version='0.1.dev5',\n author='Chris Teplovs',\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix wrong path in readme\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nversion = \"0.10.2\"\n\n\nsetup(\n name=\"setuptools-rust\",\n version=version,\n author=\"Nikolay Kim\",\n author_email=\"fafhrd91@gmail.com\",\n url=\"https:... | python | chosen |
[
{
"from": "system",
"value": "Change version number to 0.1\n\n...in preparation for the upcoming release.\n"
},
{
"from": "human",
"value": "# Copyright 2013-2014 Massachusetts Open Cloud Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this... | python | chosen |
[
{
"from": "system",
"value": "Use read() utility to open README.\n"
},
{
"from": "human",
"value": "import os.path\nimport re\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__fi... | python | chosen |
[
{
"from": "system",
"value": "Fix long description format to be markdown\n"
},
{
"from": "human",
"value": "#! /usr/bin/env python\nfrom setuptools import setup\nimport re\nfrom os import path\n\nversion = ''\nwith open('cliff/__init__.py', 'r') as fd:\n version = re.search(r'^__version__\\s*... | python | chosen |
[
{
"from": "system",
"value": "Use context manager for open\n"
},
{
"from": "human",
"value": "from setuptools import setup\nimport os\n\n\n# Get version without importing, which avoids dependency issues\ndef get_version():\n import re\n with open('imbox/version.py') as version_file:\n ... | python | chosen |
[
{
"from": "system",
"value": "Include static subdirectories in package\n"
},
{
"from": "human",
"value": "\"\"\"\nFavien\n======\n\nNetwork canvas community.\n\n\"\"\"\nfrom setuptools import setup\n\n\nsetup(\n name='Favien',\n version='dev',\n url='https://github.com/limeburst/favien'... | python | chosen |
[
{
"from": "system",
"value": "Install the proper version of Django\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom subprocess import check_call, CalledProcessError\n\nfrom setuptools import setup\n\n\ndef convert_readme():\n try:\n check_call([\"pandoc\", \"-f\", \"mar... | python | chosen |
[
{
"from": "system",
"value": "Include kafka-check, bump to v0.2.6\n"
},
{
"from": "human",
"value": "from setuptools import setup\nfrom setuptools import find_packages\n\nfrom yelp_kafka_tool import __version__\n\n\nsetup(\n name=\"yelp-kafka-tool\",\n version=__version__,\n author=\"Di... | python | chosen |
[
{
"from": "system",
"value": "Enable module to be compiled with msvc and gcc compilers\n"
},
{
"from": "human",
"value": "from setuptools import setup, Extension\r\nimport numpy\r\n\r\next_modules=[\r\n Extension(\r\n \"heat_diffusion_experiment.cython_versions\",\r\n [\"heat_di... | python | chosen |
[
{
"from": "system",
"value": "Add pykqml dependency lower limit\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\ndef main():\n setup(name='bioagents',\n version='0.0.1',\n description='Biological Reasoning Agents',\n long_description... | python | chosen |
[
{
"from": "system",
"value": "Allow this tool to be used with more recent versions of BeautifulSoup\n\nThis would allow the use of extra powerful selectors: https://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors"
},
{
"from": "human",
"value": "#!/usr/bin/python3\n\nfrom distutils.... | python | chosen |
[
{
"from": "system",
"value": "[c] Deal with MD and RST doc"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\nsetup(\n name='robber',\n version='1.1.1',\n description='BDD / TDD assertion library for Python',\n author='Tao... | python | chosen |
[
{
"from": "system",
"value": "Add Python 3 to supported languages\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\nsetup(\n name='Simon',\n version='0.7.0',\n description='Simple MongoDB Models',\n long_description=open('README.rst').read(),... | python | chosen |
[
{
"from": "system",
"value": "Add transaction to project requirements\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='sandbox',\n version=open('VERSION').read().strip(),\n long_description=(open('README.rst').read() + '\\n' +\n open... | python | chosen |
[
{
"from": "system",
"value": "Drop support for python 2.7\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nconfig = {\n 'name': 'timew-report',\n 'version': '1.0.0',\n 'description': 'An interf... | python | chosen |
[
{
"from": "system",
"value": "Add version to tf library reminder.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nsetup(\n name='amii-tf-nn',\n version='0.0.1',\n license='MIT',\n packages=find_packages(),\n install_requires=[\n 'future =... | python | chosen |
[
{
"from": "system",
"value": "Install static files with distutils.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom distutils.core import setup\n\nlong_description = open('README.rst').read()\n\nsetup(\n name='django-tagging-autocomplete',\n version='0.4.2',\n descriptio... | python | chosen |
[
{
"from": "system",
"value": "Switch to a Python3 Compataible open + read + exec vs execfile\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n# Support setuptools or distutils\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from distutils.core import s... | python | chosen |
[
{
"from": "system",
"value": "Fix templates install. Bump to version 0.4 in the process (which is really my laziness).\n"
},
{
"from": "human",
"value": "# Use setuptools if we can\ntry:\n from setuptools.core import setup\nexcept ImportError:\n from distutils.core import setup\n\nPACKAGE ... | python | chosen |
[
{
"from": "system",
"value": "Include package data to fix bad install (v0.1.1)\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom setuptools import setup\n\n\nsetup(\n name='dj-queryset-manager',\n version='0.1.0',\n url='https://github.com/nosamanuel/dj-queryset-manager',... | python | chosen |
[
{
"from": "system",
"value": "Add author and increase version number\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom distutils.core import setup\n\nsetup(\n name='oceanoptics',\n version='0.2.6',\n author='Andreas Poehlmann, Jose A. Jimenez-Berni, Ben Gamari, Simon Dick... | python | chosen |
[
{
"from": "system",
"value": "Comment out entrypoint because it blows up django-nose in connection with tox. Ouch.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup, find_packages\n\nROOT = os.path.abspath(os.path.dirname(__file__))\n\nsetup(\n name='django-nose',\n ... | python | chosen |
[
{
"from": "system",
"value": "BLD: Use PEP 508 version markers.\n\nSo that environment tooling, e.g. `pipenv` can use the python version markers\nwhen determining dependencies.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import setup, find_packages\nimport sys\n\nlo... | python | chosen |
[
{
"from": "system",
"value": "Fix package data so that VERSION file actually gets installed\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\nimport sys, os\n\nPACKAGE = 'mtdna'\n\nVERSION = open(os.path.join(os.path.dirname(os.path.realpath(__file__)),'oldowan', PA... | python | chosen |
[
{
"from": "system",
"value": "Add `\"shapely\"` dependency to extra requirements\n\nAlso, `\"nbformat\"` is a dependency of `\"jupyter\"` so we don't need to\nspecify both.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\n\ndef read(fname):\n return open(os.path.j... | python | chosen |
[
{
"from": "system",
"value": "Include author email since it's required info\n\nSame as maintainer email, because the author email is unknown"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\n\nlongDesc = \"\"\nif os.path.exists(\"README.rst\"):\n\tlongDesc = open(\"READ... | python | chosen |
[
{
"from": "system",
"value": "Add standard Ansible exception handling"
},
{
"from": "human",
"value": "import re\n\ndef split_string(string, seperator=' '):\n return string.split(seperator) \n\ndef split_regex(string, seperator_pattern):\n return re.split(seperator_pattern, string)\n\nclas... | python | chosen |
[
{
"from": "system",
"value": "Modify created_at and updated_at to millisecond\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport cgi\nimport sqlite3\nimport time\n\nimport config\n\ndef valid(qs):\n required_keys = ['title', 'comment', 'posted_by', 'loca... | python | chosen |
[
{
"from": "system",
"value": "Update print result to use \",\" instead of \"+\" for context text\n"
},
{
"from": "human",
"value": "from s2v2 import * \n\ndef calculate_sum(data_sample):\n\ttotal = 0\n\tfor row in data_sample[1:]: # slice to start at row two, but I think we should only skip row ... | python | chosen |
[
{
"from": "system",
"value": "Add try statement to cleanup pins and invert pull/up down\n"
},
{
"from": "human",
"value": "import time\nimport urllib\n\nimport RPi.GPIO as GPIO\n\n# GPIO input pin to use\nLPR_PIN = 3\n# URL to get image from\nSOURCE = 'http://192.168.0.13:8080/photoaf.jpg'\n# Pa... | python | chosen |
[
{
"from": "system",
"value": "Test if default rotor encodes forward properly\n"
},
{
"from": "human",
"value": "import unittest\n\nfrom enigma import Enigma, Steckerbrett, Umkehrwalze, Walzen\n\n\nclass RotorTestCase(unittest.TestCase):\n pass\n\n\ndef run_tests():\n runner = unittest.Text... | python | chosen |
[
{
"from": "system",
"value": "Add nologin in expected user shell test\n"
},
{
"from": "human",
"value": "\"\"\"\nRole tests\n\"\"\"\n\nimport os\nimport pytest\nfrom testinfra.utils.ansible_runner import AnsibleRunner\n\ntestinfra_hosts = AnsibleRunner(\n os.environ['MOLECULE_INVENTORY_FILE']... | python | chosen |
[
{
"from": "system",
"value": "[python] Add some paths where to find test binary\n\nAdds /usr/lib/debug early to list, as some systems (debian) have unstripped libs in there\nAdds /lib/i386-linux-gnu for systems that does multiarch (debian)\n\n\n\ngit-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@153174 9... | python | chosen |
[
{
"from": "system",
"value": "Fix a misspelled variable name\n\nThis appears to be unused anywhere in the source code.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n###############################################################################\n# Copyrigh... | python | chosen |
[
{
"from": "system",
"value": "Allow to clear useless instances\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom django.db import models\nfrom solo.models import SingletonModel\n\nclass MakerScienceStaticContent (SingletonModel):\n about = models.TextField(null=True, blank=True... | python | chosen |
[
{
"from": "system",
"value": "Add modify code Google News Crawer\n"
},
{
"from": "human",
"value": "cast=[\"Cleese\",\"Palin\",\"Jones\",\"Idle\"]\nprint(cast)\ncast.pop()\nprint(cast)\ncast.extend([\"Gillan\",\"Chanpman\"])\nprint(cast)"
},
{
"from": "gpt",
"value": "#test code\ncas... | python | chosen |
[
{
"from": "system",
"value": "Change task to create a taskHistory object\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom dbaas.celery import app\nfrom util.decorators import only_one\nfrom models import CeleryHealthCheck\n#from celery.utils.log import get_task_logger\n\n#LOG =... | python | chosen |
[
{
"from": "system",
"value": "Delete default case for SQLALCHEMY_DATABASE_URI\n\nif user doesn't set it, he coud have some problems with SQLite\n"
},
{
"from": "human",
"value": "import os\n\n\nif os.environ.get('DATABASE_URL') is None:\n SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db'\nelse:... | python | chosen |
[
{
"from": "system",
"value": "Create custom test for Jinja2\n"
},
{
"from": "human",
"value": "import sys\n\nfrom flask import Flask, render_template\nfrom flask_flatpages import FlatPages, flatpages\nfrom flask_frozen import Freezer\n\nDEBUG = True\nFLATPAGES_AUTO_RELOAD = DEBUG\nFLATPAGES_EXTE... | python | chosen |
[
{
"from": "system",
"value": "Fix issue with wrong import\n"
},
{
"from": "human",
"value": "from .ide.command import plugin_unloaded\nfrom .ide.error import *\nfrom .ide.rebuild import *\nfrom .ide.server import *\nfrom .ide.settings import plugin_loaded\nfrom .ide.text_command import *\nfrom .... | python | chosen |
[
{
"from": "system",
"value": "Add Error Message To Server\n"
},
{
"from": "human",
"value": "# Copyright 2015, Google, Inc.\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n# this file except in compliance with the License. You may obtain a copy of the\n# Lic... | python | chosen |
[
{
"from": "system",
"value": "Fix string formatting for NotRegistered exception"
},
{
"from": "human",
"value": "import logging\nfrom django.conf import settings\nfrom django.utils.importlib import import_module\n\n__all__ = ('events', 'register', 'unregister')\n\nlogger = logging.getLogger('web... | python | chosen |
[
{
"from": "system",
"value": "Delete line loading an unnecessary module\n"
},
{
"from": "human",
"value": "# import analyze\nfrom analyze import check_blob_in_direct_path\nimport os\nimport sys\nsys.path.insert(0, os.getcwd())\nfrom get_images_from_pi import get_image, get_image_x_times\n\nget_i... | python | chosen |
[
{
"from": "system",
"value": "Update regression test for variable-length pattern problem in the matcher.\n"
},
{
"from": "human",
"value": "'''\nTest Matcher matches with '*' operator and Boolean flag\n'''\nfrom __future__ import unicode_literals\nimport pytest\n\nfrom ...matcher import Matcher\... | python | chosen |
[
{
"from": "system",
"value": "Move some functionality into the storage module\n"
},
{
"from": "human",
"value": "import os\nimport errno\nimport importlib\n\nfrom scrapi import settings\n\n\ndef import_consumer(consumer_name):\n # TODO Make suer that consumer_name will always import the corre... | python | chosen |
[
{
"from": "system",
"value": "Fix error in loading trees\n\n\nFormer-commit-id: 6fda03a47c5fa2d65c143ebdd81e158ba5e1ccda"
},
{
"from": "human",
"value": "#! /usr/bin/env python3\n\nimport os\nimport shutil\nimport datetime\nimport sys\nimport argparse\n\nfrom ete3 import Tree\n\nimport logging\n... | python | chosen |
[
{
"from": "system",
"value": "Fix getdoctarget to ignore comment lines\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nimport py\n\ndef get_version_string():\n fn = py.path.local(__file__).join(\"..\", \"..\", \"..\",\n \"_pytest\", \"__init__.... | python | chosen |
[
{
"from": "system",
"value": "Move Opal.core.search plugin into a plugins.py ahead of full plugin 2.0 refactor\n"
},
{
"from": "human",
"value": "\"\"\"\nOPAL core search package\n\"\"\"\nfrom opal.core.search import urls\nfrom opal.core import plugins\n\n\nfrom opal.core import celery # NOQA\n... | python | chosen |
[
{
"from": "system",
"value": "Fix bug with 'all' argument\n"
},
{
"from": "human",
"value": "from copy import copy\nimport argparse\n\nfrom preparation.resources.Resource import names_registered, resource_by_name\nfrom hb_res.storage import get_storage, ExplanationStorage\n\n\ndef generate_asset... | python | chosen |
[
{
"from": "system",
"value": "Add siblings to forum serializer\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nfrom __future__ import unicode_literals\n\nfrom machina.core.db.models import get_model\nfrom rest_framework import serializers\n\nForum = get_model('forum', 'Forum')\n\n\... | python | chosen |
[
{
"from": "system",
"value": "Fix the parallel env variable test to reset the env correctly\n"
},
{
"from": "human",
"value": "from numba.np.ufunc.parallel import get_thread_count\nfrom os import environ as env\nfrom numba.core import config\nimport unittest\n\n\nclass TestParallelEnvVariable(un... | python | chosen |
[
{
"from": "system",
"value": "Add min_price and max_price fields\n"
},
{
"from": "human",
"value": "from pymongo import MongoClient\n\n\ndef main():\n client = MongoClient()\n db = client.cityhotspots\n db.drop_collection('dineroptions')\n diners_collection = db.diners\n\n doc = {... | python | chosen |
[
{
"from": "system",
"value": "Load user from migration registry when creating system user\n\nAlways load models from the registry in migration files.\nI hate the idea of touching a migration already released, but\nthis one prevents us from adding new properties to User.\nIf we load the User directly (not fr... | python | chosen |
[
{
"from": "system",
"value": "Fix the scenario plugin sample\n\nWe forgot to fix scenario plugin sample when we were doing\nrally.task.scenario refactoring\n\nChange-Id: Iadbb960cf168bd3b9cd6c1881a5f7a8dffd7036f\n"
},
{
"from": "human",
"value": "# Copyright 2013: Mirantis Inc.\n# All Rights Res... | python | chosen |
[
{
"from": "system",
"value": "Break out dispatch, and drop prepare. Easier testing\n"
},
{
"from": "human",
"value": "\nfrom .request import Request\nfrom .response import Response, response\n\nimport logging\nlog = logging.getLogger()\n\n\nclass View:\n\n def __call__(self, event, context):\... | python | chosen |
[
{
"from": "system",
"value": "Check stdout with --debug for actual ddl\n"
},
{
"from": "human",
"value": "\"\"\"\"Test adapter specific config options.\"\"\"\nfrom test.integration.base import DBTIntegrationTest, use_profile\nimport textwrap\nimport yaml\n\n\nclass TestBigqueryAdapterSpecific(DB... | python | chosen |
[
{
"from": "system",
"value": "Fix tf session not being set as default\n"
},
{
"from": "human",
"value": "from ..kernel import Kernel\nfrom scannerpy import DeviceType\n\nimport tensorflow as tf\n\n\nclass TensorFlowKernel(Kernel):\n def __init__(self, config):\n # If this is a CPU kern... | python | chosen |
[
{
"from": "system",
"value": "Allow SiteOption to load into the JS\n"
},
{
"from": "human",
"value": "import random\nimport json\n\nfrom django import template\nfrom django.conf import settings\n\nregister = template.Library()\n\n# Build json value to pass as js config\n@register.simple_tag()\nd... | python | chosen |
[
{
"from": "system",
"value": "Use commit suggestion to use types\n\nCo-authored-by: Pedro Algarvio <4410d99cefe57ec2c2cdbd3f1d5cf862bb4fb6f8@algarvio.me>\n"
},
{
"from": "human",
"value": "import os\nimport subprocess\n\nimport pytest\nimport salt.client.ssh.shell as shell\n\n\n@pytest.fixture\n... | python | chosen |
[
{
"from": "system",
"value": "Drop the CLI from the sample storage client imports.\n"
},
{
"from": "human",
"value": "\"\"\"Common imports for generated storage client library.\"\"\"\n# pylint:disable=wildcard-import\n\nimport pkgutil\n\nfrom apitools.base.py import *\nfrom storage_v1 import *\n... | python | chosen |
[
{
"from": "system",
"value": "Set default values for fields\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nfrom plone.dexterity.interfaces import IDexterityContent\nfrom plone.dexterity.interfaces import IFormFieldProvider\nfrom plone.server.api.service import Service\nfrom plone.... | python | chosen |
[
{
"from": "system",
"value": "Increase logwait to 10 instead of 5 secs\n"
},
{
"from": "human",
"value": "import os; # needed for opening/compiling file\nimport time; # needed for delay\ndef getPath(allowCancel = True):\n \"\"\"Ask the user for lilypond file path and return it as string.\n\... | python | chosen |
[
{
"from": "system",
"value": "Refresh system instead of clobbering it\n\nOtherwise, if we set the Contexts, they'll be gone before we can request the\nNextActions!\n"
},
{
"from": "human",
"value": "import libvtd.trusted_system\n\n\ndef UpdateTrustedSystem(file_name):\n \"\"\"Make sure the Tr... | python | chosen |
[
{
"from": "system",
"value": "Update mathdeck problib for new Answer refactoring\n"
},
{
"from": "human",
"value": "from sympy import symbols, cos, sin, latex\nfrom mathdeck import rand, answer\n\nmetadata = {\n 'author': 'Bob Hope',\n 'institution': 'University of Missouri',\n 'subject': 'al... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.