diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/code/test_png.py b/code/test_png.py
index <HASH>..<HASH> 100644
--- a/code/test_png.py
+++ b/code/test_png.py
@@ -22,6 +22,7 @@ except ImportError:
from StringIO import StringIO as BytesIO
import itertools
import struct
+import sys
# http://www.python.org/doc/2.4.4/lib/module-unittest.html
import ... | import sys so that the warnings about skipping the numpy tests are seen. | py |
diff --git a/windpowerlib/tools.py b/windpowerlib/tools.py
index <HASH>..<HASH> 100644
--- a/windpowerlib/tools.py
+++ b/windpowerlib/tools.py
@@ -60,8 +60,9 @@ def linear_interpolation_extrapolation(df, target_height):
... columns=[np.array(['wind_speed',
... ... | Change test because python <I> on Travis has problems | py |
diff --git a/flubber/loop.py b/flubber/loop.py
index <HASH>..<HASH> 100644
--- a/flubber/loop.py
+++ b/flubber/loop.py
@@ -36,6 +36,7 @@ def get_loop():
class Handler(object):
+ __slots__ = ('_callback', '_args', '_kwargs', '_cancelled')
def __init__(self, callback, args=(), kwargs={}):
self._ca... | Added __slots__ to Handler and Timer objects | py |
diff --git a/gwpy/plotter/segments.py b/gwpy/plotter/segments.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/segments.py
+++ b/gwpy/plotter/segments.py
@@ -209,7 +209,7 @@ class SegmentAxes(TimeSeriesAxes):
if y is None:
y = self.get_next_y()
# get flag name
- name = kwargs.pop(... | SegmentAxes.plot_dqflag: don't use flag.texname the underlying `SegmentAxes.plot_segmentlist` takes care of underscore escaping, we don't need to use `flag.texname` here. probably best to deprecate the use of `DataQualityFlag.texname` | py |
diff --git a/treq_kerberos/__init__.py b/treq_kerberos/__init__.py
index <HASH>..<HASH> 100644
--- a/treq_kerberos/__init__.py
+++ b/treq_kerberos/__init__.py
@@ -31,13 +31,13 @@ def get(url, headers={}, **kwargs):
if auth.force_preemptive:
# Save a round-trip and set the Negotiate header on the f... | call treq.get() with kwargs When writing tests for this, I found StubTreq cannot handle a mixture of unnamed args and kwargs. Use kwargs universally with treq's get() to make this easier to test. | py |
diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py
index <HASH>..<HASH> 100644
--- a/linkcheck/checker/fileurl.py
+++ b/linkcheck/checker/fileurl.py
@@ -81,7 +81,9 @@ def is_absolute_path (path):
with a drive letter. On all other systems absolute paths start with
a slash."""
if os.n... | Treat Windows UNC paths as absolute paths. | py |
diff --git a/mistletoe/core_tokens.py b/mistletoe/core_tokens.py
index <HASH>..<HASH> 100644
--- a/mistletoe/core_tokens.py
+++ b/mistletoe/core_tokens.py
@@ -277,7 +277,7 @@ def is_opener(start, end, string):
is_right = is_right_delimiter(start, end, string)
return (is_left_delimiter(start, end, string)
... | fixed: preceded_by takes wrong starting index | py |
diff --git a/tests/test_timeout_decorator.py b/tests/test_timeout_decorator.py
index <HASH>..<HASH> 100644
--- a/tests/test_timeout_decorator.py
+++ b/tests/test_timeout_decorator.py
@@ -90,6 +90,7 @@ def test_timeout_pickle_error():
def test_timeout_custom_exception_message():
message = "Custom fail message"
+... | Can set exception message in decorator with Travis CI fixes. | py |
diff --git a/orpsoc/core.py b/orpsoc/core.py
index <HASH>..<HASH> 100644
--- a/orpsoc/core.py
+++ b/orpsoc/core.py
@@ -128,8 +128,7 @@ class Core:
os.path.join(dst_dir, f))
else:
logger.debug(" File " + f + " doesn't exist - may it will be added as patch l... | Fix crash when patch adds a file to a core | py |
diff --git a/slacksocket/client.py b/slacksocket/client.py
index <HASH>..<HASH> 100644
--- a/slacksocket/client.py
+++ b/slacksocket/client.py
@@ -297,7 +297,7 @@ class SlackSocket(object):
if matching:
return channel_type, matching
- return None
+ return [None, False]
... | Return [None, False] instead of None since the caller expects vector This fixes #<I> | py |
diff --git a/BDMesh/MeshUniform1D.py b/BDMesh/MeshUniform1D.py
index <HASH>..<HASH> 100644
--- a/BDMesh/MeshUniform1D.py
+++ b/BDMesh/MeshUniform1D.py
@@ -111,10 +111,10 @@ class MeshUniform1D(Mesh1D):
step_ratio = max_step / min_step
if check_if_integer(step_ratio, 1e-8):
shift = (mesh.p... | correcting check if two uniform meshes are aligned. | py |
diff --git a/yellowbrick/classifier/class_prediction_error.py b/yellowbrick/classifier/class_prediction_error.py
index <HASH>..<HASH> 100644
--- a/yellowbrick/classifier/class_prediction_error.py
+++ b/yellowbrick/classifier/class_prediction_error.py
@@ -21,12 +21,17 @@ Shows the balance of classes and their associated... | Handling scikit-learn's public vs. private API (part 1) (#<I>) | py |
diff --git a/aioxmpp/ssl_transport.py b/aioxmpp/ssl_transport.py
index <HASH>..<HASH> 100644
--- a/aioxmpp/ssl_transport.py
+++ b/aioxmpp/ssl_transport.py
@@ -696,9 +696,9 @@ def create_starttls_connection(
if all(str(exc) == model for exc in exceptions):
raise exceptions[0]
- ... | Use MultiOSError in ssl_transport | py |
diff --git a/ixexplorer/ixe_app.py b/ixexplorer/ixe_app.py
index <HASH>..<HASH> 100644
--- a/ixexplorer/ixe_app.py
+++ b/ixexplorer/ixe_app.py
@@ -168,7 +168,7 @@ class IxeSession(IxeObject):
self.api.call_rc('ixClearTimeStamp {}'.format(port_list_for_packet_groups))
self.api.call_rc('ixStartP... | Decreased sleep time in start/stop tx | py |
diff --git a/neat/config.py b/neat/config.py
index <HASH>..<HASH> 100644
--- a/neat/config.py
+++ b/neat/config.py
@@ -3,6 +3,7 @@ from __future__ import print_function
import os
import sys
+import warnings
try:
from configparser import ConfigParser
@@ -39,7 +40,7 @@ class ConfigParameter(object):
... | Warning re default changed to DeprecationWarning - reduce noise | py |
diff --git a/web_pdb/__init__.py b/web_pdb/__init__.py
index <HASH>..<HASH> 100644
--- a/web_pdb/__init__.py
+++ b/web_pdb/__init__.py
@@ -52,6 +52,7 @@ class WebPdb(Pdb):
with extra convenience features.
"""
active_instance = None
+ null = object()
def __init__(self, host='', port=5555, patch_... | Fix a bug in inspect command The command returned an error message for None objects. | py |
diff --git a/pyout/interface.py b/pyout/interface.py
index <HASH>..<HASH> 100644
--- a/pyout/interface.py
+++ b/pyout/interface.py
@@ -8,9 +8,9 @@ from contextlib import contextmanager
from functools import partial
import inspect
from logging import getLogger
-import multiprocessing
from multiprocessing.dummy impor... | interface: Lock with threading.Lock() We'll be switching over to concurrent.futures, so we might as well use what is used in Lib/concurrent/futures/_base.py (though I think using multiprocessing.Lock() would work fine too). | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/implementation/pipeline_run_storage.py b/python_modules/dagster-graphql/dagster_graphql/implementation/pipeline_run_storage.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/implementation/pipeline_run_storage.py
+++ b/python_... | [events] cursor fix Summary: This was always off but we didnt actually use the cursor until the instance stuff. Test Plan: execute a pipeline - no more double first event Reviewers: #ft, bengotow, prha Reviewed By: #ft, prha Differential Revision: <URL> | py |
diff --git a/tests/test_uniform_block.py b/tests/test_uniform_block.py
index <HASH>..<HASH> 100644
--- a/tests/test_uniform_block.py
+++ b/tests/test_uniform_block.py
@@ -77,7 +77,7 @@ class TestCase(unittest.TestCase):
self.assertAlmostEqual(b, 3004.0)
def test_2(self):
- min_offset: int = self.... | Remove unecessary type hint in uniform_block tests It appears can actually cause problems depending on python version | py |
diff --git a/ontquery/terms.py b/ontquery/terms.py
index <HASH>..<HASH> 100644
--- a/ontquery/terms.py
+++ b/ontquery/terms.py
@@ -424,7 +424,9 @@ class OntTerm(OntId):
for keyword, value in result.items():
# TODO open vs closed world
orig_value = self.orig_kwargs.get(keyw... | OntTerm ignore None and empty iterable when checking for differences | py |
diff --git a/chalice/analyzer.py b/chalice/analyzer.py
index <HASH>..<HASH> 100644
--- a/chalice/analyzer.py
+++ b/chalice/analyzer.py
@@ -1,8 +1,11 @@
"""Source code analyzer for chalice app."""
import ast
+from typing import Dict, Set # noqa
+
def get_client_calls(source_code):
+ # type: (str) -> Dict[str,... | Add type hints to analyzer I didn't bother adding type hints to AST visitor, as that code is likely to change soon. | py |
diff --git a/ella/newman/markup/models.py b/ella/newman/markup/models.py
index <HASH>..<HASH> 100644
--- a/ella/newman/markup/models.py
+++ b/ella/newman/markup/models.py
@@ -4,11 +4,11 @@ from django.utils.translation import ugettext_lazy as _
from ella.core.cache.utils import CachedForeignKey, CachedGenericForeign... | markup models renamed. refs #<I> | py |
diff --git a/fragments/__init__.py b/fragments/__init__.py
index <HASH>..<HASH> 100644
--- a/fragments/__init__.py
+++ b/fragments/__init__.py
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
import os
import codecs
-__version__ = (1,2,3)
+__version__ = (1,2,4)
class FragmentsError(Exception): pass | version bump to <I> this is so people can get the fix in 3a5adb<I>b<I>f<I>b<I>ed<I>d<I>bb1e9 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ setup(
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Software Development",
- "License :: Apache Software License",
+ "License :: OSI Approved :: Apache Software ... | fix annoying license problem with pypi | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -196,8 +196,11 @@ if setup_spec.type == SetupType.RAY:
"opentelemetry-api==1.1.0", "opentelemetry-sdk==1.1.0",
"opentelemetry-exporter-otlp==1.1.0"
],
- "cp... | Don't add ray-cpp wheel to extras by default (#<I>) | py |
diff --git a/command/build_ext.py b/command/build_ext.py
index <HASH>..<HASH> 100644
--- a/command/build_ext.py
+++ b/command/build_ext.py
@@ -117,6 +117,9 @@ class build_ext (Command):
if exec_py_include != py_include:
self.include_dirs.insert (0, exec_py_include)
+ if type (self.libs) i... | In 'finalize_options()': if 'self.libs' is a string, make it a singleton list. | py |
diff --git a/test/test_bsplines.py b/test/test_bsplines.py
index <HASH>..<HASH> 100644
--- a/test/test_bsplines.py
+++ b/test/test_bsplines.py
@@ -21,7 +21,7 @@ def test():
ll = geom.add_line_loop([s1, s2])
geom.add_plane_surface(ll)
- ref = 0.9156598733673261
+ ref = 0.9156598733673261 if pygmsh.get_... | Gmsh 4 does BSpline differently, so test add_bspline accordingly, fixes #<I> | py |
diff --git a/spyderlib/utils/module_completion.py b/spyderlib/utils/module_completion.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/module_completion.py
+++ b/spyderlib/utils/module_completion.py
@@ -143,8 +143,10 @@ def get_submodules(mod):
for sm in submods:
sm_name = sm[1]
s... | utils/module_completion: Make get_submodules return the module under inspection if pkgutil fails - For some modules (e.g. os, os.path) pkgutil can't obtain its submodules but nevertheless they are importable, so they have to be added to the submodules database. | py |
diff --git a/xcessiv/views.py b/xcessiv/views.py
index <HASH>..<HASH> 100644
--- a/xcessiv/views.py
+++ b/xcessiv/views.py
@@ -97,6 +97,6 @@ def verify_extraction_test_dataset(path):
if xcnb['extraction']['test_dataset']['method'] is None:
raise exceptions.UserError('Xcessiv is not configured to use a tes... | add view to verify extraction of test dataset | py |
diff --git a/ubireader/ubi/display.py b/ubireader/ubi/display.py
index <HASH>..<HASH> 100755
--- a/ubireader/ubi/display.py
+++ b/ubireader/ubi/display.py
@@ -75,13 +75,13 @@ def block(block, tab='\t'):
buf += '\n'
buf += '\t%sErase Count Header\n' % (tab)
buf += '\t%s---------------------\n'... | Fixed certain ubi block header info not displaying. | py |
diff --git a/skillful/__init__.py b/skillful/__init__.py
index <HASH>..<HASH> 100644
--- a/skillful/__init__.py
+++ b/skillful/__init__.py
@@ -2,4 +2,4 @@
from .controller import Skill
-__version__ = '0.3.2'
+__version__ = '0.3.3' | Bumped to <I>. | py |
diff --git a/fluo/middleware/locale.py b/fluo/middleware/locale.py
index <HASH>..<HASH> 100644
--- a/fluo/middleware/locale.py
+++ b/fluo/middleware/locale.py
@@ -27,6 +27,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import re
+from django.core.exceptions import Improperly... | import ImproperlyConfigured exception in locale middleware | py |
diff --git a/bambou/nurest_object.py b/bambou/nurest_object.py
index <HASH>..<HASH> 100644
--- a/bambou/nurest_object.py
+++ b/bambou/nurest_object.py
@@ -678,6 +678,7 @@ class NURESTObject(object):
Args:
nurest_object: the NURESTObject object to manage
method: the HTTP me... | Forced async to true when having a callback method | py |
diff --git a/curdling/web/__init__.py b/curdling/web/__init__.py
index <HASH>..<HASH> 100644
--- a/curdling/web/__init__.py
+++ b/curdling/web/__init__.py
@@ -1,4 +1,4 @@
-future __from__ import unicode_literals, print_function, absolute_import
+from __future__ import unicode_literals, print_function, absolute_import
... | Fix a mistake caused by lack of sleep | py |
diff --git a/datadog_checks_base/datadog_checks/base/checks/win/winpdh.py b/datadog_checks_base/datadog_checks/base/checks/win/winpdh.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/checks/win/winpdh.py
+++ b/datadog_checks_base/datadog_checks/base/checks/win/winpdh.py
@@ -130,7 +130,7 @@ c... | Fix failing style checks (#<I>) | 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
@@ -1058,7 +1058,9 @@ class Exchange(object):
def parse_timeframe(self, timeframe):
amount = int(timeframe[0:-1])
unit = timef... | added support for "y" to parse_timeframe in py #<I> | py |
diff --git a/pyensembl/gene.py b/pyensembl/gene.py
index <HASH>..<HASH> 100644
--- a/pyensembl/gene.py
+++ b/pyensembl/gene.py
@@ -55,7 +55,7 @@ class Gene(Locus):
WHERE gene_id = ?
AND feature = 'transcript'
"""
- cursor = db.execute(transcript_ids_query, [self... | fix exons and transcripts properties on Gene | py |
diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -635,10 +635,12 @@ def connect(host, port=None, proto=None, timeout=5):
if not host:
ret['result'] = False
ret['comment'] = 'Required argument,... | minor fix, if protocol is not specified then default to TCP but ensure proto variable is set to tcp for return data. | py |
diff --git a/txkoji/__init__.py b/txkoji/__init__.py
index <HASH>..<HASH> 100644
--- a/txkoji/__init__.py
+++ b/txkoji/__init__.py
@@ -172,11 +172,13 @@ class Connection(object):
:param build_id: ``int``, for example 12345
:returns: deferred that when fired returns a Build (Munch, dict-like)
- ... | handle missing builds/tasks Prior to this change, we would crash when setting ".connection" for NoneType. Clarify that these methods may return None if the task or build was not present on the hub. | py |
diff --git a/tornado/ioloop.py b/tornado/ioloop.py
index <HASH>..<HASH> 100644
--- a/tornado/ioloop.py
+++ b/tornado/ioloop.py
@@ -912,12 +912,12 @@ class PollIOLoop(IOLoop):
# The check doesn't need to be guarded by the callback lock,
# since the GIL makes all access to it atomic, and it can
... | Move closed check inside the callback_lock | py |
diff --git a/gridmap/job.py b/gridmap/job.py
index <HASH>..<HASH> 100644
--- a/gridmap/job.py
+++ b/gridmap/job.py
@@ -301,7 +301,12 @@ def _append_job_to_session(session, job, uniq_id, job_num, temp_dir='/scratch/',
# Create temp directory if necessary
if not os.path.exists(temp_dir):
- os.makedirs(... | Add warning if you can't create temporary directory instead of just dying. | py |
diff --git a/plenum/cli/cli.py b/plenum/cli/cli.py
index <HASH>..<HASH> 100644
--- a/plenum/cli/cli.py
+++ b/plenum/cli/cli.py
@@ -10,6 +10,10 @@ import shutil
from jsonpickle import json
+
+# Do not remove this import
+# import plenum.cli.ensure_logging_not_setup
+
from prompt_toolkit.utils import is_windows, is... | [#<I>] commented unwanted code, and did one minor change to make it working | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -429,6 +429,26 @@ class PlexPartialObject(PlexObject):
"""
return self._server.history(maxresults=maxresults, mindate=mindate, ratingKey=self.ratingKey)
+ def posters(self):
+... | moved poster related methods to base PlexPartialObject class | py |
diff --git a/keanu-python/tests/test_coal_mining.py b/keanu-python/tests/test_coal_mining.py
index <HASH>..<HASH> 100644
--- a/keanu-python/tests/test_coal_mining.py
+++ b/keanu-python/tests/test_coal_mining.py
@@ -15,7 +15,7 @@ def test_coalmining() -> None:
model.disasters.observe(coal_mining.training_data())
... | Further increase in sample count for coal mining | py |
diff --git a/hagelslag/processing/TrackProcessing.py b/hagelslag/processing/TrackProcessing.py
index <HASH>..<HASH> 100644
--- a/hagelslag/processing/TrackProcessing.py
+++ b/hagelslag/processing/TrackProcessing.py
@@ -149,6 +149,9 @@ class TrackProcessor(object):
dims = model_obj.timesteps[-1].shape
... | Added NCARSTORM model grid type and associated config files. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -5900,7 +5900,7 @@ def expr_str(expr, sc_expr_str_fn=standard_sc_expr_str):
#
# Relation operands are always symbols (quoted strings are constant
# symbols)
- return "{} {} {}".format(sc_e... | Make REL_TO_STR public Generally useful, and not likely to need any internal hackery. | py |
diff --git a/tests/test_utilities.py b/tests/test_utilities.py
index <HASH>..<HASH> 100644
--- a/tests/test_utilities.py
+++ b/tests/test_utilities.py
@@ -449,9 +449,9 @@ def test_cells_dict_utils():
cells_arr = np.array([3, 0, 1, 2, 3, 3, 4, 5])
cells_types = np.array([vtk.VTK_TRIANGLE] * 2)
- assert np... | Fix generate_cell_offsets test (#<I>) to make it check at least anything (shortcut method generate_cell_offsets returns the same offsets as the explicit generate_cell_offsets_loop method. | py |
diff --git a/airflow/contrib/operators/mysql_to_gcs.py b/airflow/contrib/operators/mysql_to_gcs.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/operators/mysql_to_gcs.py
+++ b/airflow/contrib/operators/mysql_to_gcs.py
@@ -210,6 +210,7 @@ class MySqlToGoogleCloudStorageOperator(BaseOperator):
FIELD_TYP... | [AIRFLOW-<I>] Add mapping for date type to mysql_to_gcs operator Closes #<I> from mikeghen/bug/airflow-<I> | py |
diff --git a/tcex/testing/test_case_service_common.py b/tcex/testing/test_case_service_common.py
index <HASH>..<HASH> 100644
--- a/tcex/testing/test_case_service_common.py
+++ b/tcex/testing/test_case_service_common.py
@@ -180,7 +180,7 @@ class TestCaseServiceCommon(TestCasePlaybookCommon):
body = json.dum... | + fixed test method for serialization of body | py |
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py
index <HASH>..<HASH> 100755
--- a/src/toil/cwl/cwltoil.py
+++ b/src/toil/cwl/cwltoil.py
@@ -267,6 +267,8 @@ def writeFile(writeFunc, index, existing, x):
def uploadFile(uploadfunc, fileindex, existing, uf, skip_broken=False):
cwllogger.warn("upload ... | Don't try to upload filestore references or file literals. | py |
diff --git a/src/onelogin/saml2/authn_request.py b/src/onelogin/saml2/authn_request.py
index <HASH>..<HASH> 100644
--- a/src/onelogin/saml2/authn_request.py
+++ b/src/onelogin/saml2/authn_request.py
@@ -108,7 +108,7 @@ class OneLogin_Saml2_Authn_Request(object):
attr_consuming_service_str = ''
if 'a... | Add the ability to set AttributeConsumingServiceIndex in the authn request. | py |
diff --git a/udiskie/config.py b/udiskie/config.py
index <HASH>..<HASH> 100644
--- a/udiskie/config.py
+++ b/udiskie/config.py
@@ -204,7 +204,7 @@ class Config(object):
:param ConfigParser data: config file accessor
"""
- self._data = data
+ self._data = data or {}
@classmethod
... | Fix crash on startup if config file is empty Resolves #<I> | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -281,7 +281,6 @@ class Stream(object):
self._start(async)
def sample(self, async=False):
- self.session.params = {'delimited': 'length'}
if self.runni... | Remove delimited=length from sample stream This causes Twitter to reject the request, for some reason. | py |
diff --git a/telemetry/telemetry/core/platform/profiler/trace_profiler.py b/telemetry/telemetry/core/platform/profiler/trace_profiler.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/platform/profiler/trace_profiler.py
+++ b/telemetry/telemetry/core/platform/profiler/trace_profiler.py
@@ -14,7 +14,11 @@ cl... | [telemetry] Enable flow events by default in telemetry when tracing. BUG= Review URL: <URL> | py |
diff --git a/api/python/quilt3/session.py b/api/python/quilt3/session.py
index <HASH>..<HASH> 100644
--- a/api/python/quilt3/session.py
+++ b/api/python/quilt3/session.py
@@ -77,7 +77,7 @@ def _update_auth(refresh_token, timeout=None):
def _handle_response(resp, **kwargs):
if resp.status_code == requests.codes.un... | Update <I> login message to point to the latest CLI (#<I>) | py |
diff --git a/auto_ml/utils_models.py b/auto_ml/utils_models.py
index <HASH>..<HASH> 100644
--- a/auto_ml/utils_models.py
+++ b/auto_ml/utils_models.py
@@ -1,3 +1,5 @@
+import dill
+
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor, ExtraTreesRegressor, AdaBoostRegressor, GradientBoostingRegre... | adds load_keras_model function, a single one-word difference from our normal models to load in a trained model | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -7,7 +7,7 @@ import os
import warnings
-VERSION_BASE = '0.18.2'
+VERSION_BASE = '0.18.3'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/everest/tests/test_visitors.py b/everest/tests/test_visitors.py
index <HASH>..<HASH> 100644
--- a/everest/tests/test_visitors.py
+++ b/everest/tests/test_visitors.py
@@ -16,6 +16,7 @@ from everest.testing import Pep8CompliantTestCase
from sqlalchemy.engine import create_engine
import sqlalchemy as sa
im... | Added coverage for a SQL order clause generation corner case. | py |
diff --git a/punch/vcs_repositories/git_flow_repo.py b/punch/vcs_repositories/git_flow_repo.py
index <HASH>..<HASH> 100644
--- a/punch/vcs_repositories/git_flow_repo.py
+++ b/punch/vcs_repositories/git_flow_repo.py
@@ -59,7 +59,7 @@ class GitFlowRepo(gr.GitRepo):
self._run(command_line)
- self._... | Fixed finish_release() for git-flow adapter to support older GitFlow versions that require the release name | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -1178,7 +1178,10 @@ class MainWindow(QMainWindow):
if plugin is not None:
plugin.dockwidget.raise_()
self.extconsole.setMinimumHe... | Hide "Search toolbar" in Linux because it robs space to the working dir widget | py |
diff --git a/openid/sreg.py b/openid/sreg.py
index <HASH>..<HASH> 100644
--- a/openid/sreg.py
+++ b/openid/sreg.py
@@ -37,6 +37,12 @@ OpenID providers.
from openid.extension import Extension
+try:
+ basestring
+except NameError:
+ # For Python 2.2
+ basestring = (str, unicode)
+
__all__ = [
'SRegReq... | [project @ Added basestring Python <I> compatibility] | 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
@@ -487,7 +487,6 @@ class GridPlot(CompositePlot):
layout_axis.spines['bottom' if self.xaxis == 'top' else 'top'].set_visible(Fa... | Removed unused variable in GridPlot | py |
diff --git a/docker/client.py b/docker/client.py
index <HASH>..<HASH> 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -307,7 +307,9 @@ class Client(clientbase.ClientBase):
def exec_inspect(self, exec_id):
if utils.compare_version('1.16', self._version) < 0:
- raise errors.InvalidVersi... | Update error message to state that exec_inspect is not supported | py |
diff --git a/bcbio/variation/validate.py b/bcbio/variation/validate.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/validate.py
+++ b/bcbio/variation/validate.py
@@ -116,10 +116,12 @@ def _create_validate_config_file(vrn_file, rm_file, rm_interval_file, rm_genome,
base_dir, data):... | Improved re-run speeds with validation by skipping creating configuration file if up to date | py |
diff --git a/flask_images/core.py b/flask_images/core.py
index <HASH>..<HASH> 100755
--- a/flask_images/core.py
+++ b/flask_images/core.py
@@ -180,7 +180,7 @@ class Images(object):
public_kwargs = (
(LONG_TO_SHORT.get(k, k), v)
for k, v in kwargs.iteritems()
- if not k.star... | Don't stick `None` values into the URL | py |
diff --git a/hardware/opentrons_hardware/hardware_control/constants.py b/hardware/opentrons_hardware/hardware_control/constants.py
index <HASH>..<HASH> 100644
--- a/hardware/opentrons_hardware/hardware_control/constants.py
+++ b/hardware/opentrons_hardware/hardware_control/constants.py
@@ -2,5 +2,5 @@
from typing_exte... | refactor(CAN): <I>khz is the frequency of the interrupt. And the frequency of the interrupt is <I>khz. (#<I>) | py |
diff --git a/satpy/readers/hrit_goes.py b/satpy/readers/hrit_goes.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/hrit_goes.py
+++ b/satpy/readers/hrit_goes.py
@@ -34,6 +34,7 @@ from datetime import datetime, timedelta
import numpy as np
import xarray as xr
+import dask.array as da
from pyresample import geom... | Add masking to loading calibrated GOES HRIT data | py |
diff --git a/plex_metadata/core/defaults.py b/plex_metadata/core/defaults.py
index <HASH>..<HASH> 100644
--- a/plex_metadata/core/defaults.py
+++ b/plex_metadata/core/defaults.py
@@ -1,4 +1,4 @@
-DEFAULT_TYPES = ['movie', 'show', 'episode']
+DEFAULT_TYPES = ['movie', 'show', 'season', 'episode']
DEFAULT_GUID_MAP = {... | Added 'season' to DEFAULT_TYPES | py |
diff --git a/simuvex/engines/vex/irop.py b/simuvex/engines/vex/irop.py
index <HASH>..<HASH> 100644
--- a/simuvex/engines/vex/irop.py
+++ b/simuvex/engines/vex/irop.py
@@ -76,6 +76,10 @@ classified = set()
unclassified = set()
unsupported = set()
explicit_attrs = {
+ 'Iop_64x4toV256': {
+ '_generic_name': '... | explicitly added Iop_<I>x4toV<I> unop | py |
diff --git a/SoftLayer/CLI/autoscale/create.py b/SoftLayer/CLI/autoscale/create.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/autoscale/create.py
+++ b/SoftLayer/CLI/autoscale/create.py
@@ -2,7 +2,6 @@
# :license: MIT, see LICENSE for more details.
import click
-from SoftLayer import utils
import SoftLayer
... | Policy is not added when an AutoScale Group is created | py |
diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py
index <HASH>..<HASH> 100644
--- a/testing/test_assertrewrite.py
+++ b/testing/test_assertrewrite.py
@@ -1232,6 +1232,9 @@ class TestIssue2121:
result.stdout.fnmatch_lines(["*E*assert (1 + 1) == 3"])
+@pytest.mark.skipif(
+ sys.ma... | Skip test_source_mtime_long_long on <I>bit and lower platforms | py |
diff --git a/configure.py b/configure.py
index <HASH>..<HASH> 100755
--- a/configure.py
+++ b/configure.py
@@ -246,6 +246,8 @@ n.comment('Main executable is library plus main() function.')
objs = cxx('ninja')
ninja = n.build(binary('ninja'), 'link', objs, implicit=ninja_lib,
variables=[('libs', libs)... | Provide 'ninja' as alias for 'ninja.exe' too. Tidy up. | py |
diff --git a/dark/features.py b/dark/features.py
index <HASH>..<HASH> 100644
--- a/dark/features.py
+++ b/dark/features.py
@@ -37,7 +37,7 @@ def getFeatures(fig, record, minX, maxX):
totalSubfeatures = 0
if record:
for feature in record.features:
- if feature.type in ('CDS', 'rRNA'):
+ ... | Adjust feature display to show mat_peptides and move polypeptides up a little. | py |
diff --git a/demag_gui.py b/demag_gui.py
index <HASH>..<HASH> 100755
--- a/demag_gui.py
+++ b/demag_gui.py
@@ -77,7 +77,6 @@ import copy
from copy import deepcopy
-
matplotlib.rc('xtick', labelsize=10)
matplotlib.rc('ytick', labelsize=10)
matplotlib.rc('axes', labelsize=8)
@@ -118,6 +117,7 @@ class Zeq_GUI(w... | demag_gui.py added new instance variable parent to record if the gui was launched stand alone or not and edited a mac compatibility patch | py |
diff --git a/openquake/calculators/hazard/classical/core.py b/openquake/calculators/hazard/classical/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/classical/core.py
+++ b/openquake/calculators/hazard/classical/core.py
@@ -192,7 +192,6 @@ def compute_hazard_curves(job_id, src_ids, lt_rlz_id):
... | calcs/hazard/classical/core: Cleaned up the declaration of the classical task arg gen. | py |
diff --git a/astroplan/core.py b/astroplan/core.py
index <HASH>..<HASH> 100644
--- a/astroplan/core.py
+++ b/astroplan/core.py
@@ -123,6 +123,8 @@ def get_site_names():
'''
Get list of names of observatories for use with `~astroplan.core.get_site`
'''
+ if _site_db is None:
+ _load_sites()
... | Adding forgotten load_site() call in get_site_names | py |
diff --git a/eqcorrscan/utils/correlate.py b/eqcorrscan/utils/correlate.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/correlate.py
+++ b/eqcorrscan/utils/correlate.py
@@ -400,9 +400,10 @@ def fftw_multi_normxcorr(template_array, stream_array, pad_array, seed_ids):
n_templates = template_array[seed_ids[0]].... | Arrays created in same order as seed_ids | py |
diff --git a/benchbuild/environments/service_layer/ensure.py b/benchbuild/environments/service_layer/ensure.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/service_layer/ensure.py
+++ b/benchbuild/environments/service_layer/ensure.py
@@ -9,7 +9,7 @@ else:
class ImageNotFound(Exception):
- ...
+ ... | NFC: change ellipsis to pass This is just a test to get github to sync PR and branch again. | py |
diff --git a/nanomath/nanomath.py b/nanomath/nanomath.py
index <HASH>..<HASH> 100644
--- a/nanomath/nanomath.py
+++ b/nanomath/nanomath.py
@@ -75,8 +75,6 @@ def ave_qual(quals):
First convert Phred scores to probabilities,
calculate average error probability
convert average back to Phred scale
-
- Ret... | adapted an incorrect docstring [skip ci] | py |
diff --git a/test/test_client.py b/test/test_client.py
index <HASH>..<HASH> 100755
--- a/test/test_client.py
+++ b/test/test_client.py
@@ -45,6 +45,15 @@ class ClientTestIndexing(unittest.TestCase):
# softCommit because we don't care about data on disk
self.solr.commit(test_config['SOLR_COLLECTION'], ... | added test to check exception is correctly raised if solr is down | py |
diff --git a/geocoder/tamu.py b/geocoder/tamu.py
index <HASH>..<HASH> 100644
--- a/geocoder/tamu.py
+++ b/geocoder/tamu.py
@@ -125,7 +125,12 @@ class Tamu(Base):
@property
def address(self):
return ' '.join([
- self.housenumber, self.street, self.city, self.state, self.postal])
+ ... | build address property from tree, not self | py |
diff --git a/jsonrpcserver/dispatcher.py b/jsonrpcserver/dispatcher.py
index <HASH>..<HASH> 100644
--- a/jsonrpcserver/dispatcher.py
+++ b/jsonrpcserver/dispatcher.py
@@ -123,10 +123,6 @@ def dispatch(methods, request):
response = Request(request).process(methods)
except JsonRpcServerError as e:
... | Don't return library exceptions to client | py |
diff --git a/cwltool/utils.py b/cwltool/utils.py
index <HASH>..<HASH> 100644
--- a/cwltool/utils.py
+++ b/cwltool/utils.py
@@ -57,6 +57,10 @@ def copytree_with_merge(src, dst, symlinks=False, ignore=None):
def docker_windows_path_adjust(path):
# type: (Text) -> (Text)
if path is not None and os.name == 'nt':... | capitalizing the drive letter when passed to docker path adjust function | py |
diff --git a/tests/core/tests/resources_tests.py b/tests/core/tests/resources_tests.py
index <HASH>..<HASH> 100644
--- a/tests/core/tests/resources_tests.py
+++ b/tests/core/tests/resources_tests.py
@@ -806,7 +806,7 @@ class PostgresTests(TransactionTestCase):
# We can't check the error message because it's pa... | Remove now-redundant check for ><I> in resource tests. | py |
diff --git a/patroni/postgresql.py b/patroni/postgresql.py
index <HASH>..<HASH> 100644
--- a/patroni/postgresql.py
+++ b/patroni/postgresql.py
@@ -1560,11 +1560,13 @@ $$""".format(name, ' '.join(options)), name, password, password)
if cursor.rowcount != 1: # Either slot doesn't exists or it is sti... | Immediately reserve LSN on upon creation of replication slot (#<I>) This feature is available starting from <I> | py |
diff --git a/bitex/api/api.py b/bitex/api/api.py
index <HASH>..<HASH> 100644
--- a/bitex/api/api.py
+++ b/bitex/api/api.py
@@ -70,15 +70,20 @@ class RESTAPI:
if authenticate: # Pass all locally vars to sign(); Sorting left to children
kwargs['urlpath'] = urlpath
kwargs['request_metho... | renamed kwargs in auth if/else and later on as well to differentiate better what actually belongs in the kwargs for the request | py |
diff --git a/fusesoc/main.py b/fusesoc/main.py
index <HASH>..<HASH> 100644
--- a/fusesoc/main.py
+++ b/fusesoc/main.py
@@ -100,7 +100,8 @@ def init(cm, args):
if os.path.exists(config_file):
- logger.warning("'{}' already exists".format(config_file))
+ logger.warning("'{}' already exists. Abortin... | Make fusesoc init slightly safer to use | py |
diff --git a/datalab/utils/_http.py b/datalab/utils/_http.py
index <HASH>..<HASH> 100644
--- a/datalab/utils/_http.py
+++ b/datalab/utils/_http.py
@@ -44,12 +44,12 @@ class RequestException(Exception):
self.message = 'HTTP request failed'
# Try extract a message from the body; swallow possible resulting Value... | Fix python3 unicode incompatibilities. (#<I>) | py |
diff --git a/LiSE/LiSE/xcollections.py b/LiSE/LiSE/xcollections.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/xcollections.py
+++ b/LiSE/LiSE/xcollections.py
@@ -229,7 +229,7 @@ class FunctionStore(Signal):
self._ast_idx[name] = len(self._ast.body)
self._ast.body.append(expr)
locl = ... | Compile stored functions as if they were in their file Makes it possible to get their source right away. Not sure why... | py |
diff --git a/hwt/serializer/systemC/utils.py b/hwt/serializer/systemC/utils.py
index <HASH>..<HASH> 100644
--- a/hwt/serializer/systemC/utils.py
+++ b/hwt/serializer/systemC/utils.py
@@ -4,6 +4,7 @@ from hwt.hdl.statement import HdlStatement
from hwt.pyUtils.arrayQuery import arr_any
from ipCorePackager.constants imp... | systemCTypeOfSig: support for Param | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -10,7 +10,7 @@ import os
import warnings
-VERSION_BASE = "0.25.3"
+VERSION_BASE = "0.25.4"
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/urlutils.py b/urlutils.py
index <HASH>..<HASH> 100644
--- a/urlutils.py
+++ b/urlutils.py
@@ -112,7 +112,8 @@ def redirect_to_url(req, url, redirection_type=None):
redirection_type = apache.HTTP_MOVED_TEMPORARILY
req.err_headers_out["Location"] = url
if redirection_type != apache.HTTP_MO... | Copied Cache-Control from FaceBook :-) | py |
diff --git a/mot/model_building/evaluation_models.py b/mot/model_building/evaluation_models.py
index <HASH>..<HASH> 100644
--- a/mot/model_building/evaluation_models.py
+++ b/mot/model_building/evaluation_models.py
@@ -168,7 +168,7 @@ class OffsetGaussianEvaluationModel(EvaluationModel):
... | Adds factor 2 to the offset gaussian noise model | py |
diff --git a/tests/test_timestamps.py b/tests/test_timestamps.py
index <HASH>..<HASH> 100644
--- a/tests/test_timestamps.py
+++ b/tests/test_timestamps.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
from datetime import datetime
import unittest | unicode literals to support timezone tests under py2 | py |
diff --git a/tensorflow_probability/python/distributions/distribution_properties_test.py b/tensorflow_probability/python/distributions/distribution_properties_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/distribution_properties_test.py
+++ b/tensorflow_probability/python/distrib... | Suppress testVmapNegativeBinomial's log_prob portion in Guitar, due to b/<I>. PiperOrigin-RevId: <I> | py |
diff --git a/tests/test_style.py b/tests/test_style.py
index <HASH>..<HASH> 100644
--- a/tests/test_style.py
+++ b/tests/test_style.py
@@ -1,9 +1,12 @@
+import logging
import pkg_resources
import unittest
class CodeStyleTestCase(unittest.TestCase):
def test_code_style(self):
+ logger = logging.getLog... | Decrease noise from code-style test | py |
diff --git a/ayrton/__init__.py b/ayrton/__init__.py
index <HASH>..<HASH> 100644
--- a/ayrton/__init__.py
+++ b/ayrton/__init__.py
@@ -343,7 +343,7 @@ class Ayrton (object):
def run_tree (self, tree, file_name, argv=None, params=None):
- logger.debug2 ('AST: %s', ast.dump (tree))
+ logger.debug2 ... | [+] more verbose, useful ast dumping. | py |
diff --git a/python/pyspark/sql/session.py b/python/pyspark/sql/session.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/sql/session.py
+++ b/python/pyspark/sql/session.py
@@ -43,7 +43,7 @@ def _monkey_patch_RDD(sparkSession):
This is a shorthand for ``spark.createDataFrame(rdd, schema, sampleRatio)``
... | [MINOR][PYTHON] Fix typo in a docsting of RDD.toDF ### What changes were proposed in this pull request? Fixes typo in docsting of `toDF` ### Why are the changes needed? The third argument of `toDF` is actually `sampleRatio`. related discussion: <URL> | py |
diff --git a/remi/server.py b/remi/server.py
index <HASH>..<HASH> 100644
--- a/remi/server.py
+++ b/remi/server.py
@@ -707,7 +707,15 @@ function uploadFile(widgetID, eventSuccess, eventFail, eventData, file){
self.client = clients[k]
if update_thread is None:
- update_thread = _UpdateThre... | server: unsure clients are always updated REMI works with update_interval=None, but that could cause websocket timeouts if they are not pinged reguarly enough. Ensure they are at least pinged at 2x the websocket timeout threshold | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -379,23 +379,13 @@ class Master(SMaster):
:param dict: The salt options
'''
- if HAS_ZMQ:
- # Warn if ZMQ < 3.2
- try:
- zmq_version_info ... | Use ZMQ utility for version check | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.