diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -14,7 +14,7 @@ from functools import wraps
from .services import DeviceProperties, ContentDirectory
from .services import RenderingControl, AVTransport, ZoneGroupTopology
-from .services import AlarmClock
+... | Clear zone group cache and reparse zone group information after join and unjoin. Fixes #<I> | py |
diff --git a/sdk/python/sawtooth_sdk/workload/workload_generator.py b/sdk/python/sawtooth_sdk/workload/workload_generator.py
index <HASH>..<HASH> 100644
--- a/sdk/python/sawtooth_sdk/workload/workload_generator.py
+++ b/sdk/python/sawtooth_sdk/workload/workload_generator.py
@@ -126,7 +126,7 @@ class WorkloadGenerator(o... | Iterate over tasks with copy on workload stop Iterating over a copy of the task list prevents concurrent modifications of the underlying task list to cause errors. | py |
diff --git a/condoor/version.py b/condoor/version.py
index <HASH>..<HASH> 100644
--- a/condoor/version.py
+++ b/condoor/version.py
@@ -1,3 +1,3 @@
"""Version information."""
-__version__ = '1.0.8'
+__version__ = '1.0.9' | Bumping version number to <I> | py |
diff --git a/test/test_remote.py b/test/test_remote.py
index <HASH>..<HASH> 100644
--- a/test/test_remote.py
+++ b/test/test_remote.py
@@ -221,6 +221,7 @@ run:
out = subprocess.check_output('sos status {} -c docker.yml'.format(tasks), shell=True).decode()
self.assertEqual(out.count('completed'), len(r... | Stop a docker related test on windows | py |
diff --git a/tests/linalg_test.py b/tests/linalg_test.py
index <HASH>..<HASH> 100644
--- a/tests/linalg_test.py
+++ b/tests/linalg_test.py
@@ -245,6 +245,9 @@ class NumpyLinalgTest(jtu.JaxTestCase):
for rng in [jtu.rand_default()]))
def testEigvalsh(self, shape, dtype, rng):
_skip_if_unsupported_type(dty... | Disable complex eigvalsh test on TPU. (#<I>) | py |
diff --git a/snmp_passpersist.py b/snmp_passpersist.py
index <HASH>..<HASH> 100644
--- a/snmp_passpersist.py
+++ b/snmp_passpersist.py
@@ -226,6 +226,8 @@ class PassPersist:
Direct call is unnecessary.
"""
line = sys.stdin.readline().strip()
+ if not line:
+ raise EOFError()
if 'PING' in line:
prin... | Exit the program on EOF from stdin | py |
diff --git a/synapse/lib/syntax.py b/synapse/lib/syntax.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/syntax.py
+++ b/synapse/lib/syntax.py
@@ -42,6 +42,13 @@ def nom(txt,off,cset,trim=True):
return r,off
+def meh(txt,off,cset):
+ r = ''
+ while len(txt) > off and txt[off] not in cset:
+ r += t... | added meh() function to consume while not in cset | py |
diff --git a/_pytest/python.py b/_pytest/python.py
index <HASH>..<HASH> 100644
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -1168,12 +1168,12 @@ def _showfixtures_main(config, session):
assert fixturedefs is not None
if not fixturedefs:
continue
- fixturedef = fixturedefs[-1]... | Change _showfixtures_main to loop over fixturedefs | py |
diff --git a/sonnet/python/modules/batch_norm.py b/sonnet/python/modules/batch_norm.py
index <HASH>..<HASH> 100644
--- a/sonnet/python/modules/batch_norm.py
+++ b/sonnet/python/modules/batch_norm.py
@@ -112,8 +112,7 @@ class BatchNorm(base.AbstractModule):
...
update_ops = tf.group(*tf.get_collection(tf... | Update batch-norm example in comment. PiperOrigin-RevId: <I> | py |
diff --git a/openid/message.py b/openid/message.py
index <HASH>..<HASH> 100644
--- a/openid/message.py
+++ b/openid/message.py
@@ -369,8 +369,9 @@ class Message(object):
namespace = self._fixNS(namespace)
del self.args[(namespace, key)]
-#XXX: testme!
class NamespaceMap(object):
+ """Maintains a... | [project @ Add a couple doc strings.] | py |
diff --git a/andes/models/distributed.py b/andes/models/distributed.py
index <HASH>..<HASH> 100644
--- a/andes/models/distributed.py
+++ b/andes/models/distributed.py
@@ -519,10 +519,13 @@ class ESD1Model(PVD1Model):
# --- Add hard limiter for SOC ---
self.SOC = HardLimiter(u=self.pIG_y, lower=self.SO... | Updated Ipcmd limits in ESD1 | py |
diff --git a/pyls/plugins/pyflakes_lint.py b/pyls/plugins/pyflakes_lint.py
index <HASH>..<HASH> 100644
--- a/pyls/plugins/pyflakes_lint.py
+++ b/pyls/plugins/pyflakes_lint.py
@@ -31,8 +31,17 @@ class PyflakesDiagnosticReport(object):
self.lines = lines
self.diagnostics = []
- def unexpectedError(... | Do not hide unexpected errors from pyflakes (#<I>) * Do not hide unexpected errors from pyflakes Pyflake's api can report source decoding error throught unexpectedError. If these errors are hidden then it's hard to say if linter is enabled and working. * Underscored unused variable | py |
diff --git a/pubmed_lookup.py b/pubmed_lookup.py
index <HASH>..<HASH> 100644
--- a/pubmed_lookup.py
+++ b/pubmed_lookup.py
@@ -91,10 +91,11 @@ class Publication(object):
abstract_text = abstract_xml['#text']
try:
abstract_label = abstract_xml['@Label']
- abstrac... | Move extra code from 'try' block to 'else' block | py |
diff --git a/sanic/request.py b/sanic/request.py
index <HASH>..<HASH> 100644
--- a/sanic/request.py
+++ b/sanic/request.py
@@ -78,6 +78,11 @@ class Request(dict):
self.method,
self.path)
+ def __bool__(self):
+ if self.transport... | make request truthy if has transport (#<I>) | py |
diff --git a/gcl/__init__.py b/gcl/__init__.py
index <HASH>..<HASH> 100644
--- a/gcl/__init__.py
+++ b/gcl/__init__.py
@@ -14,9 +14,10 @@ from . import framework
__version__ = '0.5.3'
-# Namespace copy for backwards compatibility
+# Namespace copy for backwards compatibility.
GCLError = exceptions.GCLError
Parse... | Fix potential backwards compatibility issue by copying a binding | py |
diff --git a/ella/ellaadmin/fields.py b/ella/ellaadmin/fields.py
index <HASH>..<HASH> 100644
--- a/ella/ellaadmin/fields.py
+++ b/ella/ellaadmin/fields.py
@@ -9,7 +9,6 @@ from django.template import Template, TextNode, TemplateSyntaxError
from django.contrib.admin.widgets import AdminFileWidget
from django.contrib.co... | circular import avoided (occurs when ellaadmin and newman are installed) | py |
diff --git a/gns3server/modules/port_manager.py b/gns3server/modules/port_manager.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/port_manager.py
+++ b/gns3server/modules/port_manager.py
@@ -42,8 +42,8 @@ class PortManager:
server_config = Config.instance().get_section_config("Server")
remote_... | Sets console end port to <I>. Fixes #<I>. | py |
diff --git a/bids/modeling/transformations/base.py b/bids/modeling/transformations/base.py
index <HASH>..<HASH> 100644
--- a/bids/modeling/transformations/base.py
+++ b/bids/modeling/transformations/base.py
@@ -313,8 +313,17 @@ class Transformation(metaclass=ABCMeta):
if self.output_suffix is not None:... | handle multiple variables being output from Convolve | py |
diff --git a/secure_smtpd/smtp_channel.py b/secure_smtpd/smtp_channel.py
index <HASH>..<HASH> 100644
--- a/secure_smtpd/smtp_channel.py
+++ b/secure_smtpd/smtp_channel.py
@@ -48,17 +48,6 @@ class SMTPChannel(smtpd.SMTPChannel):
data = data.decode('utf-8')
self.__line.append(data)
- def smtp_E... | remove override of smtp_EHLO method | py |
diff --git a/ipyvolume/_version.py b/ipyvolume/_version.py
index <HASH>..<HASH> 100644
--- a/ipyvolume/_version.py
+++ b/ipyvolume/_version.py
@@ -1,6 +1,6 @@
-__version_tuple__ = (0, 6, 0, 'alpha.7')
-__version__ = '0.6.0-alpha.7'
+__version_tuple__ = (0, 6, 0, 'alpha.8')
+__version__ = '0.6.0-alpha.8'
__version_tu... | 🔖 py <I>-alpha<I> released | py |
diff --git a/etc/downloads_badges.py b/etc/downloads_badges.py
index <HASH>..<HASH> 100644
--- a/etc/downloads_badges.py
+++ b/etc/downloads_badges.py
@@ -37,7 +37,7 @@ def millify(n):
# - 967123 -> 967k
# - 1000123 -> 1M
# - 1100123 -> 1.1M
- final_output = one_decimal if n > 1e6 and not one_deci... | Catch corner case in downloads badge script | py |
diff --git a/tests/features/test_features.py b/tests/features/test_features.py
index <HASH>..<HASH> 100644
--- a/tests/features/test_features.py
+++ b/tests/features/test_features.py
@@ -89,6 +89,19 @@ def test_feature_extraction():
n_default_w_customized_features = session.query(FeatureKey).count()
featurize... | Demonstrate #<I> using a spurious extra feature extractor | py |
diff --git a/ncpol2sdpa/sdpa_utils.py b/ncpol2sdpa/sdpa_utils.py
index <HASH>..<HASH> 100644
--- a/ncpol2sdpa/sdpa_utils.py
+++ b/ncpol2sdpa/sdpa_utils.py
@@ -251,7 +251,7 @@ def convert_to_human_readable(sdpRelaxation):
indices_in_objective = []
for i, tmp in enumerate(sdpRelaxation.obj_facvar):
can... | write_to_human_readable made Python 3 compatible | py |
diff --git a/simpleai/search/__init__.py b/simpleai/search/__init__.py
index <HASH>..<HASH> 100644
--- a/simpleai/search/__init__.py
+++ b/simpleai/search/__init__.py
@@ -1,5 +1,5 @@
# coding: utf-8
from simpleai.search.models import CspProblem, SearchProblem
from simpleai.search.traditional import breadth_first, de... | Hill_climbing_random_restarts search being imported to be present on simpleai.search package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,8 @@ import os
import platform
import sys
+version = '0.3.0'
+
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
@@ -43,7 +45,7 @@ CL... | Add 'sys' to the setup.py | py |
diff --git a/examples/run_gpt2.py b/examples/run_gpt2.py
index <HASH>..<HASH> 100644
--- a/examples/run_gpt2.py
+++ b/examples/run_gpt2.py
@@ -16,11 +16,17 @@ logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(messa
logger = logging.getLogger(__name__)
def top_k_logits(logits, k):
+ """
+... | Fix top k generation for k != 0 | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -3927,7 +3927,7 @@ def upload_magic3(concat=0, dir_path='.', dmodel=None, vocab="", contribution=No
'specimen_gmax', 'specimen_frac', 'site_vadm', 'site_lon', 'site_vdm', 'site_lat',
... | remove site_definition column in upload_magic | py |
diff --git a/striplog/component.py b/striplog/component.py
index <HASH>..<HASH> 100644
--- a/striplog/component.py
+++ b/striplog/component.py
@@ -228,7 +228,7 @@ class Component(object):
if fmt == '':
return default
- keys = [k for k, v in self.__dict__.items() if v is not '']
+ k... | Changing to "!=" with literal avoids SyntaxWarning (#<I>) Previously the following warning was raised when importing striplog: `component.py:<I>: SyntaxWarning: "is not" with a literal. Did you mean "!="?` This change simply follows the suggested fix to avoid that warning. | py |
diff --git a/dojo/optimizers.py b/dojo/optimizers.py
index <HASH>..<HASH> 100644
--- a/dojo/optimizers.py
+++ b/dojo/optimizers.py
@@ -7,6 +7,7 @@ __all__ = [
"Momentum",
"RMSprop",
"Adam",
+ "NesterovAcceleratedGradient",
]
@@ -85,3 +86,18 @@ class Adam(Optimizer):
# Update
r... | [Update] Implement Nesterov Accelerated Gradient optimizer <I> | py |
diff --git a/synapse/tests/test_datamodel.py b/synapse/tests/test_datamodel.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_datamodel.py
+++ b/synapse/tests/test_datamodel.py
@@ -390,7 +390,7 @@ class DataModelTest(SynTest):
self.false(modl.isTufoForm('file:bytes:size'))
self.false(modl.isTufo... | Fix reqTufoForm test. | py |
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1207,26 +1207,13 @@ class DataFrameGroupBy(GroupBy[DataFrame]):
obj = self._obj_with_exclusions
result: dict[int | st... | REF: dont catch ValueError in aggregate_item_by_item (#<I>) | py |
diff --git a/openquake/calculators/risk/general.py b/openquake/calculators/risk/general.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/risk/general.py
+++ b/openquake/calculators/risk/general.py
@@ -520,7 +520,7 @@ class EpsilonProvider(object):
self.rnd = random.Random()
eps_rnd_seed = pa... | Cast the epislon seed to an int | py |
diff --git a/scanpy/tools/_phate.py b/scanpy/tools/_phate.py
index <HASH>..<HASH> 100644
--- a/scanpy/tools/_phate.py
+++ b/scanpy/tools/_phate.py
@@ -113,7 +113,7 @@ def phate(
adata = adata.copy() if copy else adata
verbose = settings.verbosity if verbose is None else verbose
if isinstance(settings.ver... | attempt to fix _settings_verbosity_greater_or_equal_than(2) error | py |
diff --git a/compliance_checker/ioos.py b/compliance_checker/ioos.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/ioos.py
+++ b/compliance_checker/ioos.py
@@ -1131,11 +1131,11 @@ class IOOS1_2Check(IOOSNCCheck):
if isinstance(gts_ingest_value, str):
is_valid_string = self._check_gts_ingest... | Change gts_ingest test name to NDBC/GTS Ingest Requirements | py |
diff --git a/cloudmesh/common/variables.py b/cloudmesh/common/variables.py
index <HASH>..<HASH> 100644
--- a/cloudmesh/common/variables.py
+++ b/cloudmesh/common/variables.py
@@ -21,7 +21,8 @@ class Variables(object):
self.data[str(key)] = value
def __delitem__(self, key):
- del self.data[str(key... | ignor delete variable if it is not defined | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from distutils.core import setup
+from setuptools import setup
import scoop
@@ -12,9 +12,9 @@ setup(name='scoop',
author_email='scoop-users@googlegroups.com',
url='http... | Changed distutils for distributed and added dependency resolve | py |
diff --git a/karaage/people/views/profile.py b/karaage/people/views/profile.py
index <HASH>..<HASH> 100644
--- a/karaage/people/views/profile.py
+++ b/karaage/people/views/profile.py
@@ -1,4 +1,5 @@
# Copyright 2014-2015 VPAC
+# Copyright 2014 The University of Melbourne
#
# This file is part of Karaage.
#
@@ -15,6... | Simplify login reference. Change-Id: I4f<I>c<I>d<I>ab<I>a8ef<I>c3b1 | py |
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Core__.py
+++ b/OpenPNM/Base/__Core__.py
@@ -1280,6 +1280,9 @@ class Core(dict):
Ts = self._map(element='throat',locations=throats,target=target,return_mapping=return_mapping)
return Ts
... | Added two shortcuts, netTs and netPs, that return the objects pores/throats automatically mapped onto the network mapping. It was already possible to get this with map_pores() and map_throats(), but this is just a bit simpler. | py |
diff --git a/perf/__main__.py b/perf/__main__.py
index <HASH>..<HASH> 100644
--- a/perf/__main__.py
+++ b/perf/__main__.py
@@ -199,18 +199,17 @@ def display_histogram(args, result):
counter = collections.Counter([bucket(value) for value in samples])
count_max = max(counter.values())
+ count_width = len(s... | hist: first write the number of samples | py |
diff --git a/spyderlib/config.py b/spyderlib/config.py
index <HASH>..<HASH> 100644
--- a/spyderlib/config.py
+++ b/spyderlib/config.py
@@ -157,7 +157,7 @@ DEFAULTS = [
'truncate': True,
'minmax': False,
'collvalue': False,
- 'remote_editing': True,
+ ... | Variable explorer: "remote-process editing" option is now turned off by default, i.e. variables are edited in Spyder's process to avoid any PyQt API compatibility issue when running scripts using a different PyQt API than Spyder's For the record, the remote editing feature is quite useful when editing large arrays (for... | py |
diff --git a/pyes/es.py b/pyes/es.py
index <HASH>..<HASH> 100644
--- a/pyes/es.py
+++ b/pyes/es.py
@@ -831,6 +831,8 @@ class ES(object):
cmd[op_type]['_version'] = version
if 'routing' in querystring_args:
cmd[op_type]['_routing'] = querystring_args['routing']
+ ... | Allow to percolate at index time in bulk mode | py |
diff --git a/pyocd/core/coresight_target.py b/pyocd/core/coresight_target.py
index <HASH>..<HASH> 100644
--- a/pyocd/core/coresight_target.py
+++ b/pyocd/core/coresight_target.py
@@ -1,5 +1,5 @@
# pyOCD debugger
-# Copyright (c) 2015-2019 Arm Limited
+# Copyright (c) 2015-2020 Arm Limited
# SPDX-License-Identifier: A... | Import six in coresight_target.py. | py |
diff --git a/tools/run_tests/artifacts/artifact_targets.py b/tools/run_tests/artifacts/artifact_targets.py
index <HASH>..<HASH> 100644
--- a/tools/run_tests/artifacts/artifact_targets.py
+++ b/tools/run_tests/artifacts/artifact_targets.py
@@ -180,7 +180,8 @@ class RubyArtifact:
# We are using a custom workspace in... | increase timeout for builing ruby artifact | py |
diff --git a/tests/test_import.py b/tests/test_import.py
index <HASH>..<HASH> 100644
--- a/tests/test_import.py
+++ b/tests/test_import.py
@@ -6,11 +6,12 @@ import pybel
dir_path = os.path.dirname(os.path.realpath(__file__))
+@unittest.skipUnless('PYBEL_ALLTESTS' in os.environ and os.environ['PYBEL_ALLTESTS'] == '... | turned off running memory intensive operations on travis | py |
diff --git a/ariane_clip3/zeromq/driver.py b/ariane_clip3/zeromq/driver.py
index <HASH>..<HASH> 100644
--- a/ariane_clip3/zeromq/driver.py
+++ b/ariane_clip3/zeromq/driver.py
@@ -115,13 +115,15 @@ class Subscriber(pykka.ThreadingActor):
self.zmqsocket = self.zmqcontext.socket(zmq.SUB)
self.zmqbind_url... | [ACC-<I>] add zeromq driver | py |
diff --git a/py/vtdb/vtgate_cursor.py b/py/vtdb/vtgate_cursor.py
index <HASH>..<HASH> 100644
--- a/py/vtdb/vtgate_cursor.py
+++ b/py/vtdb/vtgate_cursor.py
@@ -98,7 +98,9 @@ class VTGateCursor(object):
self.index = 0
return self.rowcount
- def execute_entity_ids(self, sql, bind_variables, entity_keyspace_id... | Resolve bad merge that removed effective_caller_id from parameters of VTGateCursor.execute_entity_ids(). | py |
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/plot.py
+++ b/holoviews/plotting/bokeh/plot.py
@@ -133,17 +133,17 @@ class GridPlot(BokehPlot, GenericCompositePlot):
# Create axes
kwargs = {}
... | Fix to axis handling in GridPlot | py |
diff --git a/grimoire/arthur.py b/grimoire/arthur.py
index <HASH>..<HASH> 100755
--- a/grimoire/arthur.py
+++ b/grimoire/arthur.py
@@ -86,7 +86,9 @@ def feed_backend(url, clean, fetch_cache, backend_name, backend_params,
if backend:
logging.error("Error feeding ocean from %s (%s): %s" %
... | [arthur] Don't propogate exception not managed yet in p2o. Makes cauldron.io fails. | py |
diff --git a/rarbgapi/leakybucket.py b/rarbgapi/leakybucket.py
index <HASH>..<HASH> 100644
--- a/rarbgapi/leakybucket.py
+++ b/rarbgapi/leakybucket.py
@@ -13,7 +13,7 @@ class LeakyBucket(object): # pylint: disable=too-few-public-methods
delay = 1
while True:
with self._lock: # pylint: d... | leakybucket: fix acquire always delay one second | py |
diff --git a/leonardo/settings.py b/leonardo/settings.py
index <HASH>..<HASH> 100644
--- a/leonardo/settings.py
+++ b/leonardo/settings.py
@@ -218,12 +218,25 @@ APPS = []
PAGE_EXTENSIONS = []
+MIGRATION_MODULES = {}
+
# use default leonardo auth urls
LEONARDO_AUTH = True
try:
- # full settings
+ # obsol... | fix migrations and use new location for site settings | py |
diff --git a/noxfile.py b/noxfile.py
index <HASH>..<HASH> 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -40,7 +40,7 @@ DEPS = {
"pylint": "pylint",
"pytest": "pytest >= 4.6.3",
"pytest-cov": "pytest-cov",
- "scipy": "scipy >= 1.3.0",
+ "scipy": "scipy >= 1.2.2",
"seaborn": "seaborn >= 0.9.0",
}... | Loosening SciPy lower bound to <I>. This was the final SciPy release to support Python <I>. | py |
diff --git a/tibber/subscription_manager.py b/tibber/subscription_manager.py
index <HASH>..<HASH> 100644
--- a/tibber/subscription_manager.py
+++ b/tibber/subscription_manager.py
@@ -61,8 +61,8 @@ class SubscriptionManager:
subprotocols=["graphql-subscriptions"])
... | Add missing await (#<I>) | py |
diff --git a/quart/flask_patch/_patch.py b/quart/flask_patch/_patch.py
index <HASH>..<HASH> 100644
--- a/quart/flask_patch/_patch.py
+++ b/quart/flask_patch/_patch.py
@@ -17,6 +17,15 @@ def _patch_asyncio() -> None:
asyncio.Task = asyncio.tasks._CTask = asyncio.tasks.Task = asyncio.tasks._PyTask # type: ignore
... | Raise an error if Flask Patching is used with an alternative event loop It only works with the default asyncio event loop policy, and hence not with uvloop or others. This now errors making it clearer to users. | py |
diff --git a/zinnia/tests/test_admin.py b/zinnia/tests/test_admin.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/test_admin.py
+++ b/zinnia/tests/test_admin.py
@@ -187,13 +187,16 @@ class EntryAdminTestCase(BaseAdminTestCase):
'<a href="http://example.com" target="blank">example.com</a>')
def tes... | Fix tests with poor_urls in get_short_url | py |
diff --git a/asset_allocation/stocks.py b/asset_allocation/stocks.py
index <HASH>..<HASH> 100644
--- a/asset_allocation/stocks.py
+++ b/asset_allocation/stocks.py
@@ -35,6 +35,8 @@ class StocksInfo:
if not agg:
raise ValueError(f"Security not found {symbol}!")
price: Price = agg.get_last_... | raising exceptions if items not found in db | py |
diff --git a/webdriver_manager/utils.py b/webdriver_manager/utils.py
index <HASH>..<HASH> 100644
--- a/webdriver_manager/utils.py
+++ b/webdriver_manager/utils.py
@@ -148,7 +148,7 @@ def windows_browser_apps_to_cmd(*apps: str) -> str:
''.join(f" if (-not $? -or $? -match $error) {{ {i}{ignore_errors_cmd_part} ... | Add -NoProfile flag to windows_browser_apps_to_cmd | py |
diff --git a/src/rituals/__init__.py b/src/rituals/__init__.py
index <HASH>..<HASH> 100644
--- a/src/rituals/__init__.py
+++ b/src/rituals/__init__.py
@@ -20,7 +20,7 @@
The full LICENSE file and source are available at
https://github.com/jhermann/rituals
"""
-__url__ = 'https://github.com/jher... | :pencil2: changed URL to GH pages | py |
diff --git a/examples/tomo/xray_trafo.py b/examples/tomo/xray_trafo.py
index <HASH>..<HASH> 100644
--- a/examples/tomo/xray_trafo.py
+++ b/examples/tomo/xray_trafo.py
@@ -211,8 +211,8 @@ def helical():
if __name__ == '__main__':
- #parallel_2d()
- #parallel_3d()
- #fanbeam()
+ parallel_2d()
+ parall... | MAINT: fix uncommented lines in xray_trafo example | py |
diff --git a/tests/app/settings.py b/tests/app/settings.py
index <HASH>..<HASH> 100644
--- a/tests/app/settings.py
+++ b/tests/app/settings.py
@@ -15,6 +15,7 @@ INSTALLED_APPS = [
'wagtail.sites',
'wagtail.snippets',
'wagtail.images',
+ 'wagtail.documents',
'django.contrib.admin',
'django.... | Fixing tests, add wagtail.documents to installed apps | py |
diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/fetcher/dash.py
+++ b/lib/svtplay_dl/fetcher/dash.py
@@ -98,7 +98,7 @@ def adaptionset(element, url, baseurl=None):
if template is not None:
segments = True
fi... | add check 'is not None' to avoid FutureWarning | py |
diff --git a/bids/layout/bids_validator.py b/bids/layout/bids_validator.py
index <HASH>..<HASH> 100644
--- a/bids/layout/bids_validator.py
+++ b/bids/layout/bids_validator.py
@@ -358,6 +358,21 @@ def expected_file_check(layout, config):
# Put example output here
>>> problem_df
# Put example output here
+... | include description of config in docstring | py |
diff --git a/apitools/gen/gen_client.py b/apitools/gen/gen_client.py
index <HASH>..<HASH> 100644
--- a/apitools/gen/gen_client.py
+++ b/apitools/gen/gen_client.py
@@ -21,7 +21,7 @@ flags.DEFINE_string(
'--discovery_url.')
flags.DEFINE_string(
'discovery_url', '',
- 'URL (or "name/version") of the discover... | Update a typo in a flag description. Fixes #<I>. | py |
diff --git a/constance/admin.py b/constance/admin.py
index <HASH>..<HASH> 100644
--- a/constance/admin.py
+++ b/constance/admin.py
@@ -21,7 +21,10 @@ except ImportError: # Django < 1.4
from django.conf.urls.defaults import patterns, url
-from constance import config, settings
+from constance import settings
+... | Update admin.py Fixing Issue #<I> | py |
diff --git a/simple_history/models.py b/simple_history/models.py
index <HASH>..<HASH> 100755
--- a/simple_history/models.py
+++ b/simple_history/models.py
@@ -84,7 +84,7 @@ class HistoricalRecords(object):
fk = True
else:
fk = False
-
+
# The histo... | Fixing for compatibility with django <I>. The field attname was being overwritten with the field name and losing the '_id' suffix for FKs. This issue would break new models binded with simple history as they would have its historical model with the wrong field names for FKs. | py |
diff --git a/tests/test_cmemcached_regression.py b/tests/test_cmemcached_regression.py
index <HASH>..<HASH> 100644
--- a/tests/test_cmemcached_regression.py
+++ b/tests/test_cmemcached_regression.py
@@ -1,6 +1,8 @@
# coding: utf-8
import time
import threading
+import warnings
+
from libmc import Client, ThreadUnsaf... | suppress nopickle warnings in tests | py |
diff --git a/glances/plugins/glances_raid.py b/glances/plugins/glances_raid.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_raid.py
+++ b/glances/plugins/glances_raid.py
@@ -61,8 +61,7 @@ class Plugin(GlancesPlugin):
if self.get_input() == 'local':
# Update stats using the PyMDstat li... | RAID plugin ok for beta testing | py |
diff --git a/synapse/glob.py b/synapse/glob.py
index <HASH>..<HASH> 100644
--- a/synapse/glob.py
+++ b/synapse/glob.py
@@ -1,6 +1,9 @@
import threading
-lock = threading.Lock()
+lock = threading.RLock()
+
+# A global / default PkiStor used by getUserPki()
+pki = None
# A global Plex instance for managing socket i... | change global instance Lock to RLock | py |
diff --git a/tests/unit_tests/connection.py b/tests/unit_tests/connection.py
index <HASH>..<HASH> 100644
--- a/tests/unit_tests/connection.py
+++ b/tests/unit_tests/connection.py
@@ -382,6 +382,8 @@ class APITest(common.Test):
c_props = {}
if use_system_ca_bundle:
+ if not hasattr(ssl, 'g... | Skip system CA test on old SSL modules | py |
diff --git a/baron/baron.py b/baron/baron.py
index <HASH>..<HASH> 100644
--- a/baron/baron.py
+++ b/baron/baron.py
@@ -43,7 +43,12 @@ def parse(source_code, print_function=None):
if source_code and source_code[-1] != "\n":
source_code += "\n"
- return _parse(tokenize(source_code, print_function),... | [fix] in special case, the last token is not an endl token | py |
diff --git a/celerytask/tasks.py b/celerytask/tasks.py
index <HASH>..<HASH> 100755
--- a/celerytask/tasks.py
+++ b/celerytask/tasks.py
@@ -19,6 +19,9 @@ from util import check_if_user_has_permission
from util.common_task import add_user_to_group
from util.common_task import remove_user_from_group
+def generate_corp... | Added depenedent function generate_corp_group_name until I can figure out how to import from util.common_task.py | py |
diff --git a/chassis/test/services/dependency_injection/resolver_test.py b/chassis/test/services/dependency_injection/resolver_test.py
index <HASH>..<HASH> 100644
--- a/chassis/test/services/dependency_injection/resolver_test.py
+++ b/chassis/test/services/dependency_injection/resolver_test.py
@@ -109,7 +109,7 @@ class... | Sets are order agnostic - reorder for readability | py |
diff --git a/crate/crash/repl.py b/crate/crash/repl.py
index <HASH>..<HASH> 100644
--- a/crate/crash/repl.py
+++ b/crate/crash/repl.py
@@ -56,7 +56,7 @@ from pygments.token import (
Token,
)
-from crate.client.exceptions import ProgrammingError
+from crate.client.exceptions import ConnectionError, ProgrammingEr... | Don't print error if pg_get_keywords is not available Connecting to a cluster that doesn't have a `pg_get_keywords()` function looked like: crash --verify-ssl no --hosts https://localhost:<I> -U crate CONNECT OK SQLActionException[SQLParseException: line 1:<I>: mismatched input '(' expecting {<EOF>, ';'}] | py |
diff --git a/pylast/__init__.py b/pylast/__init__.py
index <HASH>..<HASH> 100644
--- a/pylast/__init__.py
+++ b/pylast/__init__.py
@@ -2300,7 +2300,7 @@ class User(_BaseObject, _Chartable):
country = _extract(doc, "country")
- if country is None:
+ if country is None or country == "None":
... | A user without a country can now have '<country>None</country>' | py |
diff --git a/treeherder/model/derived/jobs.py b/treeherder/model/derived/jobs.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/derived/jobs.py
+++ b/treeherder/model/derived/jobs.py
@@ -2830,7 +2830,8 @@ into chunks of chunk_size size. Returns the number of result sets deleted"""
resultset_status_... | Bug <I> - Don't show count of coalesced jobs if zero | py |
diff --git a/fedmsg/tests/crypto/test_x509.py b/fedmsg/tests/crypto/test_x509.py
index <HASH>..<HASH> 100644
--- a/fedmsg/tests/crypto/test_x509.py
+++ b/fedmsg/tests/crypto/test_x509.py
@@ -174,7 +174,7 @@ class X509CryptographyTests(X509BaseTests):
self.assertFalse(self.validate(signed, **self.config))
-... | The m2crypto tests are skipped when cryptography is missing The intention was to run the m2crypto tests only when m2crypto is present, but the actual check was for cryptography. Oops. | py |
diff --git a/src/werkzeug/serving.py b/src/werkzeug/serving.py
index <HASH>..<HASH> 100644
--- a/src/werkzeug/serving.py
+++ b/src/werkzeug/serving.py
@@ -520,6 +520,10 @@ def generate_adhoc_ssl_pair(cn=None):
.serial_number(x509.random_serial_number())
.not_valid_before(dt.utcnow())
.not_val... | adhoc cert support macos <I> requirements | py |
diff --git a/Xlib/protocol/display.py b/Xlib/protocol/display.py
index <HASH>..<HASH> 100644
--- a/Xlib/protocol/display.py
+++ b/Xlib/protocol/display.py
@@ -533,8 +533,12 @@ class Display(object):
# Ignore errors caused by a signal recieved while blocking.
# All other errors are re-raised.
... | protocol/display: fix interrupted select handling for Python <I>/<I> With Python >=<I>, `select.error` is now an instance of OSError. Note that there was no issue with Python <I> as interrupted system calls are automatically retried. | py |
diff --git a/pysat/tests/test_instruments.py b/pysat/tests/test_instruments.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_instruments.py
+++ b/pysat/tests/test_instruments.py
@@ -4,8 +4,7 @@ import pysat
from pysat.tests.instrument_test_class import generate_instrument_list
from pysat.tests.instrument_test_cl... | BUG: update package in test_instruments | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,7 @@ def read_requirements(file_name):
return requirements
-install_requires = read_requirements('install.txt')
-setup_requires = read_requirements('setup.txt')
+install_requires = read_requirements('install... | Fix requirements Change to new file for installation_requires and tests_require | py |
diff --git a/harpoon/overview.py b/harpoon/overview.py
index <HASH>..<HASH> 100644
--- a/harpoon/overview.py
+++ b/harpoon/overview.py
@@ -176,7 +176,10 @@ class Harpoon(object):
configuration.converters.done(path, meta.result)
for key, v in val.items(ignore_converters=True):
+ ... | Make sure converter doesn't trip over itself | py |
diff --git a/pytumblr/__init__.py b/pytumblr/__init__.py
index <HASH>..<HASH> 100644
--- a/pytumblr/__init__.py
+++ b/pytumblr/__init__.py
@@ -498,7 +498,7 @@ class TumblrRestClient(object):
url = "/v2/blog/%s/post" % blogname
valid_options = self._post_valid_options(params.get('type', None))
- ... | Add sanity check to tags attribute so it doesn't break authentication | py |
diff --git a/article.py b/article.py
index <HASH>..<HASH> 100644
--- a/article.py
+++ b/article.py
@@ -114,7 +114,7 @@ class Article(object):
for itype, subdirect, itype_str in imagetypes:
- for refnum in range(1,1000):
+ for refnum in range... | Adjusted range for fetchImages to <I>,<I> | py |
diff --git a/angr/analyses/cdg.py b/angr/analyses/cdg.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cdg.py
+++ b/angr/analyses/cdg.py
@@ -89,6 +89,9 @@ class CDG(Analysis):
Form by Ron Cytron, etc.
"""
+ if not self._cfg._model.ident.startswith('CFGEmulated'):
+ raise ValueErr... | Fix the issue when generating cdg from cfg_fast (#<I>) * Fix the issue when generating cdg from cfg_fast * Raise an error when the given CFG is not a CFGEmulated. | py |
diff --git a/osxmmkeys/tap.py b/osxmmkeys/tap.py
index <HASH>..<HASH> 100644
--- a/osxmmkeys/tap.py
+++ b/osxmmkeys/tap.py
@@ -7,6 +7,8 @@ class Tap(threading.Thread):
MEDIA_EVENT_SUBTYPE = 8
KEY_CODES = {
16: 'play_pause',
+ 17: 'next_track',
+ 18: 'prev_track',
19: 'next_trac... | Handle fastforward/rewind keys as next/prev | py |
diff --git a/nats/io/client.py b/nats/io/client.py
index <HASH>..<HASH> 100644
--- a/nats/io/client.py
+++ b/nats/io/client.py
@@ -28,7 +28,6 @@ class Client(object):
self._ps = Parser(self)
self._err = None
-
@tornado.gen.coroutine
def connect(self, opts={}):
"""
@@ -63,7 +62,6 @@ class Client(o... | Only send auth and pass when not null | py |
diff --git a/faradayio_cli/faradayio_cli.py b/faradayio_cli/faradayio_cli.py
index <HASH>..<HASH> 100644
--- a/faradayio_cli/faradayio_cli.py
+++ b/faradayio_cli/faradayio_cli.py
@@ -6,7 +6,7 @@ import sys
import argparse
import serial
-from faradayio.faraday import Faraday
+from faradayio.faraday import Monitor
f... | TUN Monitor implemented * Exits immediately when run * Must be run as sudo and therefore `.venv/bin/faradayio-cli` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,6 @@
import os
from setuptools import setup, find_packages
-packages = find_packages()
-packages += [
- 'crumbs.templates',
- 'crumbs.templates.crumbs',
-]
setup(
name='django-crumbs',
version='0.... | Removed unnecessary package variable from top of setup | py |
diff --git a/pymagicc/io/__init__.py b/pymagicc/io/__init__.py
index <HASH>..<HASH> 100644
--- a/pymagicc/io/__init__.py
+++ b/pymagicc/io/__init__.py
@@ -503,7 +503,7 @@ class MAGICCData(ScmRun):
Initialise a MAGICCData instance
Here we provide a brief over of inputs, for more details
- see ... | suggestions from @znicholls | py |
diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/picsearch.py
+++ b/lib/svtplay_dl/service/picsearch.py
@@ -97,6 +97,8 @@ class Picsearch(Service, OpenGraphThumbMixin):
if not match:
match = re.search(r'... | dn.se has data-id attributes with a slightly different format | py |
diff --git a/tests/test_xslt_transformer.py b/tests/test_xslt_transformer.py
index <HASH>..<HASH> 100755
--- a/tests/test_xslt_transformer.py
+++ b/tests/test_xslt_transformer.py
@@ -8,6 +8,7 @@ import os
import os.path
import lxml.etree as ET
+import pytest
import dhtmlparser
from marcxml2mods import xslt_tran... | #6: Added test of _read_content_or_path(). | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -4156,12 +4156,6 @@ def match_filter(template_names, template_list, st, threshold,
stream[0].stats.starttime.da... | Remove arbitrary warning on number of detections | py |
diff --git a/ssbio/structure/properties/msms.py b/ssbio/structure/properties/msms.py
index <HASH>..<HASH> 100644
--- a/ssbio/structure/properties/msms.py
+++ b/ssbio/structure/properties/msms.py
@@ -78,7 +78,7 @@ if __name__ == '__main__':
p = argparse.ArgumentParser(description='Runs MSMS on a PDB file or folde... | Changes to MSMS.py script behavior | py |
diff --git a/km3pipe/dataclasses.py b/km3pipe/dataclasses.py
index <HASH>..<HASH> 100644
--- a/km3pipe/dataclasses.py
+++ b/km3pipe/dataclasses.py
@@ -13,7 +13,7 @@ from collections import namedtuple
import numpy as np
-from km3pipe.tools import pdg2name
+from km3pipe.tools import pdg2name, geant2pdg
class Poin... | Makes geant2pdg conversion for TrackIns | py |
diff --git a/salt/modules/dpkg.py b/salt/modules/dpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dpkg.py
+++ b/salt/modules/dpkg.py
@@ -294,6 +294,24 @@ def _get_pkg_info(*packages):
return ret
+def _get_pkg_license(pkg):
+ '''
+ Try to get a license from the package.
+ Based on https://www.deb... | Add license extraction for Dpkg. | py |
diff --git a/keepkeylib/transport_hid.py b/keepkeylib/transport_hid.py
index <HASH>..<HASH> 100644
--- a/keepkeylib/transport_hid.py
+++ b/keepkeylib/transport_hid.py
@@ -44,9 +44,11 @@ class HidTransport(Transport):
if (vendor_id, product_id) in DEVICE_IDS:
devices.setdefault(serial_num... | fix python hid for mac testing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
packages=find_packages(),
license="MIT",
keywords="wagtail cms model utility",
- download_url="https://github.com/rkhleics/wagtailmenus/tarball/1.0.0",
+ download_url="https://github.... | Update setup.py to use <I> tag as dowload_url | py |
diff --git a/pymc3/__init__.py b/pymc3/__init__.py
index <HASH>..<HASH> 100644
--- a/pymc3/__init__.py
+++ b/pymc3/__init__.py
@@ -6,7 +6,15 @@ from .distributions import *
from .distributions import transforms
from .glm import *
from . import gp
-from .math import logaddexp, logsumexp, logit, invlogit, expand_packe... | Compilation error workaround (#<I>) * Added Theano flags to __init__.py * Refactored flag setting to use a function call | py |
diff --git a/tests/connected_test.py b/tests/connected_test.py
index <HASH>..<HASH> 100644
--- a/tests/connected_test.py
+++ b/tests/connected_test.py
@@ -952,3 +952,15 @@ def test_open_with_different_blocksize():
kwargs['blocksize'] = 1000000
with pytds.connect(*settings.CONNECT_ARGS, **kwargs):
pas... | test multiple rows with nvarchar | py |
diff --git a/pyvex/block.py b/pyvex/block.py
index <HASH>..<HASH> 100644
--- a/pyvex/block.py
+++ b/pyvex/block.py
@@ -206,7 +206,7 @@ class IRSB(VEXObject):
data = stat.data
elif isinstance(stat, stmt.Put) and stat.offset == reg_next:
data = stat.data
- if ... | More fixes after the latest PR. Make sure .result_size is changed to .result_size(irsb.tyenv) everywhere. | py |
diff --git a/xtermcolor/__init__.py b/xtermcolor/__init__.py
index <HASH>..<HASH> 100644
--- a/xtermcolor/__init__.py
+++ b/xtermcolor/__init__.py
@@ -1,8 +1,14 @@
from xtermcolor.ColorMap import XTermColorMap, VT100ColorMap
+
def colorize(string, rgb=None, ansi=None,bg=None,ansi_bg=None,xterm=True):
- if xterm:... | - Avoids re-creating the colorMap object at every call | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.