diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/fedmsg/consumers/__init__.py b/fedmsg/consumers/__init__.py
index <HASH>..<HASH> 100644
--- a/fedmsg/consumers/__init__.py
+++ b/fedmsg/consumers/__init__.py
@@ -286,7 +286,7 @@ class FedmsgConsumer(moksha.hub.api.consumer.Consumer):
# Pass along headers if present. May be useful to filters or
... | ZMQMessage isn't iterable, use __dict__ This was flooding logs with traces after we did updates on <I>-<I>-<I>. This is the hotfix I came up with, but if it's fixed another way that's fine with me too. Just wanted to get this out there. | py |
diff --git a/FontBakeryChecks.py b/FontBakeryChecks.py
index <HASH>..<HASH> 100644
--- a/FontBakeryChecks.py
+++ b/FontBakeryChecks.py
@@ -3467,7 +3467,7 @@ def check_copyright_notice_is_consistent_across_family(fb, folder):
return
def lookup_copyright_notice(ufo_folder):
-# current_path = ufo_folder
+ ... | yet another minor flake8-related tweak | py |
diff --git a/openquake/hazardlib/gsim/zhao_2006_swiss.py b/openquake/hazardlib/gsim/zhao_2006_swiss.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/zhao_2006_swiss.py
+++ b/openquake/hazardlib/gsim/zhao_2006_swiss.py
@@ -69,7 +69,7 @@ class ZhaoEtAl2006AscSWISS05(ZhaoEtAl2006Asc):
#: confirmed by the... | Vectorized zhao_<I>_swiss | py |
diff --git a/user_management/models/tests/test_admin_forms.py b/user_management/models/tests/test_admin_forms.py
index <HASH>..<HASH> 100644
--- a/user_management/models/tests/test_admin_forms.py
+++ b/user_management/models/tests/test_admin_forms.py
@@ -1,11 +1,12 @@
from django.core.exceptions import ValidationError... | Add `Python2AssertMixin` to alias `assertCountEqual` to `assertItemEqual` | py |
diff --git a/test_ch.py b/test_ch.py
index <HASH>..<HASH> 100755
--- a/test_ch.py
+++ b/test_ch.py
@@ -77,6 +77,10 @@ class TestCh(unittest.TestCase):
cc.dr_wrt(bc)
#print cn
+ def test_make_sure_is_double(self):
+ x = ch.array([0])
+ self.assertTrue(isinstance(x.r[0], np.float6... | test_ch.py: make sure numpy arrays get casted to float<I> | py |
diff --git a/intake/catalog/entry.py b/intake/catalog/entry.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/entry.py
+++ b/intake/catalog/entry.py
@@ -69,14 +69,15 @@ class CatalogEntry(DictSerialiseMixin):
None, must be one of ['always', 'never', 'default']. Has no
effect if the source ha... | MNT: switch order of persist checks If we never want to persist, don't bother checking if it already has been persisted or not. | py |
diff --git a/test/lal_verify.py b/test/lal_verify.py
index <HASH>..<HASH> 100644
--- a/test/lal_verify.py
+++ b/test/lal_verify.py
@@ -108,7 +108,7 @@ class test_LIGOTimeGPS(unittest.TestCase):
#"mod": (LIGOTimeGPS.__mod__, pylalLIGOTimeGPS.__mod__)
}
- for i in xrange(1000000):
+ for i in xrange(10000):
... | lal_verify: shorten the pylal arithmetic comparisons | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -80,7 +80,12 @@ elif PACKAGE_NAME.startswith('apache-airflow-providers-'):
PACKAGE_VERSION = 'devel'
elif PACKAGE_NAME == 'helm-chart':
PACKAGE_DIR = os.path.join(ROOT_DIR, 'chart')
- PACKAGE_VERS... | Doc: Use correct version in Chart docs (#<I>) If a version is not specified it uses "devel" when building production docs | py |
diff --git a/SpiffWorkflow/dmn/specs/BusinessRuleTask.py b/SpiffWorkflow/dmn/specs/BusinessRuleTask.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/dmn/specs/BusinessRuleTask.py
+++ b/SpiffWorkflow/dmn/specs/BusinessRuleTask.py
@@ -23,12 +23,9 @@ class BusinessRuleTask(Simple, BpmnSpecMixin):
def _on_complete_h... | Catch all the possible errors in the _on_complete_hook, we were still not catching exceptions in outputAsDict, which also does python evaluations. | py |
diff --git a/pyethereum/serpent.py b/pyethereum/serpent.py
index <HASH>..<HASH> 100755
--- a/pyethereum/serpent.py
+++ b/pyethereum/serpent.py
@@ -219,7 +219,7 @@ def compile_expr(ast,varhash,lc=[0]):
# Stuff to add once to each program
def add_wrappers(c,varhash):
- if len(varhash):
+ if len(varhash) and 'MS... | Removed initial mstore8 if MSIZE is not in the code | py |
diff --git a/armstrong/hatband/tests/sites.py b/armstrong/hatband/tests/sites.py
index <HASH>..<HASH> 100644
--- a/armstrong/hatband/tests/sites.py
+++ b/armstrong/hatband/tests/sites.py
@@ -123,7 +123,7 @@ class TypeAndModelToQueryViewTestCase(HatbandViewTestCase):
view_name = "admin:type_and_model_to_query"
... | Eliminate some nondeterminism from tests | py |
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/tests/utils/helpers.py
+++ b/tests/utils/helpers.py
@@ -907,6 +907,15 @@ def get_fake_risk_job(risk_cfg, hazard_cfg, output_type="curve",
hazard_job, "Test Hazard output", "gmf"),
lt_realization=... | Fixed a very subtle initialization bug breaking risk/event_based/core_test.py Former-commit-id: <I>d1a9cef<I>eff<I>e<I>b<I>e7d<I>dde<I>f1a4 | py |
diff --git a/python/src/cm_api/api_client.py b/python/src/cm_api/api_client.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/api_client.py
+++ b/python/src/cm_api/api_client.py
@@ -30,7 +30,7 @@ __docformat__ = "epytext"
LOG = logging.getLogger(__name__)
API_AUTH_REALM = "Cloudera Manager"
-API_CURRENT_VERSIO... | Bump current API version to 6 for CM5 | py |
diff --git a/salt/utils/thin.py b/salt/utils/thin.py
index <HASH>..<HASH> 100644
--- a/salt/utils/thin.py
+++ b/salt/utils/thin.py
@@ -42,7 +42,7 @@ def gen_thin(cachedir):
]
if HAS_MARKUPSAFE:
tops.append(os.path.dirname(markupsafe.__file__))
- tfp = tarfile.open(thintar, 'w:gz')
+ tfp... | Dereferenced symbolic links when creating thin.tgz | py |
diff --git a/porespy/tools/__init__.py b/porespy/tools/__init__.py
index <HASH>..<HASH> 100644
--- a/porespy/tools/__init__.py
+++ b/porespy/tools/__init__.py
@@ -25,7 +25,6 @@ that do NOT return a modified version of the original image.
'''
from .__funcs__ import align_image_with_openpnm
from .__funcs__ import bbox... | It worked! Now just one last pep8 fix | py |
diff --git a/torchvision/prototype/models/vision_transformer.py b/torchvision/prototype/models/vision_transformer.py
index <HASH>..<HASH> 100644
--- a/torchvision/prototype/models/vision_transformer.py
+++ b/torchvision/prototype/models/vision_transformer.py
@@ -11,7 +11,7 @@ from torchvision.transforms.functional impo... | Adding missing named param check on ViT (#<I>) | py |
diff --git a/flawless/server/service.py b/flawless/server/service.py
index <HASH>..<HASH> 100644
--- a/flawless/server/service.py
+++ b/flawless/server/service.py
@@ -388,7 +388,7 @@ class FlawlessService(object):
self.errors_seen[key] = err_info
if not err_info:
- log.warn("Unable to do blame for %s... | Fix what get logged when blame fails | py |
diff --git a/galpy/actionAngle_src/actionAngleStaeckel_c.py b/galpy/actionAngle_src/actionAngleStaeckel_c.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle_src/actionAngleStaeckel_c.py
+++ b/galpy/actionAngle_src/actionAngleStaeckel_c.py
@@ -383,7 +383,9 @@ def actionAngleFreqAngleStaeckel_c(pot,delta,R,vR,vT,z,vz... | handle case where angle < 0 | py |
diff --git a/bika/lims/browser/widgets/analysisspecificationwidget.py b/bika/lims/browser/widgets/analysisspecificationwidget.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/widgets/analysisspecificationwidget.py
+++ b/bika/lims/browser/widgets/analysisspecificationwidget.py
@@ -175,13 +175,6 @@ class AnalysisSp... | Only the first analysis get saved in Analysis Specifications (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -59,17 +59,6 @@ REQUIREMENTS = [
'google-cloud-storage',
]
-GRPC_PACKAGES = [
- 'grpcio >= 1.0.0',
- 'google-gax >= 0.14.1, < 0.15dev',
- 'gapic-google-logging-v2 >= 0.9.0, < 0.10dev',
- 'grpc-google-loggin... | Remove logging deps from setup.py. In the process removing GRPC_PACKAGES entirely. | py |
diff --git a/vcs/nodes.py b/vcs/nodes.py
index <HASH>..<HASH> 100644
--- a/vcs/nodes.py
+++ b/vcs/nodes.py
@@ -298,13 +298,7 @@ class FileNode(Node):
"""
Returns True if file has binary content.
"""
- if isinstance(self.lexer, lexers.TextLexer):
- # textlexer is default lexe... | Reimplemented is_binary method of FileNode - it is now much simpler; fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ import setuptools
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
- import multiprocessing # noqa: F401
+ import m... | Updated from global requirements Change-Id: Id9d<I>a3f<I>f<I>cdba3f<I>c<I>aa | py |
diff --git a/lavalink/examples/music.py b/lavalink/examples/music.py
index <HASH>..<HASH> 100644
--- a/lavalink/examples/music.py
+++ b/lavalink/examples/music.py
@@ -268,13 +268,13 @@ class Music:
should_connect = ctx.command.name in ('play') # Add commands that require joining voice to work.
+ if... | Slight issue when bot's connected and user is not | py |
diff --git a/is_core/version.py b/is_core/version.py
index <HASH>..<HASH> 100644
--- a/is_core/version.py
+++ b/is_core/version.py
@@ -1,4 +1,4 @@
-VERSION = (1, 3, 25)
+VERSION = (1, 3, 26)
def get_version():
return '.'.join(map(str, VERSION)) | <I> Added class names to grid | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -30,8 +30,7 @@ class Dimension(param.Parameterized):
name = param.String(doc="""
Optional name associated with the Dimension. For inst... | Fixed misleading docstrings in Dimension and LabelledData | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -37,7 +37,7 @@ def merge_aggregate(obj_a, obj_b):
def merge_overwrite(obj_a, obj_b):
for obj in obj_b:
- if obj in obj_a.keys():
+ if obj in obj... | more cleanup no need to caste keys() to a list since it returns a list | py |
diff --git a/h2o-py/tests/_utils.py b/h2o-py/tests/_utils.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/_utils.py
+++ b/h2o-py/tests/_utils.py
@@ -1,7 +1,7 @@
import fnmatch
-import imp
import importlib
import os
+import re
import sys
@@ -64,12 +64,15 @@ def load_module(name, dir_path, no_conflict=True):
... | replace lenient glob-like pattern with more specific regexp to load test utility modules | py |
diff --git a/umap/spectral.py b/umap/spectral.py
index <HASH>..<HASH> 100644
--- a/umap/spectral.py
+++ b/umap/spectral.py
@@ -238,11 +238,6 @@ def spectral_layout(data, graph, dim, random_state, metric="euclidean", metric_k
n_components, labels = scipy.sparse.csgraph.connected_components(graph)
if n_compon... | Remove warning; it's not experimental anymore. | py |
diff --git a/websocket_server/websocket_server.py b/websocket_server/websocket_server.py
index <HASH>..<HASH> 100644
--- a/websocket_server/websocket_server.py
+++ b/websocket_server/websocket_server.py
@@ -112,7 +112,7 @@ class WebsocketServer(ThreadingMixIn, TCPServer, API):
allow_reuse_address = True
daemo... | Set server to use port 0 by default | py |
diff --git a/bigfloat/pympfr.py b/bigfloat/pympfr.py
index <HASH>..<HASH> 100644
--- a/bigfloat/pympfr.py
+++ b/bigfloat/pympfr.py
@@ -499,7 +499,7 @@ standard_unary_functions = [
'acosh', 'asinh', 'atanh',
'log1p', 'expm1',
'eint', 'li2',
- 'gamma', 'lngamma', 'lgamma',
+ 'gamma', 'lngamma',
... | Remove lgamma; it's not a standard function | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -202,7 +202,7 @@ metadata = dict(
# runtime dependencies
install_requires=['numpy >= 1.6.0',
'scipy >= 0.11',
- 'pystallone >= 1.0'],
+ 'pystallone == ... | [setup] require exact version of pystallone | py |
diff --git a/ginga/canvas/types/astro.py b/ginga/canvas/types/astro.py
index <HASH>..<HASH> 100644
--- a/ginga/canvas/types/astro.py
+++ b/ginga/canvas/types/astro.py
@@ -134,19 +134,19 @@ class Ruler(TwoPointMixin, CanvasObjectBase):
else:
sep_h = wcs.deltaStarsRaDecDeg(ra_org, de... | Adjust precision of floats drawn in Ruler canvas type - addressing github issue #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ setup(
data_files=[(
(BASE_DIR, ['data/nssm_original.exe'])
)],
- install_requires=['indy-plenum-dev==1.2.305',
+ install_requires=['indy-plenum-dev==1.2.310',
'in... | Updated plenum version (#<I>) | py |
diff --git a/neo4jrestclient/client.py b/neo4jrestclient/client.py
index <HASH>..<HASH> 100644
--- a/neo4jrestclient/client.py
+++ b/neo4jrestclient/client.py
@@ -648,11 +648,7 @@ class Index(object):
' a query) (%d given)' % (len(args) + 1))
elif len(args) == 1:
query... | Patched index.query() so it can take a query without a key (to support, say, mutli-field Lucene queries). Ultimately, query so probably be refactored to Index (instead of IndexKey) because IndexKey doesn\'t actually help with full-text queries. | py |
diff --git a/stacker/providers/aws/default.py b/stacker/providers/aws/default.py
index <HASH>..<HASH> 100644
--- a/stacker/providers/aws/default.py
+++ b/stacker/providers/aws/default.py
@@ -546,6 +546,7 @@ class Provider(BaseProvider):
IN_PROGRESS_STATUSES = (
"CREATE_IN_PROGRESS",
+ "IMPORT_IN_... | Add the import-related stack statuses (#<I>) | py |
diff --git a/treeCl/utils/decorators.py b/treeCl/utils/decorators.py
index <HASH>..<HASH> 100755
--- a/treeCl/utils/decorators.py
+++ b/treeCl/utils/decorators.py
@@ -3,8 +3,12 @@ def lazyprop(fn):
@property
def _lazyprop(self):
- if not hasattr(self, attr_name):
- setattr(self, attr_name,... | Changed lazyprop decorator to not cache empty values (ones that evaluate as False) | py |
diff --git a/twosheds/completer.py b/twosheds/completer.py
index <HASH>..<HASH> 100644
--- a/twosheds/completer.py
+++ b/twosheds/completer.py
@@ -95,9 +95,11 @@ class Completer(object):
:param state: an int, used to iterate over the choices
"""
# expand the line buffer before completing
+ ... | Do not expand commandline when completing Instead, expansions are done internally. | py |
diff --git a/skink/remote.py b/skink/remote.py
index <HASH>..<HASH> 100644
--- a/skink/remote.py
+++ b/skink/remote.py
@@ -111,3 +111,11 @@ class RemotePage(object):
if job_id in server.RESULTS:
del server.RESULTS[job_id]
raise IOError('Evaluation failed.')
+
+ def register... | Added register method on RemotePage | py |
diff --git a/raiden/api/v1/resources.py b/raiden/api/v1/resources.py
index <HASH>..<HASH> 100644
--- a/raiden/api/v1/resources.py
+++ b/raiden/api/v1/resources.py
@@ -19,24 +19,6 @@ class BaseResource(Resource):
self.rest_api = kwargs['rest_api_object']
-@parser.location_handler('query')
-def parse_query_d... | Remove unneeded hand parsing of query strings | py |
diff --git a/gos/tasks.py b/gos/tasks.py
index <HASH>..<HASH> 100644
--- a/gos/tasks.py
+++ b/gos/tasks.py
@@ -7,4 +7,4 @@ class BaseTask(object):
do_self_loop = False
def run(self, assembler_manager):
- pass
\ No newline at end of file
+ raise NotImplemented("run method shall be implemented f... | GOS-<I> Implement a BaseTask class adding an exception raise to the run method of the BaseTask class, so each implementation will have to override this method manually | py |
diff --git a/zipline/errors.py b/zipline/errors.py
index <HASH>..<HASH> 100644
--- a/zipline/errors.py
+++ b/zipline/errors.py
@@ -375,6 +375,17 @@ class WindowLengthNotSpecified(ZiplineError):
)
+class InvalidTermParams(ZiplineError):
+ """
+ Raised if a user attempts to construct a Term using Parameter... | ENH: Add EWMA and `DollarVolume` factors. | py |
diff --git a/src/transformers/modeling_tf_utils.py b/src/transformers/modeling_tf_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_tf_utils.py
+++ b/src/transformers/modeling_tf_utils.py
@@ -941,9 +941,9 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin):
for layer_past in past:
... | set redorder past sort dimension to its default | py |
diff --git a/src/collectors/userscripts/userscripts.py b/src/collectors/userscripts/userscripts.py
index <HASH>..<HASH> 100644
--- a/src/collectors/userscripts/userscripts.py
+++ b/src/collectors/userscripts/userscripts.py
@@ -1,5 +1,15 @@
"""
-Runs third party scripts and collects their output
+Runs third party scrip... | More docs for user scripts | py |
diff --git a/microsoftbotframework/response.py b/microsoftbotframework/response.py
index <HASH>..<HASH> 100644
--- a/microsoftbotframework/response.py
+++ b/microsoftbotframework/response.py
@@ -144,7 +144,6 @@ class Response:
"text": message,
"replyToId": reply_to_id,
"serviceUrl... | moved textData to optional in response json | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100644
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -1277,7 +1277,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
if compile_tests:
# Compile tests
if not build:
- build = os.path.join(os.pa... | Changing build directory for tests to .build/tests. This change is necessary because it allows mbed-cli to properly place the build artifacts for each test case. Before, there were left over build artifacts from previous builds in the main build directory that caused issues for the next builds. | py |
diff --git a/pyatv/support/udns.py b/pyatv/support/udns.py
index <HASH>..<HASH> 100644
--- a/pyatv/support/udns.py
+++ b/pyatv/support/udns.py
@@ -346,9 +346,13 @@ async def multicast(
timeout: int = 4,
):
"""Send multicast request for services."""
+ # Create and bind socket, otherwise it doesn't work on ... | scan: Add explicit bind to multicast scan Relates to #<I>. | py |
diff --git a/salt/utils/cache.py b/salt/utils/cache.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cache.py
+++ b/salt/utils/cache.py
@@ -87,3 +87,16 @@ class CacheCli(object):
self.creq_out.send(msg)
min_list = self.serial.loads(self.creq_out.recv())
return min_list
+
+# test code for the C... | leave the test code in there for now | py |
diff --git a/uvicorn/supervisors/statreload.py b/uvicorn/supervisors/statreload.py
index <HASH>..<HASH> 100644
--- a/uvicorn/supervisors/statreload.py
+++ b/uvicorn/supervisors/statreload.py
@@ -24,7 +24,8 @@ class StatReload:
@staticmethod
def handle_fds(target, fd_stdin, **kwargs):
"""Handle stdin ... | Fix for stdin redirection with reloader (for pdb.set_trace) | py |
diff --git a/tests/integration/test_cube.py b/tests/integration/test_cube.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_cube.py
+++ b/tests/integration/test_cube.py
@@ -494,6 +494,9 @@ class TestCrunchCubeAs_Slice(object):
np.testing.assert_almost_equal(
strand.standard_error, [0.010... | cr: address ernesto's comments | py |
diff --git a/patroni/dcs/consul.py b/patroni/dcs/consul.py
index <HASH>..<HASH> 100644
--- a/patroni/dcs/consul.py
+++ b/patroni/dcs/consul.py
@@ -338,17 +338,15 @@ class Consul(AbstractDCS):
logger.exception('get_cluster')
raise ConsulError('Consul is not responding properly')
+ @catch_c... | touch_member method should not raise exceptions (#<I>) Fixes <URL> | py |
diff --git a/skflow/__init__.py b/skflow/__init__.py
index <HASH>..<HASH> 100644
--- a/skflow/__init__.py
+++ b/skflow/__init__.py
@@ -124,6 +124,27 @@ class TensorFlowEstimator(BaseEstimator):
self.steps)
return self
+ def partial_fit(self, X, y):
+ """Incremental fit on a batch of sa... | Ref #7 Added explicit partial_fit to TensorFlowEstimator that calls currently just fit(), because fit is currently does partial fit every time you call it after first. | py |
diff --git a/ccxt/exchange.py b/ccxt/exchange.py
index <HASH>..<HASH> 100644
--- a/ccxt/exchange.py
+++ b/ccxt/exchange.py
@@ -218,7 +218,7 @@ class Exchange (object):
details = text if text else None
if e.code == 429:
error = DDoSProtection
- elif e.code in [404, 4... | more error handling to python | py |
diff --git a/holoviews/plotting/mpl/plot.py b/holoviews/plotting/mpl/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/plot.py
+++ b/holoviews/plotting/mpl/plot.py
@@ -164,6 +164,7 @@ class MPLPlot(DimensionedPlot):
bbox_transform=axis.transAxes)
at.patch.set_v... | Added sublabel to plot handles in mpl backend | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -1060,6 +1060,8 @@ class Exchange(object):
unit = timeframe[-1]
if 'M' in unit:
scale = 60 * 60 * 24 * 30
+ ... | added support for weeks ("w") to parse_timeframe in py fix #<I> | py |
diff --git a/ford/pagetree.py b/ford/pagetree.py
index <HASH>..<HASH> 100644
--- a/ford/pagetree.py
+++ b/ford/pagetree.py
@@ -89,7 +89,7 @@ class PageNode(object):
def get_page_tree(topdir,md,parent=None):
# look for files within topdir
- filelist = os.listdir(topdir)
+ filelist = sorted(os.listdir(t... | Sort page files and directories alphabetically. | py |
diff --git a/h2o-py/tests/testdir_algos/glm/pyunit_glm_regularization_path.py b/h2o-py/tests/testdir_algos/glm/pyunit_glm_regularization_path.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_algos/glm/pyunit_glm_regularization_path.py
+++ b/h2o-py/tests/testdir_algos/glm/pyunit_glm_regularization_path.py
@@ -3... | Added makeGLMModel call to python. | py |
diff --git a/visidata/metasheets.py b/visidata/metasheets.py
index <HASH>..<HASH> 100644
--- a/visidata/metasheets.py
+++ b/visidata/metasheets.py
@@ -136,7 +136,7 @@ class VisiDataSheet(IndexSheet):
('allSheetsSheet', 'sheets_all', 'sheets-all', 'g Shift+S', 'all sheets this session'),
('allC... | [vdmenu] global options are now bound to Shift+O | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,6 @@ setup(
'amqp>=1.4.6',
'setproctitle>=1.1.8',
'blinker>=1.3',
- 'argparse>=1.2.1',
],
description='Simple task queue',
long_description=read('README.rst'), | Removed unnecessary argparse dependency `argparse` module was added to Python <I> as a replacement for `optparse`, and it is built into Python <I> and <I>+. | py |
diff --git a/xclim/indices/generic.py b/xclim/indices/generic.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/generic.py
+++ b/xclim/indices/generic.py
@@ -271,7 +271,7 @@ def compare(da: xr.DataArray, op: str, thresh: Union[float, int]) -> xr.DataArra
def threshold_count(
- da: xr.DataArray, op: str, thresh... | Add missing type for `threshold_count` For example on tx<I>p `thresh` can be a DataArray. | py |
diff --git a/phoebe/parameters/compute.py b/phoebe/parameters/compute.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/compute.py
+++ b/phoebe/parameters/compute.py
@@ -62,7 +62,7 @@ def phoebe(**kwargs):
# ------------------------------------------------------
#params += [ChoiceParameter(qualifier='s... | removed subdiv_alg and subdiv_num parameters from compute options (no longer used) | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100644
--- a/jira/client.py
+++ b/jira/client.py
@@ -1216,11 +1216,14 @@ class JIRA(object):
result = {}
for user in r["users"]["items"]:
- result[user["key"]] = {
- "name": user["name"],
- "fu... | fix: group_members (#<I>) * fix: group_members Some attributes have become obsolete with the latest GDPR developments. Avoid client crashes trying to retrieve the members of a group. * chore: blacken | py |
diff --git a/sitecats/admin.py b/sitecats/admin.py
index <HASH>..<HASH> 100644
--- a/sitecats/admin.py
+++ b/sitecats/admin.py
@@ -10,14 +10,27 @@ except ImportError:
MODEL_ADMIN = admin.ModelAdmin
-#TODO lock delete and alias edit for is_locked.
class CategoryAdmin(MODEL_ADMIN):
list_display = ('title',... | Implemented locked category restrictions for Django Admin. | py |
diff --git a/iacli/ia_metadata.py b/iacli/ia_metadata.py
index <HASH>..<HASH> 100755
--- a/iacli/ia_metadata.py
+++ b/iacli/ia_metadata.py
@@ -1,8 +1,7 @@
"""Retrieve and modify metadata for items on archive.org.
usage:
- ia metadata [--modify=<key:value>... | --exists | --formats | --files | --target=<target>.... | Fixed bug where --files was returning duplicate metadata fields when used with --target. | py |
diff --git a/src/transformers/pipelines.py b/src/transformers/pipelines.py
index <HASH>..<HASH> 100755
--- a/src/transformers/pipelines.py
+++ b/src/transformers/pipelines.py
@@ -1531,7 +1531,7 @@ SUPPORTED_TASKS = {
"tf": "distilbert-base-uncased-finetuned-sst-2-english",
},
... | Align sentiment-analysis' tokenizer (currently uncased) to the model (uncased). (#<I>) | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -42,8 +42,12 @@ def in_directory(*directories):
@wraps(func)
def inner(*args, **kwargs):
FileSystem.pushd(*directories)
- value = func(*args, **kwargs)
- ... | Wrapped directory decorator in a try/finally | py |
diff --git a/gluish/common.py b/gluish/common.py
index <HASH>..<HASH> 100644
--- a/gluish/common.py
+++ b/gluish/common.py
@@ -164,8 +164,8 @@ class FTPMirror(CommonTask):
A generic FTP directory sync. Outsource to lftp.
"""
host = luigi.Parameter()
- username = luigi.Parameter()
- password = luigi... | use 'anonymous' as default FTP username | py |
diff --git a/raven/contrib/django/__init__.py b/raven/contrib/django/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/django/__init__.py
+++ b/raven/contrib/django/__init__.py
@@ -11,6 +11,7 @@ from __future__ import absolute_import
import logging
from django.conf import settings
+from django.contrib.aut... | Only try to attach user info if its an instance of django.contrib.auth | py |
diff --git a/pyquil/noise.py b/pyquil/noise.py
index <HASH>..<HASH> 100644
--- a/pyquil/noise.py
+++ b/pyquil/noise.py
@@ -191,7 +191,7 @@ def _check_kraus_ops(n, kraus_ops):
"Kraus operators for {0} qubits must have shape {1}x{1}: {2}".format(n, 2 ** n, k))
kdk_sum = sum(np.transpose(k).conjuga... | Reduced tolerance for Kraus operator normalization condition (#<I>) | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100755
--- a/tests.py
+++ b/tests.py
@@ -57,7 +57,7 @@ class PuzzleTests(unittest.TestCase):
p.load(b'')
def test_junk_at_end_of_puzzle(self):
- with open('testfiles/washpost.puz') as fp:
+ with open('testfiles/washpost.puz', 'rb') ... | Fixed test case to pass in each of the supported Python versions | py |
diff --git a/cursesmenu/version.py b/cursesmenu/version.py
index <HASH>..<HASH> 100644
--- a/cursesmenu/version.py
+++ b/cursesmenu/version.py
@@ -1 +1 @@
-__version__ = "0.2.0"
+__version__ = "0.3.0" | bump verion to <I> | py |
diff --git a/rawdisk/util/rawstruct.py b/rawdisk/util/rawstruct.py
index <HASH>..<HASH> 100644
--- a/rawdisk/util/rawstruct.py
+++ b/rawdisk/util/rawstruct.py
@@ -36,6 +36,9 @@ class RawStruct:
def get_ulong(self, offset):
return struct.unpack("<L", self.data[offset:offset+4])[0]
+ def get_ulonglong(... | Added get_ulonglong method to RawStruct | py |
diff --git a/mpu/units/__init__.py b/mpu/units/__init__.py
index <HASH>..<HASH> 100644
--- a/mpu/units/__init__.py
+++ b/mpu/units/__init__.py
@@ -96,6 +96,8 @@ class Money(object):
raise ValueError(('Division with type \'{}\' is not '
'supported').format())
+ __div__ = ... | BUG: Add __div__ implementation for money class for Python 2.X | py |
diff --git a/labm8/py/sqlutil.py b/labm8/py/sqlutil.py
index <HASH>..<HASH> 100644
--- a/labm8/py/sqlutil.py
+++ b/labm8/py/sqlutil.py
@@ -900,9 +900,9 @@ class BufferedDatabaseWriter(threading.Thread):
def __init__(
self,
db: Database,
- max_buffer_size: int = 32 * 1024 * 1024,
- max_buffer_length: ... | Make buffered database writer limits optional. | py |
diff --git a/raiden/tests/integration/contracts/fixtures/contracts.py b/raiden/tests/integration/contracts/fixtures/contracts.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/contracts/fixtures/contracts.py
+++ b/raiden/tests/integration/contracts/fixtures/contracts.py
@@ -1,7 +1,8 @@
import pytest
-from ... | Use an address for deprecator in token_network_proxy in tests | py |
diff --git a/remind.py b/remind.py
index <HASH>..<HASH> 100644
--- a/remind.py
+++ b/remind.py
@@ -302,14 +302,14 @@ class Remind(object):
msg = []
if label:
msg.append(label)
- msg.append(vevent.summary.value.replace('[', '["["]'))
+ msg.append(vevent.summary.value.strip().... | strip superfluous spaces from iCal string | py |
diff --git a/lib/auxly/shell.py b/lib/auxly/shell.py
index <HASH>..<HASH> 100644
--- a/lib/auxly/shell.py
+++ b/lib/auxly/shell.py
@@ -34,6 +34,8 @@ class _StartedProcess:
def stop(self):
"""Stops the started process."""
self._logfile.close()
+ if self.poll() != None:
+ return
... | Added check to see if process is still running before attempting to stop it. | py |
diff --git a/skflow/tests/test_early_stopping.py b/skflow/tests/test_early_stopping.py
index <HASH>..<HASH> 100644
--- a/skflow/tests/test_early_stopping.py
+++ b/skflow/tests/test_early_stopping.py
@@ -34,14 +34,14 @@ class EarlyStoppingTest(tf.test.TestCase):
# classifier without early stopping - overfitti... | * Better early stopping params for test | py |
diff --git a/spyder/plugins/ipythonconsole/widgets/control.py b/spyder/plugins/ipythonconsole/widgets/control.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/widgets/control.py
+++ b/spyder/plugins/ipythonconsole/widgets/control.py
@@ -113,6 +113,7 @@ class ControlWidget(TracebackLinksMixin, GetHelpM... | IPython console: Process mouseMoveEvent's in control widget Without this it was not possible to select text in the console. | py |
diff --git a/services.py b/services.py
index <HASH>..<HASH> 100644
--- a/services.py
+++ b/services.py
@@ -24,6 +24,8 @@ def request(func):
params = func(*args, **kwargs)
self = params.pop('self')
entity = params.pop('entity')
+ request_id = unique_hex()
+ params['request_id'] =... | refactor and move request id creation to service decorator | py |
diff --git a/everest/db.py b/everest/db.py
index <HASH>..<HASH> 100644
--- a/everest/db.py
+++ b/everest/db.py
@@ -88,3 +88,15 @@ reset_metadata = _MetaDataManager.reset
#: The scoped session maker. Instantiate this to obtain a thread local
#: session instance.
Session = scoped_session(sessionmaker(extension=ZopeTra... | Added a strict commit veto function to use with the transaction manager. | py |
diff --git a/qa_tests/risk/__init__.py b/qa_tests/risk/__init__.py
index <HASH>..<HASH> 100644
--- a/qa_tests/risk/__init__.py
+++ b/qa_tests/risk/__init__.py
@@ -234,10 +234,11 @@ class FixtureBasedQATestCase(LogicTreeBasedTestCase, BaseRiskQATestCase):
def get_hazard_job(self):
if not self._get_querys... | run hazard if fixture is not present | py |
diff --git a/bson/son.py b/bson/son.py
index <HASH>..<HASH> 100644
--- a/bson/son.py
+++ b/bson/son.py
@@ -18,6 +18,7 @@ Regular dictionaries can be used instead of SON objects, but not when the order
of keys is important. A SON object can be used just like a normal Python
dictionary."""
+import copy
class SON(d... | support deepcopy on bson.SON | py |
diff --git a/simpl/config.py b/simpl/config.py
index <HASH>..<HASH> 100644
--- a/simpl/config.py
+++ b/simpl/config.py
@@ -502,7 +502,14 @@ class Config(collections.MutableMapping):
def get_defaults(self):
"""Use argparse to determine and return dict of defaults."""
- parser = self.build_parser(s... | cp the options list when figuring defaults This ensures that no matter the behavior of 'permissive' and the parser, we dont throw any SystemExit due to a lacking 'required' arguement when all we are really trying to do in get_defaults() is to get an initial set of defaults by leveraging argparse. | py |
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index <HASH>..<HASH> 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -236,8 +236,10 @@ def install_linter(config):
continue
PREVIOUS_INSTALL_COMMANDS.append(install_cmd)
if not ins... | catch OSError during install | py |
diff --git a/twarc/command.py b/twarc/command.py
index <HASH>..<HASH> 100644
--- a/twarc/command.py
+++ b/twarc/command.py
@@ -242,10 +242,10 @@ def main():
logging.info("archived %s", thing['id_str'])
elif 'woeid' in thing:
# places
- print(json.dump(thing), file=fh)
+ ... | json encode Several not very often used commands had a json serialization problem that was calling the twarc program to completely fail. This effected the places command. | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -116,7 +116,7 @@ def deploy_dummy_stack(env, charm_prefix):
# Wait up to 30 seconds for token to be created.
logging.info('Retrieving token.')
if env.kvm:
- timeout = 300
+ ... | Give kvm more time. | py |
diff --git a/Lib/glyphsLib/__init__.py b/Lib/glyphsLib/__init__.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/__init__.py
+++ b/Lib/glyphsLib/__init__.py
@@ -55,7 +55,6 @@ def loads(s):
p = Parser(dict_type=GSFont)
logger.info('Parsing .glyphs file')
data = p.parse(s)
- logger.info('Casting parse... | [glyphsLib] no need to log "casting parsed values" any more that step was removed in the classtree branch | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -120,7 +120,7 @@ class custom_upload(upload):
def finalize_options(self):
import os
upload.finalize_options(self)
- overrides = ((k[5:].lower(), v) for k, v in os.environ.iteritems() if k.startswi... | Fixed custom upload command for AppVeyor to work with Python 3 (#1). | py |
diff --git a/test/common/driver.py b/test/common/driver.py
index <HASH>..<HASH> 100644
--- a/test/common/driver.py
+++ b/test/common/driver.py
@@ -962,7 +962,7 @@ class ProxyProcess(Process):
# prepend 'proxy'
self.options.insert(0, 'proxy')
- def subclass_options(options):
+ def subclass_opti... | fix for proxy startup error over-the-shoulder by @damielmews | py |
diff --git a/pyechonest/song.py b/pyechonest/song.py
index <HASH>..<HASH> 100644
--- a/pyechonest/song.py
+++ b/pyechonest/song.py
@@ -106,7 +106,10 @@ class Song(SongProxy):
"""
if not (cache and ('audio_summary' in self.cache)):
response = self.get_attribute('profile', bucket='audio_sum... | Guard against empty song results when getting an audio summary. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -116,7 +116,7 @@ setup(
],
},
zip_safe=False,
- tests_requires=['ansible', 'pytest'],
+ tests_requires=['ansible', 'pytest', 'pytest-cov'],
install_requires=['ansible', 'pytest'],
cmdclass={
... | Include pytest-cov in test_requires | py |
diff --git a/webarticle2text.py b/webarticle2text.py
index <HASH>..<HASH> 100755
--- a/webarticle2text.py
+++ b/webarticle2text.py
@@ -32,6 +32,7 @@ import time
import formatter
import htmlentitydefs
import htmllib
+import httplib
import HTMLParser
import re
import StringIO
@@ -335,7 +336,14 @@ def fetch(url, tim... | Added check for IncompleteRead exception. | py |
diff --git a/shinken/modules/active_directory_ui.py b/shinken/modules/active_directory_ui.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/active_directory_ui.py
+++ b/shinken/modules/active_directory_ui.py
@@ -155,7 +155,6 @@ class AD_Webui(BaseModule):
f.write(photo)
f.cl... | Fix : was doing only one photo lookup in AD/UI. | py |
diff --git a/raiden/raiden_service.py b/raiden/raiden_service.py
index <HASH>..<HASH> 100644
--- a/raiden/raiden_service.py
+++ b/raiden/raiden_service.py
@@ -558,9 +558,10 @@ class RaidenService(Runnable):
payment_done=AsyncResult(),
)
elif is_initiator:
-... | Fix bug at _initialize_queues Should fix the stress test failure | py |
diff --git a/argos/widgets/mainwindow.py b/argos/widgets/mainwindow.py
index <HASH>..<HASH> 100644
--- a/argos/widgets/mainwindow.py
+++ b/argos/widgets/mainwindow.py
@@ -809,7 +809,7 @@ class MainWindow(QtWidgets.QMainWindow):
""" Opens a new window with the same inspector as the current window.
"""
... | Fix regresion: open new window works again. | py |
diff --git a/GPy/models/sparse_GP.py b/GPy/models/sparse_GP.py
index <HASH>..<HASH> 100644
--- a/GPy/models/sparse_GP.py
+++ b/GPy/models/sparse_GP.py
@@ -36,7 +36,7 @@ class sparse_GP(GP):
def __init__(self, X, likelihood, kernel, Z, X_variance=None, Xslices=None,Zslices=None, normalize_X=False):
self.... | added automatic scale_factor to sparse GPs | py |
diff --git a/tests/test_dicts.py b/tests/test_dicts.py
index <HASH>..<HASH> 100644
--- a/tests/test_dicts.py
+++ b/tests/test_dicts.py
@@ -363,6 +363,10 @@ class CounterTest(RedisTestCase):
c['a'] = 5
self.assertEqual(c['a'], 5)
+ # For whatever reason Python counters accept non-i... | Test for writeback-enabled Counter | py |
diff --git a/version.py b/version.py
index <HASH>..<HASH> 100644
--- a/version.py
+++ b/version.py
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-version = '2.0a5'
+version = '2.0.0a1' | Preparing for <I> release instead of <I> | py |
diff --git a/benchexec/tools/cpachecker.py b/benchexec/tools/cpachecker.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/cpachecker.py
+++ b/benchexec/tools/cpachecker.py
@@ -170,7 +170,7 @@ class Tool(benchexec.tools.template.BaseTool):
elif line.startswith('FALSE'):
newStatus... | add support for property memcleanup in CPAchecker | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,8 @@ if sys.platform == "win32":
for copy_this in ["./messenger/mexmaci64/messenger.mexmaci64",
"./messenger/mexa64/messenger.mexa64",
- "./messenger/mexw64/messenger.mexw64"]:
... | Add the octave messenger to setup.py | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.