diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/Adyen/util.py b/Adyen/util.py
index <HASH>..<HASH> 100644
--- a/Adyen/util.py
+++ b/Adyen/util.py
@@ -32,6 +32,10 @@ def _generate_signing_string(dict_object,hmac_key):
def generate_hpp_sig(dict_object, hmac_key):
+ if 'issuerId' in dict_object:
+ if dict_object['issuerId'] == "":
+ ... | Remove issuerId from dict object if empty. Document this functionality | py |
diff --git a/bw2python/client.py b/bw2python/client.py
index <HASH>..<HASH> 100644
--- a/bw2python/client.py
+++ b/bw2python/client.py
@@ -20,10 +20,16 @@ class Client(object):
handler(response)
elif frame.command == "rslt":
+ finished = frame.getFirstValue("finished")
+
... | Added garbage collection for result handler dicts | py |
diff --git a/filesystemmanager.py b/filesystemmanager.py
index <HASH>..<HASH> 100644
--- a/filesystemmanager.py
+++ b/filesystemmanager.py
@@ -5,6 +5,6 @@ class FileSystemManager:
def extract_archive(self, archive_path, destination_path):
"""Extracts an archive somewhere on the filesystem."""
- t... | Removed open mode for tarfile extraction. | py |
diff --git a/src/kba/pipeline/_local_storage.py b/src/kba/pipeline/_local_storage.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_local_storage.py
+++ b/src/kba/pipeline/_local_storage.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
'''
Provides classes for loading chunk files from local storage and
putting them ou... | adding retries to loading chunk files from local storage | py |
diff --git a/hendrix/services.py b/hendrix/services.py
index <HASH>..<HASH> 100644
--- a/hendrix/services.py
+++ b/hendrix/services.py
@@ -35,7 +35,11 @@ class HendrixService(service.MultiService):
if resources:
resources = sorted(resources, key=lambda r: r.namespace)
for res in resou... | adds handling for resource with 'get_resources' method enabling nested resource creation | py |
diff --git a/satpy/readers/seviri_l1b_hrit.py b/satpy/readers/seviri_l1b_hrit.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/seviri_l1b_hrit.py
+++ b/satpy/readers/seviri_l1b_hrit.py
@@ -751,7 +751,7 @@ class HRITMSGFileHandler(HRITFileHandler, SEVIRICalibrationHandler):
else:
coefs = ... | Fix GSICS calibration in SEVIRI HRIT reader. | py |
diff --git a/awslimitchecker/services/vpc.py b/awslimitchecker/services/vpc.py
index <HASH>..<HASH> 100644
--- a/awslimitchecker/services/vpc.py
+++ b/awslimitchecker/services/vpc.py
@@ -192,7 +192,7 @@ class _VpcService(_AwsService):
exc_info=1)
def _find_usages_vpn_gateways(self):
- ... | change comment describe to find so it matches to context of the others | py |
diff --git a/aikif/toolbox/network_tools.py b/aikif/toolbox/network_tools.py
index <HASH>..<HASH> 100644
--- a/aikif/toolbox/network_tools.py
+++ b/aikif/toolbox/network_tools.py
@@ -10,10 +10,6 @@ import getpass
import socket
-def TEST():
- url = 'http://www.google.com'
- print('downloaded ' + str(len(get_w... | network tools cleanup and download returns status code | py |
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index <HASH>..<HASH> 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -455,6 +455,7 @@ class PeriodicCallback(object):
self.callback_time = callback_time
self.io_loop = io_loop or IOLoop.instance()
self._running = False
+ self... | Prevent duplicate callbacks when PeriodicCallback is stopped and restarted before _next_timeout | py |
diff --git a/src/zxbc/zxbc.py b/src/zxbc/zxbc.py
index <HASH>..<HASH> 100755
--- a/src/zxbc/zxbc.py
+++ b/src/zxbc/zxbc.py
@@ -165,7 +165,7 @@ def main(args=None, emitter=None):
asm_output = "\n".join(asm_output)
# Now filter them against the preprocessor again
- zxbpp.setMode("asm")
+ zxbpp.setMode(z... | refact: use Enum value in zxbpp initalization | py |
diff --git a/hamster/about.py b/hamster/about.py
index <HASH>..<HASH> 100644
--- a/hamster/about.py
+++ b/hamster/about.py
@@ -27,7 +27,8 @@ def show_about(parent):
}
about.set_authors(["Toms Baugis <toms.baugis@gmail.com>",
- "Patryk Zawadzki <patrys@pld-linux.org>"])
+ ... | added myself as contributor :) svn path=/trunk/; revision=<I> | py |
diff --git a/hapi/test/test_nurturing.py b/hapi/test/test_nurturing.py
index <HASH>..<HASH> 100644
--- a/hapi/test/test_nurturing.py
+++ b/hapi/test/test_nurturing.py
@@ -17,11 +17,19 @@ class NurturingClientTest(unittest2.TestCase):
self._check_result(campaigns)
def test_parallel_get_campaigns(... | In test_parallel_get_campaigns, created a new client with mixins assigned as PyCurlMixin. This client runs the two get_campaigns calls. The test now passes. Before, the client did not have mixins defined so it didn't work. | py |
diff --git a/safe/definitions.py b/safe/definitions.py
index <HASH>..<HASH> 100644
--- a/safe/definitions.py
+++ b/safe/definitions.py
@@ -249,7 +249,7 @@ unit_volcano_categorical = {
{
'name': 'high',
'description': tr('Distance from the volcano.'),
- 'string_defaults': ['... | Fix #<I> Update volcano hazard zone classification in our definitions. | py |
diff --git a/patroni/dcs/kubernetes.py b/patroni/dcs/kubernetes.py
index <HASH>..<HASH> 100644
--- a/patroni/dcs/kubernetes.py
+++ b/patroni/dcs/kubernetes.py
@@ -1060,7 +1060,7 @@ class Kubernetes(AbstractDCS):
if kind and (kind.metadata.annotations or {}).get(self._LEADER) == self._name:
annotat... | Ensure that optime annotation is a string (#<I>) Fixes #<I> | py |
diff --git a/skosify.py b/skosify.py
index <HASH>..<HASH> 100755
--- a/skosify.py
+++ b/skosify.py
@@ -813,9 +813,14 @@ def check_hierarchy(rdf, break_cycles, keep_related):
check_hierarchy_visit(rdf, root, None, break_cycles, status=status)
# double check that all concepts were actually visited in the search,
... | re-check for loose concepts after cycle breaking, as new top concepts may have been created. fixes a loose concept left after LVAk cycle breaking. | py |
diff --git a/chatterbot/adapters/logic/logic.py b/chatterbot/adapters/logic/logic.py
index <HASH>..<HASH> 100644
--- a/chatterbot/adapters/logic/logic.py
+++ b/chatterbot/adapters/logic/logic.py
@@ -7,6 +7,6 @@ class LogicAdapter(object):
that all logic adapters should implement.
"""
- def get(self, text... | Removed None default in logic adapter interface. This default assignment has been removed to encourage the use of the current conversation context in future logic adapters. The use of this information will result in logic adapters that yield more accurate responses. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_ver... | Update setup.py for <I> release Python <I> is out, but not <I>% sure that mediafile supports it, so have left the versions intact here. | py |
diff --git a/vespa/kepler.py b/vespa/kepler.py
index <HASH>..<HASH> 100644
--- a/vespa/kepler.py
+++ b/vespa/kepler.py
@@ -458,7 +458,7 @@ class JRowe_KeplerTransitSignal(KeplerTransitSignal):
logging.debug('best-fit impact parameter={:.2f}'.format(self.rowefit.ix['BB1','val']))
lc['t'] += (2450000+... | took out fitted zero point usage (not in jrowe fit table) | py |
diff --git a/nsq/reader.py b/nsq/reader.py
index <HASH>..<HASH> 100644
--- a/nsq/reader.py
+++ b/nsq/reader.py
@@ -30,7 +30,11 @@ class Reader(Client):
# Distribute the ready count evenly among the connections
for count, conn in distribute(self._max_in_flight, connections):
# ... | Added log message when clamping RDY state to nsqd-provided max_rdy_count limit | py |
diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py
index <HASH>..<HASH> 100644
--- a/instaloader/instaloader.py
+++ b/instaloader/instaloader.py
@@ -177,8 +177,8 @@ class Instaloader:
download_pictures=True,
download_videos: bool = True,
download_v... | Default download_comments and download_geotags to False | py |
diff --git a/zinnia/feeds.py b/zinnia/feeds.py
index <HASH>..<HASH> 100644
--- a/zinnia/feeds.py
+++ b/zinnia/feeds.py
@@ -297,7 +297,7 @@ class EntryDiscussions(DiscussionFeed):
def get_object(self, request, year, month, day, slug):
"""Retrieve the discussions by entry's slug"""
- return get_obj... | Allow discussion feeds for hidden and draft entries, #<I> | py |
diff --git a/niworkflows/viz/utils.py b/niworkflows/viz/utils.py
index <HASH>..<HASH> 100644
--- a/niworkflows/viz/utils.py
+++ b/niworkflows/viz/utils.py
@@ -554,7 +554,7 @@ def plot_melodic_components(melodic_dir, in_file, tr=None,
ax3 = fig.add_subplot(gs[l_row + 1, 3 + col * 5])
ax2.plot(np.aran... | avoid too thick lines when runs are short | py |
diff --git a/posttroll/subscriber.py b/posttroll/subscriber.py
index <HASH>..<HASH> 100644
--- a/posttroll/subscriber.py
+++ b/posttroll/subscriber.py
@@ -105,8 +105,11 @@ class Subscriber(object):
# Only accept pre-defined data types
try:
... | Exchange the place of type and format. | py |
diff --git a/sphinx_revealjs/directives.py b/sphinx_revealjs/directives.py
index <HASH>..<HASH> 100644
--- a/sphinx_revealjs/directives.py
+++ b/sphinx_revealjs/directives.py
@@ -43,6 +43,12 @@ REVEALJS_SECTION_ATTRIBUTES = {
# Transition
"data-transition": directives.unchanged,
"data-background-transiti... | feat: add support for several animation attributes | py |
diff --git a/src/hupper/worker.py b/src/hupper/worker.py
index <HASH>..<HASH> 100644
--- a/src/hupper/worker.py
+++ b/src/hupper/worker.py
@@ -67,7 +67,9 @@ class WatchSysModules(threading.Thread):
def in_system_paths(self, path):
for prefix in self.system_paths:
- if path.startswith(prefix):... | keep watching files if they live outside a system path but are symlinked fixes #<I> | py |
diff --git a/tests/model/test_error_summary.py b/tests/model/test_error_summary.py
index <HASH>..<HASH> 100644
--- a/tests/model/test_error_summary.py
+++ b/tests/model/test_error_summary.py
@@ -30,9 +30,9 @@ PIPE_DELIMITED_LINE_TEST_CASES = (
),
(
(
- "TEST-UNEXPECTED-FAIL "
- ... | Bug <I> - Mark string as raw This stops occurrences of `\u` (such as in Windows paths) being interpreted as malformed Unicode points. | py |
diff --git a/addok/core.py b/addok/core.py
index <HASH>..<HASH> 100644
--- a/addok/core.py
+++ b/addok/core.py
@@ -476,7 +476,7 @@ class Search(BaseHelper):
def reduce_tokens(self):
# Only if bucket is empty or we have margin on should_match_threshold.
- if self.bucket_dry\
+ if self.bucke... | Do not try to extend results reducing token when bucket is dry Rationale: it slows down search that have good result with bad score. Example "bazi montbrun". | py |
diff --git a/anharmonic/phonon3/__init__.py b/anharmonic/phonon3/__init__.py
index <HASH>..<HASH> 100644
--- a/anharmonic/phonon3/__init__.py
+++ b/anharmonic/phonon3/__init__.py
@@ -119,6 +119,10 @@ class Phono3py:
temperatures = np.arange(t_min, t_max + t_step / 2.0, t_step)
for gp in grid_points:
... | Frequency shift from fc3 with smoothing function | py |
diff --git a/python/xbos/services/mdal.py b/python/xbos/services/mdal.py
index <HASH>..<HASH> 100644
--- a/python/xbos/services/mdal.py
+++ b/python/xbos/services/mdal.py
@@ -125,7 +125,7 @@ class MDALClient(object):
continue
uuids = [str(uuid.UUID(bytes=x)) for x in data['... | Correctly handle RAW data The test to see if the returned result was RAW data was incomplete. We needed to also check if the length of the 'times' was non-zero | py |
diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/phonenumberutil.py
+++ b/python/phonenumbers/phonenumberutil.py
@@ -1829,7 +1829,7 @@ def region_codes_for_country_code(country_code):
"""
regions = COUNTRY_CODE_T... | Return tuple not list on error COUNTRY_CODE_TO_REGION_CODE holds tuples, so ensure that a failure return is also an empty tuple for consistency. | py |
diff --git a/ospd/vts.py b/ospd/vts.py
index <HASH>..<HASH> 100644
--- a/ospd/vts.py
+++ b/ospd/vts.py
@@ -23,7 +23,7 @@ import multiprocessing
import re
from copy import deepcopy
-from typing import Dict, Any, Tuple, Type, Iterator
+from typing import Dict, Any, Type, Iterator, Iterable
from ospd.errors import ... | Update return types for Vts keys, clear and copy methods | py |
diff --git a/subconvert/utils/Encodings.py b/subconvert/utils/Encodings.py
index <HASH>..<HASH> 100644
--- a/subconvert/utils/Encodings.py
+++ b/subconvert/utils/Encodings.py
@@ -29,10 +29,12 @@ ALL_ENCODINGS = (
'cp037',
'cp1006',
'cp1026',
+ 'cp1125',
'cp1140',
'cp4... | Added some encodings to supported encodings list utf-8-sig, cp<I> and cp<I> | py |
diff --git a/geomdl/visualization/VisPlotly.py b/geomdl/visualization/VisPlotly.py
index <HASH>..<HASH> 100644
--- a/geomdl/visualization/VisPlotly.py
+++ b/geomdl/visualization/VisPlotly.py
@@ -64,15 +64,19 @@ class VisConfig(vis.VisConfigAbstract):
self.figure_image_format = "png"
self.figure_filena... | [skip ci] Add online plotting support for Plotly | py |
diff --git a/prospector/tools/vulture/__init__.py b/prospector/tools/vulture/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/tools/vulture/__init__.py
+++ b/prospector/tools/vulture/__init__.py
@@ -27,7 +27,11 @@ class ProspectorVulture(Vulture):
))
continue
self.... | Implement support for vulture <I> and up. | py |
diff --git a/pefile.py b/pefile.py
index <HASH>..<HASH> 100644
--- a/pefile.py
+++ b/pefile.py
@@ -2759,10 +2759,10 @@ class PE:
def __enter__(self):
return self
-
+
def __exit__(self, type, value, traceback):
self.close()
-
+
def close(self):
if (
self._... | Fix for 'value' referenced before assignment | py |
diff --git a/tests/web/filter.py b/tests/web/filter.py
index <HASH>..<HASH> 100644
--- a/tests/web/filter.py
+++ b/tests/web/filter.py
@@ -103,12 +103,14 @@ class Prefix(unittest.TestCase):
web.prefix('/docs') | web.namespace('doc') | web.cases(
web.match('/item', '') | handler,
... | more robust test for issue <I> | py |
diff --git a/pyresttest/resttest.py b/pyresttest/resttest.py
index <HASH>..<HASH> 100644
--- a/pyresttest/resttest.py
+++ b/pyresttest/resttest.py
@@ -197,9 +197,9 @@ class ContentHandler:
if isinstance(node, dict) or isinstance(node, list):
flat = lowercase_keys(flatten_dictionaries(node))
... | Fix bug in ContentHandler parsing that breaks resttests | py |
diff --git a/ella/newman/utils.py b/ella/newman/utils.py
index <HASH>..<HASH> 100644
--- a/ella/newman/utils.py
+++ b/ella/newman/utils.py
@@ -117,7 +117,10 @@ def flag_queryset(queryset, flag, value):
def get_queryset_flag(queryset, flag):
if not hasattr(queryset, '_filter_flags'):
return False
- ret... | Hotfixed changelist for Max :) | py |
diff --git a/openstack_dashboard/dashboards/project/stacks/forms.py b/openstack_dashboard/dashboards/project/stacks/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/stacks/forms.py
+++ b/openstack_dashboard/dashboards/project/stacks/forms.py
@@ -336,7 +336,7 @@ class CreateStackForm(for... | Added the field label to the field arguments. Initially, the field key was used as the label. In the return dictionary has the label, so I use that value and fall back to the key if it does not exist. Change-Id: I<I>b4a7f<I>d<I>d3bdc3e<I>e<I>f<I>a<I> | py |
diff --git a/sportsreference/utils.py b/sportsreference/utils.py
index <HASH>..<HASH> 100644
--- a/sportsreference/utils.py
+++ b/sportsreference/utils.py
@@ -61,7 +61,13 @@ def _url_exists(url):
"""
try:
response = requests.head(url)
- if response.status_code < 400:
+ if response.statu... | Handle redirects to <I> errors If the code throws a <I> redirect error which leads to a <I> error, it will be treated as the request returning a valid result, when that shouldn't be the case. By pulling the page on a status code of <I>, the final value is returned for the status_code, which in the case of a <I> error,... | py |
diff --git a/vcs/backends/git.py b/vcs/backends/git.py
index <HASH>..<HASH> 100644
--- a/vcs/backends/git.py
+++ b/vcs/backends/git.py
@@ -612,7 +612,8 @@ class GitChangeset(BaseChangeset):
not_changed_paths = [f.path for f in self.added + self.removed]
for parent in self.parents:
try:
- ... | Fixed problems with long paths while running git diff --stat | py |
diff --git a/src/canari/maltego/transform.py b/src/canari/maltego/transform.py
index <HASH>..<HASH> 100644
--- a/src/canari/maltego/transform.py
+++ b/src/canari/maltego/transform.py
@@ -21,7 +21,8 @@ class Transform(object):
# Specifies the author of the transform. If not specified __author__ will be used.
a... | Fixed `name` and `transform_set` auto-generation to use transform package name as namespace and transform set name, respectively. | py |
diff --git a/ubelt/util_indexable.py b/ubelt/util_indexable.py
index <HASH>..<HASH> 100644
--- a/ubelt/util_indexable.py
+++ b/ubelt/util_indexable.py
@@ -87,6 +87,7 @@ class IndexableWalker(Generator):
Example:
>>> # Test sending false for every data item
+ >>> # xdoctest: +REQUIRES(CPython)
... | try to fix pypy | py |
diff --git a/py/selenium/webdriver/common/action_chains.py b/py/selenium/webdriver/common/action_chains.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/common/action_chains.py
+++ b/py/selenium/webdriver/common/action_chains.py
@@ -265,10 +265,14 @@ class ActionChains(object):
- xoffset: X offset t... | [py] translate move_by_offset command to w3c | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -51,9 +51,10 @@ if target in ['linux', 'cygwin']:
sysconfig._config_vars['CFLAGS'] = cvars['CFLAGS'].replace('-Wimplicit-function-declaration', '')
libraries = {
+ # 'windows': ['gdi32', 'opengl32', 'user32'... | setup.py: Remove unecessary linker args. Moved to glcontext | py |
diff --git a/modularodm/fields/objectidfield.py b/modularodm/fields/objectidfield.py
index <HASH>..<HASH> 100644
--- a/modularodm/fields/objectidfield.py
+++ b/modularodm/fields/objectidfield.py
@@ -0,0 +1,9 @@
+from . import Field
+from ..validators import validate_objectid
+
+from bson import ObjectId
+
+class Object... | add objectid field for compatibility with yorm | py |
diff --git a/nodeconductor/users/tasks.py b/nodeconductor/users/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/users/tasks.py
+++ b/nodeconductor/users/tasks.py
@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
+
import logging
from smtplib import SMTPException | Unable to send invitation with UTF chars (SENTRY-<I>) | py |
diff --git a/src/python/dxpy/app_builder.py b/src/python/dxpy/app_builder.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/app_builder.py
+++ b/src/python/dxpy/app_builder.py
@@ -107,7 +107,7 @@ def upload_applet(src_dir, uploaded_resources, check_name_collisions=True, overw
readme_filename = filen... | More helpful suggestion when description is missing. | py |
diff --git a/rinoh/style.py b/rinoh/style.py
index <HASH>..<HASH> 100644
--- a/rinoh/style.py
+++ b/rinoh/style.py
@@ -702,7 +702,7 @@ class StyleParseError(Exception):
def parse_selector_args(selector_args):
args, kwargs = [], {}
- chars = iter(selector_args)
+ chars = CharIterator(selector_args)
wh... | CharIterator: allow "rewinding" the char iterator | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -531,7 +531,7 @@ class Zotero(object):
req.add_header('If-Match', etag)
req.add_header('User-Agent', 'Pyzotero/%s' % __version__)
try:
- resp = open... | We only need to make the request or catch an error in delete_item() | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -4267,7 +4267,7 @@ def wget_from_magic(con_id):
result True or False, stuff (error msg)
"""
try:
- res = wget.download('https://earthref.org/MagIC/download/16676/magic_contribu... | get earthref download to actually get the correct contribution | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ setup(
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
- "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)"
+ "Li... | Fix classifiers in setup.py | py |
diff --git a/testkit/backend.py b/testkit/backend.py
index <HASH>..<HASH> 100644
--- a/testkit/backend.py
+++ b/testkit/backend.py
@@ -1,7 +1,8 @@
import subprocess
+import sys
if __name__ == "__main__":
- err = open("/artifacts/backenderr.log", "w")
- out = open("/artifacts/backendout.log", "w")
subproc... | TestKit backend output goes to stdout/stderr (#<I>) From there, TestKit can pick it up and write it into logfiles if desired. <URL> | py |
diff --git a/openid/consumer/discover.py b/openid/consumer/discover.py
index <HASH>..<HASH> 100644
--- a/openid/consumer/discover.py
+++ b/openid/consumer/discover.py
@@ -433,7 +433,7 @@ def discoverXRI(iname):
def discoverNoYadis(uri):
http_resp = fetchers.fetch(uri)
- if http_resp.status != 200:
+ if ht... | [project @ Add <I> status check to openid.consumer.discover] | py |
diff --git a/safe/impact_functions/inundation/flood_polygon_roads_experimental.py b/safe/impact_functions/inundation/flood_polygon_roads_experimental.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/inundation/flood_polygon_roads_experimental.py
+++ b/safe/impact_functions/inundation/flood_polygon_roads_exper... | Remove safe_qgis dependences from impact functions | py |
diff --git a/eth_account/hdaccount/mnemonic.py b/eth_account/hdaccount/mnemonic.py
index <HASH>..<HASH> 100644
--- a/eth_account/hdaccount/mnemonic.py
+++ b/eth_account/hdaccount/mnemonic.py
@@ -146,8 +146,14 @@ class Mnemonic(object):
def to_seed(cls, mnemonic, passphrase=""):
mnemonic = cls.normalize_st... | doc: Added comment about seed phrase derivation | py |
diff --git a/gwpy/timeseries/tests/test_timeseries.py b/gwpy/timeseries/tests/test_timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/tests/test_timeseries.py
+++ b/gwpy/timeseries/tests/test_timeseries.py
@@ -613,10 +613,16 @@ class TestTimeSeries(_TestTimeSeriesBase):
])
def test_spectrogram_me... | gwpy.timeseries: only lal API warns | py |
diff --git a/tests/test_git_changelog.py b/tests/test_git_changelog.py
index <HASH>..<HASH> 100644
--- a/tests/test_git_changelog.py
+++ b/tests/test_git_changelog.py
@@ -72,10 +72,10 @@ class TestWithRepository(TempDirTestCase):
self.repo.index.commit('commit #{0}'.format(n))
nodes = self.changel... | Convert multi-commit test to use BeautifulSoup. | py |
diff --git a/fwdpy11/tskit_tools/_dump_tables_to_tskit.py b/fwdpy11/tskit_tools/_dump_tables_to_tskit.py
index <HASH>..<HASH> 100644
--- a/fwdpy11/tskit_tools/_dump_tables_to_tskit.py
+++ b/fwdpy11/tskit_tools/_dump_tables_to_tskit.py
@@ -58,8 +58,8 @@ def _initializeIndividualTable(self, tc):
# Now, preserved nod... | Fix typos in assert statements. Fixes #<I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,8 @@ setup(
'normality >= 1.0.0',
'tabulate',
'dataset >= 1.0.8',
- 'servicelayer == 1.8.1',
+ 'servicelayer[google] == 1.8.4',
+ 'servicelayer[amazon] == 1.8.4',
... | Include google and amazon configs of servicelayer. | py |
diff --git a/tests/test_examples.py b/tests/test_examples.py
index <HASH>..<HASH> 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -1525,7 +1525,7 @@ def test_malformed_reqs() -> None:
factory = cwltool.factory.Factory()
with pytest.raises(
ValidationException,
- match=r".*w... | Increase resiliance of test_malformed_reqs | py |
diff --git a/packages/vaex-core/vaex/memory.py b/packages/vaex-core/vaex/memory.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/memory.py
+++ b/packages/vaex-core/vaex/memory.py
@@ -30,8 +30,7 @@ def create_tracker():
with lock:
if not _memory_tracker_types:
for entry... | fix: memory tracker was not always added | py |
diff --git a/salt/utils/yamlloader.py b/salt/utils/yamlloader.py
index <HASH>..<HASH> 100644
--- a/salt/utils/yamlloader.py
+++ b/salt/utils/yamlloader.py
@@ -116,11 +116,6 @@ class SaltYamlSafeLoader(yaml.SafeLoader):
# an empty string. Change it to '0'.
if node.value == '':
... | Remove unicode literal hack The tojson filter makes this obsolete | py |
diff --git a/tests/test_pdf.py b/tests/test_pdf.py
index <HASH>..<HASH> 100644
--- a/tests/test_pdf.py
+++ b/tests/test_pdf.py
@@ -113,8 +113,8 @@ class ReadTest(unittest.TestCase):
pdf.read(wrong=0)
def test_read_corrupt_page(self):
- pdf = pdftotext.PDF(get_file("corrupt_page.pdf"))
... | Allow older poppler versions to pass test | py |
diff --git a/pupa/scrape/schemas/bill.py b/pupa/scrape/schemas/bill.py
index <HASH>..<HASH> 100644
--- a/pupa/scrape/schemas/bill.py
+++ b/pupa/scrape/schemas/bill.py
@@ -135,9 +135,13 @@ schema = {
"id": {"type": ["string", "null"],
"description": ("ID of entity if the ... | update schema to stop None entity_type | py |
diff --git a/ubersmith/calls/uber.py b/ubersmith/calls/uber.py
index <HASH>..<HASH> 100644
--- a/ubersmith/calls/uber.py
+++ b/ubersmith/calls/uber.py
@@ -28,6 +28,9 @@ class ApiExportCall(BaseCall):
class CheckLoginCall(BaseCall):
method = _('check_login')
+ int_fields = [
+ 'password_expired',
+ ... | Cleaned password_expired field in check_login call | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -14,7 +14,7 @@ from concurrent.futures import ThreadPoolExecutor
from tornado import gen
from tornado.ioloop import IOLoop
from tornado.concurrent import run_on_execut... | don't wait forever in start() and stop() for pod to (dis)appear. It is possible, that the spawner ends in an inconsistent state If pod never (dis)appears. e.g. jupyterhub user.py wait's for spawner with timeout. If that timeout hit's earlier, than spawning will be stopped, but this spawner instance still stays in _star... | py |
diff --git a/src/ofxstatement/statement.py b/src/ofxstatement/statement.py
index <HASH>..<HASH> 100644
--- a/src/ofxstatement/statement.py
+++ b/src/ofxstatement/statement.py
@@ -287,5 +287,5 @@ def recalculate_balance(stmt: Statement) -> None:
stmt.start_balance = stmt.start_balance or D(0)
stmt.end_balanc... | Do not fail if any of the statement line dates is None | py |
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/general.py
+++ b/openquake/baselib/general.py
@@ -734,7 +734,7 @@ def _slicedict_n(imt_dt):
return slicedic, n
-class DictArray(collections.abc.Mapping):
+class DictArray(Mapping):
... | [demos] Former-commit-id: 9cdfb<I>ea1a<I>b<I>a<I>dfb<I>ee7ebb | py |
diff --git a/txkoji/task.py b/txkoji/task.py
index <HASH>..<HASH> 100644
--- a/txkoji/task.py
+++ b/txkoji/task.py
@@ -88,7 +88,8 @@ class Task(Munch):
Estimate completion time for a task.
:returns: deferred that when fired returns a datetime object for the
- estimated or actual dat... | task: handle no package in estimate_completion() If we cannot determine a package for this task (for example: a newRepo task), don't continue on to call getAverageBuildDuration. We will hit an error from the server: invalid type for id lookup: <type 'NoneType'> Gracefully return None in these cases. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(name='servicemanager',
python_requires='>2.7.13',
- version='1.2.0',
+ version='1.3.0',
description='A python tool to manage developing and testing wit... | Bump release version to <I> | py |
diff --git a/napalm/base.py b/napalm/base.py
index <HASH>..<HASH> 100644
--- a/napalm/base.py
+++ b/napalm/base.py
@@ -16,6 +16,8 @@ import os
import sys
import jinja2
+import textfsm
+
import napalm.exceptions
@@ -178,6 +180,33 @@ class NetworkDriver:
self.load_merge_candidate(config=configuration)... | SNMP config getter for EOS & TesxFSM extractor in base | py |
diff --git a/clients/tadpoleclient.py b/clients/tadpoleclient.py
index <HASH>..<HASH> 100644
--- a/clients/tadpoleclient.py
+++ b/clients/tadpoleclient.py
@@ -20,10 +20,11 @@ from socket import *
import re
class TadpoleClient:
- def __init__(self,host="localhost",port=12345, tadpole_encoding="utf-8", parser=Fals... | added a default timeout value, so clients don't wait indefinitely for server response git-svn-id: <URL> | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -1185,6 +1185,7 @@ def user_create(user,
password_hash=None,
allow_passwordless=False,
unix_socket=False,
+ ... | Addressing user creation on mysql <I> After creating user on mysql <I>, check fails. This should work in addition to changes mentioned in <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# -*- coding: utf8 -*-
import os
from setuptools import setup, find_packages | Update setup to python3 | py |
diff --git a/prestans/types.py b/prestans/types.py
index <HASH>..<HASH> 100644
--- a/prestans/types.py
+++ b/prestans/types.py
@@ -102,6 +102,14 @@ class String(DataType):
self._utf_encoding = utf_encoding
self._description = description
+ @property
+ def max_length(self):
+ return self... | added min_length and max_length properties for types.String #<I> | py |
diff --git a/openquake/engine/__init__.py b/openquake/engine/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/__init__.py
+++ b/openquake/engine/__init__.py
@@ -58,7 +58,7 @@ from openquake.baselib.general import git_suffix
# "-" + <pkg-version> + "+dev" + <secs_since_epoch> + "-" + <commit-id>
# NB: t... | Incremented minor version Former-commit-id: c<I>bfd9c<I>fa<I>ea<I>abc1b5e<I>e8 | py |
diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/groupby/transform/test_transform.py
+++ b/pandas/tests/groupby/transform/test_transform.py
@@ -1043,7 +1043,7 @@ def test_groupby_transform_rename():
i... | Fix issue probably-meant-fstring found at <URL> | py |
diff --git a/tsfresh/feature_extraction/settings.py b/tsfresh/feature_extraction/settings.py
index <HASH>..<HASH> 100644
--- a/tsfresh/feature_extraction/settings.py
+++ b/tsfresh/feature_extraction/settings.py
@@ -100,7 +100,8 @@ class FeatureExtractionSettings(object):
})
# default None means ... | fixed calculation of processes if only one core available | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -1426,6 +1426,7 @@ class Renamed(GettableProperty):
@property
def warn(self):
+ """Warn user about deprecation of renamed property"""
return getattr(self,... | Add docstring to Renamed warn | py |
diff --git a/NFA.py b/NFA.py
index <HASH>..<HASH> 100644
--- a/NFA.py
+++ b/NFA.py
@@ -151,6 +151,8 @@ def nfa_determinization(nfa):
stack = list()
stack.append(nfa['initial_states'])
states.append(nfa['initial_states'])
+ if len(states[0].intersection(nfa['accepting_states'])) > 0:
+ dfa['acce... | solved accepting state loss if equal to initial state in nfa_determinization | py |
diff --git a/publ/entry.py b/publ/entry.py
index <HASH>..<HASH> 100644
--- a/publ/entry.py
+++ b/publ/entry.py
@@ -308,7 +308,7 @@ class Entry(caching.Memoizable):
_, more, is_markdown = self._entry_content
def _more(**kwargs):
- if kwargs.get('absolute') and 'footnote_links' not in kwarg... | Correct transplanted 's' | py |
diff --git a/tests/test_tree_sequences.py b/tests/test_tree_sequences.py
index <HASH>..<HASH> 100644
--- a/tests/test_tree_sequences.py
+++ b/tests/test_tree_sequences.py
@@ -117,6 +117,18 @@ class testTreeSequences(unittest.TestCase):
msp_pos = np.sort(mspts.tables.sites.position)
self.assertTrue(np.... | Add test comparing genotype matrix contents to msprime's output | py |
diff --git a/link.py b/link.py
index <HASH>..<HASH> 100644
--- a/link.py
+++ b/link.py
@@ -145,9 +145,7 @@ def substitute_links(text, cache, base_dir):
if not regex:
result = cache[filename + ':all']
else:
- result = '\n'.join([cache[block] for block in cache
- ... | Fix bug for including same block name from multiple files | py |
diff --git a/tests/test_global_opt.py b/tests/test_global_opt.py
index <HASH>..<HASH> 100644
--- a/tests/test_global_opt.py
+++ b/tests/test_global_opt.py
@@ -108,10 +108,11 @@ class TestGlobalOptGaussian(unittest.TestCase):
for param in fit.minimizer.__signature__.parameters.values():
self.asse... | Changed the test into a complentary one which does not require the fitting to be performed, to improve performance. | py |
diff --git a/savannaclient/api/shell.py b/savannaclient/api/shell.py
index <HASH>..<HASH> 100644
--- a/savannaclient/api/shell.py
+++ b/savannaclient/api/shell.py
@@ -763,7 +763,7 @@ def do_job_create(cs, args):
_show_job(cs.job_executions.create(args.job_template, args.cluster,
... | Args should be passed as a list on job creation Partial-bug: #<I> Change-Id: Ie6f<I>dd2c<I>a7f2b<I>cfe<I>fa<I>e<I>de3f<I> | py |
diff --git a/spinoff/tests/actor_test.py b/spinoff/tests/actor_test.py
index <HASH>..<HASH> 100644
--- a/spinoff/tests/actor_test.py
+++ b/spinoff/tests/actor_test.py
@@ -83,8 +83,10 @@ def test_async_sending():
a = spawn(MyActor)
a.send('foo', **({'force_async': True} if case is 'via-explicit-param' ... | Improved test_async_sending | py |
diff --git a/devassistant/utils.py b/devassistant/utils.py
index <HASH>..<HASH> 100644
--- a/devassistant/utils.py
+++ b/devassistant/utils.py
@@ -164,7 +164,7 @@ def run_exitfuncs():
defenc = locale.getpreferredencoding()
-defenc = 'utf-8' if defenc == 'ascii' else defenc
+defenc = 'utf-8' if defenc.lower() in ['... | Also use UTF-8 if defenc was US-ASCII (happens on Mac) | py |
diff --git a/LiSE/LiSE/examples/sickle.py b/LiSE/LiSE/examples/sickle.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/examples/sickle.py
+++ b/LiSE/LiSE/examples/sickle.py
@@ -164,11 +164,11 @@ def sickle_cell_test(
if not r:
continue
r = r[0]
- if r == 'malaria':
+ ... | Make the sickle test report its progress accurately | py |
diff --git a/typelib/core.py b/typelib/core.py
index <HASH>..<HASH> 100644
--- a/typelib/core.py
+++ b/typelib/core.py
@@ -20,10 +20,14 @@ class Entity(Annotatable):
@property
def tag(self): return self.__class__.TAG
- def get_entity(self, name):
- return self.entity_map.get(name, None)
+ @pro... | Simplifying add/get method names | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -314,7 +314,7 @@ def main():
# fixes for installation issues. This only seems to work if no version
# is specified in its install_requires entry.
'dependency_links': [
- "git+https://githu... | Changed dependency to M2Crypto in setup.py to use its branch amfix_rebased from repo pywbem/m2crypto. That branch is rebased on the M2Crypto upstream master, as of today. | py |
diff --git a/salt/log/handlers/__init__.py b/salt/log/handlers/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/log/handlers/__init__.py
+++ b/salt/log/handlers/__init__.py
@@ -79,4 +79,8 @@ class TemporaryLoggingHandler(logging.NullHandler):
while self.__messages:
record = self.__messages.pop(0... | Don't feed logging handler messages which they're not supposed to handle. | py |
diff --git a/frojd_fabric/__init__.py b/frojd_fabric/__init__.py
index <HASH>..<HASH> 100644
--- a/frojd_fabric/__init__.py
+++ b/frojd_fabric/__init__.py
@@ -15,9 +15,3 @@ __version__ = "1.0.0"
__build__ = 1
__license__ = "MIT"
__copyright__ = "Copyright 2014 Fröjd Interactive AB"
-
-
-from .api import (
- setup... | Removed api methods from init | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,12 +5,12 @@ README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
setup(
name='pnc-cli',
packages=find_packages(exclude=['test*']),
- version='1.0.1',
+ version='1.0.0',
descriptio... | revert <I> release | py |
diff --git a/caravel/data/__init__.py b/caravel/data/__init__.py
index <HASH>..<HASH> 100644
--- a/caravel/data/__init__.py
+++ b/caravel/data/__init__.py
@@ -375,7 +375,8 @@ def load_world_bank_health_n_pop():
print("Creating a World's Health Bank dashboard")
dash_name = "World's Bank Data"
- dash = db.... | [hotfix] fix name change on test dashboard triggers error | py |
diff --git a/sumo/io/castep.py b/sumo/io/castep.py
index <HASH>..<HASH> 100644
--- a/sumo/io/castep.py
+++ b/sumo/io/castep.py
@@ -90,7 +90,7 @@ class CastepCell(object):
if 'positions_frac' in self.blocks:
elements_coords = [(row[0], list(map(float, row[1:4])))
- f... | Castep cell reader: fix read from fractional coordinated | py |
diff --git a/src/toil/test/jobStores/jobStoreTest.py b/src/toil/test/jobStores/jobStoreTest.py
index <HASH>..<HASH> 100644
--- a/src/toil/test/jobStores/jobStoreTest.py
+++ b/src/toil/test/jobStores/jobStoreTest.py
@@ -844,7 +844,7 @@ class AWSJobStoreTest(AbstractJobStoreTest.Test):
with patch('boto.s3.multip... | Fixes a bucket leak in AWSJobStoreTest (connected to #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,7 @@ setup(
"pyyaml",
"kazoo",
"six",
+ "futures",
],
extras_require={
"redis": [], | Add the futures lib backport as a dependency. | py |
diff --git a/skyfield/units.py b/skyfield/units.py
index <HASH>..<HASH> 100644
--- a/skyfield/units.py
+++ b/skyfield/units.py
@@ -254,8 +254,8 @@ class Angle(object):
if shape and shape != (1,):
return "{0} values from {1} to {2}".format(
len(hours),
- _hstr(min(ho... | Improve what “values from A to B” means Why did I think that people would want the maximum and minimum? Having just printed this myself, I expected it to be the first and last value, so I’m pivoting to that meaning instead. | py |
diff --git a/arboretum/core.py b/arboretum/core.py
index <HASH>..<HASH> 100644
--- a/arboretum/core.py
+++ b/arboretum/core.py
@@ -12,7 +12,7 @@ from dask.dataframe.utils import make_meta
DEMON_SEED = 666
ANGEL_SEED = 777
-EARLY_STOP_WINDOW_LENGTH = 10
+EARLY_STOP_WINDOW_LENGTH = 25
PYTHONIC_REGRESSOR_FACTORY = ... | default early stop window length = <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.