diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/werkzeug/security.py b/werkzeug/security.py
index <HASH>..<HASH> 100644
--- a/werkzeug/security.py
+++ b/werkzeug/security.py
@@ -202,8 +202,8 @@ def _hash_internal(method, salt, password):
def generate_password_hash(password, method='pbkdf2:sha1', salt_length=8):
- """Hash a password with the give... | Update generate_password_hash Updating generate_password_hash method documentation. Hopefully this will be a bit clearer. | py |
diff --git a/openquake/calculators/hazard/classical/__init__.py b/openquake/calculators/hazard/classical/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/classical/__init__.py
+++ b/openquake/calculators/hazard/classical/__init__.py
@@ -64,6 +64,12 @@ key elements:
* **Spectral Acceleration (... | calcs/hazard/classical/__init__: Added notes about SMLT and GSIMLT paths. Also added a brief explanation of hazard curve grouping. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,10 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-import hgtools.managers
-
-# use hgtools to get the version
-hg_mgr = hgtools.managers.RepoManager.get_first_valid_manager()
+import setu... | Use setuptools_scm in docs generation. | py |
diff --git a/h11/_util.py b/h11/_util.py
index <HASH>..<HASH> 100644
--- a/h11/_util.py
+++ b/h11/_util.py
@@ -1,4 +1,5 @@
import sys
+import re
__all__ = ["ProtocolError", "LocalProtocolError", "RemoteProtocolError",
"validate", "make_sentinel", "bytesify"]
@@ -78,12 +79,14 @@ class LocalProtocolError(... | Use regex.fullmatch when available (since Python <I>) It is faster than the hand-rolled version. Running python<I> benchmarks/benchmarks.py: Before: <I> requests/sec After: <I> requests/sec | py |
diff --git a/src/hamster/lib/stuff.py b/src/hamster/lib/stuff.py
index <HASH>..<HASH> 100644
--- a/src/hamster/lib/stuff.py
+++ b/src/hamster/lib/stuff.py
@@ -294,8 +294,8 @@ class Fact(object):
activity, self.description = activity.split(",", 1)
self.description = self.description.strip()
-... | be more careful on sanitizing - strip out only hashes that are preceded by a whitespace, don't strip out hashes out of categories. should fix Bug <I> | py |
diff --git a/certvalidator/validate.py b/certvalidator/validate.py
index <HASH>..<HASH> 100644
--- a/certvalidator/validate.py
+++ b/certvalidator/validate.py
@@ -1904,7 +1904,7 @@ class PolicyTreeRoot():
A generator yielding PolicyTreeNode objects
"""
- for child in self.children.copy():... | Fix Python 2 support for new certificate policies functionality | py |
diff --git a/salt/modules/kmod.py b/salt/modules/kmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/kmod.py
+++ b/salt/modules/kmod.py
@@ -81,6 +81,8 @@ def _set_persistent_module(mod):
commented uncomment it.
'''
conf = _get_modules_conf()
+ if not os.path.exists(conf):
+ __salt__['file.to... | Do not fail reading/writing persistent modules when _get_modules_conf() file doesn't exist. For instance on Arch, /etc/modules-load.d/salt_managed.conf will not exist at first and trying to apply a state such as microcode: kmod.present: - persist: True will fail with the error: IOError: [Errno 2] No suc... | py |
diff --git a/edtf/parser/tests.py b/edtf/parser/tests.py
index <HASH>..<HASH> 100644
--- a/edtf/parser/tests.py
+++ b/edtf/parser/tests.py
@@ -247,8 +247,10 @@ class TestParsing(unittest.TestCase):
self.assertEqual(f.lower_fuzzy().isoformat(), expected_lower_fuzzy)
self.assertEqual(f.u... | Fix parser unit test to work properly on exceptions Don't swallow exception with a `pdb` invocation that will not work in any setting except for manual test runs with no output capturing. | py |
diff --git a/python/cmsis_svd/parser.py b/python/cmsis_svd/parser.py
index <HASH>..<HASH> 100644
--- a/python/cmsis_svd/parser.py
+++ b/python/cmsis_svd/parser.py
@@ -71,7 +71,9 @@ class SVDParser(object):
expand_arrays_of_registers = 0
@classmethod
- def for_xml_file(cls, path):
+ def for_xml_file(cl... | added flags to for_xml_file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,6 @@
from setuptools import setup, find_packages
REQUIRES = [
- 'aiohttp',
'PyYAML'
] | removed dependency to aiohttp which is no longer needed | py |
diff --git a/synapse/lib/remcycle.py b/synapse/lib/remcycle.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/remcycle.py
+++ b/synapse/lib/remcycle.py
@@ -340,8 +340,6 @@ class Hypnos(s_config.Config):
*args,
**kwargs):
s_config.Config.__init__(self)
- for optname, op... | Use the confdef() decorator for loading configable options into remcycle. | py |
diff --git a/zipline/data/us_equity_pricing.py b/zipline/data/us_equity_pricing.py
index <HASH>..<HASH> 100644
--- a/zipline/data/us_equity_pricing.py
+++ b/zipline/data/us_equity_pricing.py
@@ -46,6 +46,7 @@ from pandas.tslib import iNaT
from six import (
iteritems,
viewkeys,
+ string_types,
)
from z... | BUG: Fixes zipline ingest with non-default bundle on python 2 | py |
diff --git a/source/rafcon/core/states/execution_state.py b/source/rafcon/core/states/execution_state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/states/execution_state.py
+++ b/source/rafcon/core/states/execution_state.py
@@ -71,7 +71,8 @@ class ExecutionState(State):
outcomes = {elem_id: copy(ele... | fix(execution_state): fix copy, use setter for script | py |
diff --git a/pycanlib/__init__.py b/pycanlib/__init__.py
index <HASH>..<HASH> 100644
--- a/pycanlib/__init__.py
+++ b/pycanlib/__init__.py
@@ -1,3 +1,6 @@
from CAN import Bus, BufferedReader, Message, MessageList
from CAN import Log, Listener, TimestampMessage
from CAN import MachineInfo, ChannelInfo
+
+class CANLIB... | Add a generic exception we can throw instead of ctypes errors. (Don't actually throw them yet - more to keep compatibality with kvaser implementation) | py |
diff --git a/tcex/tcex.py b/tcex/tcex.py
index <HASH>..<HASH> 100644
--- a/tcex/tcex.py
+++ b/tcex/tcex.py
@@ -790,7 +790,7 @@ class TcEx(object):
from .tcex_request import TcExRequest
r = TcExRequest(self, session)
- if self.default_args.tc_proxy_external:
+ if session... | + update for proxy issue with batch. | py |
diff --git a/asv/runner.py b/asv/runner.py
index <HASH>..<HASH> 100644
--- a/asv/runner.py
+++ b/asv/runner.py
@@ -187,13 +187,13 @@ def run_benchmarks(benchmarks, env, results=None,
# Interleave benchmark runs, in setup_cache order
def iter_run_items():
- for run_round in range(max_processes):
+ ... | runner: swap process run order so that results are printed in better order | py |
diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index <HASH>..<HASH> 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -990,6 +990,12 @@ def assert_series_equal(left, right, check_dtype=True,
Specify comparison precision. Only used when check_exact is False.
5 digits (Fa... | Improve documentation for assert_frame|series_equal #<I> (#<I>) | py |
diff --git a/wandb/apis/internal.py b/wandb/apis/internal.py
index <HASH>..<HASH> 100644
--- a/wandb/apis/internal.py
+++ b/wandb/apis/internal.py
@@ -906,11 +906,23 @@ class Api(object):
}
}
''')
+
+ # don't retry on validation errors
+ # TODO(jhr): generalize error handlin... | when creating sweeps, validation of sweep config will return a <I> on error. no need to retry. | py |
diff --git a/epab/cmd/appveyor.py b/epab/cmd/appveyor.py
index <HASH>..<HASH> 100644
--- a/epab/cmd/appveyor.py
+++ b/epab/cmd/appveyor.py
@@ -9,6 +9,7 @@ import click
from epab import __version__
from epab.utils import _info, do, repo_get_latest_tag
+from .test_runner import pytest
from .release import release
... | fix: run test suite from EPAB to generate coverage | py |
diff --git a/src/saml2/server.py b/src/saml2/server.py
index <HASH>..<HASH> 100644
--- a/src/saml2/server.py
+++ b/src/saml2/server.py
@@ -476,7 +476,7 @@ class Server(Entity):
if not encrypt_assertion:
if sign_assertion:
assertion.signature = pre_signature_part(assertion.id,
- ... | The ID of each Signature element must be unique If the assertion and response both are signed, both Signatures have an ID of `Signature1`. This creates invalid xml as xs:ID must be unique. This fixes the issue when integrating with onelogin's python3-saml client: Element '{<URL> | py |
diff --git a/salt/modules/slsutil.py b/salt/modules/slsutil.py
index <HASH>..<HASH> 100644
--- a/salt/modules/slsutil.py
+++ b/salt/modules/slsutil.py
@@ -53,6 +53,26 @@ def merge(obj_a, obj_b, strategy='smart', renderer='yaml', merge_lists=False):
return salt.utils.dictupdate.merge(obj_a, obj_b, strategy, rendere... | Adding a merge_all function to slsutil The merge_all function merges a list of objects in order. This will make it easier to merge more than two objects. | py |
diff --git a/satpy/readers/agri_l1.py b/satpy/readers/agri_l1.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/agri_l1.py
+++ b/satpy/readers/agri_l1.py
@@ -69,8 +69,7 @@ class HDF_AGRI_L1(HDF5FileHandler):
data.attrs['units'] = ds_info['units']
ds_info['valid_range'] = data.attrs['valid_ran... | Update AGRI reader to keep codefactor happy. | py |
diff --git a/mapclassify.py b/mapclassify.py
index <HASH>..<HASH> 100644
--- a/mapclassify.py
+++ b/mapclassify.py
@@ -766,6 +766,7 @@ class Map_Classifier(object):
x = np.asarray(x).flatten()
uptos = [np.where(value < self.bins)[0] for value in x]
bins = [x.min() if x.size > 0 else len(self.... | find_bin should return the same type as yb | py |
diff --git a/tools/get_system_info.py b/tools/get_system_info.py
index <HASH>..<HASH> 100644
--- a/tools/get_system_info.py
+++ b/tools/get_system_info.py
@@ -35,14 +35,14 @@ PY2 = sys.version_info[0] == 2
def run_and_get_stdout(command, pipe_command=None):
if not pipe_command:
- p1 = subprocess.Popen(command, st... | Fixed issues with subprocess output being printed to console. | py |
diff --git a/metpy/plots/_mpl.py b/metpy/plots/_mpl.py
index <HASH>..<HASH> 100644
--- a/metpy/plots/_mpl.py
+++ b/metpy/plots/_mpl.py
@@ -2,6 +2,7 @@
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Functionality that we have upstreamed or will upstream into matp... | BUG: Enforce new-style division. (Fixes #<I>) This was causing differences in tests between Python 2 and 3. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(
url='http://github.com/LuminosoInsight/python-ftfy',
platforms=["any"],
description="Fixes some problems with Unicode text after the fact",
- packages=['ftfy'],
+ packages=['ftfy', 'ftf... | List 'ftfy.bad_codecs' as a package | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -388,6 +388,8 @@ class Connection(Base):
return hooks.JdbcHook(jdbc_conn_id=self.conn_id)
elif self.conn_type == 'mssql':
return hooks.MsSqlHoo... | Update models.py add Oracle SQL support through the OracleHook | py |
diff --git a/insteonplm/aldb.py b/insteonplm/aldb.py
index <HASH>..<HASH> 100644
--- a/insteonplm/aldb.py
+++ b/insteonplm/aldb.py
@@ -83,7 +83,7 @@ class ALDB(object):
return Device.create(plm, addr, cat, subcat, product_key)
- def has_override(cls, addr):
+ def has_override(self, addr):
... | Removed classmethod decorator from has_override | py |
diff --git a/src/nupic/algorithms/anomaly_likelihood.py b/src/nupic/algorithms/anomaly_likelihood.py
index <HASH>..<HASH> 100644
--- a/src/nupic/algorithms/anomaly_likelihood.py
+++ b/src/nupic/algorithms/anomaly_likelihood.py
@@ -213,13 +213,6 @@ class AnomalyLikelihood(object):
likelihood = 1.0 - likelihoods... | Remove greedy reestimation of distribution Turns out this trick can hurt when you have anomalies early on. It does not seem to help in any situation. Tested and verified with NAB. | py |
diff --git a/hamster/charting.py b/hamster/charting.py
index <HASH>..<HASH> 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -120,8 +120,7 @@ class Integrator(object):
if there is any action needed. returns velocity, which is synonym from
delta. Use it to determine when animation is done ... | woops, one variable too much - it's getting late! svn path=/trunk/; revision=<I> | py |
diff --git a/rinoh/structure.py b/rinoh/structure.py
index <HASH>..<HASH> 100644
--- a/rinoh/structure.py
+++ b/rinoh/structure.py
@@ -142,17 +142,22 @@ class ListItemNumber(Paragraph):
class ListItem(Flowable):
def __init__(self, number, separator, flowables, style=None, parent=None):
super().__init__(s... | Delay creating the ListItem marker until rendering (need Document) | py |
diff --git a/angr/simos.py b/angr/simos.py
index <HASH>..<HASH> 100644
--- a/angr/simos.py
+++ b/angr/simos.py
@@ -220,7 +220,8 @@ class SimOS(object):
state = SimState(**kwargs)
stack_end = state.arch.initial_sp
- state.memory.mem._preapproved_stack = IRange(stack_end - stack_size, stack_end... | Don't try to pre-approve memory during VSA | py |
diff --git a/tools/gen.py b/tools/gen.py
index <HASH>..<HASH> 100644
--- a/tools/gen.py
+++ b/tools/gen.py
@@ -10,8 +10,8 @@ from slimit.visitors import nodevisitor
from slimit.visitors.ecmavisitor import ECMAVisitor
from slimit import ast
-aws_url =
-"https://awsiamconsole.s3.amazonaws.com/iam/assets/js/bundles/po... | Fix indentation/line continuation problem introduced with style fix | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -1014,7 +1014,7 @@ class NativeResampler(BaseResampler):
raise ValueError("Expand factor must be a whole number")
d_arr = da.repeat(d_arr, int(factor), ... | Remove unnecessary elif in resample.py | py |
diff --git a/src/codemod.py b/src/codemod.py
index <HASH>..<HASH> 100755
--- a/src/codemod.py
+++ b/src/codemod.py
@@ -98,9 +98,10 @@ def path_filter(extensions=None, exclude_paths=[]):
if extensions:
if not any(path.endswith('.' + extension) for extension in extensions):
return False
- for excl... | Fix bug in my new exclude paths feature | py |
diff --git a/libextract/prototypes/prototype.py b/libextract/prototypes/prototype.py
index <HASH>..<HASH> 100644
--- a/libextract/prototypes/prototype.py
+++ b/libextract/prototypes/prototype.py
@@ -1,9 +1,7 @@
from functools import wraps
from statscounter import stats
-from ..formatters import table_json
-
-
+from... | added tbody to table formatter's resolution | py |
diff --git a/toytree/TreeStyle.py b/toytree/TreeStyle.py
index <HASH>..<HASH> 100644
--- a/toytree/TreeStyle.py
+++ b/toytree/TreeStyle.py
@@ -100,6 +100,10 @@ STYLES = {
"node_hover": False,
"tip_labels": False,
"scalebar": True,
+ "node_style": {
+ "stroke": "#262626",
... | added stroke to 'c' style | py |
diff --git a/flasgger/utils.py b/flasgger/utils.py
index <HASH>..<HASH> 100644
--- a/flasgger/utils.py
+++ b/flasgger/utils.py
@@ -88,11 +88,11 @@ def get_specs(rules, ignore_verbs, optional_fields, sanitizer):
klass = method.__dict__.get('view_class', None)
if not is_mv and klass and hasatt... | fix: should use getattr | py |
diff --git a/ppb/engine.py b/ppb/engine.py
index <HASH>..<HASH> 100644
--- a/ppb/engine.py
+++ b/ppb/engine.py
@@ -1,3 +1,4 @@
+from collections import defaultdict
from collections import deque
from contextlib import ExitStack
from itertools import chain
@@ -32,6 +33,7 @@ class GameEngine(Engine, EventMixin):
... | Subsystems can now extend other system's events. | 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
@@ -2,6 +2,12 @@ from __future__ import with_statement
from django.conf import settings, UserSettingsHolder
from django.utils.functional import... | Add SETTING_DELETED to test for non-existent settings | py |
diff --git a/inginious/frontend/pages/course_admin/settings.py b/inginious/frontend/pages/course_admin/settings.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/pages/course_admin/settings.py
+++ b/inginious/frontend/pages/course_admin/settings.py
@@ -32,10 +32,10 @@ class CourseSettings(INGIniousAdminPage):
... | Fix (an orthogonal, preexisting) bug that added an admin/tutor with login "()" when no admin/tutor is given. | py |
diff --git a/phonenumber_field/modelfields.py b/phonenumber_field/modelfields.py
index <HASH>..<HASH> 100644
--- a/phonenumber_field/modelfields.py
+++ b/phonenumber_field/modelfields.py
@@ -60,7 +60,9 @@ class PhoneNumberField(models.Field):
elif self.blank:
return to_python(self.default)... | quick and dirty fix for Django <I> migrations bug The function check if value can be None at the beginning but if it is an empty string to_python will return None and get_prep_value will try to execute value.as_e<I> with value as None type. | py |
diff --git a/sos/plugins/monit.py b/sos/plugins/monit.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/monit.py
+++ b/sos/plugins/monit.py
@@ -23,7 +23,7 @@ class Monit(Plugin, RedHatPlugin):
"""Monit monitoring daemon
"""
packages = ('monit',)
- profiles = ('system')
+ profiles = ('system',)
... | [monit] Correct the monit plugin profile list. Correct profiles = ('system',) Closes:#<I> | py |
diff --git a/vcs/utils/diffs.py b/vcs/utils/diffs.py
index <HASH>..<HASH> 100644
--- a/vcs/utils/diffs.py
+++ b/vcs/utils/diffs.py
@@ -137,17 +137,21 @@ class DiffProcessor(object):
"""
Extract the filename and revision hint from a line.
"""
+
try:
if line1.startswith('-... | fixed issue with diff filepaths, for new nodes there was /dev/null returned as filename | py |
diff --git a/paypal/standard/ipn/admin.py b/paypal/standard/ipn/admin.py
index <HASH>..<HASH> 100644
--- a/paypal/standard/ipn/admin.py
+++ b/paypal/standard/ipn/admin.py
@@ -67,6 +67,16 @@ class PayPalIPNAdmin(admin.ModelAdmin):
"next_payment_date"
]
}),
+ ("Subscription",... | Display the subscription related fields in the admin | py |
diff --git a/saltcloud/clouds/joyent.py b/saltcloud/clouds/joyent.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/joyent.py
+++ b/saltcloud/clouds/joyent.py
@@ -18,8 +18,6 @@ Using the old cloud configuration syntax, it requires that the ``username`` and
# the Datacenter location associated with the new VMS
... | #<I> - Added support for joyent locations added location to get_conn method moved get_conn call to __virtual__() added JOYENT_LOCATIONS and get_location and avail_locations methods | py |
diff --git a/tests/test_container.py b/tests/test_container.py
index <HASH>..<HASH> 100644
--- a/tests/test_container.py
+++ b/tests/test_container.py
@@ -56,6 +56,10 @@ class ContainerTest(TestCase):
newCfg = Container.fromRockerConfig("abc", dict(cfg)).toRockerFile()
+ # sort links (we don't care about thei... | fixed a link sorting issue in test_container.py | py |
diff --git a/peri/initializers.py b/peri/initializers.py
index <HASH>..<HASH> 100644
--- a/peri/initializers.py
+++ b/peri/initializers.py
@@ -86,7 +86,7 @@ def local_max_featuring(im, radius=10, smooth=4, masscut=None):
pos = np.array(nd.measurements.center_of_mass(e==g, lbl, ind))
if masscut is not None:
... | VisibleDeprecationWarning in peri.initializers.local_max_featuring. | py |
diff --git a/examples/bme280_simpletest_pico.py b/examples/bme280_simpletest_pico.py
index <HASH>..<HASH> 100644
--- a/examples/bme280_simpletest_pico.py
+++ b/examples/bme280_simpletest_pico.py
@@ -7,7 +7,7 @@ import busio
import adafruit_bme280
# Create sensor object, using the board's default I2C bus.
-i2c = bus... | Re-ran pre-commit hooks | py |
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplot.py
+++ b/astrobase/checkplot.py
@@ -2041,6 +2041,13 @@ def checkplot_dict(lspinfolist,
# errs, but should provide enough uniqueness otherwise (across different
# times/mags array inputs). this is... | checkplot: try hard to get an objectid out of the input kwargs | py |
diff --git a/albumentations/augmentations/functional.py b/albumentations/augmentations/functional.py
index <HASH>..<HASH> 100644
--- a/albumentations/augmentations/functional.py
+++ b/albumentations/augmentations/functional.py
@@ -1047,8 +1047,8 @@ def channel_dropout(img, channels_to_drop, fill_value=0):
def gamma_tr... | gamma_transform optimization (#<I>) * gamma_transform optimization * gamma_transform removed division | py |
diff --git a/python/ccxt/async/base/exchange.py b/python/ccxt/async/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/async/base/exchange.py
+++ b/python/ccxt/async/base/exchange.py
@@ -61,7 +61,7 @@ class Exchange(BaseExchange):
}, self.tokenBucket))
def __del__(self):
- self.asynci... | exchange.py run_until_complete → ensure_future fix #<I> | py |
diff --git a/flasgger/utils.py b/flasgger/utils.py
index <HASH>..<HASH> 100644
--- a/flasgger/utils.py
+++ b/flasgger/utils.py
@@ -72,7 +72,7 @@ def swag_from(specs=None, filetype=None, endpoint=None, methods=None,
swag_paths = getattr(function, 'swag_paths', None)
validate_args = {
... | Attempt to resolve #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,8 @@ setup(name = 'synergy_odm',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
- 'Programming Language ::... | - marking both Python <I> and 3 as supported | py |
diff --git a/paramiko/packet.py b/paramiko/packet.py
index <HASH>..<HASH> 100644
--- a/paramiko/packet.py
+++ b/paramiko/packet.py
@@ -167,7 +167,7 @@ class Packetizer (object):
self.__keepalive_callback = callback
self.__keepalive_last = time.time()
- def read_all(self, n):
+ def read_all... | [project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-<I>] copy from jaramiko: only check for rekey at the beginning of a packet | py |
diff --git a/wagtailnews/views/editor.py b/wagtailnews/views/editor.py
index <HASH>..<HASH> 100644
--- a/wagtailnews/views/editor.py
+++ b/wagtailnews/views/editor.py
@@ -16,7 +16,7 @@ from ..models import get_newsindex_content_types
def get_newsitem_edit_handler(NewsItem):
panels = extract_panel_definitions_from... | Changed edit_handler to support wagtail <I>b1 | py |
diff --git a/examples/scripts/get-managed-sans.py b/examples/scripts/get-managed-sans.py
index <HASH>..<HASH> 100755
--- a/examples/scripts/get-managed-sans.py
+++ b/examples/scripts/get-managed-sans.py
@@ -21,8 +21,9 @@
# THE SOFTWARE.
###
import sys
+import re
if sys.version_info < (3, 2):
- raise Exception("M... | New exmaple script get-managed-sans.py | py |
diff --git a/steamspypi/api.py b/steamspypi/api.py
index <HASH>..<HASH> 100644
--- a/steamspypi/api.py
+++ b/steamspypi/api.py
@@ -1,6 +1,18 @@
import requests
+def fix_request(data_request):
+ if 'appid' in data_request:
+ # Make sure appid are strings, not integers.
+ data_request['appid'] = str... | Small fixes to data request, in case the user follows SteamSpy API doc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,11 +6,20 @@ try:
except ImportError:
from distutils.core import setup
+here = path.abspath(path.dirname(__file__))
+
def readme():
- here = path.abspath(path.dirname(__file__))
- with open(path.join(here, '... | Added call to pandoc to convert README.md to rst * PyPI only supports reStructuredTxt syntax, not Markdown. Now long description on PyPI should have a correct formatting | py |
diff --git a/webhooks/senders/base.py b/webhooks/senders/base.py
index <HASH>..<HASH> 100644
--- a/webhooks/senders/base.py
+++ b/webhooks/senders/base.py
@@ -87,10 +87,12 @@ class Senderable(object):
""" Dump the payload to JSON """
return json.dumps(self.payload, cls=StandardJSONEncoder)
- def ... | NH - adding debug detail. | py |
diff --git a/django_q/monitor.py b/django_q/monitor.py
index <HASH>..<HASH> 100644
--- a/django_q/monitor.py
+++ b/django_q/monitor.py
@@ -9,13 +9,19 @@ from django.utils import timezone
from django.utils.translation import ugettext as _
# local
-from .conf import Conf, redis_client
+from .conf import Conf, redis_c... | Monitor starts with pinging Redis. | py |
diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py
index <HASH>..<HASH> 100644
--- a/telethon/network/connection/connection.py
+++ b/telethon/network/connection/connection.py
@@ -65,7 +65,7 @@ class Connection(abc.ABC):
else:
s.set_proxy(*sel... | Switch to blocking connect when using proxy (#<I>) Until a better fix is found, this should help proxy users. | py |
diff --git a/pysat/tests/test_registry.py b/pysat/tests/test_registry.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_registry.py
+++ b/pysat/tests/test_registry.py
@@ -186,7 +186,7 @@ class TestRegistration():
# registered has been removed
for platform, name in zip(self.platforms, self.... | STY: Covered bare exception | py |
diff --git a/afkak/test/test_brokerclient.py b/afkak/test/test_brokerclient.py
index <HASH>..<HASH> 100644
--- a/afkak/test/test_brokerclient.py
+++ b/afkak/test/test_brokerclient.py
@@ -365,6 +365,12 @@ class KafkaBrokerClientTestCase(unittest.TestCase):
c.connector.factory = c # MemoryReactor doesn't make t... | Add docstring comment to new test as requested by review. | py |
diff --git a/jsonschema/validators.py b/jsonschema/validators.py
index <HASH>..<HASH> 100644
--- a/jsonschema/validators.py
+++ b/jsonschema/validators.py
@@ -753,7 +753,8 @@ class RefResolver(object):
result = requests.get(uri).json
else:
# Otherwise, pass off to urllib and assum... | Fix unclosed resource in validators | py |
diff --git a/macroeco/main/main.py b/macroeco/main/main.py
index <HASH>..<HASH> 100644
--- a/macroeco/main/main.py
+++ b/macroeco/main/main.py
@@ -475,7 +475,7 @@ def _write_test_statistics(spid, models, options, fit_results):
for model in models:
fit_result = fit_results[spid][model]
- fit_stats... | Main was cutting off the first and last AIC digit | 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
import os, platform
-version = "1.8.11"
+version = "1.8.12"
def package_files(directory):
paths = []
@@ -59,12 +59,12 @@ on how to use MAVProxy.''',
author='Andrew T... | mark mavproxy releases as stable | py |
diff --git a/src/ossos-pipeline/ossos/storage.py b/src/ossos-pipeline/ossos/storage.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/storage.py
+++ b/src/ossos-pipeline/ossos/storage.py
@@ -20,7 +20,7 @@ CERTFILE=os.path.join(os.getenv('HOME'),
DBIMAGES='vos:OSSOS/dbimages'
MEASURE3='vos:OSSOS/measure3'
... | MAJOR: Data web service is changing location. | py |
diff --git a/mechanicalsoup/browser.py b/mechanicalsoup/browser.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/browser.py
+++ b/mechanicalsoup/browser.py
@@ -75,8 +75,8 @@ class Browser:
session handles cookies automatically without calling this function,
only use this when default cookie handlin... | Update reference of CookieJar to Python 3 The module namespace where CookieJar exists has been changed in Python 3 (it is in `http.cookiejar` instead of `cookielib`). Update the documentation accordingly. | py |
diff --git a/gpustat.py b/gpustat.py
index <HASH>..<HASH> 100755
--- a/gpustat.py
+++ b/gpustat.py
@@ -255,7 +255,11 @@ class GPUStatCollection(object):
ps_process = psutil.Process(pid=pid)
process['username'] = ps_process.username()
# cmdline returns full path; as in ... | Fix a bug (IndexError) where commands might be empty It sometimes happens that some zombie processes or unknown processes with no command-line information are retrieved. We should avoid an error thrown in such a case. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,17 +14,16 @@
# All configuration values have a default; values that are commented out
# serve to show the default
-# Allow Sphinx to find the setup command that is imported below.
+# If extensions (or m... | Update conf.py to place it below original docstring. | py |
diff --git a/node2vec/node2vec.py b/node2vec/node2vec.py
index <HASH>..<HASH> 100644
--- a/node2vec/node2vec.py
+++ b/node2vec/node2vec.py
@@ -5,7 +5,7 @@ import numpy as np
import networkx as nx
import gensim
from joblib import Parallel, delayed
-from tqdm import tqdm
+from tqdm.auto import tqdm
from .parallel i... | Added TQDM wrapper for showing the proper loading bar within Jupyter Notebooks. | py |
diff --git a/pydriller/domain/commit.py b/pydriller/domain/commit.py
index <HASH>..<HASH> 100644
--- a/pydriller/domain/commit.py
+++ b/pydriller/domain/commit.py
@@ -574,7 +574,7 @@ class Commit:
@property
def lines(self) -> int:
"""
- Return the deletion lines of the commit.
+ Return ... | Update commit.py fix comments error by copy-paste | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -147,6 +147,8 @@ class Torrent():
:raises PathEmptyError: if :attr:`path` contains no data (i.e. empty
file, empty directory or directory containing only empty files)
+ ... | Torrent.path: Add more exceptions to docstring | py |
diff --git a/master/buildbot/status/web/hooks/bitbucket.py b/master/buildbot/status/web/hooks/bitbucket.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/hooks/bitbucket.py
+++ b/master/buildbot/status/web/hooks/bitbucket.py
@@ -38,10 +38,8 @@ def getChanges(request, options=None):
payload = json.loa... | Convert BitBucket hook's project from a list to a string | py |
diff --git a/pygleif/api/data.py b/pygleif/api/data.py
index <HASH>..<HASH> 100644
--- a/pygleif/api/data.py
+++ b/pygleif/api/data.py
@@ -90,11 +90,11 @@ class Entity(BaseModel):
jurisdiction: str = Field(alias="jurisdiction")
legal_address: Address = Field(alias="legalAddress")
legal_form: LegalForm = ... | Fix missing alias (#<I>) | py |
diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/plotting/test_datetimelike.py
+++ b/pandas/tests/plotting/test_datetimelike.py
@@ -1,5 +1,5 @@
""" Test cases for time series specific (freq conversion, etc) """
-
+import... | TST: Work around statsmodels bug (#<I>) | py |
diff --git a/ledgerautosync/ledgerwrap.py b/ledgerautosync/ledgerwrap.py
index <HASH>..<HASH> 100644
--- a/ledgerautosync/ledgerwrap.py
+++ b/ledgerautosync/ledgerwrap.py
@@ -174,6 +174,15 @@ class Ledger(MetaLedger):
for line in r:
self.add_payee(line[2], line[3])
+ def get_autosync_... | Add function to get correct payee (plain Ledger) | py |
diff --git a/backtrader/indicator.py b/backtrader/indicator.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicator.py
+++ b/backtrader/indicator.py
@@ -29,6 +29,19 @@ from .lineiterator import LineIterator, IndicatorBase
class MetaIndicator(IndicatorBase.__class__):
+ _indcol = dict()
+
+ def __init__(cls... | indicators autoregister with Indicator (for things like autodocumentation) | py |
diff --git a/notario/__init__.py b/notario/__init__.py
index <HASH>..<HASH> 100644
--- a/notario/__init__.py
+++ b/notario/__init__.py
@@ -1,4 +1,4 @@
from notario.engine import validate
from notario.utils import ensure
-__version__ = '0.0.10'
+__version__ = '0.0.11' | bump the version to <I> | py |
diff --git a/yowsup/common/tools.py b/yowsup/common/tools.py
index <HASH>..<HASH> 100644
--- a/yowsup/common/tools.py
+++ b/yowsup/common/tools.py
@@ -101,7 +101,7 @@ class StorageTools:
@staticmethod
def writePhoneData(phone, name, val):
path = StorageTools.getStorageForPhone(phone)
- with op... | [fix] open phone file bin mode if val is bytes | py |
diff --git a/jmboyourwords/admin.py b/jmboyourwords/admin.py
index <HASH>..<HASH> 100644
--- a/jmboyourwords/admin.py
+++ b/jmboyourwords/admin.py
@@ -45,13 +45,8 @@ class YourStoryCompetitionAdmin(admin.ModelAdmin):
class YourStoryEntryAdmin(admin.ModelAdmin):
list_filter = ('created', 'your_story_competition'... | Removed msisdn display in change list. | py |
diff --git a/patroni/version.py b/patroni/version.py
index <HASH>..<HASH> 100644
--- a/patroni/version.py
+++ b/patroni/version.py
@@ -1 +1 @@
-__version__ = '1.2.4'
+__version__ = '1.2.5' | Bump up to <I> (#<I>) | py |
diff --git a/python/nano/example/pytorch/quantization/inc/resnet18_cifar.py b/python/nano/example/pytorch/quantization/inc/resnet18_cifar.py
index <HASH>..<HASH> 100644
--- a/python/nano/example/pytorch/quantization/inc/resnet18_cifar.py
+++ b/python/nano/example/pytorch/quantization/inc/resnet18_cifar.py
@@ -31,6 +31,... | Fix type check failure in resnet<I>_cifar (#<I>) * ignore type check on resnet<I>_cifar * roll back unrelated changes | py |
diff --git a/baron/test_grammator_control_structures.py b/baron/test_grammator_control_structures.py
index <HASH>..<HASH> 100644
--- a/baron/test_grammator_control_structures.py
+++ b/baron/test_grammator_control_structures.py
@@ -192,7 +192,7 @@ def test_if_else_stmt_indent():
('ENDL', '\n'),
(... | [fix] still present old token format | py |
diff --git a/ardy/core/build/build.py b/ardy/core/build/build.py
index <HASH>..<HASH> 100644
--- a/ardy/core/build/build.py
+++ b/ardy/core/build/build.py
@@ -106,7 +106,7 @@ class Build(ConfigMixin):
def get_src_path(self):
return self.src_path
- def run(self, src_folder, requirements=False, local_p... | Build: search for requirements.txt by default | py |
diff --git a/lib/numina/diskstorage.py b/lib/numina/diskstorage.py
index <HASH>..<HASH> 100644
--- a/lib/numina/diskstorage.py
+++ b/lib/numina/diskstorage.py
@@ -44,17 +44,24 @@ def _store_rr(obj, where):
external = []
- for key in obj:
- t = type(obj[key])
+ try:
+ # Iterator for ... | Working with dictionaries and other iterables | py |
diff --git a/grove/simon/simon.py b/grove/simon/simon.py
index <HASH>..<HASH> 100644
--- a/grove/simon/simon.py
+++ b/grove/simon/simon.py
@@ -1,9 +1,8 @@
-"""Module for the Bernstein-Vazirani Algorithm."""
+"""Module for the Simon's Algorithm."""
import pyquil.quil as pq
from pyquil.gates import *
import numpy as... | Minor clean up. Note that tests are still needed, as well as functionality for detecting one-to-one. | py |
diff --git a/yaka/services/indexing.py b/yaka/services/indexing.py
index <HASH>..<HASH> 100644
--- a/yaka/services/indexing.py
+++ b/yaka/services/indexing.py
@@ -34,6 +34,7 @@ from shutil import rmtree
class WhooshIndexService(object):
app = None
+ to_update = {}
def __init__(self, app=None):
self.ind... | Safeguard in case something goes wrong. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
import os
-from distutils.core import setup
+#from distutils.core import setup
+from setuptools import setup
def read(fname): | update from distutils to setuptools | py |
diff --git a/xclim/indices/fwi.py b/xclim/indices/fwi.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/fwi.py
+++ b/xclim/indices/fwi.py
@@ -129,7 +129,7 @@ References
Codes:
.. bibliography::
- :unsrt:
+ :style: unsrt
:labelprefix: CODE
:keyprefix: code-
@@ -138,14 +138,14 @@ Matlab code of the GFW... | unsort bibliography in fwi fix | py |
diff --git a/auth_backends/__init__.py b/auth_backends/__init__.py
index <HASH>..<HASH> 100644
--- a/auth_backends/__init__.py
+++ b/auth_backends/__init__.py
@@ -3,4 +3,4 @@
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
projects as well.
"""
-_... | Updated to version <I> ECOM-<I> | py |
diff --git a/gsl/g4visitor.py b/gsl/g4visitor.py
index <HASH>..<HASH> 100644
--- a/gsl/g4visitor.py
+++ b/gsl/g4visitor.py
@@ -37,7 +37,10 @@ def process(in_file, out_file=None):
from collections import namedtuple
from gsl.antlr import ParseTreeVisitor
-from .{grammarName}Parser import {grammarName}Parser
+if __nam... | correct generated parser import statement for when the parser is not part of a module | py |
diff --git a/remi/gui.py b/remi/gui.py
index <HASH>..<HASH> 100644
--- a/remi/gui.py
+++ b/remi/gui.py
@@ -590,9 +590,12 @@ class ListView(Widget):
@classmethod
def new_from_list(cls, w, h, items):
+ """
+ the items are appended with an string enumeration key
+ """
obj = cl... | Fixed issue #<I>. Now the ListView item are appended with an enumeration key. | py |
diff --git a/tests/test_method.py b/tests/test_method.py
index <HASH>..<HASH> 100644
--- a/tests/test_method.py
+++ b/tests/test_method.py
@@ -326,6 +326,14 @@ def test_clear_blast(variables):
os.remove(os.path.join(targetpath, 'baitedtargets.nhr'))
+def test_clear_kma(variables):
+ targetpath = os.path.joi... | Added function to clean up KMA targets | py |
diff --git a/test/integration/022_bigquery_test/test_bigquery_copy_failing_models.py b/test/integration/022_bigquery_test/test_bigquery_copy_failing_models.py
index <HASH>..<HASH> 100644
--- a/test/integration/022_bigquery_test/test_bigquery_copy_failing_models.py
+++ b/test/integration/022_bigquery_test/test_bigquery_... | Should be two results for original table and (failing) copy | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -159,7 +159,6 @@ def dist_from_args(ctx, args):
ctx,
name=args.dist_name,
recipes=split_argument_list(args.requirem... | Removed extra_dist_dirs passing to get_distributions | py |
diff --git a/ginga/misc/plugins/Thumbs.py b/ginga/misc/plugins/Thumbs.py
index <HASH>..<HASH> 100644
--- a/ginga/misc/plugins/Thumbs.py
+++ b/ginga/misc/plugins/Thumbs.py
@@ -204,9 +204,6 @@ class Thumbs(GingaPlugin.GlobalPlugin):
if not self.gui_up:
return
- if path is None:
- ... | Thumbs now removes deleted mosaic | 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
@@ -497,8 +497,6 @@ def test_b64_encode_img_valid_png():
img = utils.array_to_img(arr)
assert utils.b64_encode_img(img, 'png')
-# KeyError being generated for WEBP format
-@... | Enabling test failing due to local environment issue | py |
diff --git a/LiSE/LiSE/proxy.py b/LiSE/LiSE/proxy.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/proxy.py
+++ b/LiSE/LiSE/proxy.py
@@ -1981,7 +1981,7 @@ class EngineProxy(AbstractEngine):
for orig, dests in portdata.items():
assert orig not in self._character_portals_cache[char]
asser... | Cache portal data correctly when creating character in remote proc | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.