conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix dependencies: zeit.workflow is contained in the zeit.cms egg\n"
},
{
"from": "human",
"value": "# Copyright (c) 2011 gocept gmbh & co. kg\n# See also LICENSE.txt\n\nfrom setuptools import setup, find_packages\n\n\nsetup(\n name='zeit.content.video',\n vers... | python | chosen |
[
{
"from": "system",
"value": "Change the \"name\" to django-auth_mac\n"
},
{
"from": "human",
"value": "#from distutils.core import setup\nfrom setuptools import setup\n\nsetup(\n name='auth_mac',\n version='0.1',\n description=\"Basic Django implementation of the draft RFC ietf-oauth-v... | python | chosen |
[
{
"from": "system",
"value": "Upgrade django-sort-order-field to version 1.2\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(\n name=\"web-stuartmccall-ca\",\n version=\"1.0\",\n author=\"Dylan McCall\",\n author_email=\"dylan@dylanmccall.com\"... | python | chosen |
[
{
"from": "system",
"value": "Update the version to 1.4.0.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nsetup(name='lightweight-rest-tester',\n version='1.2.0',\n description='A lightweight REST API testing framework.',\n url='https://github.co... | python | chosen |
[
{
"from": "system",
"value": "Bump version again as pip wont let me upload the same file twice\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup\n\nREADME = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()\nINSTALL_REQUIREMENTS = [\"Pillow\"]\n\n# Allow... | python | chosen |
[
{
"from": "system",
"value": "Upgrade version and adjust session control doing on last commit\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nsetup(\n name='infosystem',\n version='0.1.37',\n summary='Infosystem Framework',\n url='https://github.co... | python | chosen |
[
{
"from": "system",
"value": "Update version to revision 2 (also PEP 0440)\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nwith open('README.rst') as f:\n desc = f.read()\n\nsetup(\n name = \"spdx\",\n version = \"2.3.0-beta.1_2\",\n packages = ['spd... | python | chosen |
[
{
"from": "system",
"value": "Use io.open for 2->3 compatibility\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -\n\nimport codecs\nimport os\n\nfrom setuptools import setup\n\nwith open(os.path.join(os.path.dirname(__file__), 'README.md'),\n encoding='utf-8') as f:\n long_de... | python | chosen |
[
{
"from": "system",
"value": "Add generic Python 3 trove classifier\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": "Add the viewer to the package_data entry\n"
},
{
"from": "human",
"value": "# coding: utf-8\nfrom __future__ import print_function, unicode_literals\nimport sys\nimport codecs\nfrom setuptools import setup, find_packages\nfrom nhentai import __version__, __author__,... | python | chosen |
[
{
"from": "system",
"value": "Remove empty string from requirements list\n\nWhen we moved to Python 3 we used this simpler method to read the requirements\nfile. However we need to remove the empty/Falsey elements from the list.\n\nThis fixes the error:\n\n```\nFailed building wheel for molo.commenting\n```... | python | chosen |
[
{
"from": "system",
"value": "Add some classifiers for pypi\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\n\ndef getVersion():\n f = open(\"sphinxarg/__init__.py\")\n _ = f.read()\n ver = _.split(\"'\")[1]\n f.close()\n return ver\n\n\nsetup(\n name='sphinx-... | python | chosen |
[
{
"from": "system",
"value": "Change minimal python version to 3.5\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nlong_description = \"\"\"\nThe POEditor Client is a command line tool that enables you to easily manage your translation files within a project.\... | python | chosen |
[
{
"from": "system",
"value": "Change version so it has the vrsion tuple\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\nfrom setuptools import setup, find_packages\n\n\nREQUIREMENTS = [\n]\n\nDEP = [\n]\n\nTEST_REQUIREMENTS = [\n]\n\npyxed = []\npack = find_packages(exclude=[\"test\"... | python | chosen |
[
{
"from": "system",
"value": "Correct again the pip URL\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n\"\"\"\nsetup.py file for afnumpy\n\"\"\"\n\nfrom distutils.core import setup\nfrom afnumpy import __version__\n\n\nsetup (name = 'afnumpy',\n version = __version__,\n ... | python | chosen |
[
{
"from": "system",
"value": "Add data files to python packaging\n"
},
{
"from": "human",
"value": "import setuptools\nimport versioneer\n\nif __name__ == \"__main__\":\n setuptools.setup(\n name='basis_set_exchange',\n version=versioneer.get_version(),\n cmdclass=version... | python | chosen |
[
{
"from": "system",
"value": "Update pbr from version 1.0.1 to 1.8.1.\n\nSigned-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com>\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import setup\n\n\nsetup(\n setup_requires=['pbr==1.0.1'],\n ... | python | chosen |
[
{
"from": "system",
"value": "Use a queue to manage playing tracks\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom setuptools import setup\n\nsetup(name='pyspotify_helper',\n version='0.0.1',\n author='Matt Wismer',\n author_email='mattwis86@gmail.com',\n descr... | python | chosen |
[
{
"from": "system",
"value": "Fix windows compiler not finding common.hpp\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nimport os\nimport sys\nimport io\ntry:\n import setuptools\nexcept ImportError:\n from distribute_setup import use_setuptools\n use_setuptools()\nfrom setu... | python | chosen |
[
{
"from": "system",
"value": "Prepare for next dev cycle\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# coding: utf-8\n\nfrom setuptools import setup, find_packages\nsetup(\n name=\"bentoo\",\n description=\"Benchmarking tools\",\n version=\"0.12\",\n packages=find_packa... | python | chosen |
[
{
"from": "system",
"value": "Increase version to beta 1.\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='jobcli',\n version='0.1.a2',\n py_modules=['jobcli'],\n install_requires=['click', 'requests',],\n entry_points={'console_scripts':['jobcli=j... | python | chosen |
[
{
"from": "system",
"value": "Remove examples/ from package installation.\n"
},
{
"from": "human",
"value": "import os\nfrom setuptools import setup, find_packages\n\nf = open(os.path.join(os.path.dirname(__file__), 'README.rst'))\nreadme = f.read()\nf.close()\n\nsetup(\n name='micawber',\n ... | python | chosen |
[
{
"from": "system",
"value": "Update formatting and add missing commas"
},
{
"from": "human",
"value": "# coding: utf8\nfrom __future__ import unicode_literals\n\n\"\"\"\nExample sentences to test spaCy and its language models.\n>>> from spacy.lang.tr.examples import sentences\n>>> docs = nlp.pi... | python | chosen |
[
{
"from": "system",
"value": "Exclude tests and cmt folder from installed packages.\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\nimport versioneer\n\n\ndef read_requirements():\n import os\n\n\n path = os.path.dirname(os.path.abspath(__file__))\n req... | python | chosen |
[
{
"from": "system",
"value": "Set license and long description\n"
},
{
"from": "human",
"value": "from setuptools import setup\n\nsetup(\n name='redis-url-py',\n version='0.0.3',\n url='https://github.com/Xopherus/redis-url-py',\n license='BSD',\n author='Chris Raborg',\n autho... | python | chosen |
[
{
"from": "system",
"value": "Update author and trove details\n"
},
{
"from": "human",
"value": "from setuptools import setup, find_packages\n\n\nsetup(\n name='django-flatblocks',\n version='0.9',\n description='django-flatblocks acts like django.contrib.flatpages but '\n ... | python | chosen |
[
{
"from": "system",
"value": "Use the old django test runner\n\nWe aren't ready to switch to the new unittest discovery in django.\n"
},
{
"from": "human",
"value": "# This is an example test settings file for use with the Django test suite.\n#\n# The 'sqlite3' backend requires only the ENGINE s... | python | chosen |
[
{
"from": "system",
"value": "Replace map with a list comprehension.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\n\"\"\"\ntraceview.formatters\n\nThis module contains functions used to format TraceView API results.\n\n\"\"\"\n\nfrom collections import namedtuple\n\n\ndef identit... | python | chosen |
[
{
"from": "system",
"value": "api: Update to use gensim format"
},
{
"from": "human",
"value": "from flask import Flask, request\nfrom flask.ext.restful import reqparse, Api, Resource\nfrom gensim.models.word2vec import Word2Vec\nimport json\n\nprint 'loading model'\nMODEL = Word2Vec.load_word2v... | python | chosen |
[
{
"from": "system",
"value": "Correct the windows path in test of Windows path translator\n"
},
{
"from": "human",
"value": "import unittest\n\nfrom malcolm.modules.ADCore.infos import FilePathTranslatorInfo\n\n\nclass TestInfo(unittest.TestCase):\n\n def setUp(self):\n pass\n\n def... | python | chosen |
[
{
"from": "system",
"value": "Tweak the way that on_production_server is determined\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.apip... | python | chosen |
[
{
"from": "system",
"value": "Convert Port object to simpler representation\n"
},
{
"from": "human",
"value": "# Copyright (c) 2013, The MITRE Corporation. All rights reserved.\n# See LICENSE.txt for complete terms.\n\nimport cybox.utils as utils\nimport cybox.bindings.port_object as port_bindin... | python | chosen |
[
{
"from": "system",
"value": "Fix crash when invalid json is returned\n"
},
{
"from": "human",
"value": "import urllib\nimport json\nimport logging\n\n\ndef quote(text):\n try:\n return urllib.quote(text.encode('utf-8'))\n except UnicodeDecodeError:\n return urllib.quote(unic... | python | chosen |
[
{
"from": "system",
"value": "Return unicode from the server\n\nFixes #18\n"
},
{
"from": "human",
"value": "import os\nimport aiohttp\nimport json\nfrom aiohttp import web\n\nfrom .consts import KUDAGO_API_BASE_URL, CLIENT_DIR\n\n\nasync def serve_api(request):\n url = '{}/{}/?{}'.format(\n ... | python | chosen |
[
{
"from": "system",
"value": "Add shift-refresh to update HP cache on demand.\n"
},
{
"from": "human",
"value": "import jingo\n\nfrom innovate.utils import get_blog_feed_entries\nfrom projects.models import Project\n\n\ndef splash(request):\n \"\"\"Display splash page. With featured projects ... | python | chosen |
[
{
"from": "system",
"value": "Add help message to cli tool\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nimport argparse\nfrom twstock.codes import __update_codes\nfrom twstock.cli import best_four_point\nfrom twstock.cli import stock\nfrom twstock.cli import realtime\n\n\ndef ru... | python | chosen |
[
{
"from": "system",
"value": "Fix CommentModel m2m null warning\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nimport os\n\nfrom django.db import models\nfrom django.conf import settings\n\n\nclass UserModel(models.Model):\n name = models.CharField(max_length=20)\n\n\nupload_to =... | python | chosen |
[
{
"from": "system",
"value": "Refactor Point to use OrderedDict for positions, upper and lower\n"
},
{
"from": "human",
"value": "class Point(object):\n \"\"\"Contains information about for each scan point\n\n Attributes:\n positions (dict): Dict of str position_name -> float positi... | python | chosen |
[
{
"from": "system",
"value": "Remove imports we don't need anymore."
},
{
"from": "human",
"value": "\"\"\"\n\nDefine some common units, so users can import the objects directly.\n\nCopyright 2012, Casey W. Stark. See LICENSE.txt for more information.\n\n\"\"\"\n\nfrom sympy.core import Integer\... | python | chosen |
[
{
"from": "system",
"value": "Improve usability of the command \"TsurfSetRoot\"\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\"\"\"\ntsurf.core\n~~~~~~~~~~\n\nThis module defines the TagSurfer class. This class serve two purpose:\n\n 1) Defines the methods that are used by tsurf-... | python | chosen |
[
{
"from": "system",
"value": ":sparkles: Implement setting of new version\n"
},
{
"from": "human",
"value": "import configparser\nimport semver\nfrom invoke import run\n\n\ndef get_current_version():\n return run('python setup.py --version', hide=True).stdout.strip()\n\n\ndef evaluate_version... | python | chosen |
[
{
"from": "system",
"value": "Return an error when number of jobs exceeds max_jobs\n\nghactions API call we're using limits number of jobs\nreturned in one call. If jobs exceed this number they are\ngrouped into \"pages\". Page handling code shall be added\nwhen we exceed this number.\n"
},
{
"from"... | python | chosen |
[
{
"from": "system",
"value": "Add test of hisat2 object\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n\n# std import\nimport os\nimport sys\nimport configparser\nfrom subprocess import call\n\n# project import\nfrom . import logger\nfrom .mapper import hisat2\n\n\ndef main(config_pa... | python | chosen |
[
{
"from": "system",
"value": "Fix solution to the locks problem.\n"
},
{
"from": "human",
"value": "import sys\n\ndef do_lock_pass(locked):\n for i in xrange(0, len(locked), 2):\n locked[i] = True\n\ndef do_flip_pass(locked):\n for i in xrange(0, len(locked), 3):\n locked[i] ... | python | chosen |
[
{
"from": "system",
"value": "Set job misfire time to 31 days so the system will still work\nif it's inactive for a while\n"
},
{
"from": "human",
"value": "from aiohttp.web import Application\nfrom apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore\nfrom apscheduler.schedulers.asyncio i... | python | chosen |
[
{
"from": "system",
"value": "Add 'cli' as being a platform recognized as a Windows platform.\n\nThis will be the case when using e.g. IronPython (.NET).\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\"\"\"Utility functions.\n\n:author: Stefan Lehmann <stlm@posteo.de>\n:license: MI... | python | chosen |
[
{
"from": "system",
"value": "Align base exception for test with what pyOpenSSL uses.\n"
},
{
"from": "human",
"value": "import time\nfrom unittest import TestCase\n\nfrom pandora.py2compat import Mock, call\n\nfrom tests.test_pandora.test_clientbuilder import TestSettingsDictBuilder\n\n\nclass ... | python | chosen |
[
{
"from": "system",
"value": "Change doc str to sphinx format\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Contains pytest fixtures which are globally available throughout the suite.\n\"\"\"\n\nimport pytest\n\n\n@pytest.fixture\ndef foobar():\n p... | python | chosen |
[
{
"from": "system",
"value": "Fix subprocess on Python 2.6\n"
},
{
"from": "human",
"value": "from __future__ import absolute_import\n\nfrom subprocess import *\n\n\ndef check_output(*popenargs, **kwargs):\n r\"\"\"Run command with arguments and return its output as a byte\n string.\n\n ... | python | chosen |
[
{
"from": "system",
"value": "Change how mode strings are constructed\n"
},
{
"from": "human",
"value": "from txircd.utils import CaseInsensitiveDictionary, now()\n\nclass IRCChannel(object):\n\tdef __init__(self, ircd, name):\n\t\tself.ircd = ircd\n\t\tself.name = name\n\t\tself.created = now()... | python | chosen |
[
{
"from": "system",
"value": "Add lowzoom tests for polygon merging\n"
},
{
"from": "human",
"value": "# There should be a single (merged) ocean feature in this tile\nassert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)\n# There should be a single (merged) earth feature in thi... | python | chosen |
[
{
"from": "system",
"value": "Use spaces instead of tabs\n"
},
{
"from": "human",
"value": "import platform\r\nfrom unittest import main\r\n\r\nfrom test_net_use_table import *\r\nfrom test_sanitize import *\r\nfrom test_utils import *\r\nfrom test_unc_directory import *\r\n\r\n\r\nif platform.s... | python | chosen |
[
{
"from": "system",
"value": "Test if you can return the channel.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nUser command...\n\n\"\"\"\n\nimport grp\n\n\nclass User(object):\n \"\"\"Something, something, something darkside....\"\"\"\n\n def _... | python | chosen |
[
{
"from": "system",
"value": "Allow editing of 'notes' field when creating new StockItem\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django import forms\nfrom InvenTree.forms import HelperForm\n\nfrom .models import StockLocation, S... | python | chosen |
[
{
"from": "system",
"value": "Add blank space for PEP8\n"
},
{
"from": "human",
"value": "import logging\nfrom flask_cors import CORS\nfrom flask import Flask, json\nfrom flask_hal import HAL, HALResponse\nfrom chaosmonkey.api.attacks_blueprint import attacks\nfrom chaosmonkey.api.executors_blue... | python | chosen |
[
{
"from": "system",
"value": "Change to postgres by default\n"
},
{
"from": "human",
"value": "DEBUG = True\n\nADMINS = (\n ('Zaphod Beeblebrox', 'hoopyfrood@heartofgold.com'),\n)\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = '^lkajsdlfkjaoif09ijoi2309230... | python | chosen |
[
{
"from": "system",
"value": "Modify the picture plugin slightly\n"
},
{
"from": "human",
"value": "from django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom cms.plugin_base import CMSPluginBase\nfrom cms.plugin_pool import plugin_pool\n\nfrom .models impo... | python | chosen |
[
{
"from": "system",
"value": "Fix printing of logged non-ascii characters\n\nwebdriver seems to not handle non-ascii characters in the result of an\nexecuted script correctly (python throws an exception when printing the\nstring). This makes them be printed correctly.\n\nR=mdjones@chromium.org\n\nReview URL... | python | chosen |
[
{
"from": "system",
"value": "Allow overriding host/port of S3 service to connect to.\n\nHardcode non-vhost calling convention, at least for now.\n(The host name overriding typically doesn't work with vhosts;\n\"BUCKET.localhost\" is not very helpful.)\n\nTo use a local S3-compatible service, put something ... | python | chosen |
[
{
"from": "system",
"value": "Remove redundant load() method from SymbolSet.\n"
},
{
"from": "human",
"value": "class SymbolSet():\r\n def __init__(self):\r\n self._address_labels = dict()\r\n self._label_addresses = dict()\r\n self._generic_id = 0\r\n\r\n def load(sel... | python | chosen |
[
{
"from": "system",
"value": "TODO: DEBUG AND MAKE SURE FUNCTIONS WORK\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n#Black Hat Python; SSH w/ Paramiko (p 26)\n\nimport threading, paramiko, subprocess\n\n\ndef banner():\n print \"############ n1cFury- NetCat tool ###########... | python | chosen |
[
{
"from": "system",
"value": "Use the array API types for the array API type annotations\n"
},
{
"from": "human",
"value": "\"\"\"\nThis file defines the types for type annotations.\n\nThese names aren't part of the module namespace, but they are used in the\nannotations in the function signatur... | python | chosen |
[
{
"from": "system",
"value": "Change module import for ST3\n"
},
{
"from": "human",
"value": "import sublime, sublime_plugin\n\nfrom RemoteTypograf import RemoteTypograf\n\n\nclass TypographCommand(sublime_plugin.TextCommand):\n\tdef run(self, edit):\n\t\ttypograph = RemoteTypograf('windows-1251... | python | chosen |
[
{
"from": "system",
"value": "Fix up admin user factory to reflect model changes\n"
},
{
"from": "human",
"value": "import factory\n\nfrom admin.common_auth.models import MyUser\n\n\nclass UserFactory(factory.Factory):\n class Meta:\n model = MyUser\n\n id = 123\n email = 'cello@... | python | chosen |
[
{
"from": "system",
"value": "Fix api-server events not saving the user ID\n"
},
{
"from": "human",
"value": "from .. import db\n\nclass Event(db.Model):\n timestamp = db.Field()\n obj_id = db.Field() # The object for which this event was created about\n user_id = db.Field() # The ... | python | chosen |
[
{
"from": "system",
"value": "Fix wrong comment in module\n"
},
{
"from": "human",
"value": "# Copyright (c) 2014, 2015, 2016 Timothy Savannah under LGPL version 2.1. See LICENSE for more information.\n#\n# fields.compressed - Some types and objects related to compressed fields. Use in place of ... | python | chosen |
[
{
"from": "system",
"value": "Test everything with stress test.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\n\n# Copyright 2007 Albert Strasheim <fullung@gmail.com>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in complia... | python | chosen |
[
{
"from": "system",
"value": "PI-248: Apply indenting to only requests that specify application/json accept\nheaders\n"
},
{
"from": "human",
"value": "class JSONIndentAcceptHeaderMiddleware(object):\n\n def process_request(self, request):\n request.META['HTTP_ACCEPT'] = 'application/j... | python | chosen |
[
{
"from": "system",
"value": "Tag filtering infrastructure up (currently stubbed).\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python3\n\n# Standard imports\nimport argparse\nimport sys\nimport os.path\n\n# Non-standard imports\nimport jinja2\nimport yaml\n\ndef main(args):\n parser = a... | python | chosen |
[
{
"from": "system",
"value": "Remove tests from __all__ which are no longere here.\n\ngit-svn-id: fc68d25ef6d4ed42045cee93f23b6b1994a11c36@1122 5646265b-94b7-0310-9681-9501d24b2df7\n"
},
{
"from": "human",
"value": "#\n# Sheared -- non-blocking network programming library for Python\n# Copyright... | python | chosen |
[
{
"from": "system",
"value": "Test blank keys are not allowed.\n"
},
{
"from": "human",
"value": "from document import Document\nimport unittest\n\nclass TestDocument(unittest.TestCase):\n \n def _get_document(self):\n spec = {\n \"author\": \"John Humphreys\",\n ... | python | chosen |
[
{
"from": "system",
"value": "Add finished working location unit tests\n"
},
{
"from": "human",
"value": "from SUASSystem import *\nimport math\nimport numpy\nimport unittest\nfrom dronekit import LocationGlobalRelative\n\nclass locationTestCase(unittest.TestCase):\n\n def setUp(self):\n ... | python | chosen |
[
{
"from": "system",
"value": "Revert \"Send error-type info to pillow error DD metrics\"\n"
},
{
"from": "human",
"value": "from celery.schedules import crontab\nfrom celery.task import periodic_task\nfrom django.conf import settings\nfrom django.db.models import Count\n\nfrom corehq.util.datado... | python | chosen |
[
{
"from": "system",
"value": "ADD aeroo report to clinic sale\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n{'active': False,\n 'author': 'Ingenieria ADHOC',\n 'category': 'Clinic',\n 'demo_xml': [],\n 'depends': ['clinic', 'sale_dummy_confirmation'],\n 'description'... | python | chosen |
[
{
"from": "system",
"value": "Fix issue where options['param'] can be None.\n"
},
{
"from": "human",
"value": "import imp\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.utils.importlib import import_module\n\nfrom optparse import make_option... | python | chosen |
[
{
"from": "system",
"value": "Test that scheduling does not crash\n"
},
{
"from": "human",
"value": "from django.test import TestCase\n\nfrom testapp.tests import factories\n\n\nclass SchedulingTestCase(TestCase):\n def test_scheduling(self):\n for i in range(20):\n factorie... | python | chosen |
[
{
"from": "system",
"value": "Fix data loss bug in migration.\n\nWe should be deleting the signature to invalidate it, not the action itself.\n"
},
{
"from": "human",
"value": "\"\"\"\nRemoves signatures, so they can be easily recreated during deployment.\n\nThis migration is intended to be used... | python | chosen |
[
{
"from": "system",
"value": "Make the test suite use the development version of djqmethod.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env python\nfrom django.core.management import execute_manager\ntry:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n imp... | python | chosen |
[
{
"from": "system",
"value": "Save destination dataset (still identical to source dataset)\n"
},
{
"from": "human",
"value": "\n# TODO almost everything\n\nsrc_ds = gdal.Open( src_filename )\ndst_ds = driver.CreateCopy( dst_filename, src_ds, 0 )\n# Once we're done, close properly the dataset\nds... | python | chosen |
[
{
"from": "system",
"value": "Add tests for `Objector.parse_error()` and `.check_error()`\n"
},
{
"from": "human",
"value": "from . import UnitTest\n\n\nclass TestObjector(UnitTest):\n def test_objectify_returns_None_for_None(self):\n assert self.reddit._objector.objectify(None) is Non... | python | chosen |
[
{
"from": "system",
"value": "Include views from the Django Optimizer\n"
},
{
"from": "human",
"value": "from django.conf.urls import patterns, include, url\nfrom django.contrib import admin\n\n\nurlpatterns = patterns(\n '', # First arg to patterns is a namespace parameter.\n\n # A handf... | python | chosen |
[
{
"from": "system",
"value": "Add some possibly ineffective tests...\n"
},
{
"from": "human",
"value": "import os, sys; sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))\n\nimport codecs\n\nimport pytest\n\nfrom lasio import read\n\negfn = lambda fn: os.path.join(os.path.dirname(__f... | python | chosen |
[
{
"from": "system",
"value": "Rename test_file to make nosetest happy\n"
},
{
"from": "human",
"value": "import os\nimport re\nimport sys\nimport unittest\n\nfrom functools import partial\n\n\nclass TestExamples(unittest.TestCase):\n pass\n\n\ndef test_file(filename):\n # Ignore the output... | python | chosen |
[
{
"from": "system",
"value": "Remove stray whitespace in test file\n"
},
{
"from": "human",
"value": "\"\"\"Test FEI SEM image plugin functionality.\n\nFEI TIFFs contain metadata as ASCII plaintext at the end of the file.\n\"\"\"\nfrom __future__ import unicode_literals\n\nimport os\n\nimport nu... | python | chosen |
[
{
"from": "system",
"value": "Comment for the competition settings did not make sense.\n"
},
{
"from": "human",
"value": "# competition_settings.py\n# This file contains settings for the current competition.\n# This include start and end dates along with round information.\nimport datetime # Onl... | python | chosen |
[
{
"from": "system",
"value": "Print everything on individual lines\n"
},
{
"from": "human",
"value": "#! /usr/bin/python\nfrom __future__ import print_function\nimport db, os, sys, re\nimport argparse\nimport json\nfrom collections import namedtuple\n\ntf2_key = namedtuple('tf2_key', \"server_ac... | python | chosen |
[
{
"from": "system",
"value": "Fix issue with imezone on IsPaid Permission\n"
},
{
"from": "human",
"value": "\nfrom itertools import chain\nfrom rest_framework import permissions\nfrom django.utils import timezone\nfrom seven23 import settings\n\nclass CanWriteAccount(permissions.BasePermission)... | python | chosen |
[
{
"from": "system",
"value": "Make ids BigInteger for postgres"
},
{
"from": "human",
"value": "from sqlalchemy import Column, Integer, String\n\nfrom keybaseproofbot.database import Base\n\n\nclass Proof(Base):\n __tablename__ = 'proofs'\n user_id = Column(Integer, primary_key=True)\n ... | python | chosen |
[
{
"from": "system",
"value": "Fix casing and spacing bugs and rename query-handler.\n\nUnless string concatenation is used, print arguments are automatically\nspace-delimited. The lower method does not modify the object it is\ncalled on. Since the module is called ogre, forcing developers to call\nogre.ogre... | python | chosen |
[
{
"from": "system",
"value": "Add a hook we'll eventually use to install the activate scripts\n"
},
{
"from": "human",
"value": "import sys\n\n\nclass BaseBuilder(object):\n\n def __init__(self, python, system_site_packages=False, clear=False):\n # We default to sys.executable if we're... | python | chosen |
[
{
"from": "system",
"value": "Fix regression: No handlers could be found for logger when start\n\nThis change fixed a function regression on bug/1201562.\n\nCloses-Bug: #1201562\n\nChange-Id: I3994c97633f5d09cccf6defdf0eac3957d63304e\nSigned-off-by: Zhi Yan Liu <98cb9f7b35c45309ab1e4c4eac6ba314b641cf7a@cn.i... | python | chosen |
[
{
"from": "system",
"value": "Split up the tests for AuthorizationToken\n"
},
{
"from": "human",
"value": "from django.test import TestCase\nfrom django.contrib.auth.models import User\nfrom doac.models import AuthorizationToken, Client, RefreshToken, Scope\n\n\nclass TestAuthorizationTokenModel... | python | chosen |
[
{
"from": "system",
"value": "Fix typo in teryt autocomplete\n"
},
{
"from": "human",
"value": "import autocomplete_light\nfrom models import JednostkaAdministracyjna\n\n# This will generate a PersonAutocomplete class\nautocomplete_light.register(JednostkaAdministracyjna,\n # Just like in Mod... | python | chosen |
[
{
"from": "system",
"value": "Add so tags to ProductGroup entity\n"
},
{
"from": "human",
"value": "from google.appengine.ext import ndb\nfrom endpoints_proto_datastore.ndb import EndpointsModel\nfrom endpoints_proto_datastore.ndb import EndpointsAliasProperty\nfrom protorpc import messages\n\n\... | python | chosen |
[
{
"from": "system",
"value": "Make the blog author in the form a non required field.\n"
},
{
"from": "human",
"value": "from django import forms\nfrom django.contrib import admin\nfrom django.contrib.auth.models import User\n\nfrom us_ignite.common import sanitizer\nfrom us_ignite.blog.models im... | python | chosen |
[
{
"from": "system",
"value": "Add playback states to GStreamer\n"
},
{
"from": "human",
"value": "import logging\n\nfrom mopidy.backends import BaseBackend, BasePlaybackController\n\nlogger = logging.getLogger(u'backends.gstreamer')\n\nclass GStreamerBackend(BaseBackend):\n def __init__(self,... | python | chosen |
[
{
"from": "system",
"value": "Add tests for -p option\n"
},
{
"from": "human",
"value": "import textwrap\nfrom pathlib import Path\nfrom unittest.mock import Mock, patch\n\nimport pytest\n\nfrom pyinstrument.__main__ import main\nfrom pyinstrument.renderers.console import ConsoleRenderer\n\nfrom... | python | chosen |
[
{
"from": "system",
"value": "Make Popen.communicate return output as strings not bytes.\n"
},
{
"from": "human",
"value": "import subprocess\nimport unittest\n\n\nclass GhostscriptTest(unittest.TestCase):\n\n def test_installed(self):\n process = subprocess.Popen(\n ['gs', ... | python | chosen |
[
{
"from": "system",
"value": "Make title field appear before comment in the form\n\nFixes #7\n"
},
{
"from": "human",
"value": "from django import forms\nfrom django.contrib.comments.forms import CommentForm\nfrom django.conf import settings\nfrom django.utils.hashcompat import sha_constructor\n... | python | chosen |
[
{
"from": "system",
"value": "Make part task creation explicit\n"
},
{
"from": "human",
"value": "from malcolm.core import Controller, DefaultStateMachine, Hook, \\\n method_only_in, method_takes\n\n\nsm = DefaultStateMachine\n\n\n@sm.insert\n@method_takes()\nclass DefaultController(Controlle... | python | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.