diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/SoftLayer/CLI/routes.py b/SoftLayer/CLI/routes.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/routes.py
+++ b/SoftLayer/CLI/routes.py
@@ -47,6 +47,7 @@ ALL_ROUTES = [
('config', 'SoftLayer.CLI.config'),
('config:setup', 'SoftLayer.CLI.config.setup:cli'),
('config:show', 'SoftLayer.CLI.co... | Adds `sl setup` command Now you just have to remember `sl setup` to set up the command line client. | py |
diff --git a/restclients/dao_implementation/libraries.py b/restclients/dao_implementation/libraries.py
index <HASH>..<HASH> 100644
--- a/restclients/dao_implementation/libraries.py
+++ b/restclients/dao_implementation/libraries.py
@@ -41,6 +41,10 @@ class Live(object):
settings.RESTCLIENTS_LIBRARIES_KE... | Adding rr support for the libraries | py |
diff --git a/examples/entity_info.py b/examples/entity_info.py
index <HASH>..<HASH> 100644
--- a/examples/entity_info.py
+++ b/examples/entity_info.py
@@ -38,13 +38,17 @@ class ServerInfo(Example):
self.argparse.add_argument(
"target_entity",
- type=jid
+ default=None,
+ ... | Allow to query the account in entity_info.py example | py |
diff --git a/services/managers/discord_manager.py b/services/managers/discord_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/discord_manager.py
+++ b/services/managers/discord_manager.py
@@ -218,7 +218,8 @@ class DiscordManager:
username_clean = DiscordManager.__sanatize_username(username)
... | Deletes invites once user registered as Discord ignores max_age right now. | py |
diff --git a/sentinelsat/scripts/cli.py b/sentinelsat/scripts/cli.py
index <HASH>..<HASH> 100644
--- a/sentinelsat/scripts/cli.py
+++ b/sentinelsat/scripts/cli.py
@@ -66,7 +66,7 @@ def search(user, password, geojson, start, end, download, check, footprints, pat
size_total = 0
for product in api.get_pr... | bugfix in reported filesize Filesizes are reported as float, not int. | py |
diff --git a/demo/MINDCUB3R/rubiks.py b/demo/MINDCUB3R/rubiks.py
index <HASH>..<HASH> 100755
--- a/demo/MINDCUB3R/rubiks.py
+++ b/demo/MINDCUB3R/rubiks.py
@@ -31,6 +31,8 @@ class Rubiks(object):
hold_cube_pos = 85
rotate_speed = 400
+ flip_speed = 300
+ flip_speed_push = 400
corner_to_edge_diff =... | MINDCUB3R added flip_speed and flip_speed_push | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,27 +22,25 @@ install_requires = ['dimod>=0.6.10,<0.7.0',
'dwave-networkx>=0.6.0,<0.7.0',
'homebase>=1.0.0,<2.0.0',
'minorminer>=0.1.3,<0.2.0',
- ... | Fix package list in setup.py | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1798,6 +1798,7 @@ class Referer(object):
'al',
'ao',
'az',
+ 'bd',
'gr',
'np',
'pa',
@@ -2572,7 +2573,7 @@ if __name... | Introduction of `bd` into the list of ignored extensions cf: Whois lookup to <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,10 +24,10 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.4',
... | setup.py: Add support for Python <I> | py |
diff --git a/fedmsg/core.py b/fedmsg/core.py
index <HASH>..<HASH> 100644
--- a/fedmsg/core.py
+++ b/fedmsg/core.py
@@ -17,6 +17,8 @@
#
# Authors: Ralph Bean <rbean@redhat.com>
#
+
+import getpass
import inspect
import socket
import threading
@@ -258,7 +260,13 @@ class FedMsgContext(object):
topic = ... | Include the username of the owner of the current process in every fedmsg message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
],
keywords='mangopay api development emoney sdk',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
- install_requires=['requests', 'simplejson', 'blinker', 'six' ],
+ i... | Add pytz as a required in setup.py See #<I> | py |
diff --git a/tests/integration/modules/sysmod.py b/tests/integration/modules/sysmod.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/sysmod.py
+++ b/tests/integration/modules/sysmod.py
@@ -59,6 +59,7 @@ class SysModuleTest(integration.ModuleCase):
"user" module
'''
mods = self.r... | Tighten up test_list_modules_with_arg: should include "assertNotIn" too | py |
diff --git a/pysnmp/proto/mpmod/rfc3412.py b/pysnmp/proto/mpmod/rfc3412.py
index <HASH>..<HASH> 100644
--- a/pysnmp/proto/mpmod/rfc3412.py
+++ b/pysnmp/proto/mpmod/rfc3412.py
@@ -129,7 +129,8 @@ class SnmpV3MessageProcessingModel(AbstractMessageProcessingModel):
snmpEngineMaxMessageSize, = snmpEngine.msgAndPdu... | ugly hack: coerce MIB value as it has incompatible constraints set (need re-work) | py |
diff --git a/stomp/transport.py b/stomp/transport.py
index <HASH>..<HASH> 100644
--- a/stomp/transport.py
+++ b/stomp/transport.py
@@ -756,8 +756,9 @@ class Transport(BaseTransport):
need_ssl = self.__need_ssl(host_and_port)
if need_ssl: # wrap socket
- ... | disable ssl cert check if there's a client cert | py |
diff --git a/tests/unit/states/test_loop.py b/tests/unit/states/test_loop.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_loop.py
+++ b/tests/unit/states/test_loop.py
@@ -300,7 +300,7 @@ class LoopTestCaseNoEval(TestCase, LoaderModuleMockMixin):
'comment': 'Timed out while waiting for cond... | Increase interval and timeout once more for slow windows machines | py |
diff --git a/pysatCDF/_cdf.py b/pysatCDF/_cdf.py
index <HASH>..<HASH> 100644
--- a/pysatCDF/_cdf.py
+++ b/pysatCDF/_cdf.py
@@ -539,6 +539,7 @@ class CDF(object):
try:
chars.append(d.astype('U'))
except UnicodeDecodeError:
+ ... | Apply suggestions from code review adding comment to _cdf.py | py |
diff --git a/rogue_geonode/views.py b/rogue_geonode/views.py
index <HASH>..<HASH> 100644
--- a/rogue_geonode/views.py
+++ b/rogue_geonode/views.py
@@ -52,6 +52,9 @@ def proxy(request):
if request.method in ("POST", "PUT") and "CONTENT_TYPE" in request.META:
headers["Content-Type"] = request.META["CONTENT_... | Pass the 'ACCEPT' header to the proxy request | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -154,3 +154,23 @@ def subst_vars (str, local_vars):
# subst_vars ()
+def grok_environment_error (exc, prefix="error: "):
+ """Generate a useful error message from an EnvironmentError (IOError or
+ OSError) exception obj... | Added 'grok_environment_error()' function to deal with the various forms that IOError and OSError can take (taken from core.py). | py |
diff --git a/pymatgen/entries/computed_entries.py b/pymatgen/entries/computed_entries.py
index <HASH>..<HASH> 100644
--- a/pymatgen/entries/computed_entries.py
+++ b/pymatgen/entries/computed_entries.py
@@ -498,10 +498,6 @@ class ComputedEntry(Entry):
if self is other:
return True
- # if ... | merge: remove merge conflict not detected by git | py |
diff --git a/overrides/overrides.py b/overrides/overrides.py
index <HASH>..<HASH> 100644
--- a/overrides/overrides.py
+++ b/overrides/overrides.py
@@ -58,8 +58,14 @@ def overrides(method):
"""
for super_class in _get_base_classes(sys._getframe(2), method.__globals__):
if hasattr(super_class, method._... | I forgot the most important part :( | py |
diff --git a/tapioca/tapioca.py b/tapioca/tapioca.py
index <HASH>..<HASH> 100755
--- a/tapioca/tapioca.py
+++ b/tapioca/tapioca.py
@@ -61,7 +61,7 @@ class TapiocaClient(object):
resource_mapping = self._api.resource_mapping
if name in resource_mapping:
resource = resource_mapping[name]
- ... | Fix broken tests, make resources work with or without slash | py |
diff --git a/salt/states/linux_acl.py b/salt/states/linux_acl.py
index <HASH>..<HASH> 100644
--- a/salt/states/linux_acl.py
+++ b/salt/states/linux_acl.py
@@ -56,7 +56,7 @@ def present(name, acl_type, acl_name='', perms='', recurse=False):
'changes': {},
'comment': ''}
- _octal = {'r': 4, '... | linux_acl: Allow '-' as a separation character in ACL permissions. Fixes #<I> (#<I>) (#<I>) This allows using acl states with things like '- perms: r-x' or '- perms: r--', which also works when manually setting ACL's using setfacl. | py |
diff --git a/sniffer/scanner/base.py b/sniffer/scanner/base.py
index <HASH>..<HASH> 100644
--- a/sniffer/scanner/base.py
+++ b/sniffer/scanner/base.py
@@ -211,11 +211,11 @@ class PollingScanner(BaseScanner):
self.log("""
No supported libraries found: using polling-method.
-You may want to install a third-pa... | Edited the log message to be a bit more description (and friendly). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
author_email = 'help@logdna.com',
license = 'MIT',
url = 'https://github.com/logdna/python',
- download_url = 'https://github.com/logdna/python/tarball/1.4.2',
+ download_url = ('https://github... | change the url as well (#<I>) | py |
diff --git a/salt/modules/boto_route53.py b/salt/modules/boto_route53.py
index <HASH>..<HASH> 100644
--- a/salt/modules/boto_route53.py
+++ b/salt/modules/boto_route53.py
@@ -340,6 +340,37 @@ def create_zone(zone, private=False, vpc_id=None, vpc_region=None, region=None,
return True
+def create_healtcheck(ip_a... | Add health check support to Route<I> | py |
diff --git a/pandas/tests/arrays/test_array.py b/pandas/tests/arrays/test_array.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/arrays/test_array.py
+++ b/pandas/tests/arrays/test_array.py
@@ -291,7 +291,7 @@ class DecimalArray2(DecimalArray):
@classmethod
def _from_sequence(cls, scalars, dtype=None, copy=F... | Added in a error message (#<I>) | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,7 +1,7 @@
from mock import patch, MagicMock
from unittest import TestCase
-from django_mock_queries import utils, constants
+from django_mock_queries import utils, constants, ... | added tests so getattr(model, 'bad_field', None) is still valid | py |
diff --git a/automation.py b/automation.py
index <HASH>..<HASH> 100644
--- a/automation.py
+++ b/automation.py
@@ -2520,7 +2520,7 @@ class RangeValuePattern():
'''Return bool'''
return _automationClient.dll.GetElementPattern(self.Element, PatternId.UIA_RangeValuePatternId) != 0
- def CurrentValue... | rename RangeValuePattern's methods | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -7,7 +7,6 @@ Set up the version of Salt
from __future__ import absolute_import, print_function, unicode_literals
import re
import sys
-import locale
import platform
# linux_distribution depre... | Change "locale" value in versions-report to use __salt_system_encoding__ locale.getpreferredencoding() may not be equal to it, and we don't use locale.getpreferredencoding() anyway when we perform unicode conversions in salt, we use __salt_system_encoding__. | py |
diff --git a/paramiko/kex_group1.py b/paramiko/kex_group1.py
index <HASH>..<HASH> 100644
--- a/paramiko/kex_group1.py
+++ b/paramiko/kex_group1.py
@@ -140,7 +140,7 @@ class KexGroup1(object):
hm.add_mpint(self.e)
hm.add_mpint(self.f)
hm.add_mpint(K)
- H = sha1(hm.asbytes()).digest()
+ ... | Don't force all algorithms to use sha1 if they don't want to. Fixes #<I> | py |
diff --git a/sievelib/commands.py b/sievelib/commands.py
index <HASH>..<HASH> 100644
--- a/sievelib/commands.py
+++ b/sievelib/commands.py
@@ -498,6 +498,11 @@ class FileintoCommand(ActionCommand):
"values": [":copy"],
"required": False,
"extension": "copy"},
+ {"name": "create",
+ ... | Support fileinto :create (with mailbox capability) Per <URL> | py |
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index <HASH>..<HASH> 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -578,11 +578,13 @@ class Submodule(util.IndexObject, Iterable, Traversable):
base_commit = mrepo.merge_base(mrepo.head.co... | Fix flake8 issue. It's new in the latest version of flake - thanks travis for letting me know. | py |
diff --git a/celeryconfig.py b/celeryconfig.py
index <HASH>..<HASH> 100644
--- a/celeryconfig.py
+++ b/celeryconfig.py
@@ -63,6 +63,8 @@ CELERY_RESULT_BACKEND = "amqp"
# performance issues with respect to cluster utilization.)
CELERY_ACKS_LATE = True
CELERYD_PREFETCH_MULTIPLIER = 1
+# This improves peformances since... | Force disable of RATE_LIMITS to improve performances | py |
diff --git a/xmantissa/publicweb.py b/xmantissa/publicweb.py
index <HASH>..<HASH> 100644
--- a/xmantissa/publicweb.py
+++ b/xmantissa/publicweb.py
@@ -140,7 +140,8 @@ class CustomizingResource(object):
# We never got customized.
if self.currentResource is None:
return rend.FourOhFour()
- ... | Re #<I>: this should let you at least test the template changes. | py |
diff --git a/green/process.py b/green/process.py
index <HASH>..<HASH> 100644
--- a/green/process.py
+++ b/green/process.py
@@ -221,6 +221,7 @@ def poolRunner(test_name, coverage_number=None, omit_patterns=[]): # pragma: no
data_file='.coverage.{}_{}'.format(
coverage_number, rando... | Educated attempt at disabling the annoying 'Coverage.py warning: No data was collected.' warning that coverage likes to omit | py |
diff --git a/eth/db/journal.py b/eth/db/journal.py
index <HASH>..<HASH> 100644
--- a/eth/db/journal.py
+++ b/eth/db/journal.py
@@ -1,5 +1,5 @@
import collections
-from typing import cast, Dict, Union # noqa: F401
+from typing import cast, Dict, Set, Union # noqa: F401
import uuid
from eth_utils.toolz import (
@@... | Add JournalDB.diff() to get all pending changes | py |
diff --git a/peerplaysbase/chains.py b/peerplaysbase/chains.py
index <HASH>..<HASH> 100644
--- a/peerplaysbase/chains.py
+++ b/peerplaysbase/chains.py
@@ -50,7 +50,10 @@ known_chains = {
"chain_id": "7c1c72eb738b3ff1870350f85daca27e2d0f5dd25af27df7475fbd92815e421e",
"core_symbol": "TEST",
"pr... | Adding support for Mint testnet | py |
diff --git a/django_q/models.py b/django_q/models.py
index <HASH>..<HASH> 100644
--- a/django_q/models.py
+++ b/django_q/models.py
@@ -1,4 +1,5 @@
import logging
+from django import get_version
import importlib
from django.core.urlresolvers import reverse
@@ -33,7 +34,6 @@ class Task(models.Model):
@staticm... | determines decode with django version | py |
diff --git a/mautrix/types/crypto.py b/mautrix/types/crypto.py
index <HASH>..<HASH> 100644
--- a/mautrix/types/crypto.py
+++ b/mautrix/types/crypto.py
@@ -79,11 +79,11 @@ class CrossSigningKeys(SerializableAttrs):
@dataclass
class QueryKeysResponse(SerializableAttrs):
- failures: Dict[str, Any]
device_keys:... | Don't require failures in QueryKeysResponse | py |
diff --git a/_pytest/python.py b/_pytest/python.py
index <HASH>..<HASH> 100644
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -844,6 +844,8 @@ def raises(ExpectedException, *args, **kwargs):
""" assert that a code block/function call raises @ExpectedException
and raise a failure exception otherwise.
+ ... | refs #<I>: clarify that the exception info returned by pytest.raises is a py.code.ExceptionInfo() | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -1,6 +1,6 @@
# fmt: off
__title__ = "spacy"
-__version__ = "2.2.0.dev14"
+__version__ = "2.2.0.dev15"
__summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
__uri__ = "https... | Set version to <I>.de<I> | py |
diff --git a/maildir_deduplicate/cli.py b/maildir_deduplicate/cli.py
index <HASH>..<HASH> 100644
--- a/maildir_deduplicate/cli.py
+++ b/maildir_deduplicate/cli.py
@@ -185,6 +185,7 @@ def deduplicate(
@cli.command(short_help='Hash a single mail.')
+# TODO: Deduplicate option definition.
@click.option(
'-i', '... | Should get rid of duplicate definitions. | py |
diff --git a/src/cobra/core/group.py b/src/cobra/core/group.py
index <HASH>..<HASH> 100644
--- a/src/cobra/core/group.py
+++ b/src/cobra/core/group.py
@@ -6,8 +6,6 @@ from __future__ import absolute_import
from warnings import warn
-from six import string_types
-
from cobra.core.dictlist import DictList
from cob... | refactor: remove six usage in group.py | py |
diff --git a/tests/test_http_server.py b/tests/test_http_server.py
index <HASH>..<HASH> 100644
--- a/tests/test_http_server.py
+++ b/tests/test_http_server.py
@@ -538,3 +538,11 @@ class HttpServerProtocolTests(unittest.TestCase):
self.loop.run_until_complete(srv._request_handler)
self.assertTrue(trans... | Improve coverage for aiohttp.server | py |
diff --git a/spikeextractors/extractors/tridesclousextractor/tridesclousextractor.py b/spikeextractors/extractors/tridesclousextractor/tridesclousextractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/tridesclousextractor/tridesclousextractor.py
+++ b/spikeextractors/extractors/tridesclousextractor/t... | Update tridesclousextractor.py | py |
diff --git a/tests/acceptance/conftest.py b/tests/acceptance/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/acceptance/conftest.py
+++ b/tests/acceptance/conftest.py
@@ -29,7 +29,7 @@ def get_span():
'name': 'GET /sample',
'traceId': '17133d482ba4f605',
'localEndpoint': {
- 'i... | Allow any ip in the get_span expected span since it's not deterministic | py |
diff --git a/airflow/contrib/operators/emr_create_job_flow_operator.py b/airflow/contrib/operators/emr_create_job_flow_operator.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/operators/emr_create_job_flow_operator.py
+++ b/airflow/contrib/operators/emr_create_job_flow_operator.py
@@ -34,7 +34,7 @@ class EmrCreate... | AIRFLOW-XXX Fix copy&paste mistake (#<I>) In emr_create_job_flow_operator.py the :type clearly mismatches with the :param name, suggesting a copy&paste mistake. | py |
diff --git a/scripts/constants.py b/scripts/constants.py
index <HASH>..<HASH> 100644
--- a/scripts/constants.py
+++ b/scripts/constants.py
@@ -19,11 +19,11 @@ KUBERNETES_BRANCH = "release-1.5"
# Spec version will be set in downloaded spec and all
# generated code will refer to it.
-SPEC_VERSION = "v1.5.0-beta.3"
+S... | Set versions to snapshot for non-release branches | py |
diff --git a/jarn/mkrelease/confparser.py b/jarn/mkrelease/confparser.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/confparser.py
+++ b/jarn/mkrelease/confparser.py
@@ -12,6 +12,9 @@ class ConfigParser(SafeConfigParser, object):
super(ConfigParser, self).__init__()
self.warnings = []
se... | ConfigParser internals changed in Python <I>. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -31,7 +31,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
-MOCK_MODULES = ['libnacl']
+MOCK_MODULES = ['libnacl.sign']
sys.modules.update((mod_name, Mock()) for mod_na... | Mock libnacl.sign | py |
diff --git a/premailer/__init__.py b/premailer/__init__.py
index <HASH>..<HASH> 100644
--- a/premailer/__init__.py
+++ b/premailer/__init__.py
@@ -1,3 +1,3 @@
from premailer import Premailer, transform
-__version__ = '1.3.0'
+__version__ = '1.4.0' | bumping to version <I> | py |
diff --git a/polyaxon/event_manager/events/user.py b/polyaxon/event_manager/events/user.py
index <HASH>..<HASH> 100644
--- a/polyaxon/event_manager/events/user.py
+++ b/polyaxon/event_manager/events/user.py
@@ -76,7 +76,7 @@ class UserBITBUCKETEvent(Event):
class UserAZUREEvent(Event):
- event_type = USER_AZURE... | Fix Azure event: was interpreted as tuple | py |
diff --git a/dvc/fs/base.py b/dvc/fs/base.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/base.py
+++ b/dvc/fs/base.py
@@ -273,7 +273,7 @@ class FileSystem:
callback: FsspecCallback = DEFAULT_CALLBACK,
**kwargs,
) -> None:
- size = kwargs.get("size")
+ size = kwargs.pop("size")
... | fs: do not pass size to underlying fs.put_file | py |
diff --git a/imgaug/imgaug.py b/imgaug/imgaug.py
index <HASH>..<HASH> 100644
--- a/imgaug/imgaug.py
+++ b/imgaug/imgaug.py
@@ -4249,6 +4249,7 @@ def _interpolate_points(points, nb_steps, closed=True):
def _interpolate_points_by_max_distance(points, max_distance, closed=True):
+ do_assert(max_distance > 0, "max_... | Fix _interpolate_points_by_max_distance(..., closed=False) missing last point | py |
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -307,8 +307,8 @@ class Schedule(object):
seconds += int(data.get('days', 0)) * 86400
elif 'when' in data:
if not _WHEN_SUPP... | Fixing lint issues. | py |
diff --git a/coconut/compiler/compiler.py b/coconut/compiler/compiler.py
index <HASH>..<HASH> 100644
--- a/coconut/compiler/compiler.py
+++ b/coconut/compiler/compiler.py
@@ -233,7 +233,7 @@ def math_funcdef_suite_handle(original, location, tokens):
if len(tokens) < 1:
raise CoconutException("invalid assi... | Fixes assignment function indentation | py |
diff --git a/slither/__main__.py b/slither/__main__.py
index <HASH>..<HASH> 100644
--- a/slither/__main__.py
+++ b/slither/__main__.py
@@ -288,7 +288,7 @@ def parse_args(detector_classes, printer_classes):
default=False)
- group_detector.add_argument('--exclude-detectors',
+ gr... | Rename exclude-detectors -> exclude (close <I>) | py |
diff --git a/route53/connection.py b/route53/connection.py
index <HASH>..<HASH> 100644
--- a/route53/connection.py
+++ b/route53/connection.py
@@ -1,5 +1,6 @@
from lxml import etree
from route53 import xml_parsers, xml_generators
+from route53.exceptions import Route53Error
from route53.transport import RequestsTran... | when we get an error from Route<I>, raise an exception | py |
diff --git a/elasticapm/instrumentation/packages/cassandra.py b/elasticapm/instrumentation/packages/cassandra.py
index <HASH>..<HASH> 100644
--- a/elasticapm/instrumentation/packages/cassandra.py
+++ b/elasticapm/instrumentation/packages/cassandra.py
@@ -44,11 +44,21 @@ class CassandraInstrumentation(AbstractInstrument... | fixed destination issue with old versions of cassandra-driver (<<I>) (#<I>) | py |
diff --git a/gbdxtools/ordering.py b/gbdxtools/ordering.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/ordering.py
+++ b/gbdxtools/ordering.py
@@ -46,6 +46,9 @@ class Ordering:
url = 'https://geobigdata.io/orders/v2/order/'
batch_size = min(100, batch_size)
+
+ if not isinstance(image... | Fixed ordering a single id as a string. | py |
diff --git a/vel/rl/buffers/deque_multi_env_buffer_backend.py b/vel/rl/buffers/deque_multi_env_buffer_backend.py
index <HASH>..<HASH> 100644
--- a/vel/rl/buffers/deque_multi_env_buffer_backend.py
+++ b/vel/rl/buffers/deque_multi_env_buffer_backend.py
@@ -7,9 +7,6 @@ from vel.exceptions import VelException
def take_alo... | Resolved the indexer. | py |
diff --git a/plugins/projector/plugin.py b/plugins/projector/plugin.py
index <HASH>..<HASH> 100644
--- a/plugins/projector/plugin.py
+++ b/plugins/projector/plugin.py
@@ -72,7 +72,7 @@ def _latest_checkpoints_changed(configs, run_path_pairs):
ckpt_path = latest_checkpoint(logdir)
if not ckpt_path:
# Se... | Fix bug when looking for a checkpoint in parent directory. Change: <I> | py |
diff --git a/wal_e/worker/pg/wal_transfer.py b/wal_e/worker/pg/wal_transfer.py
index <HASH>..<HASH> 100644
--- a/wal_e/worker/pg/wal_transfer.py
+++ b/wal_e/worker/pg/wal_transfer.py
@@ -117,7 +117,7 @@ class WalTransferGroup(object):
# time. This is not expected to ever occur except for
... | Add compatibility with gevent <I> A subscriptable sequence is required nowadays to gevent.killall, a mere sequence (like a set) does not suffice. | py |
diff --git a/cumulusci/tasks/anonymous_apex.py b/cumulusci/tasks/anonymous_apex.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/anonymous_apex.py
+++ b/cumulusci/tasks/anonymous_apex.py
@@ -1,6 +1,8 @@
import pprint
from cumulusci.tasks.salesforce import BaseSalesforceToolingApiTask
+from cumulusci.core.except... | throw on anon apex fail | py |
diff --git a/src/pytesseract.py b/src/pytesseract.py
index <HASH>..<HASH> 100755
--- a/src/pytesseract.py
+++ b/src/pytesseract.py
@@ -182,7 +182,7 @@ def run_tesseract(input_filename,
try:
proc = subprocess.Popen(cmd_args, **subprocess_args())
- status_code, error_string = proc.wait(), proc.stde... | Avoid deadlocks while retrieving data from std out/err Fixes #<I> | py |
diff --git a/tests/test_expcm.py b/tests/test_expcm.py
index <HASH>..<HASH> 100644
--- a/tests/test_expcm.py
+++ b/tests/test_expcm.py
@@ -239,7 +239,7 @@ class testExpCM(unittest.TestCase):
for y in range(N_CODON):
diff = scipy.optimize.check_grad(funcM, funcdM, pv... | Slightly relaxed numerical stringency of test Previously, test failed on my laptop even though it passed on server; slightly increased numerical tolerance for values being equal to fix. | py |
diff --git a/spiketoolkit/preprocessing/remove_bad_channels.py b/spiketoolkit/preprocessing/remove_bad_channels.py
index <HASH>..<HASH> 100644
--- a/spiketoolkit/preprocessing/remove_bad_channels.py
+++ b/spiketoolkit/preprocessing/remove_bad_channels.py
@@ -64,6 +64,7 @@ class RemoveBadChannelsRecording(RecordingExtra... | active channels in remove_bad_channels | py |
diff --git a/tests/risk/answer_key.py b/tests/risk/answer_key.py
index <HASH>..<HASH> 100644
--- a/tests/risk/answer_key.py
+++ b/tests/risk/answer_key.py
@@ -67,8 +67,8 @@ def ensure_latest_answer_key():
The xls answer sheet is not kept in SCM, because its size is on the order
of 20MB, and every edit would i... | DOC: Fix typo in xslx format name. | py |
diff --git a/sk_dsp_comm/test/test_imports.py b/sk_dsp_comm/test/test_imports.py
index <HASH>..<HASH> 100644
--- a/sk_dsp_comm/test/test_imports.py
+++ b/sk_dsp_comm/test/test_imports.py
@@ -40,12 +40,6 @@ class TestImports(TestCase):
def test_multirate_helper_import(self):
import sk_dsp_comm.multirate_he... | Optfir module functionality was rewritten into fir_design_helper | py |
diff --git a/scripts/devops_tasks/git_helper.py b/scripts/devops_tasks/git_helper.py
index <HASH>..<HASH> 100644
--- a/scripts/devops_tasks/git_helper.py
+++ b/scripts/devops_tasks/git_helper.py
@@ -30,6 +30,7 @@ EXCLUDED_PACKAGE_VERSIONS = {
'azure-communication-phonenumbers': '1.0.0',
'azure-communication-s... | disable regression testing for beta version of questionanswering (#<I>) | py |
diff --git a/prettyprinter/prettyprinter.py b/prettyprinter/prettyprinter.py
index <HASH>..<HASH> 100644
--- a/prettyprinter/prettyprinter.py
+++ b/prettyprinter/prettyprinter.py
@@ -11,6 +11,7 @@ from traceback import format_exception
from types import (
FunctionType,
BuiltinFunctionType,
+ ModuleType,
... | Handle built in functions that have a __self__ attribute | py |
diff --git a/nestcheck/data_processing.py b/nestcheck/data_processing.py
index <HASH>..<HASH> 100644
--- a/nestcheck/data_processing.py
+++ b/nestcheck/data_processing.py
@@ -506,11 +506,11 @@ def get_birth_inds(birth_logl_arr, logl_arr, **kwargs):
try:
inds_to_use = sample_less_than_condi... | edited error raising to ensure compatibility with python2 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
# urls
url = "https://github.com/Commod0re/PGPy",
- download_url = "https://github.com/Commod0re/PGPy/archive/{pgpy_ver}.tar.gz".format(pgpy_ver=_author.__license__),
+ ... | merged fix for metadata in setup.py [skip ci] | py |
diff --git a/nupic/frameworks/opf/clamodel.py b/nupic/frameworks/opf/clamodel.py
index <HASH>..<HASH> 100644
--- a/nupic/frameworks/opf/clamodel.py
+++ b/nupic/frameworks/opf/clamodel.py
@@ -610,6 +610,11 @@ class CLAModel(Model):
sensor = self._getSensorRegion()
activeColumns = sensor.getOutputData('... | Raises exception when enableInference was not called, or when predicted field missing from input row. | py |
diff --git a/pyemma/util/config.py b/pyemma/util/config.py
index <HASH>..<HASH> 100644
--- a/pyemma/util/config.py
+++ b/pyemma/util/config.py
@@ -181,7 +181,12 @@ False
@property
def show_progress_bars(self):
- return bool(self._conf_values['pyemma']['show_progress_bars'])
+ cfg_val = self._c... | [config] fix type detection because of the hillarious bool('False') is True truth. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name='claripy',
- version='4.5.9.9',
+ version='4.5.9.9b',
packages=['claripy', 'claripy.backends', 'claripy.frontends', 'claripy.vsa', 'claripy.ast'],
... | ticked version number to <I> | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -654,10 +654,13 @@ class CliProduct(object):
# image plots don't have legends
if not self.is_image():
- self.ax.legend(prop={'size': 10})
+... | gwpy/cli/cliproduct.py: applied Duncan's patch for MPL <I> | py |
diff --git a/claripy/backends/backend_z3.py b/claripy/backends/backend_z3.py
index <HASH>..<HASH> 100644
--- a/claripy/backends/backend_z3.py
+++ b/claripy/backends/backend_z3.py
@@ -188,11 +188,13 @@ class BackendZ3(SolverBackend):
def _abstract_internal(self, ctx, ast, split_on=None):
self.check_downsiz... | Disabled z3 AST caching since there are too many hash collisions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
setup( name = 'noseOfYeti'
- , version = "1.1"
+ , version = "1.2"
, classifiers=[ 'Intended Audience :: Developers'
, 'Programming Language :: Py... | bumping release version for new sphinx plugin | py |
diff --git a/eqcorrscan/tests/lag_calc_test.py b/eqcorrscan/tests/lag_calc_test.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/tests/lag_calc_test.py
+++ b/eqcorrscan/tests/lag_calc_test.py
@@ -17,6 +17,8 @@ from eqcorrscan.core.template_gen import from_sfile
from eqcorrscan.core.match_filter import normxcorr2, Detec... | Debug failing lag_calc test (#<I>) * Debug failing lag_calc test For some reason test_bad_interp only raises one warning on travis, but two locally - attempt to debug * Force always warn for these tests | py |
diff --git a/synapse/tools/feed.py b/synapse/tools/feed.py
index <HASH>..<HASH> 100644
--- a/synapse/tools/feed.py
+++ b/synapse/tools/feed.py
@@ -89,9 +89,6 @@ def main(argv, outp=None):
with s_common.getTempDir() as dirn:
- s_common.yamlsave({'layer:lmdb:mapsize': s_const.gibibyte * 5},
- ... | Remove mapsize note in feed.py since we no longer need to pre-set that value. | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -603,7 +603,10 @@ def system_information():
if lin_ver[0]:
return ' '.join(lin_ver)
elif mac_ver[0]:
- return ' '.join([mac_ver[0], '-'.join(mac_ver[1]), ma... | version: return mac_ver[2] only if it's defined | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -26,9 +26,6 @@ def create_lock_tasks(lock, *modes):
async def mutate_tasks_in_sequence(task_states, *funcs):
history = []
- async def null(_):
- pass
-
for func in funcs + (null, ):
await asyncio.sl... | (tests) Cancellation needs another yield | py |
diff --git a/pancloud/directorysync.py b/pancloud/directorysync.py
index <HASH>..<HASH> 100644
--- a/pancloud/directorysync.py
+++ b/pancloud/directorysync.py
@@ -44,7 +44,7 @@ class DirectorySyncService(object):
', '.join('%s=%r' % x for x in self.kwargs.items())
)
- def attributes(self, **k... | Add '# pragma: no cover' to exclude from tests | py |
diff --git a/mutagen/mp4.py b/mutagen/mp4.py
index <HASH>..<HASH> 100644
--- a/mutagen/mp4.py
+++ b/mutagen/mp4.py
@@ -198,6 +198,15 @@ class MP4Tags(Metadata):
'egid' -- podcast episode GUID
'catg' -- podcast category
'keyw' -- podcast keywords
+ '\xa9too' -- encoded by
+ 'cprt... | Add iTunes <I> atoms (+ 2 older ones which were missing) to the list. | py |
diff --git a/unit_tests.py b/unit_tests.py
index <HASH>..<HASH> 100644
--- a/unit_tests.py
+++ b/unit_tests.py
@@ -543,12 +543,13 @@ class ServicesSendTransactionTest(unittest.TestCase):
return send_to_address(
self.recipient_address, 1000, self.private_key, client)
+ """
def test_send_t... | disabled chain_com send tx test | py |
diff --git a/src/radical/entk/execman/rp/resource_manager.py b/src/radical/entk/execman/rp/resource_manager.py
index <HASH>..<HASH> 100644
--- a/src/radical/entk/execman/rp/resource_manager.py
+++ b/src/radical/entk/execman/rp/resource_manager.py
@@ -232,9 +232,6 @@ class ResourceManager(Base_ResourceManager):
... | set pilot cancellation through session close (which will trigger pmgr close) | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -1553,10 +1553,13 @@ class TimeSlideTable(table.Table):
by the rows having the given ID.
"""
d = {}
- for row in self.dict[id]:
- if row.instrument in... | Remove uses of the Table class' "dict" attribute. Hopefully I can kill this thing off... | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -36,10 +36,6 @@ def create_local_copy(cookie_file):
This is necessary in case this database is still being written to while the user browses
to avoid sqlite locking errors.
"""
- # if type of cook... | Fix crash in the abscence of Chrome or its cookies (#<I>) * Fix crash in the abscence of Chrome or its cookies | py |
diff --git a/html5css3/__init__.py b/html5css3/__init__.py
index <HASH>..<HASH> 100644
--- a/html5css3/__init__.py
+++ b/html5css3/__init__.py
@@ -441,17 +441,20 @@ class HTMLTranslator(nodes.NodeVisitor):
pass
def visit_title(self, node, sub=0):
- heading = HEADINGS.get(self.title_level + sub, H... | set table title as caption instead of heading | py |
diff --git a/acceptancetests/jujupy/status.py b/acceptancetests/jujupy/status.py
index <HASH>..<HASH> 100644
--- a/acceptancetests/jujupy/status.py
+++ b/acceptancetests/jujupy/status.py
@@ -297,8 +297,15 @@ class Status:
def get_unit(self, unit_name):
"""Return metadata about a unit."""
for name... | Change Status.get_unit to find subordinates Since subordinate units don't hang off their application but off their principal unit, get_unit wasn't finding them. Make it also check the subordinates of each unit. | py |
diff --git a/stmpy/__init__.py b/stmpy/__init__.py
index <HASH>..<HASH> 100644
--- a/stmpy/__init__.py
+++ b/stmpy/__init__.py
@@ -184,6 +184,7 @@ class Driver:
except KeyboardInterrupt:
self._logger.debug('Keyboard interrupt detected, stopping driver.')
self._active = False
+ ... | Keyboard interrupt now correctly stops the main loop. | py |
diff --git a/suds/xsd/sxbase.py b/suds/xsd/sxbase.py
index <HASH>..<HASH> 100644
--- a/suds/xsd/sxbase.py
+++ b/suds/xsd/sxbase.py
@@ -436,8 +436,8 @@ class SchemaObject(UnicodeMixin):
def merge(self, other):
"""Merge another object as needed."""
other.qualify()
- for n in ("default", "for... | simplify SchemaObject.merge() This method had `form_qualified` in its list of attributes whose values it attempts to copy over from a referenced schema object, but since that information should never be copied over from referenced elements (both referencing and referenced elements must always be qualified) there is no... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -255,8 +255,7 @@ class build_ext_options:
OS = 'linux'
suffix = '.o'
else:
- #compiler = self.compiler.find_exe("c1.exe")
- compiler = r"C:\Users\appveyor\AppData\Local\... | Remove hard-coded path to compiler for windows | py |
diff --git a/src/nlpia/scripts/google_drive.py b/src/nlpia/scripts/google_drive.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/scripts/google_drive.py
+++ b/src/nlpia/scripts/google_drive.py
@@ -7,7 +7,7 @@ https://stackoverflow.com/a/39225039/623735
import sys
import requests
from tqdm import tqdm
-from .loaders im... | google_drive downloader in scripts | py |
diff --git a/udata/tests/__init__.py b/udata/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/tests/__init__.py
+++ b/udata/tests/__init__.py
@@ -171,12 +171,13 @@ class DBTestMixin(object):
class SearchTestMixin(DBTestMixin):
'''A mixin allowing to optionnaly enable indexation and cleanup after'''
... | Raise ES timeout to <I> seconds for testing | py |
diff --git a/tests/test_tif2geojson.py b/tests/test_tif2geojson.py
index <HASH>..<HASH> 100644
--- a/tests/test_tif2geojson.py
+++ b/tests/test_tif2geojson.py
@@ -82,12 +82,12 @@ class TestTif2geojson(unittest.TestCase):
geojson = tif2geojson(self.fullsample, properties=['title'])
properties = geojson... | Python <I> has no assertIn | py |
diff --git a/kademlia.py b/kademlia.py
index <HASH>..<HASH> 100644
--- a/kademlia.py
+++ b/kademlia.py
@@ -546,7 +546,12 @@ class KademliaProtocol:
token = self.ping(node)
- got_pong = await self.wait_pong(node, token, cancel_token)
+ try:
+ got_pong = await self.wait_pong(node, to... | Handle AlreadyWaiting from wait_pong in bond | py |
diff --git a/salt/wheel/__init__.py b/salt/wheel/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/wheel/__init__.py
+++ b/salt/wheel/__init__.py
@@ -70,10 +70,12 @@ class WheelClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object):
'''
load = kwargs
load['cmd'] = 'wheel'
- s... | Convert wheel to channel interface as well | py |
diff --git a/extractor/variant.py b/extractor/variant.py
index <HASH>..<HASH> 100644
--- a/extractor/variant.py
+++ b/extractor/variant.py
@@ -23,7 +23,7 @@ FS = {
'2': extractor.FRAME_SHIFT_2,
'inv': extractor.FRAME_SHIFT_REVERSE,
'1inv': extractor.FRAME_SHIFT_REVERSE_1,
- '2inv': extractor.FRAME_SHI... | Frame 2 was incidentally called frame 1. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.