diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/kerncraft/likwid_bench_auto.py b/kerncraft/likwid_bench_auto.py
index <HASH>..<HASH> 100755
--- a/kerncraft/likwid_bench_auto.py
+++ b/kerncraft/likwid_bench_auto.py
@@ -35,9 +35,9 @@ def read_cpuinfo(cpuinfo_path='/proc/cpuinfo'):
return cpuinfo
-def get_machine_topology():
+def get_machine_topol... | renenabled cpuinfo path overwrite | py |
diff --git a/trailblazer/mip/fastq.py b/trailblazer/mip/fastq.py
index <HASH>..<HASH> 100644
--- a/trailblazer/mip/fastq.py
+++ b/trailblazer/mip/fastq.py
@@ -14,6 +14,9 @@ class FastqHandler:
root_dir.mkdir(parents=True, exist_ok=True)
for fastq in files:
fastq_path = Path(fastq)
- ... | fix symlink of fastq detect existing fastq path, avoid symlinking | py |
diff --git a/stdeb/py2dsc.py b/stdeb/py2dsc.py
index <HASH>..<HASH> 100644
--- a/stdeb/py2dsc.py
+++ b/stdeb/py2dsc.py
@@ -107,7 +107,7 @@ def runit():
"for %s, continuing...", package)
sys.argv = backup_argv
- if hasattr(optobj, 'extra_cfg_file'):
+ if package is not None and... | don't fail when giving sdist as command option git-svn-id: <URL> | py |
diff --git a/Workspace.py b/Workspace.py
index <HASH>..<HASH> 100644
--- a/Workspace.py
+++ b/Workspace.py
@@ -99,10 +99,14 @@ class WorkspaceController(object):
self.__canvas_item.close()
self.__canvas_item = None
self.__workspace = None
- for dock_widget in copy.copy(self.doc... | Fix bug in how workspace is closed. svn r<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ requirements = [
# Protocol and data packages
"pytmpdir >= 0.2.3", # A temporary directory, useful for extracting archives to
- "txhttputil >= 0.1.10", # Utility class for http requests
+ ... | Updated txhttputil dependency to <I> | py |
diff --git a/testing/python/fixture.py b/testing/python/fixture.py
index <HASH>..<HASH> 100644
--- a/testing/python/fixture.py
+++ b/testing/python/fixture.py
@@ -1584,6 +1584,7 @@ class TestFixtureManagerParseFactories(object):
values = []
"""
)
+ testdir.syspathinsert(testdir.tmp... | Try to fix test in MacOS-X | py |
diff --git a/graftm/create.py b/graftm/create.py
index <HASH>..<HASH> 100644
--- a/graftm/create.py
+++ b/graftm/create.py
@@ -133,7 +133,8 @@ class Create:
cmd = "hmmbuild -O /dev/stdout -o /dev/stderr '%s' '%s'" % (
hmm_filename, alignment)
process = subprocess.Popen(["bash"... | create: Catch STDERR when building the HMM. | py |
diff --git a/gnupg/_trust.py b/gnupg/_trust.py
index <HASH>..<HASH> 100644
--- a/gnupg/_trust.py
+++ b/gnupg/_trust.py
@@ -82,7 +82,7 @@ def fix_trustdb(cls, trustdb=None):
it would fix the the trustdb. Hah! It doesn't. Here's what it does
instead::
- (gpg)∃!isisⒶwintermute:(testing/algo)~/code/python-... | Remove unicode characters preventing manpage and LaTeX Sphinx builds. | py |
diff --git a/tgext/admin/test/controllers/root.py b/tgext/admin/test/controllers/root.py
index <HASH>..<HASH> 100644
--- a/tgext/admin/test/controllers/root.py
+++ b/tgext/admin/test/controllers/root.py
@@ -4,11 +4,9 @@ from tg.controllers import TGController
from tgext.admin.test.model import DBSession
import tgext.... | added back the ability to check for errors when records are submitted. <URL> | py |
diff --git a/cms7/source.py b/cms7/source.py
index <HASH>..<HASH> 100644
--- a/cms7/source.py
+++ b/cms7/source.py
@@ -1,5 +1,6 @@
from markdown import Markdown
from markdown.extensions.meta import MetaExtension, MetaPreprocessor
+from markdown.extensions.toc import TocExtension
from markdown.extensions.wikilinks im... | Add the TOC extension set baselevel to 2; todo: move that to config | py |
diff --git a/scenarios/kubernetes_kops_aws.py b/scenarios/kubernetes_kops_aws.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_kops_aws.py
+++ b/scenarios/kubernetes_kops_aws.py
@@ -280,7 +280,7 @@ if __name__ == '__main__':
raise ValueError('--cluster must be provided')
# If aws keys are missi... | AWS: Fix logic around defaulting (#<I>) | py |
diff --git a/h11/_connection.py b/h11/_connection.py
index <HASH>..<HASH> 100644
--- a/h11/_connection.py
+++ b/h11/_connection.py
@@ -421,7 +421,7 @@ class Connection:
event = NEED_DATA
return event # type: ignore[no-any-return]
- def next_event(self) -> Union[Event, Type[Sentinel]]:
+ d... | Update `next_event` annotation to reflect possible return types | py |
diff --git a/perceval/backends/core/github.py b/perceval/backends/core/github.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/core/github.py
+++ b/perceval/backends/core/github.py
@@ -66,7 +66,15 @@ class GitHub(Backend):
"""GitHub backend for Perceval.
This class allows the fetch the issues stored i... | [github] Add example to initialize backend from code This code improves the docstring of the GitHub backend by providing an example about how to initialize the backend, which from version <I> requires a list of `api_token` instead of a single one. Backend version is now <I> | py |
diff --git a/raiden/raiden_event_handler.py b/raiden/raiden_event_handler.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_event_handler.py
+++ b/raiden/raiden_event_handler.py
@@ -9,6 +9,7 @@ from raiden.transfer.events import (
ContractSendChannelSettle,
ContractSendChannelUpdateTransfer,
ContractSen... | Handle EventTransferReceivedInvalidDirectTransfer by ignoring | py |
diff --git a/override_settings/__init__.py b/override_settings/__init__.py
index <HASH>..<HASH> 100644
--- a/override_settings/__init__.py
+++ b/override_settings/__init__.py
@@ -7,7 +7,16 @@ SETTING_DELETED = mock.sentinel.SETTING_DELETED
class override_settings(object):
def __init__(self, **kwargs):
- ... | Include global_settings in settings._wrapped | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -105,6 +105,7 @@ setup(
'colors': ['colorama>=0.3.9'],
'crypto': ['cryptography>=2.6'],
'pynacl': ['pynacl>1.2.0']},
+ tests_require = 'mock; python_version < "3.3"',
packages = find_packages(exclude=[... | Add missing tests_require field to setup.py | py |
diff --git a/troposphere/cognito.py b/troposphere/cognito.py
index <HASH>..<HASH> 100644
--- a/troposphere/cognito.py
+++ b/troposphere/cognito.py
@@ -204,6 +204,7 @@ class UserPool(AWSObject):
'EmailConfiguration': (EmailConfiguration, False),
'EmailVerificationMessage': (basestring, False),
... | Add EnabledMfas to cognito UserPool Object. (#<I>) | py |
diff --git a/exscript.py b/exscript.py
index <HASH>..<HASH> 100644
--- a/exscript.py
+++ b/exscript.py
@@ -111,10 +111,10 @@ if options['version']:
if options['authorize'] and options['authorize2']:
print "Error: Can't use both, -a and -A switch."
sys.exit(1)
-if options['no-authenticate'] and options['autho... | * Fix: Last commit was broken. -Samuel git-svn-id: <URL> | py |
diff --git a/grimoire_elk/_version.py b/grimoire_elk/_version.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/_version.py
+++ b/grimoire_elk/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.32.0"
+__version__ = "0.33.0" | Update version number to <I> | py |
diff --git a/notario/tests/test_decorators.py b/notario/tests/test_decorators.py
index <HASH>..<HASH> 100644
--- a/notario/tests/test_decorators.py
+++ b/notario/tests/test_decorators.py
@@ -30,6 +30,15 @@ class TestInstanceOf(object):
assert 'not of any valid types' in exc_msg
assert 'str' in exc_msg... | test granular instance_of tests for dicts | py |
diff --git a/dailymotion.py b/dailymotion.py
index <HASH>..<HASH> 100755
--- a/dailymotion.py
+++ b/dailymotion.py
@@ -200,8 +200,6 @@ class Dailymotion(object):
elif grant_type == 'password':
if 'username' not in info or 'password' not in info:
raise DailymotionClientError('Missi... | Delegate to API the grant_type gestion | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -150,7 +150,7 @@ def _update_with_config_file(file_path, sections, computed_settings):
max_line_length = settings.pop('max_line_length', "").strip()
if max_line_length:
-... | Editorconfig: Add support for max_line_length = off. | py |
diff --git a/thinc/datasets.py b/thinc/datasets.py
index <HASH>..<HASH> 100644
--- a/thinc/datasets.py
+++ b/thinc/datasets.py
@@ -54,9 +54,8 @@ def read_conll(loc):
yield words, tags, heads, labels
-def keras_mnist():
- from keras.datasets import mnist
- from keras.utils import np_utils
+def mnist()... | Rename keras_mnist to mnist | py |
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/tests/utils/helpers.py
+++ b/tests/utils/helpers.py
@@ -31,7 +31,6 @@ import random
import redis
import shutil
import string
-import subprocess
import sys
import tempfile
import textwrap
@@ -148,6 +147,7 @@ def run_haza... | Removed excessive logging in run_hazard_job | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,26 +34,19 @@ def get_packages(package):
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
-if platform.python_implementation() == 'PyPy':
- requirements = [
- 'click',
- 'h11',
- ... | Added env markers for package requirements (#<I>) | py |
diff --git a/pycrest/eve.py b/pycrest/eve.py
index <HASH>..<HASH> 100644
--- a/pycrest/eve.py
+++ b/pycrest/eve.py
@@ -159,7 +159,7 @@ class APIConnection(object):
if user_agent is None:
user_agent = "PyCrest/{0} +https://github.com/pycrest/PyCrest"\
.format(version)
- if t... | remove None check for transport_adapter as it's not required with isinstance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
url='https://github.com/peritus/bumpversion',
author='Filip Noetzel',
author_email='filip+bumpversion@j03.de',
- license='',
+ license='MIT',
packages=['bumpversion'],
descrip... | mention MIT license in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,10 +32,11 @@ setup(
'jinja2',
'termcolor',
'pyyaml',
- 'mkdocs-material',
'python-dateutil',
- 'mkdocs-macros-test'
],
+ extras_require={
+ 'test': ['mkdocs-... | Put development/test dependencies in extras_require['test']; resolves #<I> | py |
diff --git a/test/server_test.py b/test/server_test.py
index <HASH>..<HASH> 100644
--- a/test/server_test.py
+++ b/test/server_test.py
@@ -160,12 +160,12 @@ class _ServerTest(unittest.TestCase):
@skipOnTravis('https://travis-ci.org/spotify/luigi/jobs/72953884')
def test_save_state(self):
- self.sch.a... | server_test.py: Fix crash in test_save_state (#<I>) For whatever reasons its not running on travis but crashing when you locally run the tests for luigi. | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -3277,6 +3277,7 @@ class BaseCase(unittest.TestCase):
new_presentation = (
'<html>\n'
'... | Add meta charset data to the head of html presentations | py |
diff --git a/turnstile/tools.py b/turnstile/tools.py
index <HASH>..<HASH> 100644
--- a/turnstile/tools.py
+++ b/turnstile/tools.py
@@ -182,9 +182,8 @@ def _setup_limits(config, limits_file, do_reload=True,
for idx, lim in enumerate(limits_tree.getroot()):
# Skip tags we don't recognize
if lim.tag... | This should be emitted as a warning, not be conditional on debug! | py |
diff --git a/ns1/rest/transport/basic.py b/ns1/rest/transport/basic.py
index <HASH>..<HASH> 100644
--- a/ns1/rest/transport/basic.py
+++ b/ns1/rest/transport/basic.py
@@ -62,11 +62,11 @@ class BasicTransport(TransportBase):
resp = opener.open(request, timeout=self._timeout)
except HTTPError as e:
... | Fix variable referenced before assignment The variable "body" is referenced before request if the their was no error in the url request. Regression from this commit <URL> | py |
diff --git a/pytablereader/_tabledata_sanitizer.py b/pytablereader/_tabledata_sanitizer.py
index <HASH>..<HASH> 100644
--- a/pytablereader/_tabledata_sanitizer.py
+++ b/pytablereader/_tabledata_sanitizer.py
@@ -169,6 +169,33 @@ class AbstractTableDataSanitizer(TableDataSanitizerInterface):
return new_header_li... | Add TableDataSanitizer class | py |
diff --git a/phylotoast/util.py b/phylotoast/util.py
index <HASH>..<HASH> 100755
--- a/phylotoast/util.py
+++ b/phylotoast/util.py
@@ -3,8 +3,14 @@ Created on Feb 2, 2013
:author: Shareef Dabdoub
"""
-from collections import namedtuple, OrderedDict
import os
+import sys
+import itertools
+from collections import n... | Updated util.py. Added library support for color_mapping() function. | py |
diff --git a/ai/backend/client/kernel.py b/ai/backend/client/kernel.py
index <HASH>..<HASH> 100644
--- a/ai/backend/client/kernel.py
+++ b/ai/backend/client/kernel.py
@@ -45,7 +45,7 @@ class BaseKernel(BaseFunction):
'clientSessionToken': client_token,
'config': {
'mounts': mo... | Hotfix for passing environment variables when creating kernels | py |
diff --git a/GPy/likelihoods/Gaussian.py b/GPy/likelihoods/Gaussian.py
index <HASH>..<HASH> 100644
--- a/GPy/likelihoods/Gaussian.py
+++ b/GPy/likelihoods/Gaussian.py
@@ -51,12 +51,11 @@ class Gaussian(likelihood):
return ["noise_variance"]
def _set_params(self, x):
- x = float(x)
if sel... | catch beta > 0 not needed anymore | py |
diff --git a/dataviews/views.py b/dataviews/views.py
index <HASH>..<HASH> 100644
--- a/dataviews/views.py
+++ b/dataviews/views.py
@@ -669,7 +669,7 @@ class Stack(NdMapping):
-class Layout(param.Parameterized):
+class Layout(param.Parameterized, Dimensional):
"""
A Layout provides a convenient container... | Made Layout a Dimensional object and fixed deep indexing | py |
diff --git a/import_export/widgets.py b/import_export/widgets.py
index <HASH>..<HASH> 100644
--- a/import_export/widgets.py
+++ b/import_export/widgets.py
@@ -118,13 +118,13 @@ class BooleanWidget(Widget):
class BooleanExample(resources.ModelResource):
warn = fields.Field(widget=widgets.BooleanWid... | Fix example in BooleanWidget docs (#<I>) - Fix wrong function name `before_row_import` to `before_import_row` in BooleanWidget's example | py |
diff --git a/afkak/partitioner.py b/afkak/partitioner.py
index <HASH>..<HASH> 100644
--- a/afkak/partitioner.py
+++ b/afkak/partitioner.py
@@ -24,7 +24,12 @@ try:
murmur2_hash = murmur2_hash_c
except ImportError: # pragma: no cover
- warnings.warn("Import of murmur failed, using pure python", ImportWarning)... | Don't warn about pure-python murmur on PyPy. On PyPy, it's preferred. | py |
diff --git a/project_generator/project.py b/project_generator/project.py
index <HASH>..<HASH> 100644
--- a/project_generator/project.py
+++ b/project_generator/project.py
@@ -19,7 +19,7 @@ import logging
import operator
from collections import defaultdict
-from .tool import build, export, flash, ToolsSupported
+fro... | solution to fixup_executable | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
'Operating System :: OS Independent',
],
long_description=open('README.rst').read(),
- install_requires=['sorl-thumbnail==11.12',],
+ install_requires=['sorl-thumbnail==12.2',],
... | Updated sorl-thumbnail req | py |
diff --git a/tests/test_choice_tools.py b/tests/test_choice_tools.py
index <HASH>..<HASH> 100644
--- a/tests/test_choice_tools.py
+++ b/tests/test_choice_tools.py
@@ -739,3 +739,32 @@ class ArgumentValidationTests(GenericTestCase):
self.assertRaises(ValueError, func, *args)
return None
+
+ de... | Added a test for the ensure_contiguity_in_observation_rows function. | py |
diff --git a/werkzeug/http.py b/werkzeug/http.py
index <HASH>..<HASH> 100644
--- a/werkzeug/http.py
+++ b/werkzeug/http.py
@@ -869,11 +869,12 @@ def dump_cookie(key, value='', max_age=None, expires=None, path='/',
The parameters are the same as in the cookie Morsel object in the
Python standard library but it... | Reworded a docstring on cookies | py |
diff --git a/tests/test_vpk.py b/tests/test_vpk.py
index <HASH>..<HASH> 100644
--- a/tests/test_vpk.py
+++ b/tests/test_vpk.py
@@ -11,6 +11,11 @@ def mktree(path):
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
+try:
+ _u = unicode
+except:
+ _u = str
+
class testcase_vpk(un... | fix tests failing on py2 | py |
diff --git a/samcli/__init__.py b/samcli/__init__.py
index <HASH>..<HASH> 100644
--- a/samcli/__init__.py
+++ b/samcli/__init__.py
@@ -2,4 +2,4 @@
SAM CLI version
"""
-__version__ = "1.27.2"
+__version__ = "1.28.0" | chore: bump SAM CLI version to <I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@
from setuptools import setup, find_packages
import sys, os
+import io
version = '0.5'
@@ -15,7 +16,7 @@ setup(
name='humanize',
version=version,
description="python humanize utilities",
- ... | Use io.open() in setup.py as open() from py<I> doesn't support the encoding parameter. | py |
diff --git a/yargy/rule/transformators.py b/yargy/rule/transformators.py
index <HASH>..<HASH> 100644
--- a/yargy/rule/transformators.py
+++ b/yargy/rule/transformators.py
@@ -8,7 +8,8 @@ from yargy.dot import (
BLUE,
ORANGE,
RED,
- PURPLE
+ PURPLE,
+ GREEN
)
from .constructors import ( | Recover rule display as DOT graph | py |
diff --git a/junction/futures.py b/junction/futures.py
index <HASH>..<HASH> 100644
--- a/junction/futures.py
+++ b/junction/futures.py
@@ -184,6 +184,21 @@ class Future(object):
parents += other_parents
return after(parents, func)
+ def get(self, timeout=None):
+ '''Get the Future's va... | add Futures.get() as a shortcut for .wait(); .value (like the wait method used to be) | py |
diff --git a/carrot/backends/pystomp.py b/carrot/backends/pystomp.py
index <HASH>..<HASH> 100644
--- a/carrot/backends/pystomp.py
+++ b/carrot/backends/pystomp.py
@@ -166,7 +166,8 @@ class Backend(BaseBackend):
"content-type": content_type}
def publish(self, message, exchange, routing_key, **kwa... | Have to send headers in a special way so stompy.simple.Client.send doesn't cut it. | py |
diff --git a/engineio/async_drivers/tornado.py b/engineio/async_drivers/tornado.py
index <HASH>..<HASH> 100644
--- a/engineio/async_drivers/tornado.py
+++ b/engineio/async_drivers/tornado.py
@@ -14,6 +14,15 @@ def get_tornado_handler(engineio_server):
class Handler(tornado.websocket.WebSocketHandler): # pragma: n... | check for origin in Tornado's WebSocket handler | py |
diff --git a/nbrsessionproxy/handlers.py b/nbrsessionproxy/handlers.py
index <HASH>..<HASH> 100644
--- a/nbrsessionproxy/handlers.py
+++ b/nbrsessionproxy/handlers.py
@@ -67,12 +67,8 @@ class RSessionProxyHandler(SuperviseAndProxyHandler):
def get_cmd(self):
# rsession command. Augmented with user-identit... | Switch to using rserver instead of rsession This seems to handle process supervision better than we do, and also does prefixing properly to get shiny apps to work Shoutout to @cmd-ntrf for <URL> | py |
diff --git a/discord/ext/commands/cooldowns.py b/discord/ext/commands/cooldowns.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/cooldowns.py
+++ b/discord/ext/commands/cooldowns.py
@@ -197,6 +197,9 @@ class _Semaphore:
def locked(self):
return self.value == 0
+ def is_active(self):
+ ... | [commands] Only clean semaphore when there are no waiters | py |
diff --git a/pymatgen/io/xtb/tests/test_outputs.py b/pymatgen/io/xtb/tests/test_outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/xtb/tests/test_outputs.py
+++ b/pymatgen/io/xtb/tests/test_outputs.py
@@ -95,7 +95,8 @@ class TestCRESTOutput(PymatgenTest):
self.assertAlmostEqual(float(r[1]), float... | Babel conditional Added conditional to have babel for check_for_Structure_Changes | py |
diff --git a/examples/storage.py b/examples/storage.py
index <HASH>..<HASH> 100644
--- a/examples/storage.py
+++ b/examples/storage.py
@@ -25,11 +25,14 @@ for d in disks:
print(' Capacity: {}'.format(humanize(disk.size)))
print()
for p in disk.partitions:
- print(' {num}: {lbl} {size} {ptyp... | Improved storage example - Skip extended parts - Show L before logical ones | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -536,10 +536,18 @@ class Remote(LazyMixin, Iterable):
# and: http://stackoverflow.com/a/32991784/548792
#
if 'Unknown subcommand: get-url' in str(ex):
- ... | Update remote.py to fix issue #<I> | py |
diff --git a/scout/server/blueprints/variants/controllers.py b/scout/server/blueprints/variants/controllers.py
index <HASH>..<HASH> 100644
--- a/scout/server/blueprints/variants/controllers.py
+++ b/scout/server/blueprints/variants/controllers.py
@@ -36,9 +36,9 @@ from scout.server.blueprints.variant.utils import (
fr... | did we manage to automerge some vulture suggestions? | py |
diff --git a/jellyfish/test.py b/jellyfish/test.py
index <HASH>..<HASH> 100644
--- a/jellyfish/test.py
+++ b/jellyfish/test.py
@@ -56,6 +56,8 @@ class JellyfishTests(object):
("bc", "abc", 1),
("abc", "acb", 1),
("cape sand recycling ", "edith ann graham", 17),
+ ... | failing test from #<I> as well | py |
diff --git a/libact/query_strategies/query_by_committee.py b/libact/query_strategies/query_by_committee.py
index <HASH>..<HASH> 100644
--- a/libact/query_strategies/query_by_committee.py
+++ b/libact/query_strategies/query_by_committee.py
@@ -29,7 +29,7 @@ class QueryByCommittee(QueryStrategy):
Attributes
---... | Update query_by_committee.py | py |
diff --git a/tests/test_cdict.py b/tests/test_cdict.py
index <HASH>..<HASH> 100644
--- a/tests/test_cdict.py
+++ b/tests/test_cdict.py
@@ -38,14 +38,14 @@ class TestSet01(object):
assert self.a['A'] == 'a'
def test_02(self):
- with pytest.raises(cdict.UnknownKeyError) as e:
+ with pytest.r... | Fixes for deprecated pytest feature | py |
diff --git a/src/diamond/handler/pubsub.py b/src/diamond/handler/pubsub.py
index <HASH>..<HASH> 100644
--- a/src/diamond/handler/pubsub.py
+++ b/src/diamond/handler/pubsub.py
@@ -156,7 +156,6 @@ class PubsubHandler(Handler):
self.metrics.append(tmp_msg)
-
def _convert_to_pubsub(self, metric):
... | removed extra blank line. pep8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,5 +27,5 @@ setup(
zip_safe=False,
packages=["jsonrpcclient"],
url="https://github.com/explodinglabs/jsonrpcclient",
- version="4.0.0-dev3",
+ version="4.0.0-dev4",
) | Prepare dev4 (#<I>) | py |
diff --git a/spyder/preferences/languageserver.py b/spyder/preferences/languageserver.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/languageserver.py
+++ b/spyder/preferences/languageserver.py
@@ -292,6 +292,10 @@ class LSPServerEditor(QDialog):
if language is not None:
self.form_status(... | Preferences: Set LSP editor stdio and external options when the dialog is created | py |
diff --git a/yowsup/layers/axolotl/layer_receive.py b/yowsup/layers/axolotl/layer_receive.py
index <HASH>..<HASH> 100644
--- a/yowsup/layers/axolotl/layer_receive.py
+++ b/yowsup/layers/axolotl/layer_receive.py
@@ -160,7 +160,7 @@ class AxolotlReceivelayer(AxolotlBaseLayer):
print([s for s in serializedDat... | [feat] raise InvalidMessageException if empty msg Previously used to raise a ValueError which is not caught anywhere and crashes the instance. Throwing an InvalidMessageException on the other hand is caught and a retry receipt will be sent. | py |
diff --git a/PBB_Core.py b/PBB_Core.py
index <HASH>..<HASH> 100755
--- a/PBB_Core.py
+++ b/PBB_Core.py
@@ -394,7 +394,8 @@ class WDItemEngine(object):
elif stat == i:
match.append(True)
setattr(i, 'retain', '')
- delattr(i, 'r... | small fix for handling multiple exactly equal values | py |
diff --git a/salt/modules/serverdensity_device.py b/salt/modules/serverdensity_device.py
index <HASH>..<HASH> 100644
--- a/salt/modules/serverdensity_device.py
+++ b/salt/modules/serverdensity_device.py
@@ -5,13 +5,13 @@ Wrapper around Server Density API
.. versionadded:: 2014.7.0
'''
-from __future__ import absolu... | List call not needed. Changing it back to what it was | py |
diff --git a/versioneer.py b/versioneer.py
index <HASH>..<HASH> 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -896,6 +896,7 @@ class cmd_version(Command):
class cmd_build_py(_build_py):
def run(self):
versions = get_versions(verbose=True)
+ _build_py.run(self)
# now locate _version.py... | Fix versioneer with setuptools again. | py |
diff --git a/cherrypy/test/test_static.py b/cherrypy/test/test_static.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_static.py
+++ b/cherrypy/test/test_static.py
@@ -30,8 +30,11 @@ class StaticTest(helper.CPWebCase):
def setup_server():
if not os.path.exists(has_space_filepath):
open... | Extract variable for nicer indentation | py |
diff --git a/furious/context/context.py b/furious/context/context.py
index <HASH>..<HASH> 100644
--- a/furious/context/context.py
+++ b/furious/context/context.py
@@ -64,11 +64,12 @@ class Context(object):
"""
def __init__(self, **options):
self._tasks = []
+ self._task_ids = []
+ self.... | Add a task id list to context Add a list to hold the task ids that are added to a context. This list will be used in order to check for completed and incomplete jobs. | py |
diff --git a/saltcloud/utils/__init__.py b/saltcloud/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/saltcloud/utils/__init__.py
+++ b/saltcloud/utils/__init__.py
@@ -178,7 +178,7 @@ def wait_for_passwd(host, port=22, timeout=900, username='root',
def deploy_script(host, port=22, timeout=900, username='root',
... | Force paramiko to display stdout as it comes down the pipe | py |
diff --git a/OpenSSL/_util.py b/OpenSSL/_util.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/_util.py
+++ b/OpenSSL/_util.py
@@ -8,6 +8,13 @@ lib = binding.lib
def text(charp):
+ """
+ Get a native string type representing of the given CFFI ``char*`` object.
+
+ :param charp: A C-style string represented us... | Give this new top-level function a docstring. | py |
diff --git a/wikidataintegrator/wdi_core.py b/wikidataintegrator/wdi_core.py
index <HASH>..<HASH> 100755
--- a/wikidataintegrator/wdi_core.py
+++ b/wikidataintegrator/wdi_core.py
@@ -1493,14 +1493,11 @@ class WDItemEngine(object):
'baserevid': revision,
'bot': True
}
-
header... | add function delete statement to remove a statement based on its id | py |
diff --git a/bcbio/pipeline/fastq.py b/bcbio/pipeline/fastq.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/fastq.py
+++ b/bcbio/pipeline/fastq.py
@@ -14,6 +14,10 @@ def get_fastq_files(item):
"""
assert "files" in item, "Did not find `files` in input; nothing to process"
ready_files = []
+ should... | Do not gzip fastqs for bowtie | py |
diff --git a/RashlyOutlaid/libwhois.py b/RashlyOutlaid/libwhois.py
index <HASH>..<HASH> 100644
--- a/RashlyOutlaid/libwhois.py
+++ b/RashlyOutlaid/libwhois.py
@@ -24,7 +24,7 @@ furnished to do so, subject to the following conditions:
import socket
from collections import namedtuple
-ASNRecord = namedtuple("ASNRecor... | Shadowserver no longer provide a "domain" field in results | py |
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/tests/utils/helpers.py
+++ b/tests/utils/helpers.py
@@ -162,7 +162,9 @@ def assertDictAlmostEqual(test_case, expected, actual):
:type expected: dict
:type actual: dict
"""
- test_case.assertEqual(expected.ke... | fixed a few minor bugs in helpers | py |
diff --git a/qface/generator.py b/qface/generator.py
index <HASH>..<HASH> 100644
--- a/qface/generator.py
+++ b/qface/generator.py
@@ -193,8 +193,10 @@ class RuleGenerator(Generator):
self.context.update(context)
self.context.update(rule.get('context', {}))
self.destination = rule.get('destin... | Added preserve options to rule generator yaml format. You need to enlist the target document in the preserve line to withc on the preserve option of the generator for the document. | py |
diff --git a/vyked/bus.py b/vyked/bus.py
index <HASH>..<HASH> 100644
--- a/vyked/bus.py
+++ b/vyked/bus.py
@@ -314,7 +314,7 @@ class Bus:
if self._tcp_host:
setproctitle('{}_{}_{}'.format(self._tcp_host.app_name, self._tcp_host.name, self._tcp_host.version))
elif self._http_host:
- ... | Fix bug where http host crashed upon starting | py |
diff --git a/automat/_methodical.py b/automat/_methodical.py
index <HASH>..<HASH> 100644
--- a/automat/_methodical.py
+++ b/automat/_methodical.py
@@ -78,7 +78,7 @@ class MethodicalInput(object):
automaton = attr.ib(repr=False)
method = attr.ib()
symbol = attr.ib(repr=False)
- collectors = attr.ib(def... | Exclude MethodicalInput.collectors from repr | py |
diff --git a/benchexec/tools/ultimate.py b/benchexec/tools/ultimate.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/ultimate.py
+++ b/benchexec/tools/ultimate.py
@@ -72,7 +72,7 @@ class UltimateTool(benchexec.tools.template.BaseTool):
status = result.RESULT_UNKNOWN
break
... | again, less information for the error case (some people care about tables instead of error grouping) | py |
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py
index <HASH>..<HASH> 100644
--- a/jsonschema/tests/_suite.py
+++ b/jsonschema/tests/_suite.py
@@ -72,11 +72,12 @@ class Version(object):
name = attr.ib()
def benchmark(self, runner): # pragma: no cover
- for test in self.tests():
-... | Cowboy code fixing benchmarking. Refs: #<I>. Naming sucks. | py |
diff --git a/glinda/testing/services.py b/glinda/testing/services.py
index <HASH>..<HASH> 100644
--- a/glinda/testing/services.py
+++ b/glinda/testing/services.py
@@ -306,7 +306,7 @@ class Service(object):
for request in self._requests[resource]:
yield request
else:
- r... | testing.services: Fix some <I> nits. | py |
diff --git a/homely/general.py b/homely/general.py
index <HASH>..<HASH> 100644
--- a/homely/general.py
+++ b/homely/general.py
@@ -36,7 +36,8 @@ def include(pyscript):
with entersection("/" + pyscript):
_loadmodule(name, path)
except Exception as err:
- warn("Error while including {}: ... | homely.general: include() is a bit better at reporting on exceptions encountered | py |
diff --git a/bin/cache_gc.py b/bin/cache_gc.py
index <HASH>..<HASH> 100755
--- a/bin/cache_gc.py
+++ b/bin/cache_gc.py
@@ -36,10 +36,8 @@ oqpath.set_oq_path()
from openquake import job
from openquake import kvs
-from openquake import logs
from openquake.utils import config
-LOG = logs.LOG
SHORT_ARGS = 'hlj:'
... | bin/cache_gc.py uses job-specific logger | py |
diff --git a/inspire_schemas/builders.py b/inspire_schemas/builders.py
index <HASH>..<HASH> 100644
--- a/inspire_schemas/builders.py
+++ b/inspire_schemas/builders.py
@@ -170,7 +170,7 @@ class LiteratureBuilder(object):
self.set_citeable(True)
@filter_empty_parameters
- def add_doi(self, doi, source=... | builder: add support for `dois.material` field * Adds: support for `dois.material` field. Closes #<I> | py |
diff --git a/GPflow/mean_functions.py b/GPflow/mean_functions.py
index <HASH>..<HASH> 100644
--- a/GPflow/mean_functions.py
+++ b/GPflow/mean_functions.py
@@ -64,6 +64,7 @@ class Additive(MeanFunction):
class Product(MeanFunction):
def __init__(self, first_part, second_part):
MeanFunction.__init__(self)
... | compostional meanfunctions precedence test added - test failing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
Run "python3 setup --help-commands" to list all available commands and their
descriptions.
"""
+import os
import sys
from subprocess import call
from setuptools import Command, find_packages, setup
@@ -10,6 ... | Improving setup.py clean command | py |
diff --git a/django_qbe/savedqueries/admin.py b/django_qbe/savedqueries/admin.py
index <HASH>..<HASH> 100644
--- a/django_qbe/savedqueries/admin.py
+++ b/django_qbe/savedqueries/admin.py
@@ -1,7 +1,11 @@
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from django.... | Fix savedqueries support for Django <I>+ | py |
diff --git a/pycm/pycm_util.py b/pycm/pycm_util.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_util.py
+++ b/pycm/pycm_util.py
@@ -522,7 +522,7 @@ def axes_gen(
def polevl(x, coefs, n):
"""
- Evaluates polynomial of degree n.
+ Evaluate polynomial of degree n.
:param x: polynomial variable
:ty... | doc : minor edit in docstrings | py |
diff --git a/spdx/parsers/jsonyamlxml.py b/spdx/parsers/jsonyamlxml.py
index <HASH>..<HASH> 100644
--- a/spdx/parsers/jsonyamlxml.py
+++ b/spdx/parsers/jsonyamlxml.py
@@ -1178,6 +1178,10 @@ class PackageParser(BaseParser):
elif pkg_license_comment is not None:
self.value_error('PKG_LIC_COMMENT', p... | Format source code This is mostly trimming extra white spaces. | py |
diff --git a/quickbooks/objects/detailline.py b/quickbooks/objects/detailline.py
index <HASH>..<HASH> 100644
--- a/quickbooks/objects/detailline.py
+++ b/quickbooks/objects/detailline.py
@@ -183,6 +183,7 @@ class AccountBasedExpenseLineDetail(QuickbooksBaseObject):
self.CustomerRef = None
self.Account... | Fixed issue with AccountBasedExpenseLineDetail in detaillne.py | py |
diff --git a/testrail/case.py b/testrail/case.py
index <HASH>..<HASH> 100644
--- a/testrail/case.py
+++ b/testrail/case.py
@@ -106,6 +106,12 @@ class Case(TestRailBase):
s = self.api.suite_with_id(self._content.get('suite_id'))
return Suite(s) if s else Suite()
+ @suite.setter
+ def suite(self... | create setter for suite (#<I>) create setter for suite in case | py |
diff --git a/belpy/biopax/biopax_api.py b/belpy/biopax/biopax_api.py
index <HASH>..<HASH> 100644
--- a/belpy/biopax/biopax_api.py
+++ b/belpy/biopax/biopax_api.py
@@ -1,5 +1,4 @@
import sys
-import ipdb
from processor import BiopaxProcessor | Removed spurious ipdb import from biopax_api This was breaking the travis build. | py |
diff --git a/httpony/application.py b/httpony/application.py
index <HASH>..<HASH> 100644
--- a/httpony/application.py
+++ b/httpony/application.py
@@ -18,6 +18,13 @@ def make_app():
server = 'HTTPony/{0}'.format(__version__)
def application(environ, start_response):
+ # The WSGI server puts content l... | Delete CONTENT_LENGTH and CONTENT_TYPE if empty. For some reason, the WSGI server puts these things in the environment even when they were not in the request. Their presence messes up the output in those cases. | py |
diff --git a/extension/setup.py b/extension/setup.py
index <HASH>..<HASH> 100755
--- a/extension/setup.py
+++ b/extension/setup.py
@@ -56,7 +56,7 @@ setup(name='genepattern-notebook',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: BSD License',
'Progra... | Updated framework to new Jupyter descriptor | py |
diff --git a/rest_framework_gis/utils.py b/rest_framework_gis/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_gis/utils.py
+++ b/rest_framework_gis/utils.py
@@ -1,5 +1 @@
-try:
- from collections import OrderedDict # noqa
-# python 2.6
-except ImportError: # pragma: no cover
- from ordereddict import ... | removed py<I> compat | py |
diff --git a/plenum/test/cli/test_save_and_restore_wallet.py b/plenum/test/cli/test_save_and_restore_wallet.py
index <HASH>..<HASH> 100644
--- a/plenum/test/cli/test_save_and_restore_wallet.py
+++ b/plenum/test/cli/test_save_and_restore_wallet.py
@@ -1,4 +1,5 @@
import pytest
+
from plenum.cli.cli import Exit, Cli
f... | Disabled the test testSaveAndRestoreWallet that failed on Windows Server <I> on GoCD. (#<I>) | py |
diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_link.py
+++ b/MAVProxy/modules/mavproxy_link.py
@@ -17,6 +17,8 @@ class LinkModule(mp_module.MPModule):
super(LinkModule, self).__init__(mpstate, "link", "link control"... | link: allow addition of additional types not to forward | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -2184,6 +2184,7 @@ class Environment(dict):
# "import time" may override the time system program
whitelist = set([
"Command",
+ "RunningCommand",
"CommandNotFound",
"DEFAULT_ENCODING",
... | make RunningCommand accessible from the outside world | py |
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/core.py
+++ b/gwpy/timeseries/core.py
@@ -771,17 +771,18 @@ class TimeSeriesBaseDict(OrderedDict):
end='\r')
if i == nsteps:
gprint('... | TimeSeriesBaseDict.fetch: fixed bug in pad segments This commit fixes a bug whereby a multi-segment fetch (via `pad=xxx`) would raise a ValueError | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -124,6 +124,10 @@ setup(
include_package_data=True,
# Because we are including non-python data files, it cannot be compressed
zip_safe=False,
+ # Because Exhale hooks into / generates *BEFORE* any reading or ... | insofar as I understand, Exhale is parallel safe though I believe most html themes are not, so it may not even matter | py |
diff --git a/bcbio/heterogeneity/chromhacks.py b/bcbio/heterogeneity/chromhacks.py
index <HASH>..<HASH> 100644
--- a/bcbio/heterogeneity/chromhacks.py
+++ b/bcbio/heterogeneity/chromhacks.py
@@ -16,7 +16,7 @@ def is_autosomal(chrom):
return True
except ValueError:
try:
- int(str(chrom.... | SV: correctly identify standard chromosomes in alternative genomes Avoids filtering chromosome names like Chr_<I>, Chr_<I>. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.