diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scripts/ms-gui.py b/scripts/ms-gui.py
index <HASH>..<HASH> 100644
--- a/scripts/ms-gui.py
+++ b/scripts/ms-gui.py
@@ -26,7 +26,14 @@ ms_layout = QtGui.QGridLayout()
ms_window.setLayout(ms_layout)
fun_wg = gui.ControlWidget()
-grid_wg = gui.GameWidget(ms_game)
+grid_wg = gui.GameWidget(ms_game, fun_wg)
... | update gui on timer, move watch, reset button, etc | py |
diff --git a/yakonfig/factory.py b/yakonfig/factory.py
index <HASH>..<HASH> 100644
--- a/yakonfig/factory.py
+++ b/yakonfig/factory.py
@@ -96,7 +96,7 @@ def create_configurable(obj):
'''
c = discover_config(obj)
class AutoConfigured (Configurable):
- config_name = c['name']
+ config_name = ... | Use an object's `config_name` if it's present. | py |
diff --git a/mutant/__init__.py b/mutant/__init__.py
index <HASH>..<HASH> 100644
--- a/mutant/__init__.py
+++ b/mutant/__init__.py
@@ -4,7 +4,7 @@ import logging
from django.utils.version import get_version
-VERSION = (0, 3, 0, 'alpha', 4)
+VERSION = (0, 3, 0, 'alpha', 5)
__version__ = get_version(VERSION) | Bumped version number to <I>a5. | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -9,8 +9,8 @@ def setup(c, version=None):
"""
Setup dev environment, requires conda
"""
- version = version or '3.8'
- suffix = '' if version == '3.8' else version.replace('.', '')
+ version = version or... | updates to python <I> in setup | py |
diff --git a/isort/output.py b/isort/output.py
index <HASH>..<HASH> 100644
--- a/isort/output.py
+++ b/isort/output.py
@@ -504,7 +504,13 @@ def _with_from_imports(
config=config,
multi_line_output=wrap.Modes.VERTICAL_GRID, # type: ignore
... | Fix issue #<I>: Fixed single location parsed line separator isn't used | py |
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/models.py
+++ b/openquake/engine/db/models.py
@@ -1077,8 +1077,6 @@ class RiskCalculation(djm.Model):
(u'classical', u'Classical PSHA'),
(u'classical_bcr', u'Classical BCR')... | db/models: Removed an obsolete comment. | py |
diff --git a/tests/test_objecttype_smiv2_pysnmp.py b/tests/test_objecttype_smiv2_pysnmp.py
index <HASH>..<HASH> 100644
--- a/tests/test_objecttype_smiv2_pysnmp.py
+++ b/tests/test_objecttype_smiv2_pysnmp.py
@@ -640,9 +640,15 @@ END
exec(codeobj, self.ctx, self.ctx)
def testObjectTypeTableRowAugmention(s... | Support `MibRow.augmentingRows` as of older pysnmp | py |
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -342,8 +342,19 @@ if os.environ.get("IPYTHON_KERNEL", "").lower() ... | sitecustomize.py: Patch Pandas to tell it our IPython consoles are proper qtconsoles Fixes issue <I> - This makes pandas activate/deactivate certain special features for qtconsoles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -87,6 +87,10 @@ def main():
'write_to': '_pytest/_version.py',
},
url='http://pytest.org',
+ project_urls={
+ 'Source': 'https://github.com/pytest-dev/pytest',
+ 'Tra... | Add additional project urls to setup.py According to: <URL>. | py |
diff --git a/custodian/qchem/jobs.py b/custodian/qchem/jobs.py
index <HASH>..<HASH> 100644
--- a/custodian/qchem/jobs.py
+++ b/custodian/qchem/jobs.py
@@ -277,7 +277,7 @@ class QchemJob(Job):
sub_out = sub_out_file_object.readlines()
out_file_object.writelines(header_lines)
... | return code -<I> is just an indication I didn't find the exit code and shouldn't be appended to the output file | py |
diff --git a/livetests.py b/livetests.py
index <HASH>..<HASH> 100755
--- a/livetests.py
+++ b/livetests.py
@@ -52,7 +52,7 @@ def _initialize(api):
api.get("/changes/")
-@pytest.fixture(scope="module", params=["2.13.11", "2.14.13", "2.15.3"])
+@pytest.fixture(scope="module", params=["2.13.11", "2.14.14", "2.15.... | Run livetests against <I> and <I> Change-Id: I<I>e<I>a0d<I>ce8e9ae7ffa9fdb<I>b8 | py |
diff --git a/aiozk/test/test_barrier.py b/aiozk/test/test_barrier.py
index <HASH>..<HASH> 100644
--- a/aiozk/test/test_barrier.py
+++ b/aiozk/test/test_barrier.py
@@ -130,3 +130,30 @@ async def test_double_barrier_timeout(zk, path):
assert not entered
await zk.deleteall(path)
+
+
+@pytest.mark.asyncio
+asyn... | barrier: Add test code regarding that a znode becomes untracked If DoubleBarrier.enter() failed with timeout, a znode which is related to the barrier gets untracked and no objects are responsible for it. So this behavior incurs resource leakage and leads to other tasks to be blocked indefinitely at .leave() method. T... | py |
diff --git a/ipwhois/utils.py b/ipwhois/utils.py
index <HASH>..<HASH> 100644
--- a/ipwhois/utils.py
+++ b/ipwhois/utils.py
@@ -88,7 +88,7 @@ IP_REGEX = (
r'(?P<ip>'
# IPv4
r'(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.)){3}'
- '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'
+ r'(25[0-5]|2[0-4][0-9]|[01]?[0... | <I> regex fix attempt (#<I>) | py |
diff --git a/examples/utils_glue.py b/examples/utils_glue.py
index <HASH>..<HASH> 100644
--- a/examples/utils_glue.py
+++ b/examples/utils_glue.py
@@ -422,8 +422,9 @@ def convert_examples_to_features(examples, label_list, max_seq_length,
tokens_b = tokenizer.tokenize(example.text_b)
# Modifies... | Correct truncation for RoBERTa in 2-input GLUE | py |
diff --git a/rqalpha/mod/rqalpha_mod_sys_accounts/position_model/future_position.py b/rqalpha/mod/rqalpha_mod_sys_accounts/position_model/future_position.py
index <HASH>..<HASH> 100644
--- a/rqalpha/mod/rqalpha_mod_sys_accounts/position_model/future_position.py
+++ b/rqalpha/mod/rqalpha_mod_sys_accounts/position_model/... | only close today's holding when position_effect == CLOSE_TODAY | py |
diff --git a/vanilla/tcp.py b/vanilla/tcp.py
index <HASH>..<HASH> 100644
--- a/vanilla/tcp.py
+++ b/vanilla/tcp.py
@@ -1,4 +1,5 @@
import socket
+import errno
import vanilla.exception
import vanilla.poll
@@ -20,8 +21,14 @@ class __plugin__(object):
@server.pipe
def server(upstream, downstream):
... | accept TCP connections until EAGAIN is raised, as we are edge triggered | py |
diff --git a/rllib/algorithms/apex_dqn/tests/test_apex_dqn.py b/rllib/algorithms/apex_dqn/tests/test_apex_dqn.py
index <HASH>..<HASH> 100644
--- a/rllib/algorithms/apex_dqn/tests/test_apex_dqn.py
+++ b/rllib/algorithms/apex_dqn/tests/test_apex_dqn.py
@@ -124,6 +124,8 @@ class TestApexDQN(unittest.TestCase):
... | [RLlib] Require ApeX LR schedule test to produce learner info. (#<I>) | py |
diff --git a/nipap-cli/nipap_cli/nipap_cli.py b/nipap-cli/nipap_cli/nipap_cli.py
index <HASH>..<HASH> 100755
--- a/nipap-cli/nipap_cli/nipap_cli.py
+++ b/nipap-cli/nipap_cli/nipap_cli.py
@@ -229,6 +229,11 @@ def list_prefix(arg, opts):
s = get_schema()
+ # default to empty search string instead of None, whi... | Allow empty search in CLI client Handle case with empty search string and specifically override None and use a empty search string ('') instead. The former behaviour was useless as it would cast None to a string ('None') and search for that.. Part of #<I> | py |
diff --git a/djangosaml2/views.py b/djangosaml2/views.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/views.py
+++ b/djangosaml2/views.py
@@ -195,6 +195,9 @@ def assertion_consumer_service(request,
# redirect the user to the view where he came from
relay_state = request.POST.get('RelayState', '/')
+ if ... | Check that RelayState is not empty before redirecting into a loop | py |
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskmodels.py
+++ b/openquake/risklib/riskmodels.py
@@ -190,7 +190,7 @@ class ProbabilisticEventBased(RiskModel):
kind = 'vulnerability'
def __init__(
- self, taxonom... | Completely emoved loss_curve_resolution [skip hazardlib] [demos] | py |
diff --git a/grip/command.py b/grip/command.py
index <HASH>..<HASH> 100644
--- a/grip/command.py
+++ b/grip/command.py
@@ -44,6 +44,8 @@ from __future__ import print_function
import sys
import mimetypes
+import socket
+import errno
from docopt import docopt
from getpass import getpass
@@ -129,3 +131,8 @@ def ma... | fix #<I>: EADDRINUSE If a grip server is already running on the requested port, fail cleanly instead of dumping the call stack. | py |
diff --git a/spyderlib/widgets/externalshell/startup.py b/spyderlib/widgets/externalshell/startup.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/startup.py
+++ b/spyderlib/widgets/externalshell/startup.py
@@ -27,10 +27,20 @@ __name__ = '__main__'
if os.environ.get('IPYTHON_KERNEL', False):
... | IPython plugin: IPython kernel connections were unpredictable Update Issue <I> Status: Fixed Jed, actually, it is not necessary to modify the monitor script as this issue can be simply solved by assigning the __ipythonkernel__ reference *after* the IPython kernel has been initialized. Thanks for debugging all this. ... | py |
diff --git a/tests/test_more.py b/tests/test_more.py
index <HASH>..<HASH> 100644
--- a/tests/test_more.py
+++ b/tests/test_more.py
@@ -4044,7 +4044,7 @@ class IchunkedTests(TestCase):
def test_memory_in_order(self):
"""Test that only one item is kept in memory at a time if chunks are
iterated ove... | fix debugging print for py<I> | py |
diff --git a/transitfeed/__init__.py b/transitfeed/__init__.py
index <HASH>..<HASH> 100644
--- a/transitfeed/__init__.py
+++ b/transitfeed/__init__.py
@@ -85,4 +85,4 @@ from stoptime import *
from transfer import *
from trip import *
-__version__ = '1.2.8'
+__version__ = '1.2.9' | Issue <I>: TransitFeed <I> Release Reviewed in <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,6 @@ else:
sys.stderr.write("searching for packages\n")
PACKAGES = find_packages()
EXTRA_KWARGS = dict(
- install_requires = ['setuptools'],
include_package_data=True,
test_sui... | install_requires must be consolidate - can't repeat kwargs | py |
diff --git a/pylogit/uneven_logit.py b/pylogit/uneven_logit.py
index <HASH>..<HASH> 100644
--- a/pylogit/uneven_logit.py
+++ b/pylogit/uneven_logit.py
@@ -338,11 +338,14 @@ def _uneven_transform_deriv_shape(systematic_utilities,
# Get the exponentiated (utilities times the shape parameter)
exp_shape_utilities... | Changed handling of overflow and underflow in uneven_transform_deriv_shape. | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -7,4 +7,4 @@ pytest_plugins = ['aiida.manage.tests.pytest_fixtures'] # pylint: disable=inval
@pytest.fixture(scope='function')
def cp2k_code(aiida_local_code_factory): # pylint: disable=unused-argument
- r... | Conftest: change executable name Replace executable name from 'cp2k.popt' to 'cp2k' which is more general. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,13 +30,14 @@ setup(
author_email=AUTHOR_EMAIL,
url=URL,
license='MIT License',
- keyword=['BaseX', 'REST', 'HTTP', 'XPATH', 'XML', 'database', 'python'],
+ keywords=['BaseX', 'REST', 'HTTP', 'XPATH', '... | fixes setup.py to properly generate PKG-INFO | py |
diff --git a/bolt/__init__.py b/bolt/__init__.py
index <HASH>..<HASH> 100644
--- a/bolt/__init__.py
+++ b/bolt/__init__.py
@@ -15,11 +15,24 @@ def run():
:return: 0 if the application succeeds or a non-zero value otherwise.
"""
- params = " ".join(sys.argv[1:])
- print "Running with: " + params
+ t... | Initial implementation of run() function that extracts the arguments. | py |
diff --git a/c7n/resources/account.py b/c7n/resources/account.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/account.py
+++ b/c7n/resources/account.py
@@ -42,6 +42,14 @@ class Account(ResourceManager):
'account_name': client.list_account_aliases(
).get('AccountAliases', ('',))[0]}])
... | fulfill resource manager interface for lambda events on account pseudo resource (#<I>) | py |
diff --git a/pysat/__init__.py b/pysat/__init__.py
index <HASH>..<HASH> 100644
--- a/pysat/__init__.py
+++ b/pysat/__init__.py
@@ -72,7 +72,9 @@ if not os.path.isdir(pysat_dir) or \
os.mkdir(pysat_dir)
os.mkdir(os.path.join(pysat_dir, 'instruments'))
os.mkdir(os.path.join(pysat_dir, 'instrume... | STY: print -> logger | py |
diff --git a/oedialect/engine.py b/oedialect/engine.py
index <HASH>..<HASH> 100644
--- a/oedialect/engine.py
+++ b/oedialect/engine.py
@@ -180,8 +180,11 @@ class OEConnection():
header = dict(urlheaders)
header['Authorization'] = 'Token %s'%self.__token
+
+ port = self.__port if self.__port !... | Enforce SSL-Port to avoid redirects | py |
diff --git a/examples/echo.py b/examples/echo.py
index <HASH>..<HASH> 100644
--- a/examples/echo.py
+++ b/examples/echo.py
@@ -11,6 +11,7 @@ def on_ready():
@client.event
def on_message(message):
- client.send_message(message.channel, message.content)
+ if message.author.id != client.user.id:
+ client.... | Fix echo example to not infinitely loop. | py |
diff --git a/scout/adapter/mongo/panel.py b/scout/adapter/mongo/panel.py
index <HASH>..<HASH> 100644
--- a/scout/adapter/mongo/panel.py
+++ b/scout/adapter/mongo/panel.py
@@ -161,7 +161,8 @@ class PanelHandler:
Args:
panel_obj(dict)
"""
- panel_name = panel_obj["panel_name"... | Remove leading and trailing whitespaces from panel name | py |
diff --git a/tests/plugins/core/test_auth.py b/tests/plugins/core/test_auth.py
index <HASH>..<HASH> 100644
--- a/tests/plugins/core/test_auth.py
+++ b/tests/plugins/core/test_auth.py
@@ -5,7 +5,7 @@ import hashlib
import mock
from mock.mock import MagicMock
-from spockbot.plugins.core.auth import AuthPlugin, AuthCo... | Tests are for nerds | py |
diff --git a/gaekit/storages.py b/gaekit/storages.py
index <HASH>..<HASH> 100644
--- a/gaekit/storages.py
+++ b/gaekit/storages.py
@@ -42,6 +42,10 @@ class CloudStorage(Storage):
except cloudstorage.NotFoundError:
return False
+ def size(self, name):
+ stats = cloudstorage.stat(self._r... | Adds support for retrieving file size | py |
diff --git a/source/rafcon/core/storage/storage.py b/source/rafcon/core/storage/storage.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/storage/storage.py
+++ b/source/rafcon/core/storage/storage.py
@@ -386,6 +386,13 @@ def get_storage_id_for_state(state):
"""
if global_config.get_config_value('STORAG... | limit folder name length to <I> characters | py |
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py
index <HASH>..<HASH> 100644
--- a/insights/specs/sos_archive.py
+++ b/insights/specs/sos_archive.py
@@ -64,7 +64,7 @@ class SosSpecs(Specs):
netstat_s = simple_file("sos_commands/networking/netstat_-s")
nmcli_dev_show = simple_file("so... | fixed typo for pcs_config first file in sos_archive.py (#<I>) | py |
diff --git a/kubespawner/proxy.py b/kubespawner/proxy.py
index <HASH>..<HASH> 100644
--- a/kubespawner/proxy.py
+++ b/kubespawner/proxy.py
@@ -130,7 +130,7 @@ class KubeIngressProxy(Proxy):
self.log.info('Created %s/%s', kind, safe_name)
except client.rest.ApiException as e:
... | Clarify comment about deleting objects We no longer delete objects, instead we patch! | py |
diff --git a/deimos/containerizer.py b/deimos/containerizer.py
index <HASH>..<HASH> 100644
--- a/deimos/containerizer.py
+++ b/deimos/containerizer.py
@@ -157,7 +157,7 @@ class Docker(Containerizer, _Struct):
if observer_argv is not None:
observer_argv += [state.cid()]
... | Separate the observers err and out streams. | py |
diff --git a/sos/sosreport.py b/sos/sosreport.py
index <HASH>..<HASH> 100644
--- a/sos/sosreport.py
+++ b/sos/sosreport.py
@@ -1091,10 +1091,13 @@ class SoSReport(object):
self._make_archive_paths()
return
except (OSError, IOError) as e:
+ # we must not use the logging subs... | [sosreport] do not make logging calls after OSError Following an OSError during archive setup the logging subsystem is potentially in an inconsistent or unusable state (e.g. due to a readonly file system error). Use the print function directly since we just need to report the error and exit. | py |
diff --git a/bcbio/provenance/programs.py b/bcbio/provenance/programs.py
index <HASH>..<HASH> 100644
--- a/bcbio/provenance/programs.py
+++ b/bcbio/provenance/programs.py
@@ -167,8 +167,11 @@ def _get_versions(config=None):
"""
try:
from bcbio.pipeline import version
- bcbio_version = ("%s-%s"... | Tests: avoid version import error when run from bare git clone Unit tests can inject the local bcbio cloned environment which does not have a version. This fixes errors by effectively ignoring the version check for this case. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -53,7 +53,7 @@ setup(
platforms=['any'],
license="BSD",
keywords=("postgres postgresql database backup archive archiving s3 aws "
- "openstack swift wabs azure wal shipping"),
+ "openst... | Add google keywords, reflecting GCS support | py |
diff --git a/src/ai/backend/client/kernel.py b/src/ai/backend/client/kernel.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/kernel.py
+++ b/src/ai/backend/client/kernel.py
@@ -308,7 +308,7 @@ class BaseKernel(BaseFunction):
await ws.send_json({
'code': code,
'mode': mode,
-... | Bug fix: Change opts to options (#<I>) | py |
diff --git a/lettuce/bin.py b/lettuce/bin.py
index <HASH>..<HASH> 100755
--- a/lettuce/bin.py
+++ b/lettuce/bin.py
@@ -66,6 +66,12 @@ def main(args=sys.argv[1:]):
help='Write JUnit XML to this file. Defaults to '
'lettucetests.xml')
+ parser.add_option("--with-subunit"... | Add missing --with-subunit command | py |
diff --git a/spillway/models.py b/spillway/models.py
index <HASH>..<HASH> 100644
--- a/spillway/models.py
+++ b/spillway/models.py
@@ -2,6 +2,7 @@ import os
import datetime
from django.contrib.gis.db import models
+from django.utils.deconstruct import deconstructible
from django.utils.translation import ugettext_l... | Add migration workaround for FileField upload_to | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-try:
- from setuptools import setup, find_packages
-except ImportError:
- from distutils.core import setup
+from setuptools import setup, find_packages
... | removing try/except for distutils and commented lines | py |
diff --git a/rawdisk/session.py b/rawdisk/session.py
index <HASH>..<HASH> 100644
--- a/rawdisk/session.py
+++ b/rawdisk/session.py
@@ -20,13 +20,16 @@ class Session(object):
:attr:`SCHEME_MBR <rawdisk.scheme.common.SCHEME_MBR>` \
or :attr:`SCHEME_GPT <rawdisk.scheme.common.SCHEME_GPT>`.
"""
- ... | load fs plugins by default | py |
diff --git a/src/masonite/exceptions/handlers/ModelNotFoundHandler.py b/src/masonite/exceptions/handlers/ModelNotFoundHandler.py
index <HASH>..<HASH> 100644
--- a/src/masonite/exceptions/handlers/ModelNotFoundHandler.py
+++ b/src/masonite/exceptions/handlers/ModelNotFoundHandler.py
@@ -6,5 +6,7 @@ class ModelNotFoundHa... | add message to model not found exceptions so it shows the exceptionite solution | py |
diff --git a/modules/lib/mp_util.py b/modules/lib/mp_util.py
index <HASH>..<HASH> 100644
--- a/modules/lib/mp_util.py
+++ b/modules/lib/mp_util.py
@@ -73,7 +73,7 @@ def mkdir_p(dir):
'''like mkdir -p'''
if not dir:
return
- if dir.endswith("/"):
+ if dir.endswith("/") or dir.endswith("\\"):
mkdir_p(dir[:-1])
... | mp_util: cope with windows paths in mkdir_p | py |
diff --git a/pyverilog/dataflow/graphgen.py b/pyverilog/dataflow/graphgen.py
index <HASH>..<HASH> 100644
--- a/pyverilog/dataflow/graphgen.py
+++ b/pyverilog/dataflow/graphgen.py
@@ -54,18 +54,18 @@ class VerilogGraphGenerator(object):
self.resolved_binddict, constlist)
... | 'reorder' argument is renamed as 'do_reorder' to avoid the naming conflict. | py |
diff --git a/django_q/tasks.py b/django_q/tasks.py
index <HASH>..<HASH> 100644
--- a/django_q/tasks.py
+++ b/django_q/tasks.py
@@ -48,7 +48,8 @@ def async(func, *args, **kwargs):
if task.get('sync', False):
return _sync(pack)
# push it
- broker.enqueue(pack)
+ enqueue_id = broker.enqueue(pack)
... | Log id returned by broker This will make it easy to inspect broker directly for particular message. | py |
diff --git a/LiSE/proxy.py b/LiSE/proxy.py
index <HASH>..<HASH> 100644
--- a/LiSE/proxy.py
+++ b/LiSE/proxy.py
@@ -3211,7 +3211,7 @@ class EngineProxy(object):
if (
charn in self._node_stat_listeners and
noden in self._node_stat_listeners[charn] and
- ... | Fix listening to nodes' stats | py |
diff --git a/keanu-python/keanu/algorithm/sampling.py b/keanu-python/keanu/algorithm/sampling.py
index <HASH>..<HASH> 100644
--- a/keanu-python/keanu/algorithm/sampling.py
+++ b/keanu-python/keanu/algorithm/sampling.py
@@ -57,13 +57,13 @@ class MetropolisHastingsSampler(PosteriorSamplingAlgorithm):
class HamiltonianSa... | Added very basic implementation of Hamiltonian and NUTS (non configurable as before) so sampling tests work | py |
diff --git a/rcli/autodetect.py b/rcli/autodetect.py
index <HASH>..<HASH> 100644
--- a/rcli/autodetect.py
+++ b/rcli/autodetect.py
@@ -12,6 +12,7 @@ from __future__ import unicode_literals
import ast
import collections
+import configparser
import json
import os.path
import typing
@@ -41,6 +42,13 @@ def setup_key... | support working with ini-style setup.py entry_points | 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
@@ -139,6 +139,11 @@ def render_jinja_tmpl(tmplstr, context, tmplpath=None):
traceback.extract_tb(sys.exc_info()[2])[-1][1]
)
raise Sa... | Catch jinja2.exceptions.UndefinedError This commit suppresses a traceback that occurs when there is an undefined jinja variable used in a template. Unfortunately, it does not seem that this exception class captures the name of the undefined variable, which would be useful information, so a mention of the line number i... | py |
diff --git a/flowcraft/__init__.py b/flowcraft/__init__.py
index <HASH>..<HASH> 100644
--- a/flowcraft/__init__.py
+++ b/flowcraft/__init__.py
@@ -1,7 +1,7 @@
__version__ = "1.2.0"
__build__ = "12052018"
-__author__ = "Diogo N. Silva, Tiago F. Jesus, Ines Mendes, Bruno Ribeiro-Gonçalves"
+__author__ = "Diogo N. Sil... | Fixed non-ascii character in docs config | py |
diff --git a/IPython/html/widgets/interaction.py b/IPython/html/widgets/interaction.py
index <HASH>..<HASH> 100644
--- a/IPython/html/widgets/interaction.py
+++ b/IPython/html/widgets/interaction.py
@@ -210,6 +210,8 @@ def interactive(__interact_f, **kwargs):
container.kwargs[widget.description] = value
... | Disable run button until the function finishes | py |
diff --git a/cwltool/main.py b/cwltool/main.py
index <HASH>..<HASH> 100755
--- a/cwltool/main.py
+++ b/cwltool/main.py
@@ -270,6 +270,12 @@ def load_tool(argsworkflow, updateonly, strict, makeTool, debug, print_pre=False
workflowobj = {"cwlVersion": "https://w3id.org/cwl/cwl#draft-2",
"... | Support for cwl:tool in job objects. | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -367,7 +367,10 @@ def deploy_job():
juju_path = args.new_juju_bin
else:
env = dict(os.environ)
- env['ENV'] = args.env
+ env.update({
+ 'ENV': args.en... | Supply WORKSPACE to common-startup. | py |
diff --git a/src/td_run_all_local.py b/src/td_run_all_local.py
index <HASH>..<HASH> 100644
--- a/src/td_run_all_local.py
+++ b/src/td_run_all_local.py
@@ -152,6 +152,7 @@ def find_unfinished_tomodirs(directory):
needs_modeling = []
needs_inversion = []
for root, dirs, files in os.walk(directory):
+ ... | sort results for td_run_all_local | py |
diff --git a/code/pywws/device_pyusb1.py b/code/pywws/device_pyusb1.py
index <HASH>..<HASH> 100644
--- a/code/pywws/device_pyusb1.py
+++ b/code/pywws/device_pyusb1.py
@@ -93,8 +93,11 @@ class USBDevice(object):
self.dev = usb.core.find(idVendor=idVendor, idProduct=idProduct)
if not self.dev:
... | Catch NotImplementedError from some pyusb versions. | py |
diff --git a/DDPClient.py b/DDPClient.py
index <HASH>..<HASH> 100644
--- a/DDPClient.py
+++ b/DDPClient.py
@@ -3,6 +3,7 @@ import json
import time
import socket
+from ws4py.exc import WebSocketException
from ws4py.client.threadedclient import WebSocketClient
from pyee import EventEmitter
@@ -86,7 +87,7 @@ class... | Make auto reconnection handle ws4py exceptions as well as socket exceptions. | py |
diff --git a/netmiko/huawei/huawei.py b/netmiko/huawei/huawei.py
index <HASH>..<HASH> 100644
--- a/netmiko/huawei/huawei.py
+++ b/netmiko/huawei/huawei.py
@@ -93,6 +93,9 @@ class HuaweiBase(NoEnable, CiscoBaseConnection):
cmd=cmd, confirm=confirm, confirm_response=confirm_response
)
+ def cle... | Fixing cleanup() method bound to wrong class on Huawei (#<I>) | py |
diff --git a/dingo/tools/geo.py b/dingo/tools/geo.py
index <HASH>..<HASH> 100644
--- a/dingo/tools/geo.py
+++ b/dingo/tools/geo.py
@@ -8,6 +8,19 @@ from functools import partial
from dingo.tools import config as cfg_dingo
+def calc_geo_branches_in_polygon(mv_grid, polygon, proj):
+
+ branches = []
+ polygon_... | add method to determine branches within polygon to geo.py | py |
diff --git a/omego/upgrade.py b/omego/upgrade.py
index <HASH>..<HASH> 100644
--- a/omego/upgrade.py
+++ b/omego/upgrade.py
@@ -93,6 +93,17 @@ class Install(object):
- Modified args object, flag to indicate new/existing/auto install
"""
if cmd == 'install':
+ if args.upgrade:
+ ... | Fix order of deprecated arg changes | py |
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index <HASH>..<HASH> 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -762,7 +762,9 @@ def to_datetime(
If parsing succeeded.
Return type depends on input:
- - list-like: DatetimeIn... | Updated the return type section of to_datetime (#<I>) * Updated the return type section of to_datetime to include list-like mixed timezone inputs * updated the Returns section * updated the Return section as suggested by mroeschke * removed the extra line in my previous commit * Update pandas/core/tools/d... | py |
diff --git a/httpretty/core.py b/httpretty/core.py
index <HASH>..<HASH> 100644
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -916,14 +916,22 @@ class URIMatcher(object):
if self.current_entries[method] != -1:
self.current_entries[method] += 1
+ # Create a copy of the original entry t... | Fix for httpretty is not thread-safe #<I> | py |
diff --git a/metaseq/minibrowser.py b/metaseq/minibrowser.py
index <HASH>..<HASH> 100644
--- a/metaseq/minibrowser.py
+++ b/metaseq/minibrowser.py
@@ -196,6 +196,11 @@ class GeneModelMiniBrowser(SignalMiniBrowser):
padding = (xmax - xmin) * 0.01
ax.axis('tight')
+ # add lines indicating exten... | add lines to indicate plotted region in GeneModelMiniBrowser | py |
diff --git a/tests/basics/struct1.py b/tests/basics/struct1.py
index <HASH>..<HASH> 100644
--- a/tests/basics/struct1.py
+++ b/tests/basics/struct1.py
@@ -10,6 +10,8 @@ print(struct.unpack(">bI", b"\x80\0\0\x01\0"))
# 32-bit little-endian specific
#print(struct.unpack("bI", b"\x80\xaa\x55\xaa\0\0\x01\0"))
+print(st... | tests/struct1: Test "l" specifier to improve coverage. | py |
diff --git a/parquet/__init__.py b/parquet/__init__.py
index <HASH>..<HASH> 100644
--- a/parquet/__init__.py
+++ b/parquet/__init__.py
@@ -409,7 +409,7 @@ def DictReader(file_obj, columns=None): # pylint: disable=invalid-name
top-level dict and can be referenced with '.' notation (e.g. 'foo' -> 'bar'
is refe... | Fix docstring references to file_obj (#<I>) | py |
diff --git a/check-git-history.py b/check-git-history.py
index <HASH>..<HASH> 100644
--- a/check-git-history.py
+++ b/check-git-history.py
@@ -4,9 +4,8 @@ import traceback
def main(argv):
try:
- # Only check the history if the build is running on a pull request. Travis
- # always merges pull requests into t... | Use TRAVIS_PULL_REQUEST to determine whether a build is a pull request. | py |
diff --git a/pycbc/inference/sampler/__init__.py b/pycbc/inference/sampler/__init__.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/sampler/__init__.py
+++ b/pycbc/inference/sampler/__init__.py
@@ -19,20 +19,23 @@ This modules provides a list of implemented samplers for parameter estimation.
from __future__ imp... | don't hard require cpnest (#<I>) | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -351,5 +351,3 @@ with open("apis.rst", "w") as apis:
if verb in verbs:
apis.write(" * " + verb + ": " + " or ".join(sorted(verbs[verb])) + "\n")
apis.write("\n")
-
-# shutil.... | Remove contributing from readthedocs, closes #<I> | py |
diff --git a/msmtools/generation/api.py b/msmtools/generation/api.py
index <HASH>..<HASH> 100644
--- a/msmtools/generation/api.py
+++ b/msmtools/generation/api.py
@@ -172,12 +172,15 @@ def generate_traj(P, N, start=None, stop=None, dt=1, random_state=None):
dt : int
trajectory will be saved every dt time ... | [generation/api] add random_state to docstring [ci skip] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,7 @@ settings.update(
"gnureadline==6.3.3",
"requests==2.3.0",
"sh==1.09",
+ "sphinx-rtd-theme==0.1.6",
"wsgiref==0.1.2",
"xlrd==0.9.3",
], | restore sphinx rtd theme so docs render on rtd properly | py |
diff --git a/ajax/encoders.py b/ajax/encoders.py
index <HASH>..<HASH> 100644
--- a/ajax/encoders.py
+++ b/ajax/encoders.py
@@ -2,12 +2,17 @@ from django.core import serializers
from ajax.exceptions import AlreadyRegistered, NotRegistered
from django.db.models.fields import FieldDoesNotExist
from django.db import mod... | Add the setting AJAX_PK_ATTR_NAME so you can specify what the Model's pk will be named in the output. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
# general meta
name='ebs-deploy',
- version='1.2',
+ version='1.3',
author='Brian C. Dilley',
author_email='brian.dilley@gmail.com',
description='Python based command line t... | bumped version number to <I> | py |
diff --git a/scanpy/plotting/__init__.py b/scanpy/plotting/__init__.py
index <HASH>..<HASH> 100644
--- a/scanpy/plotting/__init__.py
+++ b/scanpy/plotting/__init__.py
@@ -23,6 +23,7 @@ Generic
pl.clustermap
pl.ranking
pl.dendrogram
+ pl.correlation
Preprocessing
@@ -99,7 +100,7 @@ Visualize clusters ... | added 'pl.correlation' | py |
diff --git a/cohorts.py b/cohorts.py
index <HASH>..<HASH> 100644
--- a/cohorts.py
+++ b/cohorts.py
@@ -160,7 +160,7 @@ class Cohort(object):
df_epitopes = epitopes_to_dataframe(epitopes)
df_epitopes["sample_id"] = sample_id
- self.save_to_cache(merged_variants, self.neoantigen_cache_name, sam... | Fix bug where the wrong object is saved | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '3.11.0.dev'
+VERSION = '3.12.0.dev' | start working on <I>.dev | py |
diff --git a/nodeconductor/structure/models.py b/nodeconductor/structure/models.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/models.py
+++ b/nodeconductor/structure/models.py
@@ -389,7 +389,7 @@ def create_project_zabbix_hostgroup(sender, instance, created, **kwargs):
@receiver(
signals.post_delet... | signal dispatch_uid corrected (nc-<I>) | py |
diff --git a/hepdata_converter/writers/root_writer.py b/hepdata_converter/writers/root_writer.py
index <HASH>..<HASH> 100644
--- a/hepdata_converter/writers/root_writer.py
+++ b/hepdata_converter/writers/root_writer.py
@@ -310,7 +310,7 @@ class TGraph2DErrorsClass(ObjectWrapper):
... | root writer: don't write a graph object if no numerical data points | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ setup(
'audioread >= 2.0.0',
'numpy >= 1.8.0',
'scipy >= 0.13.0',
- 'scikit-learn >= 0.14.0',
+ 'scikit-learn >= 0.14.0, != 0.19.0',
'joblib >= 0.7.0',
... | fixed setup.py to prevent #<I> | py |
diff --git a/datatableview/views.py b/datatableview/views.py
index <HASH>..<HASH> 100644
--- a/datatableview/views.py
+++ b/datatableview/views.py
@@ -146,6 +146,7 @@ class DatatableMixin(MultipleObjectMixin):
search_terms = map(lambda q: q.strip("'\" "), smart_split(options.search))
for ter... | Lots of updates - Added in caching to Home and Community - Started working through the tests and monitoring the caching and tests - Removed context processor which was querying on every hit to pull it via ajax. - Added an Tasty-pie query for the former context processor. | py |
diff --git a/telethon/requestiter.py b/telethon/requestiter.py
index <HASH>..<HASH> 100644
--- a/telethon/requestiter.py
+++ b/telethon/requestiter.py
@@ -81,7 +81,10 @@ class RequestIter(abc.ABC):
return result
def __next__(self):
- return self.client.loop.run_until_complete(self.__anext__())
+ ... | Fix RequestIter.__next__ propagating StopAsyncIteration (#<I>) | py |
diff --git a/oct2py/matwrite.py b/oct2py/matwrite.py
index <HASH>..<HASH> 100644
--- a/oct2py/matwrite.py
+++ b/oct2py/matwrite.py
@@ -66,7 +66,7 @@ class MatWrite(object):
if not os.path.exists(self.in_file):
self.in_file = create_file()
try:
- savemat(self.in_file, data, a... | Enable long_field_names for savemat integration Long_field_names was exposed in scipy by [this thread](<URL>), enabling the writing of MLv7 files. Works for me at least. | py |
diff --git a/quart/app.py b/quart/app.py
index <HASH>..<HASH> 100644
--- a/quart/app.py
+++ b/quart/app.py
@@ -1485,15 +1485,17 @@ class Quart(PackageStatic):
status = status_or_headers
if not isinstance(value, Response):
- response = self.response_class(value, timeout=self.config['RE... | Ignore some new mypy errors The types in this function are hard to determine and I wish to avoid using casts. | py |
diff --git a/a10_neutronclient/a10_device_instance.py b/a10_neutronclient/a10_device_instance.py
index <HASH>..<HASH> 100644
--- a/a10_neutronclient/a10_device_instance.py
+++ b/a10_neutronclient/a10_device_instance.py
@@ -13,6 +13,7 @@
# under the License.
from a10_openstack_lib.resources import a10_device_inst... | Accepts network names or IDs and populates missing defaults from config | py |
diff --git a/django_conneg/views.py b/django_conneg/views.py
index <HASH>..<HASH> 100644
--- a/django_conneg/views.py
+++ b/django_conneg/views.py
@@ -53,6 +53,7 @@ class ContentNegotiatedView(View):
# Order all the renderers by priority
renderers.sort(key=lambda renderer:-renderer.priority)
+ ... | _renderers is now a tuple attribute on the view instance within the closure of the view function. | py |
diff --git a/crosspm/adapters/artifactoryaql.py b/crosspm/adapters/artifactoryaql.py
index <HASH>..<HASH> 100644
--- a/crosspm/adapters/artifactoryaql.py
+++ b/crosspm/adapters/artifactoryaql.py
@@ -171,8 +171,9 @@ class Adapter(BaseAdapter):
# Check if it's `root` packages or from `loc... | CM-<I>, Added bug fix with artifactory properties to merge it into master | py |
diff --git a/fusesoc/capi2/core.py b/fusesoc/capi2/core.py
index <HASH>..<HASH> 100644
--- a/fusesoc/capi2/core.py
+++ b/fusesoc/capi2/core.py
@@ -106,7 +106,7 @@ class Core:
_root = Root(yaml.load(open(core_file)))
except KeyError as e:
raise SyntaxError("Unknown item {}".format(e))
... | Catch exception thrown by yaml parser | py |
diff --git a/progressbar/bar.py b/progressbar/bar.py
index <HASH>..<HASH> 100644
--- a/progressbar/bar.py
+++ b/progressbar/bar.py
@@ -121,7 +121,7 @@ class StdRedirectMixin(DefaultFdMixin):
sys.stderr.truncate(0)
self._stderr.flush()
- except io.UnsupportedOperation: # pragm... | fixed #<I> by capturing even more exceptions... not a perfect solution but the best one at the moment | py |
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -397,6 +397,7 @@ class OFPFlowStats(object):
flow_stats.packet_count,
flow_stats.byte_conunt) = struct... | Increment offset in OFPFlowStats.parser() After reading the third portion of the header the offset needs to be incremented as it is used to parse actions later on in the function. | py |
diff --git a/tests/napbase.py b/tests/napbase.py
index <HASH>..<HASH> 100755
--- a/tests/napbase.py
+++ b/tests/napbase.py
@@ -25,9 +25,8 @@ class NapTest(unittest.TestCase):
def setUp(self):
""" Better start from a clean slate!
"""
- self.nap._execute("TRUNCATE ip_net_plan")
- self... | Fix of braindead mistake in unit tests Now the database cleanup in the setUp function actually works. No further comments. | py |
diff --git a/xtuml/rsl/runtime.py b/xtuml/rsl/runtime.py
index <HASH>..<HASH> 100644
--- a/xtuml/rsl/runtime.py
+++ b/xtuml/rsl/runtime.py
@@ -305,7 +305,7 @@ class Runtime(object):
if self.diff:
self.append_diff(filename, org, buf)
- if do_write and self.force_emit:
+ if do_write ... | rsl runtime: don't try to chmod files which does not exist | py |
diff --git a/cartoframes/data/observatory/catalog/variable.py b/cartoframes/data/observatory/catalog/variable.py
index <HASH>..<HASH> 100644
--- a/cartoframes/data/observatory/catalog/variable.py
+++ b/cartoframes/data/observatory/catalog/variable.py
@@ -168,9 +168,9 @@ class Variable(CatalogEntity):
#... | update doc for outliers and extrem | py |
diff --git a/scoop/launcher.py b/scoop/launcher.py
index <HASH>..<HASH> 100644
--- a/scoop/launcher.py
+++ b/scoop/launcher.py
@@ -329,9 +329,7 @@ class ScoopApp(object):
# Terminate the brokers
for broker in self.brokers:
try:
- print("1")
broker.close()
-... | - Removed extraneous debugging information | py |
diff --git a/abydos/phonetic.py b/abydos/phonetic.py
index <HASH>..<HASH> 100644
--- a/abydos/phonetic.py
+++ b/abydos/phonetic.py
@@ -3569,8 +3569,8 @@ def phonet(word, mode=1, lang='de', trace=False):
while rule and rule[0] != ')':
rule = rule[1:]
- ... | removed unreachable conditions; parens cleanup | py |
diff --git a/openquake/calculators/export/risk.py b/openquake/calculators/export/risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/export/risk.py
+++ b/openquake/calculators/export/risk.py
@@ -631,7 +631,7 @@ def get_loss_maps(dstore, kind):
_, loss_maps_dt = scientific.build_loss_dtypes(
... | Attempt to support Ubuntu <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.