diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/test_pylast.py b/test_pylast.py
index <HASH>..<HASH> 100755
--- a/test_pylast.py
+++ b/test_pylast.py
@@ -868,13 +868,13 @@ class TestPyLast(unittest.TestCase):
# Arrange
# Act
events = self.network.get_geo_events(
- lat=51.52742783719291, long=-0.0860444083809, distan... | Test failed because a London event was in the 'city' of Camden. Let's try Manchester instead. | py |
diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py
index <HASH>..<HASH> 100644
--- a/superset/dashboards/api.py
+++ b/superset/dashboards/api.py
@@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the Licens... | feat: show user email in dashboard API (#<I>) * Feat: show user email in dashboard API * Fix test | py |
diff --git a/LiSE/core.py b/LiSE/core.py
index <HASH>..<HASH> 100644
--- a/LiSE/core.py
+++ b/LiSE/core.py
@@ -518,12 +518,16 @@ class Engine(object):
"""Return True or False with equal probability."""
return self.choice((True, False))
+ def roll_die(self, d):
+ """Roll a die with ``d`` fa... | and a ``roll_die`` function for convenience | py |
diff --git a/tornadis/client.py b/tornadis/client.py
index <HASH>..<HASH> 100644
--- a/tornadis/client.py
+++ b/tornadis/client.py
@@ -245,3 +245,6 @@ class Client(object):
tmp_buf = format_args_in_redis_protocol(*args)
buf.append(tmp_buf)
self.__connection.write(buf)
+
+ def get_l... | add a method to get the last state change age | py |
diff --git a/airflow/contrib/executors/kubernetes_executor.py b/airflow/contrib/executors/kubernetes_executor.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/executors/kubernetes_executor.py
+++ b/airflow/contrib/executors/kubernetes_executor.py
@@ -660,7 +660,12 @@ class KubernetesExecutor(BaseExecutor, LoggingMi... | [AIRFLOW-<I>] Add Exception handling for _change_state method in K8 Executor (#<I>) | py |
diff --git a/salt/utils/templates.py b/salt/utils/templates.py
index <HASH>..<HASH> 100644
--- a/salt/utils/templates.py
+++ b/salt/utils/templates.py
@@ -78,7 +78,7 @@ def wrap_tmpl_func(render_str):
'Exception occurred while reading file '
'{0}: {1}'.format(tmplsrc, e... | Use `exc_info_on_loglevel` instead of `exc_info` | py |
diff --git a/tests/test_debug.py b/tests/test_debug.py
index <HASH>..<HASH> 100644
--- a/tests/test_debug.py
+++ b/tests/test_debug.py
@@ -19,7 +19,7 @@
from pytest import raises
-from jnrbase.debug import (DebugPrint, enter, exit, noisy_wrap)
+from jnrbase.debug import (DebugPrint, enter, exit, noisy_wrap, sys)
... | Test Idempotence of DebugPrint.enable | py |
diff --git a/treeherder/log_parser/parsers.py b/treeherder/log_parser/parsers.py
index <HASH>..<HASH> 100644
--- a/treeherder/log_parser/parsers.py
+++ b/treeherder/log_parser/parsers.py
@@ -57,6 +57,7 @@ class ErrorParser(ParserBase):
"command timed out:",
"wget: unable ",
"bash.exe: *** ",
... | Bug <I> - Add log parsing support for unsuccessful task run (#<I>) | py |
diff --git a/pandas/core/base.py b/pandas/core/base.py
index <HASH>..<HASH> 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -687,8 +687,9 @@ class IndexOpsMixin:
T = property(
transpose,
- doc="""\nReturn the transpose, which is by
- definition self.\n... | Linebreak is bleeding into the documentation page (#<I>) * Linebreak is bleeding into the documentation page <URL> | py |
diff --git a/beyond/orbits/tle.py b/beyond/orbits/tle.py
index <HASH>..<HASH> 100644
--- a/beyond/orbits/tle.py
+++ b/beyond/orbits/tle.py
@@ -131,7 +131,9 @@ class Tle:
year += 1900 if year >= 57 else 2000 # This condition works until 2057
self.cospar_id = "%d-%s" % (year, first[2][2:])
- e... | fix : tle - epoch parsing before <I> The year of the epoch is now parsed the same way as the cospar year is We can now work with TLE since the begining of the space ages. There will be a problem in the year <I>, but the TLE format should have changed since then | py |
diff --git a/ginga/misc/plugins/Mosaic.py b/ginga/misc/plugins/Mosaic.py
index <HASH>..<HASH> 100644
--- a/ginga/misc/plugins/Mosaic.py
+++ b/ginga/misc/plugins/Mosaic.py
@@ -310,6 +310,11 @@ class Mosaic(GingaPlugin.LocalPlugin):
time_intr1 = time.time()
+ # Add description for ChangeHistory
+ ... | Mosaic now has useful description for ChangeHistory global plugin | py |
diff --git a/neomodel/properties.py b/neomodel/properties.py
index <HASH>..<HASH> 100644
--- a/neomodel/properties.py
+++ b/neomodel/properties.py
@@ -215,7 +215,7 @@ class DateTimeProperty(Property):
class JSONProperty(Property):
def __init__(self, *args, **kwargs):
- super(JSONProperty, self).__init__(... | fix bug in JSON properties bug would lead to undesired unique_index constraints on JSON properties | py |
diff --git a/scandir.py b/scandir.py
index <HASH>..<HASH> 100644
--- a/scandir.py
+++ b/scandir.py
@@ -20,7 +20,7 @@ import collections
import ctypes
import sys
-__version__ = '0.7'
+__version__ = '0.8'
__all__ = ['scandir', 'walk']
# Windows FILE_ATTRIBUTE constants for interpreting the | Bump up version number for latest PEP changes. | py |
diff --git a/tests/testapp/test_dynamicfield.py b/tests/testapp/test_dynamicfield.py
index <HASH>..<HASH> 100644
--- a/tests/testapp/test_dynamicfield.py
+++ b/tests/testapp/test_dynamicfield.py
@@ -3,6 +3,7 @@ from datetime import date, datetime, time
from unittest import SkipTest, mock
import django
+import maria... | Fix mariadb-dyncol import in tests (#<I>) It's always available in the test environment so no need to try/except around its import | py |
diff --git a/salt/cli/caller.py b/salt/cli/caller.py
index <HASH>..<HASH> 100644
--- a/salt/cli/caller.py
+++ b/salt/cli/caller.py
@@ -51,7 +51,7 @@ class Caller(object):
sys.stderr.write(msg.format(fun, str(exc)))
sys.exit(1)
except CommandNotFoundError as exc:
- msg = 'Co... | Updating the CommandNotFound error when ran via salt-call | py |
diff --git a/pykeepass/pykeepass.py b/pykeepass/pykeepass.py
index <HASH>..<HASH> 100644
--- a/pykeepass/pykeepass.py
+++ b/pykeepass/pykeepass.py
@@ -12,7 +12,6 @@ import os
import re
-logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__) | Remove main library import logging configuration/setup Apps using this library should configure logging however they want, and not have pykeepass try to do it when they import pykeepass Fixes issue #3 | py |
diff --git a/pymc3/plots.py b/pymc3/plots.py
index <HASH>..<HASH> 100644
--- a/pymc3/plots.py
+++ b/pymc3/plots.py
@@ -91,7 +91,7 @@ def traceplot(trace, varnames=None, transform=lambda x: x, figsize=None,
d = make_2d(d)
if d.dtype.kind == 'i':
hist_objs = histplot_op(ax[i, 0]... | now gets facecolor for histograms | py |
diff --git a/tcod/event.py b/tcod/event.py
index <HASH>..<HASH> 100644
--- a/tcod/event.py
+++ b/tcod/event.py
@@ -694,6 +694,8 @@ def get() -> Iterator[Any]:
Events are processed as the iterator is consumed. Breaking out of, or
discarding the iterator will leave the remaining events on the event queue.
+ ... | Add more details to event.get documentation. | py |
diff --git a/autorelease/utils.py b/autorelease/utils.py
index <HASH>..<HASH> 100644
--- a/autorelease/utils.py
+++ b/autorelease/utils.py
@@ -1,7 +1,7 @@
import yaml
import re
import os
-import importlib.util
+import sys
def conda_recipe_version(recipe_file):
with open(recipe_file) as f:
@@ -13,8 +13,22 @@ ... | import setup in py<I>, too | py |
diff --git a/juicer/common/Constants.py b/juicer/common/Constants.py
index <HASH>..<HASH> 100644
--- a/juicer/common/Constants.py
+++ b/juicer/common/Constants.py
@@ -74,4 +74,4 @@ EXAMPLE_SYSTEM_CONFIG = '/usr/share/juicer/juicer.conf'
######################################################################
# The ve... | lemme upgradya to pulp <I> | py |
diff --git a/skosify/check.py b/skosify/check.py
index <HASH>..<HASH> 100644
--- a/skosify/check.py
+++ b/skosify/check.py
@@ -17,8 +17,8 @@ def _hierarchy_cycles_visit(rdf, node, parent, break_cycles, status):
status[node] = 2 # set this node as completed
elif status.get(node) == 1: # has been entered ... | Set log level to warning for cycle breaking For consistency with the other checks | py |
diff --git a/salt/modules/keystone.py b/salt/modules/keystone.py
index <HASH>..<HASH> 100644
--- a/salt/modules/keystone.py
+++ b/salt/modules/keystone.py
@@ -713,7 +713,7 @@ def user_get(user_id=None, name=None, profile=None, **connection_args):
user_id
)
)
- return {'Coul... | It's a dict - git problems... | py |
diff --git a/salt/modules/pip.py b/salt/modules/pip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pip.py
+++ b/salt/modules/pip.py
@@ -828,7 +828,7 @@ def install(pkgs=None, # pylint: disable=R0912,R0913,R0914
if env_vars:
if isinstance(env_vars, dict):
for k, v in env_vars.iteritems():
... | * Ensure src is python3 compatible | py |
diff --git a/websocket/_app.py b/websocket/_app.py
index <HASH>..<HASH> 100644
--- a/websocket/_app.py
+++ b/websocket/_app.py
@@ -329,10 +329,7 @@ class WebSocketApp(object):
def _callback(self, callback, *args):
if callback:
try:
- if inspect.ismethod(callback):
- ... | Update _app.py if callback function belongs to an class ,line <I> will cause an exception, the "self" will missing for example: myobj = MyClass() self.on_open = myobj.test() this will nerver work | py |
diff --git a/runner/precise_runner/__init__.py b/runner/precise_runner/__init__.py
index <HASH>..<HASH> 100644
--- a/runner/precise_runner/__init__.py
+++ b/runner/precise_runner/__init__.py
@@ -1,3 +1,3 @@
from .runner import PreciseRunner, PreciseEngine, ReadWriteStream
-__version__ = '0.2.0'
+__version__ = '0.2.1... | Increment runner version to <I> | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -1001,6 +1001,12 @@ class OutputOptionsMixIn(object):
action='store_true',
help='Force colored output'
)
+ group.add_option(
+ ... | Move state_output CLI option to Output mixin Now it will be available for salt-call and salt-ssh commands | py |
diff --git a/tohu/v6/base.py b/tohu/v6/base.py
index <HASH>..<HASH> 100644
--- a/tohu/v6/base.py
+++ b/tohu/v6/base.py
@@ -88,6 +88,10 @@ class TohuBaseGenerator(metaclass=ABCMeta):
return self
@abstractmethod
+ def __next__(self):
+ raise NotImplementedError("Class {} does not implement metho... | Add __next__ as abstrace method on base class | py |
diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py
index <HASH>..<HASH> 100755
--- a/hack/boilerplate/boilerplate.py
+++ b/hack/boilerplate/boilerplate.py
@@ -176,7 +176,7 @@ def get_regexs():
# Search for "YEAR" which exists in the boilerplate, but shouldn't in the real thing
rege... | Recognize <I> as a year Happy new year! | py |
diff --git a/MulticoreTSNE/tests/test_base.py b/MulticoreTSNE/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/MulticoreTSNE/tests/test_base.py
+++ b/MulticoreTSNE/tests/test_base.py
@@ -10,7 +10,7 @@ from MulticoreTSNE import MulticoreTSNE
make_blobs = partial(make_blobs, random_state=0)
-MulticoreTSNE = part... | temp commit for test Seeing what happens to the failing test if change random state initializer. | py |
diff --git a/trailblazer/mip/config.py b/trailblazer/mip/config.py
index <HASH>..<HASH> 100644
--- a/trailblazer/mip/config.py
+++ b/trailblazer/mip/config.py
@@ -60,8 +60,9 @@ class ConfigHandler:
for level, sample_errors in messages.items():
sample_id = data['samples'][le... | fix printing error when creating MIP config | py |
diff --git a/zhmcclient/_session.py b/zhmcclient/_session.py
index <HASH>..<HASH> 100644
--- a/zhmcclient/_session.py
+++ b/zhmcclient/_session.py
@@ -378,7 +378,6 @@ class Session(object):
if logon_required:
self.logon()
url = self.base_url + uri
- data = json.dumps(body)
... | Moved the setting of data into the branch where it is used. | py |
diff --git a/openquake/hazardlib/sourceconverter.py b/openquake/hazardlib/sourceconverter.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/sourceconverter.py
+++ b/openquake/hazardlib/sourceconverter.py
@@ -205,6 +205,8 @@ class SourceGroup(collections.abc.Sequence):
src.tectonic_region_type, self.... | Filtering out for min_mag earlier | py |
diff --git a/intranet/apps/sessionmgmt/views.py b/intranet/apps/sessionmgmt/views.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/sessionmgmt/views.py
+++ b/intranet/apps/sessionmgmt/views.py
@@ -57,12 +57,13 @@ def trust_session_view(request):
description += request.user_agent.os.family
- Tr... | fix(sessionmgmt): don't attempt to create duplicate TrustedSessions | py |
diff --git a/html5lib/tests/support.py b/html5lib/tests/support.py
index <HASH>..<HASH> 100644
--- a/html5lib/tests/support.py
+++ b/html5lib/tests/support.py
@@ -2,10 +2,19 @@ import os
import sys
import glob
-import html5lib
+base_path = os.path.split(__file__)[0]
+try:
+ import html5lib
+except ImportError:
+... | Make sure html5lib is on the path for tests | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -34,9 +34,8 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project):
f.write("Name-Comment: with stupid passphrase" + os.linesep)
f.write("Name-Email: joe@foo.bar" +... | setup a gpg key with no passphrase | py |
diff --git a/hwt/hdlObjects/types/typeCast.py b/hwt/hdlObjects/types/typeCast.py
index <HASH>..<HASH> 100644
--- a/hwt/hdlObjects/types/typeCast.py
+++ b/hwt/hdlObjects/types/typeCast.py
@@ -17,6 +17,11 @@ def toHVal(op):
elif isinstance(op, InterfaceBase):
return op._sig
else:
+ if isinstance... | toHVal: has to specify width when larger than <I>b | py |
diff --git a/phydmslib/parsearguments.py b/phydmslib/parsearguments.py
index <HASH>..<HASH> 100644
--- a/phydmslib/parsearguments.py
+++ b/phydmslib/parsearguments.py
@@ -135,7 +135,9 @@ def PhyDMSParser():
parser.add_argument('--fitF3X4', dest='fitF3X4', action='store_true', help='Fit F3X4 frequencies for YNGKP; ... | Fix --recursion to S for now | py |
diff --git a/LiSE/rule.py b/LiSE/rule.py
index <HASH>..<HASH> 100644
--- a/LiSE/rule.py
+++ b/LiSE/rule.py
@@ -1,4 +1,3 @@
-# coding: utf-8
# This file is part of LiSE, a framework for life simulation games.
# Copyright (c) 2013-2014 Zachary Spector, zacharyspector@gmail.com
""" The fundamental unit of game logic, ... | all py3 files are utf-8 | py |
diff --git a/demos/dlgr/demos/iterated_drawing/models.py b/demos/dlgr/demos/iterated_drawing/models.py
index <HASH>..<HASH> 100644
--- a/demos/dlgr/demos/iterated_drawing/models.py
+++ b/demos/dlgr/demos/iterated_drawing/models.py
@@ -23,8 +23,8 @@ class DrawingSource(Source):
image_path = os.path.join("stat... | Fix encoding of source image to work on Python3 | py |
diff --git a/test/test_elapsedtimer.py b/test/test_elapsedtimer.py
index <HASH>..<HASH> 100644
--- a/test/test_elapsedtimer.py
+++ b/test/test_elapsedtimer.py
@@ -100,14 +100,14 @@ class TestElapsedTimer:
for i in range(1000): pass
assert within(t.elapsed, time.time() - startTime, 0.01)
-class T... | test: disable remainder of TestTimeout for now since it fails on Windows. | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -221,6 +221,17 @@ def which(cmd):
return salt.utils.which(cmd)
+def which_bin(cmds):
+ '''
+ Returns the first command found in a list of commands
+
+ C... | Add which_bin to cmd module | py |
diff --git a/pypot/dynamixel/conversion.py b/pypot/dynamixel/conversion.py
index <HASH>..<HASH> 100644
--- a/pypot/dynamixel/conversion.py
+++ b/pypot/dynamixel/conversion.py
@@ -173,11 +173,15 @@ dynamixelModels = {
350: 'XL-320', # 94 + (1<<8)
400: 'SR-RH4D',
401: 'SR-RH4D', # Virtual motor
+ 1689... | Process USB2AX model and unknown models | py |
diff --git a/galpy/actionAngle_src/actionAngleIsochroneApprox.py b/galpy/actionAngle_src/actionAngleIsochroneApprox.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle_src/actionAngleIsochroneApprox.py
+++ b/galpy/actionAngle_src/actionAngleIsochroneApprox.py
@@ -110,7 +110,7 @@ class actionAngleIsochroneApprox():
... | fix parse_args for actions and plot | py |
diff --git a/datahandling/datahandling/datahandling.py b/datahandling/datahandling/datahandling.py
index <HASH>..<HASH> 100644
--- a/datahandling/datahandling/datahandling.py
+++ b/datahandling/datahandling/datahandling.py
@@ -445,8 +445,14 @@ class DataObject():
"""
MinTotalSumSquaredError = 1e10
... | added back in try statement from FittingWithDeviationFromData branch | py |
diff --git a/pyvalid/validators/__base.py b/pyvalid/validators/__base.py
index <HASH>..<HASH> 100644
--- a/pyvalid/validators/__base.py
+++ b/pyvalid/validators/__base.py
@@ -27,7 +27,7 @@ class AbstractValidator(with_metaclass(ABCMeta, Validator)):
raise NotImplementedError
@abstractmethod
- def __c... | Fixing signature of base __call__ method. | py |
diff --git a/angr/exploration_techniques/tracer.py b/angr/exploration_techniques/tracer.py
index <HASH>..<HASH> 100644
--- a/angr/exploration_techniques/tracer.py
+++ b/angr/exploration_techniques/tracer.py
@@ -87,6 +87,7 @@ class Tracer(ExplorationTechnique):
raise AngrTracerError("Could not step to t... | Drop unsat states during entry point windup | py |
diff --git a/pmagpy_tests/test_make_plots.py b/pmagpy_tests/test_make_plots.py
index <HASH>..<HASH> 100644
--- a/pmagpy_tests/test_make_plots.py
+++ b/pmagpy_tests/test_make_plots.py
@@ -40,10 +40,11 @@ class TestMakeMagicPlots(unittest.TestCase):
self.assertEqual(5, len(glob.glob("*.png")))
def tes... | adjust when make_magic_plots tests are run, #<I> | py |
diff --git a/riak/tests/test_all.py b/riak/tests/test_all.py
index <HASH>..<HASH> 100644
--- a/riak/tests/test_all.py
+++ b/riak/tests/test_all.py
@@ -540,11 +540,10 @@ class BaseTestCase(object):
# Immediate test to see if 2i is even supported w/ the backend
try:
self.client.index('foo',... | Indexes are supported if the server error message isn't that they are not. | py |
diff --git a/src/rabird/core/__init__.py b/src/rabird/core/__init__.py
index <HASH>..<HASH> 100644
--- a/src/rabird/core/__init__.py
+++ b/src/rabird/core/__init__.py
@@ -1,8 +1,4 @@
-
-
-__import__('pkg_resources').declare_namespace(__name__)
-
import sys
version_info = (0, 1, 7) | Removed wrong declare_namespace() declaration line | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -791,17 +791,11 @@ class LocalClient(object):
if event is None:
event = self.event
while True:
- try:
- raw =... | The exception is properly caught inthe event system now | py |
diff --git a/map/hashtable.py b/map/hashtable.py
index <HASH>..<HASH> 100644
--- a/map/hashtable.py
+++ b/map/hashtable.py
@@ -51,6 +51,23 @@ class HashTable(object):
# table is full and wrapped around
return None
+ def del_(self, key):
+ initial_hash = hash_ = self.hash(ke... | HashTable: Implemented del_ method + unit test | py |
diff --git a/isso/views/comments.py b/isso/views/comments.py
index <HASH>..<HASH> 100644
--- a/isso/views/comments.py
+++ b/isso/views/comments.py
@@ -551,7 +551,7 @@ class API(object):
return resp
"""
- @api {get} /id/:id/:email/key unsubscribe
+ @api {get} /id/:id/unsubscribe/:email/key unsubscr... | views: comments: Correct apiDoc params The "key" does _contain_ a base<I>-encoded list of '["unsubscribe","<email>"]' but also a signature. As such, remove the comment to avoid confusion (above, it is mentioned where the key is obtained from). Also add the "unsubscribe" part to the request URL that was missing. | py |
diff --git a/vespa/kepler.py b/vespa/kepler.py
index <HASH>..<HASH> 100644
--- a/vespa/kepler.py
+++ b/vespa/kepler.py
@@ -534,7 +534,8 @@ def setup_fpp(koi, bands=['g','r','i','z','J','H','K'],
trsig_file = os.path.join(folder,'trsig.pkl')
if not os.path.exists(trsig_file) or\
trsig_overwrite:
-... | refit_mcmc true when needs to be | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,6 +29,13 @@ os.environ['PATH'] = ':'.join((
os.environ['PATH'],
))
+# manipulate sys.path to correctly point to the virtualenv that is
+# used on readthedocs (this is irrelevant in the development
+... | trying, once again, to fix the command line interface documentation. | py |
diff --git a/titlecase/tests.py b/titlecase/tests.py
index <HASH>..<HASH> 100644
--- a/titlecase/tests.py
+++ b/titlecase/tests.py
@@ -151,6 +151,10 @@ TEST_DATA = (
(
"FOO BAR 5TH ST",
"Foo Bar 5th St",
+ ),
+ (
+ "foo bar 5th st",
+ "Foo Bar 5th St",
)
) | Should test both source opts with digits in string | py |
diff --git a/spiketoolkit/curation/threshold_d_primes.py b/spiketoolkit/curation/threshold_d_primes.py
index <HASH>..<HASH> 100644
--- a/spiketoolkit/curation/threshold_d_primes.py
+++ b/spiketoolkit/curation/threshold_d_primes.py
@@ -175,8 +175,7 @@ class ThresholdDPrimes(ThresholdCurator):
)
d... | Update threshold_d_primes.py | py |
diff --git a/isochrones/starmodel.py b/isochrones/starmodel.py
index <HASH>..<HASH> 100644
--- a/isochrones/starmodel.py
+++ b/isochrones/starmodel.py
@@ -694,7 +694,7 @@ class StarModel(object):
else:
pd.DataFrame().to_hdf(filename, path+'/samples')
- self.obs.save_hdf(filename, path+'/o... | fixing bug in save_hdf | py |
diff --git a/dockermap/client/cli.py b/dockermap/client/cli.py
index <HASH>..<HASH> 100644
--- a/dockermap/client/cli.py
+++ b/dockermap/client/cli.py
@@ -26,6 +26,9 @@ KWARG_MAP = {
'ipv6_address': 'ip6',
'links': 'link',
'aliases': 'alias',
+ 'mem_limit': 'memory',
+ 'mem_reservation': 'memory-re... | Added CLI argument translations. | py |
diff --git a/steam/vdf.py b/steam/vdf.py
index <HASH>..<HASH> 100644
--- a/steam/vdf.py
+++ b/steam/vdf.py
@@ -95,7 +95,7 @@ def _parse(stream, ptr = 0):
def _run_parse_encoded(string):
try:
encoded = bytearray(string, "utf-16")
- except TypeError:
+ except:
encoded = bytearray(string) # A... | Catch all exceptions in initial vdf bytearray conversion It seems that python2 will throw an encode error when something is already decoded, but 3 will not throw at all in some case or will just throw a type error. Since the cause and result are the same it may as well just catch globally | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,8 @@ setup(
include_package_data=True,
install_requires=['Twisted>=11.0.0', 'Celery>=3.0.0', 'setuptools>=0.6'],
url='https://github.com/Synerty/txcelery-py3',
- download_url='https://github.com/Syn... | Fixed version bug in setup.py | py |
diff --git a/test_suite.py b/test_suite.py
index <HASH>..<HASH> 100644
--- a/test_suite.py
+++ b/test_suite.py
@@ -2,9 +2,12 @@ import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
-import django
-if django.get_version().startswith('1.7'):
+import django # noqa
+
+if django.__version__ >= (1, 7):
... | Exclude incompatible test matrices Update test script to account for all versions greater than <I> | py |
diff --git a/niworkflows/interfaces/utils.py b/niworkflows/interfaces/utils.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/utils.py
+++ b/niworkflows/interfaces/utils.py
@@ -58,7 +58,7 @@ class CopyXForm(SimpleInterface):
def _outputs(self):
base = super(CopyXForm, self)._outputs()
i... | fix(interface): fields were being replaced in outputs call A copy of the fields list was necessary for the default behaviour to work (i.e., there's only one input image called ``in_file`` and the corresponding output is ``out_file``). | py |
diff --git a/stacker/actions/destroy.py b/stacker/actions/destroy.py
index <HASH>..<HASH> 100644
--- a/stacker/actions/destroy.py
+++ b/stacker/actions/destroy.py
@@ -55,6 +55,7 @@ class Action(BaseAction):
return PENDING
else:
self.provider.destroy_stack(provider_stack)
+ retu... | We always should return PENDING from the action | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,9 +43,10 @@ requirements = [
]
if not os.getenv("READTHEDOCS"):
- requirements.pop("xarray>=0.14.1")
- requirements.append("git+https://github.com/pydata/xarray@master#egg=xarray")
requirements.append("rtree... | Use remove and ensure that RtD uses xarray@master | py |
diff --git a/quarkc/shell.py b/quarkc/shell.py
index <HASH>..<HASH> 100644
--- a/quarkc/shell.py
+++ b/quarkc/shell.py
@@ -60,8 +60,11 @@ def check(role, cmd=None, cwd=None):
out = subprocess.check_output(check, cwd=cwd, stderr=subprocess.STDOUT)
validate(out)
CHECKED.add(cmd)
- except (su... | Show process output when prerequisite check runs and fails | py |
diff --git a/testing/logging/test_fixture.py b/testing/logging/test_fixture.py
index <HASH>..<HASH> 100644
--- a/testing/logging/test_fixture.py
+++ b/testing/logging/test_fixture.py
@@ -101,6 +101,7 @@ def test_clear(caplog):
@pytest.fixture
def logging_during_setup_and_teardown(caplog):
+ caplog.set_level('INF... | Fix test_caplog_captures_for_all_stages by setting log level | py |
diff --git a/mathtoolspy/interpolation/spline.py b/mathtoolspy/interpolation/spline.py
index <HASH>..<HASH> 100644
--- a/mathtoolspy/interpolation/spline.py
+++ b/mathtoolspy/interpolation/spline.py
@@ -179,11 +179,9 @@ class spline(base_interpolation):
try:
import numpy
- raise Impor... | fixing numpy ImportError with spline | py |
diff --git a/src/jukeboxcore/reftrack.py b/src/jukeboxcore/reftrack.py
index <HASH>..<HASH> 100644
--- a/src/jukeboxcore/reftrack.py
+++ b/src/jukeboxcore/reftrack.py
@@ -500,10 +500,9 @@ The Refobject provides the necessary info.")
self._uptodate = None
self._alien = True
self._status = None... | Fix reftrack init and reference restriction Because a treeitem is created early in the reftrack constructor, the reftrack must at least have all attributes set. Add restricted attribute to self before creating the treeitem. Restrict reference when status is Imported. | py |
diff --git a/main/cloudfoundry_client/client.py b/main/cloudfoundry_client/client.py
index <HASH>..<HASH> 100644
--- a/main/cloudfoundry_client/client.py
+++ b/main/cloudfoundry_client/client.py
@@ -5,7 +5,6 @@ import requests
from oauth2_client.credentials_manager import CredentialManager, ServiceInformation
from ... | Loading client without protobuf will not be blocking See #<I> | py |
diff --git a/c7n/resources/batch.py b/c7n/resources/batch.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/batch.py
+++ b/c7n/resources/batch.py
@@ -13,9 +13,11 @@
# limitations under the License.
from __future__ import absolute_import, division, print_function, unicode_literals
+from c7n.actions import BaseActio... | aws - batch compute env subnet/security-group filters (#<I>) | py |
diff --git a/pyecobee/__init__.py b/pyecobee/__init__.py
index <HASH>..<HASH> 100644
--- a/pyecobee/__init__.py
+++ b/pyecobee/__init__.py
@@ -217,7 +217,7 @@ class Ecobee(object):
)
else:
logger.error(f"Error fetching data from ecobee while attempting to "
- ... | More verbose logging of make_request | py |
diff --git a/moban/constants.py b/moban/constants.py
index <HASH>..<HASH> 100644
--- a/moban/constants.py
+++ b/moban/constants.py
@@ -77,8 +77,6 @@ LABEL_TEMPLATE_TYPES = "template_types"
LABEL_VERBOSE = "verbose"
LABEL_MOBAN_ACTION_IN_PRESENT_CONTINUOUS_TENSE = "Mobanizing"
LABEL_MOBAN_ACTION_IN_PAST_TENSE = "Moba... | :fire: remove duplicated code | py |
diff --git a/test/test_dispatch.py b/test/test_dispatch.py
index <HASH>..<HASH> 100644
--- a/test/test_dispatch.py
+++ b/test/test_dispatch.py
@@ -176,3 +176,33 @@ class TestDispatch(unittest.TestCase):
self.assertEqual(func(Bar()), 'Bar')
self.assertEqual(func(Foo()), 'Foo')
+ def test_value_mat... | Added unit tests for predicate and value matching | 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
@@ -299,10 +299,15 @@ class PVD1Model(Model):
e_str='v * VLo_zi + 0.01 * VLo_zl - vp',
)
+ sel... | Added Pext0 ConstService. | py |
diff --git a/bika/lims/content/analysisrequest.py b/bika/lims/content/analysisrequest.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysisrequest.py
+++ b/bika/lims/content/analysisrequest.py
@@ -52,6 +52,7 @@ from bika.lims.workflow.analysisrequest import guards
from bika.lims.workflow.analysisrequest impo... | fix getContactUIDForUser to use portal_membership Using context.REQUEST.AUTHENTICATED_USER fails in some circumstances. What those are I do not know, but it failed for me, and this fixed it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,6 @@ setup(
license="License :: OSI Approved :: MIT License",
packages=['ctypeslib',
'ctypeslib.codegen',
- 'ctypeslib.contrib',
],
package_data={'ctypeslib':... | remove contrib code from ctypeslib <I> | py |
diff --git a/lenstronomy/LensModel/numerical_profile_integrals.py b/lenstronomy/LensModel/numerical_profile_integrals.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/LensModel/numerical_profile_integrals.py
+++ b/lenstronomy/LensModel/numerical_profile_integrals.py
@@ -127,11 +127,13 @@ class ConvergenceIntegrals(obje... | Fix numerical integrations from kappa to deflection angle | py |
diff --git a/spyder/plugins/plots/widgets/figurebrowser.py b/spyder/plugins/plots/widgets/figurebrowser.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/plots/widgets/figurebrowser.py
+++ b/spyder/plugins/plots/widgets/figurebrowser.py
@@ -60,8 +60,8 @@ def get_unique_figname(dirname, root, ext):
Append a numbe... | Fix for consistent numbering when saving multiple plots. #<I> | py |
diff --git a/visidata/canvas.py b/visidata/canvas.py
index <HASH>..<HASH> 100644
--- a/visidata/canvas.py
+++ b/visidata/canvas.py
@@ -105,13 +105,13 @@ def iterline(x1, y1, x2, y2):
xdir = 1 if x1 <= x2 else -1
ydir = 1 if y1 <= y2 else -1
- r = max(xdiff, ydiff)
+ r = math.ceil(max(xdiff, ydiff))
... | [canvas] fix plotline to remove hanging pixels | py |
diff --git a/scripts/tpip.py b/scripts/tpip.py
index <HASH>..<HASH> 100644
--- a/scripts/tpip.py
+++ b/scripts/tpip.py
@@ -166,7 +166,7 @@ def main():
args = parser.parse_args()
tpip_pkgs = []
- for pkg_name, pkg_item in pkg_resources.working_set.by_key.items():
+ for pkg_name, pkg_item in sorted(pkg_... | order tpip entries by name | py |
diff --git a/gwpy/tests/test_io.py b/gwpy/tests/test_io.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_io.py
+++ b/gwpy/tests/test_io.py
@@ -390,7 +390,7 @@ class TestIoLigolw(object):
Here we only test the utilties, rather than the read/write functions,
which are tested extensively via other modules (e... | tests: improve two import tests glue.ligolw doesn't depend on LAL, but glue.ligolw.lsctables does, so need to test that import | py |
diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -1138,13 +1138,13 @@ def savemat(file_name, mdict, appendmat=True, format='7.3',
added_first_variable = False
for name in mdict:
if not added_first... | Fixed bugs where the name keyword argument was not updated to path in savemat and loadmat. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
description="A replacement for Django's simple_tag decorator.",
long_description=readme,
author='Sam Bull',
- author_email='sam@pocketuniverse.ca'
+ author_email='sam@pocketuniverse.c... | Fixed dumb typo in setup.py | py |
diff --git a/gkeepapi/__init__.py b/gkeepapi/__init__.py
index <HASH>..<HASH> 100644
--- a/gkeepapi/__init__.py
+++ b/gkeepapi/__init__.py
@@ -3,7 +3,7 @@
.. moduleauthor:: Kai <z@kwi.li>
"""
-__version__ = '0.11.8'
+__version__ = '0.11.9'
import logging
import re
@@ -766,7 +766,9 @@ class Keep(object):
... | Issue #<I>: Fix lower casing of labels | py |
diff --git a/gflags/flag.py b/gflags/flag.py
index <HASH>..<HASH> 100644
--- a/gflags/flag.py
+++ b/gflags/flag.py
@@ -273,7 +273,6 @@ class BooleanFlag(Flag):
def __init__(self, name, default, help, short_name=None, **args): # pylint: disable=redefined-builtin
p = argument_parser.BooleanParser()
Flag.__i... | Remove the code trying to set some default helptext in BooleanFlag and EnumFlag, they will never be executed because the super class guarantees it won't be empty. | py |
diff --git a/cartoframes/dataset.py b/cartoframes/dataset.py
index <HASH>..<HASH> 100644
--- a/cartoframes/dataset.py
+++ b/cartoframes/dataset.py
@@ -197,7 +197,7 @@ class Dataset(object):
if with_lnglat and col in Column.SUPPORTED_GEOM_COL_NAMES:
continue
val = r... | Allow list val in _rows method | py |
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index <HASH>..<HASH> 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -106,7 +106,7 @@ class beacon(object):
def _index_tango(self,v)... | beacon: don't index class if it's part of a device | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ setup(
"hupper~=1.9",
"pint~=0.9",
"pluggy~=0.13.0",
- "uvicorn~=0.10.4",
+ "uvicorn~=0.11",
"aiofiles~=0.4.0",
],
entry_points=""" | Bump to uvicorn <I> | py |
diff --git a/cherrypy/_cpwsgiserver.py b/cherrypy/_cpwsgiserver.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpwsgiserver.py
+++ b/cherrypy/_cpwsgiserver.py
@@ -216,8 +216,12 @@ class HTTPRequest(object):
def parse_headers(self, headers):
environ = {}
- environ["CONTENT_TYPE"] = headers.get... | Buglet fix in _cpwsgiserver.py. Content-Type and Content-Length headers and values are only inserted into the wsgi.environ if they are present in the actual request. That way, if those headers were not passed by the UA, then they will not be present in cherrypy.request.headers. | py |
diff --git a/lyricsgenius/api.py b/lyricsgenius/api.py
index <HASH>..<HASH> 100644
--- a/lyricsgenius/api.py
+++ b/lyricsgenius/api.py
@@ -272,7 +272,7 @@ class Genius(API):
response = self.search_genius_web(search_term)
# Use old song search method if search_genius_web fails
- if not respons... | Remove 'or True' from search_song | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,8 @@ else:
# assume that SCIP is installed on the system
libdir = os.path.abspath(os.path.join(scipoptdir, 'lib'))
libname = 'scip'
+ if platform.system() in ['Windows']:
+ libname = 'libscip... | try to find scip library on windows | py |
diff --git a/lib/lago/virt.py b/lib/lago/virt.py
index <HASH>..<HASH> 100644
--- a/lib/lago/virt.py
+++ b/lib/lago/virt.py
@@ -932,7 +932,7 @@ class VM(object):
dom.fsFreeze()
try:
disk_path = self._spec['disks'][0]['path']
- disk_root_part = self._spec['disks'][0].get(
+ ... | virt:Fixed fetching of the root-partition key Now it gets it from the metadata, as that's where it's located when pulling the image from the template repository Fixes #<I> Change-Id: I2fdd<I>e4fe6dc3db<I>a<I>a<I>dcd6aa9e<I> | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -250,12 +250,15 @@ def gui_updater(client, leaf):
# we ensure that the clients have an updated version
for ws in client.websockets:
try:
- print('insert_widget: ' + leaf.attri... | Fixed widget update on new widget appended | py |
diff --git a/xtuml/model.py b/xtuml/model.py
index <HASH>..<HASH> 100644
--- a/xtuml/model.py
+++ b/xtuml/model.py
@@ -630,6 +630,9 @@ def relate(from_inst, to_inst, rel_id, phrase=''):
**NOTE**: Reflexive associations require a phrase, and that the order
amongst the instances is as intended.
'''
+ i... | model: allow relate/unrelate to be None since return value reflects the outcome of the operation | py |
diff --git a/luigi/lock.py b/luigi/lock.py
index <HASH>..<HASH> 100644
--- a/luigi/lock.py
+++ b/luigi/lock.py
@@ -42,7 +42,7 @@ def getpcmd(pid):
_, val = lines
return val
else:
- cmd = 'ps -o pid,args'
+ cmd = 'ps -xo pid,args'
with os.popen(cmd, 'r') as p... | Uses more thorough pid check for locking I was recently having issues where my jobs started failing once I scheduled them in cron jobs on an osx machine. After investigating, I eventually found that the PID wasn't being found using the standard "ps" command. Adding "-x" brings in more PIDs and fixed my issue. | py |
diff --git a/salt/client/ssh/ssh_py_shim.py b/salt/client/ssh/ssh_py_shim.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/ssh_py_shim.py
+++ b/salt/client/ssh/ssh_py_shim.py
@@ -133,6 +133,10 @@ def main(argv): # pylint: disable=W0613
unpack_thin(thin_path)
# Salt thin now is available to use
... | Checking for scp existance. Using command -v should be POSIX | py |
diff --git a/octodns/provider/route53.py b/octodns/provider/route53.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/route53.py
+++ b/octodns/provider/route53.py
@@ -90,8 +90,7 @@ class _Route53Record(object):
elif self.geo:
geo = self.geo
rrset['SetIdentifier'] = geo.code
- ... | HealthCheckId is required for geo records now | py |
diff --git a/onecodex/cli.py b/onecodex/cli.py
index <HASH>..<HASH> 100644
--- a/onecodex/cli.py
+++ b/onecodex/cli.py
@@ -93,11 +93,16 @@ def documents():
@click.command('list', help='List files available to you')
+@click.option("--json", is_flag=True, default=False,
+ help='Output JSON instead of pr... | Allow list of docs to be written to terminal as JSON | py |
diff --git a/misc/generate_vcs_info.py b/misc/generate_vcs_info.py
index <HASH>..<HASH> 100644
--- a/misc/generate_vcs_info.py
+++ b/misc/generate_vcs_info.py
@@ -45,7 +45,7 @@ except ImportError:
#
# version info class
-class git_info:
+class git_info(object):
def __init__(self):
id = None
date = None | git_info class should inherit from object | py |
diff --git a/fuel/datasets/toy.py b/fuel/datasets/toy.py
index <HASH>..<HASH> 100644
--- a/fuel/datasets/toy.py
+++ b/fuel/datasets/toy.py
@@ -61,6 +61,7 @@ class Spiral(IndexableDataset):
features[:, 0] = radius * numpy.sin(2*numpy.pi*pos + phase_offset)
features[:, 1] = radius * numpy.cos(2*numpy.... | Actually add correct noise to Spiral dataset | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.