diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/python/ray/utils.py b/python/ray/utils.py
index <HASH>..<HASH> 100644
--- a/python/ray/utils.py
+++ b/python/ray/utils.py
@@ -402,8 +402,8 @@ def get_system_memory():
psutil_memory_in_bytes = psutil.virtual_memory().total
if docker_limit is not None:
- if docker_limit > psutil_memory_in_... | No warning for docker memory > system memory (#<I>) | py |
diff --git a/theanets/trainer.py b/theanets/trainer.py
index <HASH>..<HASH> 100644
--- a/theanets/trainer.py
+++ b/theanets/trainer.py
@@ -337,7 +337,9 @@ class SGD(Trainer):
logging.info('%s %i %s', self.__class__.__name__, iteration + 1, info)
iteration += 1
- yield dict(monitor... | Make sure generated dicts have both "J" and "loss". | py |
diff --git a/bokeh/crossfilter/plugins.py b/bokeh/crossfilter/plugins.py
index <HASH>..<HASH> 100644
--- a/bokeh/crossfilter/plugins.py
+++ b/bokeh/crossfilter/plugins.py
@@ -235,7 +235,7 @@ class CrossBarPlugin(CrossFilterPlugin):
x_range = FactorRange(factors=source.data[cf.x])
# creat... | Make the y range go slightly beyond the max bar height. | py |
diff --git a/holoviews/element/comparison.py b/holoviews/element/comparison.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/comparison.py
+++ b/holoviews/element/comparison.py
@@ -236,7 +236,7 @@ class Comparison(ComparisonInterface):
@classmethod
def compare_trees(cls, el1, el2, msg='Trees'):
... | Improved exception message regarding mismatched tree path counts | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -83,6 +83,7 @@ class TestInfo(BaseTestCase):
class TestSearch(BaseTestCase):
def runTest(self):
+ self.client = docker.Client(base_url=DEFAULT_... | Longer timeout when contacting hub | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -32,7 +32,8 @@ node_modules_bin_dir = os.path.join(project_dir, 'node_modules', '.bin')
# ReadTheDocs build image, which supports Node.js out of the box. This is
# specified in the readthedocs.yml in the root... | chore: don't install optional deps on RTD | py |
diff --git a/pyatv/const.py b/pyatv/const.py
index <HASH>..<HASH> 100644
--- a/pyatv/const.py
+++ b/pyatv/const.py
@@ -2,7 +2,7 @@
MAJOR_VERSION = 0
MINOR_VERSION = 3
-PATCH_VERSION = 1
+PATCH_VERSION = '2.dev1'
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
__version__ = '{}.{}'.format(__short_... | Bump to next dev <I>.dev1 | py |
diff --git a/bucketcache/__init__.py b/bucketcache/__init__.py
index <HASH>..<HASH> 100644
--- a/bucketcache/__init__.py
+++ b/bucketcache/__init__.py
@@ -12,6 +12,6 @@ __all__ = (backends.__all__ + buckets.__all__ + config.__all__ +
exceptions.__all__ + keymakers.__all__ + utilities.__all__)
__author__ ... | Bumped version number to <I> | py |
diff --git a/spinoff/actor/events.py b/spinoff/actor/events.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/events.py
+++ b/spinoff/actor/events.py
@@ -127,7 +127,7 @@ class Events(object):
try:
fn(event)
except Exception:
- print("Error in ev... | Print event handling errors to stderr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,7 @@ setup(
url="https://github.com/dfm/celerite",
license="MIT",
packages=["celerite"],
+ setup_requires=["numpy", "pybind11"],
install_requires=["numpy", "pybind11"],
ext_modules=[ext],
... | adding numpy to setup_requires [ci skip] | py |
diff --git a/volapi/constants.py b/volapi/constants.py
index <HASH>..<HASH> 100644
--- a/volapi/constants.py
+++ b/volapi/constants.py
@@ -1,4 +1,4 @@
-__version__ = "5.13.0"
+__version__ = "5.14.0"
MAX_UNACKED = 10
BASE_URL = "https://volafile.org" | volapi <I> release Chenges are explained in commits listed below: - <I>ea7c - 0f3fb<I> - f<I>b8e2 - ee6e<I> - d6fef2e | py |
diff --git a/shoebot/core/__init__.py b/shoebot/core/__init__.py
index <HASH>..<HASH> 100644
--- a/shoebot/core/__init__.py
+++ b/shoebot/core/__init__.py
@@ -45,7 +45,6 @@ from cairo_canvas import CairoCanvas
from drawqueue import DrawQueue, DrawQueueSink
from cairo_drawqueue import CairoDrawQueue
from cairo_sink i... | Fix nasty typo which meant it only worked my machine ! | py |
diff --git a/channels/assets_channel.py b/channels/assets_channel.py
index <HASH>..<HASH> 100644
--- a/channels/assets_channel.py
+++ b/channels/assets_channel.py
@@ -85,6 +85,6 @@ class AssetsChannel(DatabaseChannel):
data = [data]
for instance in data:
- if not isinstance(data, Stre... | Learn localisation model uses new assets channel | py |
diff --git a/algoliasearch/index.py b/algoliasearch/index.py
index <HASH>..<HASH> 100644
--- a/algoliasearch/index.py
+++ b/algoliasearch/index.py
@@ -1039,7 +1039,7 @@ class Index(object):
params = {'forwardToReplicas': forward_to_replicas}
return self._req(False, '/rules/clear', 'POST', params)
- ... | refact(rules): do not hardcode page and nbHits | py |
diff --git a/src/gluonnlp/__init__.py b/src/gluonnlp/__init__.py
index <HASH>..<HASH> 100644
--- a/src/gluonnlp/__init__.py
+++ b/src/gluonnlp/__init__.py
@@ -31,7 +31,7 @@ from . import optimizer
from . import initializer
from .vocab import Vocab
-__version__ = '0.5.1'
+__version__ = '0.6.0'
__all__ = ['data',
... | [DEV] bump up version (#<I>) | py |
diff --git a/tinymce/widgets.py b/tinymce/widgets.py
index <HASH>..<HASH> 100644
--- a/tinymce/widgets.py
+++ b/tinymce/widgets.py
@@ -68,7 +68,8 @@ def get_language_config():
if mce_settings.USE_SPELLCHECKER:
from enchant import list_languages
enchant_languages = list_languages()
- logger... | Print enchant languages list only in DEBUG mode | py |
diff --git a/lib/search_engine_query_parser.py b/lib/search_engine_query_parser.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine_query_parser.py
+++ b/lib/search_engine_query_parser.py
@@ -517,7 +517,6 @@ class SpiresToInvenioSyntaxConverter:
'kw' : 'keyword:',
# note
'note' : '500__a:'... | WebSearch: removes 'n' operator in SPIRES syntax * Removes 'n' search operator (that stand for 'note') in the SPIRES query syntax parser, as discussed on inspire-dev in relation to 'and n n system' type of queries. | py |
diff --git a/insteonplm/plm.py b/insteonplm/plm.py
index <HASH>..<HASH> 100644
--- a/insteonplm/plm.py
+++ b/insteonplm/plm.py
@@ -147,7 +147,14 @@ class PLM(asyncio.Protocol):
flags: Message flags
"""
- self.log.debug('Command 1: %x Command 2: %x cmd2: %x', command['cmd1'], command... | PLM send_standard logging bug fix. | py |
diff --git a/claripy/balancer.py b/claripy/balancer.py
index <HASH>..<HASH> 100644
--- a/claripy/balancer.py
+++ b/claripy/balancer.py
@@ -527,8 +527,8 @@ class Balancer(object):
right_min = self._min(truism.args[1], signed=not is_unsigned)
right_max = self._max(truism.args[1], signed=not is_unsigned)... | Balancer: fix a bug of bounds calculation in _handle_comparison() | py |
diff --git a/cassiopeia/core/staticdata/champion.py b/cassiopeia/core/staticdata/champion.py
index <HASH>..<HASH> 100644
--- a/cassiopeia/core/staticdata/champion.py
+++ b/cassiopeia/core/staticdata/champion.py
@@ -114,7 +114,9 @@ class ChampionData(CoreData):
version = kwargs.get("version", get_latest_ver... | check for uninitialized version if spells is in ChampionData but passive is not | py |
diff --git a/openquake/engine/tests/db/upgrade_manager_test.py b/openquake/engine/tests/db/upgrade_manager_test.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tests/db/upgrade_manager_test.py
+++ b/openquake/engine/tests/db/upgrade_manager_test.py
@@ -145,3 +145,4 @@ Even dangerous scripts are fine if they affec... | Restored a missing autocommit | py |
diff --git a/scs_osio/device.py b/scs_osio/device.py
index <HASH>..<HASH> 100755
--- a/scs_osio/device.py
+++ b/scs_osio/device.py
@@ -5,14 +5,7 @@ Created on 18 Feb 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
-workflow:
- 1: ./scs_osio/device_id.py
- 2: ./scs_osio/api_auth.py
-> 3: ./scs_osi... | Added host serial number to DFETestDatum. | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -1689,6 +1689,10 @@ class Editor(SpyderPluginWidget):
else:
args = runconf.get_arguments().split()
wd... | Debugging: Issue <I>: Fixed minor issue with "Debug with winpdb" that shows up when the run configuration box has the "Working directory" checkbox unchecked. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
setup(
name='pygwidgets',
- version='0.9.8',
+ version='0.9.9',
author='Irv Kalb',
author_email='Irv@furrypants.com',
description='User inte... | Bumping version to <I> to test PyPI push | py |
diff --git a/bibliopixel/util/log.py b/bibliopixel/util/log.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/util/log.py
+++ b/bibliopixel/util/log.py
@@ -80,6 +80,7 @@ def _new_custom_logger(name='BiblioPixel',
logger.setLevel(INFO)
add_handler(FRAME, sys.stdout)
add_handler(DEBUG, sys.stdou... | Re-enable log.info (fix #<I>) | py |
diff --git a/wa/core.py b/wa/core.py
index <HASH>..<HASH> 100644
--- a/wa/core.py
+++ b/wa/core.py
@@ -22,12 +22,17 @@ def execute_command(command_file):
def get_command_file(argv_list):
current_directory = os.path.join(os.path.expanduser("~"), ".wa")
+ counter = 0
for arg in argv_list[:-1]:
+ i... | Execute first found file skipping next args | py |
diff --git a/andes/models/distributed/plk.py b/andes/models/distributed/plk.py
index <HASH>..<HASH> 100644
--- a/andes/models/distributed/plk.py
+++ b/andes/models/distributed/plk.py
@@ -38,22 +38,22 @@ class PLKData(ModelData):
# -- protection parameters
self.fl = NumParam(default=57.5,
- ... | Renamed `ul` and `uu` to `vl` and `vu` for consistency. | py |
diff --git a/myql/contrib/auth/auth.py b/myql/contrib/auth/auth.py
index <HASH>..<HASH> 100644
--- a/myql/contrib/auth/auth.py
+++ b/myql/contrib/auth/auth.py
@@ -16,11 +16,11 @@ CALLBACK_URI = 'oob'
class OAuth(object):
- def __init__(self, ck=None, cs=None):
+ def __init__(self, consumer_key, consumer_... | #<I> : fix failed builds | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -960,9 +960,7 @@ def get_sitecol_assetcol(oqparam, haz_sitecol=None, cost_types=()):
'Associated %d assets to %d site... | Removed a RuntimeError for discarded assets [skip CI] | py |
diff --git a/splinter/request_handler/status_code.py b/splinter/request_handler/status_code.py
index <HASH>..<HASH> 100644
--- a/splinter/request_handler/status_code.py
+++ b/splinter/request_handler/status_code.py
@@ -15,7 +15,8 @@ class StatusCode():
def is_valid_response(self):
if self.code in self.h... | Formating the exception to show the status code and the reason | py |
diff --git a/cyphi/models.py b/cyphi/models.py
index <HASH>..<HASH> 100644
--- a/cyphi/models.py
+++ b/cyphi/models.py
@@ -451,15 +451,25 @@ class BigMip(namedtuple('BigMip', _bigmip_attributes)):
def __lt__(self, other):
if _phi_eq(self, other):
- try:
- return self.subsystem ... | Compare BigMips by Subsystem size if phi is equal And if subsystem size is equal, compare phi with full precision, for more determinism in things like max/min. | py |
diff --git a/tests/func/test_repro.py b/tests/func/test_repro.py
index <HASH>..<HASH> 100644
--- a/tests/func/test_repro.py
+++ b/tests/func/test_repro.py
@@ -964,8 +964,8 @@ class TestReproExternalS3(TestReproExternalBase):
return "aws s3 cp {} {}".format(i, o)
def write(self, bucket, key, body):
- ... | test: s3: try using boto3.client | py |
diff --git a/backtrader/feed.py b/backtrader/feed.py
index <HASH>..<HASH> 100644
--- a/backtrader/feed.py
+++ b/backtrader/feed.py
@@ -206,8 +206,15 @@ class AbstractDataBase(with_metaclass(MetaAbstractDataBase,
return num2date(dt, tz or self._tz, naive)
- def do_qcheck(self, onoff):
- self._qche... | Support adaptive qcheck time and reporting of live data available | py |
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
index <HASH>..<HASH> 100644
--- a/tests/test_pytest_cov.py
+++ b/tests/test_pytest_cov.py
@@ -748,15 +748,21 @@ def test_dist_subprocess_not_collocated(testdir, tmpdir):
dir1 = tmpdir.mkdir('dir1')
dir2 = tmpdir.mkdir('dir2')
-
+ testdir.tm... | Add a coveragerc with path configuration. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -14,16 +14,12 @@
import os
import sys
-import unittest.mock
-
-MOCK_MODULES = ['lxml']
-for mod_name in MOCK_MODULES:
- sys.modules[mod_name] = unittest.mock.Mock()
-
# If ex... | Reworked doc generation to fix newly occurring autodoc problem. | py |
diff --git a/python/ray/_private/runtime_env/validation.py b/python/ray/_private/runtime_env/validation.py
index <HASH>..<HASH> 100644
--- a/python/ray/_private/runtime_env/validation.py
+++ b/python/ray/_private/runtime_env/validation.py
@@ -225,8 +225,9 @@ class ParsedRuntimeEnv(dict):
"""
known_fields: S... | [Runtime Env] add excludes to known fields for runtime env (#<I>) | py |
diff --git a/salt/utils/network.py b/salt/utils/network.py
index <HASH>..<HASH> 100644
--- a/salt/utils/network.py
+++ b/salt/utils/network.py
@@ -896,6 +896,7 @@ def in_subnet(cidr, addr=None):
if addr is None:
addr = ip_addrs()
+ addr.extend(ip_addrs6())
elif isinstance(addr, six.string_ty... | salt.utils.network.in_subnet should check both ipv4 and ipv6 | py |
diff --git a/shinken/daemons/brokerdaemon.py b/shinken/daemons/brokerdaemon.py
index <HASH>..<HASH> 100644
--- a/shinken/daemons/brokerdaemon.py
+++ b/shinken/daemons/brokerdaemon.py
@@ -51,7 +51,7 @@ class IStats(Interface):
doc = 'Get raw stats from the daemon'
def get_raw_stats(self):
app = self.a... | change res of get_raw_stats from dict to list | py |
diff --git a/perfdump/models.py b/perfdump/models.py
index <HASH>..<HASH> 100644
--- a/perfdump/models.py
+++ b/perfdump/models.py
@@ -184,7 +184,10 @@ class BaseTimeModel(object):
"""
cur = cls.get_cursor()
- q = "SELECT file, SUM(elapsed) as sum_elapsed FROM {} ORDER BY sum_elapsed ... | bug: Fix Query To Get Slowest Per-File Tests * The query lacked a GROUP BY clause and so collapsed all the file names down into a single one. | py |
diff --git a/txtorcon/onion.py b/txtorcon/onion.py
index <HASH>..<HASH> 100644
--- a/txtorcon/onion.py
+++ b/txtorcon/onion.py
@@ -1311,11 +1311,20 @@ def _validate_ports(reactor, ports):
try:
local = int(local)
except ValueError:
- if not local.startswith('unix... | allow ip-addresses in the 2-tuples | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -54,9 +54,9 @@ copyright = '2014, Evan Cordell'
# built documents.
#
# The short X.Y version.
-version = '0.1.0'
+version = '0.7.0'
# The full version, including alpha/beta/rc tags.
-release = '0.1.0'
+rele... | Bring docs version up to date | py |
diff --git a/emma2/coordinates/tica.py b/emma2/coordinates/tica.py
index <HASH>..<HASH> 100644
--- a/emma2/coordinates/tica.py
+++ b/emma2/coordinates/tica.py
@@ -92,6 +92,10 @@ class Amuse:
if not files:
raise Exception('No input trajectories were given.')
+ # case for a single f... | [tica] is a single file is given to compute() wrap it in a list. | py |
diff --git a/pypeerassets/provider/cryptoid.py b/pypeerassets/provider/cryptoid.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/provider/cryptoid.py
+++ b/pypeerassets/provider/cryptoid.py
@@ -52,12 +52,11 @@ class Cryptoid(Provider):
return cls.api_req('getblockcount')
@classmethod
- def getblock(... | upstream changed getblock api. | py |
diff --git a/tools/profiling/microbenchmarks/bm_json.py b/tools/profiling/microbenchmarks/bm_json.py
index <HASH>..<HASH> 100644
--- a/tools/profiling/microbenchmarks/bm_json.py
+++ b/tools/profiling/microbenchmarks/bm_json.py
@@ -81,7 +81,7 @@ _BM_SPECS = {
'dyn': ['end_of_stream', 'request_size'],
},
... | update specs file for benchmark (#<I>) | py |
diff --git a/numina/core/requirements.py b/numina/core/requirements.py
index <HASH>..<HASH> 100644
--- a/numina/core/requirements.py
+++ b/numina/core/requirements.py
@@ -165,11 +165,13 @@ class Requirement(object):
:param optional: Make the Requirement optional
'''
- def __init__(self, descripti... | Added validate argument to Requirement | py |
diff --git a/get-poetry.py b/get-poetry.py
index <HASH>..<HASH> 100644
--- a/get-poetry.py
+++ b/get-poetry.py
@@ -317,7 +317,7 @@ class Installer:
r"v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?"
"("
"[._-]?"
- r"(?:(stable|beta|b|RC|alpha|a|patch|pl|p)((?:[.-]?\d+)*)?)?"
+ r"(?:... | Add 'rc' to VERSION_REGEX The previous VERSION_REGEX string only checks for 'RC', however, the latest RC submitted to the poetry project is '<I>rc1' which fails the regex test for allowing installation of PREVIEW releases. fixes: <URL> | py |
diff --git a/digitalocean/tests/test_manager.py b/digitalocean/tests/test_manager.py
index <HASH>..<HASH> 100644
--- a/digitalocean/tests/test_manager.py
+++ b/digitalocean/tests/test_manager.py
@@ -487,7 +487,7 @@ class TestManager(BaseTest):
def test_get_all_tags(self):
data = self.load_from_file('tags/... | Update test_get_all_tags to remove trailing slash from assertion request | py |
diff --git a/src/toil/test/src/resumabilityTest.py b/src/toil/test/src/resumabilityTest.py
index <HASH>..<HASH> 100644
--- a/src/toil/test/src/resumabilityTest.py
+++ b/src/toil/test/src/resumabilityTest.py
@@ -35,6 +35,7 @@ class ResumabilityTest(ToilTest):
"""
options = Job.Runner.getDefaultOptions(... | change fixed a test that is supposed to break | py |
diff --git a/entity/__init__.py b/entity/__init__.py
index <HASH>..<HASH> 100644
--- a/entity/__init__.py
+++ b/entity/__init__.py
@@ -1,4 +1,4 @@
from .version import __version__
from .tasks import SyncEntitiesTask
-from .models import EntityModelMixin, Entity, BaseEntityModel, EntityModelManager
+from .models impor... | Update __init__.py Added EntityRelationship to the available models | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -138,7 +138,7 @@ class Command:
self.execstr = execstr
self.helpstr = ''
-def globalCommand(keystrokes, longname, execstr):
+def globalCommand(keystrokes, longname, execs... | [vdtui] allow globalCommand/addCommand to take helpstr | py |
diff --git a/estnltk_core/estnltk_core/base_text.py b/estnltk_core/estnltk_core/base_text.py
index <HASH>..<HASH> 100644
--- a/estnltk_core/estnltk_core/base_text.py
+++ b/estnltk_core/estnltk_core/base_text.py
@@ -137,11 +137,9 @@ class BaseText:
@property
def attributes(self) -> DefaultDict[str, List[str]]:... | Updated BaseText docstrings | py |
diff --git a/iotileship/iotile/ship/recipe_manager.py b/iotileship/iotile/ship/recipe_manager.py
index <HASH>..<HASH> 100644
--- a/iotileship/iotile/ship/recipe_manager.py
+++ b/iotileship/iotile/ship/recipe_manager.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, print_function
+from __future__ im... | revert import __future__ line | py |
diff --git a/gglsbl/protocol.py b/gglsbl/protocol.py
index <HASH>..<HASH> 100644
--- a/gglsbl/protocol.py
+++ b/gglsbl/protocol.py
@@ -51,6 +51,10 @@ def autoretry(func):
wait_for = min(2**(_fail_count - 1) * 15 * 60 * (1 + random.random()), 24*60*60)
log.exception('Call Failed for {} ... | Handle transient socket error in client library | py |
diff --git a/subliminal/core.py b/subliminal/core.py
index <HASH>..<HASH> 100644
--- a/subliminal/core.py
+++ b/subliminal/core.py
@@ -68,7 +68,7 @@ class Subliminal(object):
"""Main Subliminal class"""
def __init__(self, cache_dir=None, workers=None, multi=False, force=False,
- max_depth=No... | Add plugins and languages args to constructor | py |
diff --git a/python/test/test_rdds.py b/python/test/test_rdds.py
index <HASH>..<HASH> 100644
--- a/python/test/test_rdds.py
+++ b/python/test/test_rdds.py
@@ -171,14 +171,11 @@ class TestSeriesBinaryLoader(RDDsSparkTestCase):
class TestImagesFileLoaders(RDDsSparkTestCase):
@staticmethod
def _findTestResource... | change test resources dir getter to resolve from realpath of __file__ | py |
diff --git a/aiohttp_sse/__init__.py b/aiohttp_sse/__init__.py
index <HASH>..<HASH> 100644
--- a/aiohttp_sse/__init__.py
+++ b/aiohttp_sse/__init__.py
@@ -38,6 +38,7 @@ class EventSourceResponse(StreamResponse):
self.headers['Content-Type'] = 'text/event-stream'
self.headers['Cache-Control'] = 'no-cac... | Update __init__.py (#<I>) Added a header to prevent proxy caching when running behind nginx. | py |
diff --git a/tests/unit/modules/test_file.py b/tests/unit/modules/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_file.py
+++ b/tests/unit/modules/test_file.py
@@ -872,6 +872,18 @@ class FileModuleTestCase(TestCase, LoaderModuleMockMixin):
assert err_msg in str(cmd_err)
@skipI... | Add unit test for file.line on an empty content while not deleting anything | py |
diff --git a/test/test_queue_consumer.py b/test/test_queue_consumer.py
index <HASH>..<HASH> 100644
--- a/test/test_queue_consumer.py
+++ b/test/test_queue_consumer.py
@@ -471,12 +471,11 @@ def test_greenthread_raise_in_kill(container_factory, rabbit_config, logger):
# kills the queue_consumer, it should warn inste... | update cherry-picked test (patched method no longer exists) | py |
diff --git a/zipline/pipeline/loaders/blaze/core.py b/zipline/pipeline/loaders/blaze/core.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/loaders/blaze/core.py
+++ b/zipline/pipeline/loaders/blaze/core.py
@@ -197,6 +197,7 @@ is_invalid_deltas_node = complement(flip(isinstance, valid_deltas_node_types))
get__name... | BUG: ignore sids in deltas missing from asset index. MAINT: use correct debugger. MAINT: fix set add. WIP: move sid filtering. WIP: move filtering logic. WIP: working test. TST: clean up test. STY: fix flake8. STY: fix flake8. | py |
diff --git a/anchorhub/settings/default_settings.py b/anchorhub/settings/default_settings.py
index <HASH>..<HASH> 100644
--- a/anchorhub/settings/default_settings.py
+++ b/anchorhub/settings/default_settings.py
@@ -5,7 +5,7 @@ Defaults for all settings used by AnchorHub
WRAPPER = '{ }'
INPUT = '.'
-OUTPUT = 'out-an... | Make default output consistent with old version I flipped the hyphen around: should be 'anchorhub-out', accidentally was 'out-anchorhub' | py |
diff --git a/pnc_cli/utils.py b/pnc_cli/utils.py
index <HASH>..<HASH> 100644
--- a/pnc_cli/utils.py
+++ b/pnc_cli/utils.py
@@ -25,7 +25,13 @@ from pnc_cli.swagger_client.rest import ApiException
__author__ = 'thauser'
-CONFIG_LOCATION = os.path.expanduser("~") + "/.config/pnc-cli/"
+envconfig = os.environ.get('PNC... | [NCL-<I>] Allow override config location using env variable When PNC_CONFIG_LOCATION environment variable is set, this is folder where pnc-cli will look for its configuration. Otherwise it looks into ~/.config/pnc-cli/. | py |
diff --git a/pyinfra/api/util.py b/pyinfra/api/util.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/util.py
+++ b/pyinfra/api/util.py
@@ -209,6 +209,18 @@ def log_host_command_error(host, e, timeout=0):
),
))
+ elif isinstance(e, IOError):
+ logger.error('{0}{1}'.format(
+ ... | Properly handle `IOError`s and (re)raise unexpected exceptions. | py |
diff --git a/ariba/samtools_variants.py b/ariba/samtools_variants.py
index <HASH>..<HASH> 100644
--- a/ariba/samtools_variants.py
+++ b/ariba/samtools_variants.py
@@ -172,4 +172,5 @@ class SamtoolsVariants:
def run(self):
self._make_vcf_and_read_depths_files()
-
+ # This is to make this object pi... | Set filehandle to None so pickling works | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -402,7 +402,7 @@ def file_should_be_skipped(
position = os.path.split(position[0])
for glob in config['skip_glob']:
- if fnmatch.fnmatch(filename, glob):
+ if f... | Fix issue with */ style glob tests | py |
diff --git a/video-downloader.py b/video-downloader.py
index <HASH>..<HASH> 100644
--- a/video-downloader.py
+++ b/video-downloader.py
@@ -19,8 +19,10 @@ Public License along with py-video-downloader. If not, see
'''
from optparse import OptionParser, OptionGroup
-import providers
import sys
+import os
+
+... | Attempt to remove a partially downloaded file on KeyboardInterrupt. Closes #4. | py |
diff --git a/firetv/__init__.py b/firetv/__init__.py
index <HASH>..<HASH> 100644
--- a/firetv/__init__.py
+++ b/firetv/__init__.py
@@ -108,7 +108,7 @@ class FireTV:
serial=self.host)
except socket_error as serr:
if serr.errno != errno.ECONNREFUSED:
- raise serr
+ ... | Act as commented, do not fail if connection does, just set stated to disconnected. Vital if using multple devices and one fails, others continue to work. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -95,7 +95,8 @@ html_theme = 'sphinx_rtd_theme'
# documentation.
#
html_theme_options = {
- 'analytics_id': 'UA-83738774-2'
+ 'analytics_id': 'UA-83738774-2',
+ 'navigatio... | feat(docs): navigate with left/right arrow keys (#<I>) * feat(docs): navigate with left/right arrow keys * fix: add missing comma | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from os import path
from distutils.version import LooseVersion
from setuptools import find_packages, setup
-VERSION = '1.24.1'
+VERSION = '1.25.0rc1'
# Import README.md into long_description
pwd = path.abs... | Bump package version to <I>rc1 (pre-release) | py |
diff --git a/rpc/checker/checker_api.py b/rpc/checker/checker_api.py
index <HASH>..<HASH> 100644
--- a/rpc/checker/checker_api.py
+++ b/rpc/checker/checker_api.py
@@ -37,7 +37,7 @@ def is_valid_proof(key, value, username, proof_url):
return False
search_text = html2text(r.text)
- if key == "twitter":... | if user not in DB, get from blockchain bug fix for verifications | py |
diff --git a/eventsourcing/tests/test_transcoding.py b/eventsourcing/tests/test_transcoding.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/tests/test_transcoding.py
+++ b/eventsourcing/tests/test_transcoding.py
@@ -1,4 +1,5 @@
import datetime
+from collections import deque
from unittest import TestCase
from uuid... | Added test for transcoding deque. | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -247,7 +247,7 @@ LANG_RELEASE_MATRIX = {
('v1.31.1', ReleaseInfo()),
('v1.32.2', Rel... | Add grpc-java <I> to client matrix | py |
diff --git a/src/arcresthelper/publishingtools.py b/src/arcresthelper/publishingtools.py
index <HASH>..<HASH> 100644
--- a/src/arcresthelper/publishingtools.py
+++ b/src/arcresthelper/publishingtools.py
@@ -1446,7 +1446,7 @@ class publishingtools(securityhandlerhelper):
admin = arcrest.manageorg.Admini... | resolved issue when calling a property as a function in arcresthelper/publishingtools.py | py |
diff --git a/globus_cli/services/transfer/endpoint/search.py b/globus_cli/services/transfer/endpoint/search.py
index <HASH>..<HASH> 100644
--- a/globus_cli/services/transfer/endpoint/search.py
+++ b/globus_cli/services/transfer/endpoint/search.py
@@ -17,13 +17,12 @@ from globus_cli.services.transfer.helpers import (
... | Update search to make filter_fulltext positional This is a positional argument now, but still optional. Because the vast majority of searches will use this value, it makes sense for it to be a positional arg. However, by making it the only such argument, and leaving it optional, we allow for searches that omit it and ... | py |
diff --git a/openquake/commands/purge.py b/openquake/commands/purge.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/purge.py
+++ b/openquake/commands/purge.py
@@ -29,10 +29,12 @@ def purge_one(calc_id, user):
Remove one calculation ID from the database and remove its datastore
"""
hdf5path = os.p... | Improved purge_one Former-commit-id: a<I>cdf6db0bc<I>b1a8b<I>e1dc5e5b<I>c<I>a<I>a | py |
diff --git a/km3pipe/io/hdf5.py b/km3pipe/io/hdf5.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/hdf5.py
+++ b/km3pipe/io/hdf5.py
@@ -51,6 +51,8 @@ class HDF5Sink(Module):
self._tables = {}
def _write_table(self, where, data, title=''):
+ if len(data) <= 0:
+ return
try:
... | don't write empy iterables | py |
diff --git a/treeherder/autoclassify/autoclassify.py b/treeherder/autoclassify/autoclassify.py
index <HASH>..<HASH> 100644
--- a/treeherder/autoclassify/autoclassify.py
+++ b/treeherder/autoclassify/autoclassify.py
@@ -2,6 +2,7 @@
import inspect
import logging
+import newrelic.agent
from django.db.utils import Int... | track which matcher gets the highest score for an error log | py |
diff --git a/tests/test_stackapi.py b/tests/test_stackapi.py
index <HASH>..<HASH> 100644
--- a/tests/test_stackapi.py
+++ b/tests/test_stackapi.py
@@ -32,6 +32,14 @@ class Test_StackAPI(unittest.TestCase):
site = StackAPI()
self.assertEqual('No Site Name provided', str(cm.exception))
+ de... | Adds test to check that missing endpoint fails correctly | py |
diff --git a/master/docs/conf.py b/master/docs/conf.py
index <HASH>..<HASH> 100755
--- a/master/docs/conf.py
+++ b/master/docs/conf.py
@@ -11,6 +11,8 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
+from __future__ import print_function
+
import os
import s... | disable spellchecking extension if Enchant native library is not installed | py |
diff --git a/zinnia/tests/entry.py b/zinnia/tests/entry.py
index <HASH>..<HASH> 100644
--- a/zinnia/tests/entry.py
+++ b/zinnia/tests/entry.py
@@ -261,9 +261,13 @@ class EntryGetBaseModelTestCase(TestCase):
self.assertEquals(get_base_model(), EntryAbstractClass)
models_settings.ENTRY_BASE_MODEL = 'm... | fix tests for python<I>, part two | py |
diff --git a/stanza/resources/common.py b/stanza/resources/common.py
index <HASH>..<HASH> 100644
--- a/stanza/resources/common.py
+++ b/stanza/resources/common.py
@@ -10,6 +10,7 @@ import os
from pathlib import Path
import requests
import shutil
+import tempfile
import zipfile
from tqdm.auto import tqdm
@@ -120,... | Download files to a tempdir created underneath the expected destination, then use os.replace to move the files (atomically if supported by the file system). The goal is to ensure that two processes downloading the same file don't clobber each other with partially downloaded junk. <URL> | py |
diff --git a/fluent_contents/managers.py b/fluent_contents/managers.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/managers.py
+++ b/fluent_contents/managers.py
@@ -53,8 +53,10 @@ def get_parent_lookup_kwargs(parent_object):
parent_type__isnull=True,
parent_id=0
)
- else:
+ ... | Raise ValueError when using .parent() on an invalid value. Also prevents errors further down the road which are harder to understand for template designers. | py |
diff --git a/multihist.py b/multihist.py
index <HASH>..<HASH> 100644
--- a/multihist.py
+++ b/multihist.py
@@ -558,12 +558,13 @@ class Histdd(MultiHistBase):
##
# Other stuff
##
- def rebin(self, *factors, order=0):
+ def rebin(self, *factors, order=1):
"""Return a new histogram that is 'r... | Linear interpolation for rebinning | py |
diff --git a/generate_bindings.py b/generate_bindings.py
index <HASH>..<HASH> 100644
--- a/generate_bindings.py
+++ b/generate_bindings.py
@@ -37,7 +37,7 @@ def build_python(cpython_path, version):
def extract_bindings(cpython_path, version, configure=False):
print("Generating bindings for python %s from repo a... | trivial fix for generate_bindings script The script to generate bindings was broken (not naming the binding appropiately or disabling clippy warnings). Fix. | py |
diff --git a/ofp/v0x02/types.py b/ofp/v0x02/types.py
index <HASH>..<HASH> 100644
--- a/ofp/v0x02/types.py
+++ b/ofp/v0x02/types.py
@@ -21,7 +21,7 @@ class GenericType():
class UBInt8(GenericType):
- fmt = ">B"
+ fmt = "!B"
class UBInt8Array(GenericType):
@@ -29,7 +29,7 @@ class UBInt8Array(GenericType):... | fixed struct format to use network format (big endian) | py |
diff --git a/chess/svg.py b/chess/svg.py
index <HASH>..<HASH> 100644
--- a/chess/svg.py
+++ b/chess/svg.py
@@ -191,6 +191,11 @@ def board(board=None, squares=None, flipped=False, coordinates=True, lastmove=No
xtail = margin + (tail_file + 0.5 if not flipped else 8 - tail_file) * square_size
ytail = ma... | Draw a circle for arrows of length 0 | py |
diff --git a/pkg_resources.py b/pkg_resources.py
index <HASH>..<HASH> 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -755,6 +755,15 @@ def find_distributions(path_item):
return finder(importer,path_item)
+def find_in_zip(importer,path_item):
+ # for now, we only yield the .egg file itself, if appli... | Correctly recognize .egg files that are already on sys.path (or whatever path AvailableDistributions is scanning) --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/tests/test_global_opt.py b/tests/test_global_opt.py
index <HASH>..<HASH> 100644
--- a/tests/test_global_opt.py
+++ b/tests/test_global_opt.py
@@ -68,7 +68,7 @@ class TestGlobalOptGaussian(unittest.TestCase):
# On to the main event
fit = Fit(self.model, self.xx, self.yy, self.ydata,
... | Changes in scipy <I> mean differential evolution needs more iterations for our test to pass | py |
diff --git a/tests/test_deformers.py b/tests/test_deformers.py
index <HASH>..<HASH> 100644
--- a/tests/test_deformers.py
+++ b/tests/test_deformers.py
@@ -458,6 +458,14 @@ def test_background_no_file():
muda.deformers.BackgroundNoise(files='does-not-exist.ogg', n_samples=1)
+@pytest.mark.xfail(raises=RuntimeEr... | write test_background_short_file This test makes sure that a `BackgroundNoise` object raises an exception when `transforming` an input signal that is longer than any of the files for background noise. Milestone: <I> | py |
diff --git a/Lib/ufo2fdk/fontInfoData.py b/Lib/ufo2fdk/fontInfoData.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2fdk/fontInfoData.py
+++ b/Lib/ufo2fdk/fontInfoData.py
@@ -167,6 +167,7 @@ _postscriptFontNameExceptions = set("[](){}<>/%")
_postscriptFontNameAllowed = set([unichr(i) for i in xrange(33, 137)])
def norm... | Make sure the string is a unicode. | py |
diff --git a/cumulusci/tasks/bulkdata/mapping_parser.py b/cumulusci/tasks/bulkdata/mapping_parser.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/bulkdata/mapping_parser.py
+++ b/cumulusci/tasks/bulkdata/mapping_parser.py
@@ -184,7 +184,7 @@ class MappingStep(CCIDictModel):
logger.warning(
... | Undo change that should be introduced in other branch. | py |
diff --git a/examples/splode.py b/examples/splode.py
index <HASH>..<HASH> 100644
--- a/examples/splode.py
+++ b/examples/splode.py
@@ -16,6 +16,7 @@ __version__ = '$Id$'
import os
import math
+import time
from pyglet import image
from pyglet.gl import *
@@ -102,6 +103,7 @@ if __name__ == '__main__':
win.s... | - Add half-second delay before exploding | py |
diff --git a/src/Lib/urllib/request.py b/src/Lib/urllib/request.py
index <HASH>..<HASH> 100644
--- a/src/Lib/urllib/request.py
+++ b/src/Lib/urllib/request.py
@@ -20,10 +20,11 @@ def urlopen(url, data=None, timeout=None):
if timeout is not None:
_ajax.set_timeout(timeout)
- _ajax.open('GET', url, Fals... | allow post with urllib.request.urlopen | py |
diff --git a/landez/tiles.py b/landez/tiles.py
index <HASH>..<HASH> 100644
--- a/landez/tiles.py
+++ b/landez/tiles.py
@@ -201,7 +201,7 @@ class TilesManager(object):
try:
# Prepare tile of overlay, if available
overlay = self._tile_image(layer.tile((z, x, y)))
- ... | Do not crash when overlay tile data is not a valid image | py |
diff --git a/salt/runners/reactor.py b/salt/runners/reactor.py
index <HASH>..<HASH> 100644
--- a/salt/runners/reactor.py
+++ b/salt/runners/reactor.py
@@ -12,11 +12,9 @@ engine configuration for the Salt master.
- reactor
"""
-# Import python libs
import logging
-# Import salt libs
import salt.config
... | Drop Py2 and six on salt/runners/reactor.py | py |
diff --git a/gsh/control_commands_helpers.py b/gsh/control_commands_helpers.py
index <HASH>..<HASH> 100644
--- a/gsh/control_commands_helpers.py
+++ b/gsh/control_commands_helpers.py
@@ -28,14 +28,15 @@ from gsh import remote_dispatcher
def toggle_shells(command, enable):
"""Enable or disable the specified shells... | Call selected_shells() only once, to warn about missing shells only once. In the case where we would {dis,en}able everybody before {en,dis}abling someone, don't do it if the selection turns to be empty. | py |
diff --git a/nidmresults/objects/inference.py b/nidmresults/objects/inference.py
index <HASH>..<HASH> 100644
--- a/nidmresults/objects/inference.py
+++ b/nidmresults/objects/inference.py
@@ -138,11 +138,13 @@ class ExcursionSet(NIDMObject):
export_dir=None, oid=None, format=None, label=None,
... | filename=location only if file is not copied to export_dir (i.e. if export_dir is None) | py |
diff --git a/spyder/config/base.py b/spyder/config/base.py
index <HASH>..<HASH> 100644
--- a/spyder/config/base.py
+++ b/spyder/config/base.py
@@ -352,7 +352,7 @@ LANGUAGE_CODES = {
}
# Disabled languages because their translations are outdated or incomplete
-DISABLED_LANGUAGES = ['hu', 'ru', 'pl']
+DISABLED_LA... | Enable Russian support [ci skip] | py |
diff --git a/moderator/admin.py b/moderator/admin.py
index <HASH>..<HASH> 100644
--- a/moderator/admin.py
+++ b/moderator/admin.py
@@ -74,7 +74,7 @@ class CommentAdmin(DjangoCommentsAdmin):
For proxy models with cls apptribute limit comments to those classified as cls.
"""
qs = super(CommentA... | also show comments where user is not set | py |
diff --git a/spyder/plugins/editor/widgets/tests/test_introspection.py b/spyder/plugins/editor/widgets/tests/test_introspection.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/tests/test_introspection.py
+++ b/spyder/plugins/editor/widgets/tests/test_introspection.py
@@ -405,6 +405,16 @@ def test_com... | add tests for having the same prefix than the returned completions | py |
diff --git a/phy/utils/tests/test_context.py b/phy/utils/tests/test_context.py
index <HASH>..<HASH> 100644
--- a/phy/utils/tests/test_context.py
+++ b/phy/utils/tests/test_context.py
@@ -10,8 +10,7 @@ import os
import numpy as np
from numpy.testing import assert_array_equal as ae
-from pytest import fixture, yield_... | Done ipy_client fixtures | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.