diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openquake/risk/job/probabilistic.py b/openquake/risk/job/probabilistic.py
index <HASH>..<HASH> 100644
--- a/openquake/risk/job/probabilistic.py
+++ b/openquake/risk/job/probabilistic.py
@@ -9,6 +9,7 @@ compute_risk task
import json
from celery.exceptions import TimeoutError
+from scipy.stats import nor... | test_uncorrelated passes Former-commit-id: 5bd<I>fb<I>ce3ddd8ef0b<I>b<I>fc<I>c<I>e7 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,8 @@ config = {
'matplotlib',
'pandas',
'scipy',
- 'python-coveralls' ],
+ 'covera... | Brought requirements in setup.py up to date | py |
diff --git a/pypsa/graph.py b/pypsa/graph.py
index <HASH>..<HASH> 100644
--- a/pypsa/graph.py
+++ b/pypsa/graph.py
@@ -23,7 +23,7 @@ import numpy as np
from .descriptors import OrderedGraph
-def graph(network, branch_components=None):
+def graph(network, branch_components=None, weight=None):
"""Build networkx... | graph: graph accepts a column_name, which is used as edge weight find_tree and find_cycles use this to ignore branches with infinite impedance. | py |
diff --git a/astroid/brain/brain_collections.py b/astroid/brain/brain_collections.py
index <HASH>..<HASH> 100644
--- a/astroid/brain/brain_collections.py
+++ b/astroid/brain/brain_collections.py
@@ -32,6 +32,8 @@ def _collections_transform():
def __getitem__(self, index): pass
def __setitem__(self, in... | Improve inference of OrderedDict (#<I>) | py |
diff --git a/vel/rl/reinforcers/policy_gradient/ppo.py b/vel/rl/reinforcers/policy_gradient/ppo.py
index <HASH>..<HASH> 100644
--- a/vel/rl/reinforcers/policy_gradient/ppo.py
+++ b/vel/rl/reinforcers/policy_gradient/ppo.py
@@ -24,7 +24,7 @@ class PpoPolicyGradient(PolicyGradientBase):
else:
raise ... | Data dict is mandatory - 2. | py |
diff --git a/montblanc/solvers/cuda_solver.py b/montblanc/solvers/cuda_solver.py
index <HASH>..<HASH> 100644
--- a/montblanc/solvers/cuda_solver.py
+++ b/montblanc/solvers/cuda_solver.py
@@ -3,10 +3,6 @@ import types
from weakref import WeakKeyDictionary
-import pycuda
-import pycuda.driver as cuda
-import pycuda.... | Defer PyCUDA imports from module to class methods. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,11 @@ module_render = Extension('sphviewer/extensions/render', sources = ['sphviewer/e
extra_compile_args=['-fopenmp','-w'],
extra_link_args=['-lgomp'])
+module... | setup.py is able to compile the new hsv tool | py |
diff --git a/Lib/fontbakery/specifications/hhea.py b/Lib/fontbakery/specifications/hhea.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/specifications/hhea.py
+++ b/Lib/fontbakery/specifications/hhea.py
@@ -8,7 +8,7 @@ from fontbakery.message import Message
from fontbakery.fonts_spec import spec_factory # NOQA pyl... | Import shared condition to make hhea work standalone | py |
diff --git a/pyes/filters.py b/pyes/filters.py
index <HASH>..<HASH> 100644
--- a/pyes/filters.py
+++ b/pyes/filters.py
@@ -430,6 +430,28 @@ class GeoPolygonFilter(Filter):
return {self.field: {"points": self.points}}
+class GeoShapeFilter(Filter):
+ """http://www.elasticsearch.org/guide/en/elasticsearch... | GeoShapeFilter: first version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
-__version__ = '0.4.1'
+__version__ = '0.4.2'
setup( | Bumped version number to <I> | py |
diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
index <HASH>..<HASH> 100644
--- a/tests/test_web_functional.py
+++ b/tests/test_web_functional.py
@@ -154,6 +154,7 @@ class TestWebFunctional(unittest.TestCase):
self.assertEqual(['sample.crt'], list(data.keys()))
for fs ... | Get rid of resourse leaks: close opened files | py |
diff --git a/annotation/reformat.py b/annotation/reformat.py
index <HASH>..<HASH> 100644
--- a/annotation/reformat.py
+++ b/annotation/reformat.py
@@ -79,8 +79,10 @@ def rename(args):
genes.sort(key=genes.key)
idsfile = prefix + ".ids"
newbedfile = prefix + ".bed"
- fw = open(idsfile, "w")
+ gap_in... | if chromosome, start the gene number at the gap_increment | py |
diff --git a/tests/example_project/settings/base.py b/tests/example_project/settings/base.py
index <HASH>..<HASH> 100644
--- a/tests/example_project/settings/base.py
+++ b/tests/example_project/settings/base.py
@@ -91,6 +91,7 @@ INSTALLED_APPS = (
'ella.contact_form',
'ella.discussions',
'ella.imports',
... | Added jaknato.instruction to "newman"ized applications. | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100755
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -41,7 +41,16 @@ except ImportError:
import argparse
from appdirs import user_data_dir
import sh
-from colorama import Style, Fore
+if sys.s... | suppress colorization if stdout is not a tty | py |
diff --git a/src/REST/__init__.py b/src/REST/__init__.py
index <HASH>..<HASH> 100644
--- a/src/REST/__init__.py
+++ b/src/REST/__init__.py
@@ -8,7 +8,7 @@ from robot.api import logger
from .keywords import Keywords
-__version__ = '1.0.0.dev10'
+__version__ = '1.0.0.dev11'
class REST(Keywords): | Set next version to '<I>.de<I>' | py |
diff --git a/src/toil/lib/docker.py b/src/toil/lib/docker.py
index <HASH>..<HASH> 100644
--- a/src/toil/lib/docker.py
+++ b/src/toil/lib/docker.py
@@ -61,6 +61,7 @@ def subprocessDockerCall(job,
dockerParameters=None,
checkOutput=True,
outfil... | option to get stderr from subprocessDockerCall | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -307,7 +307,7 @@ ipynb-md.func = sos.jupyter.converter:notebook_to_md
'image': ['wand'],
'md': ['markdown'],
'R': ['feather-format', 'pandas', 'numpy'],
- 'rq': ['rq', 'r... | Remove dependency on rq-dashboard | py |
diff --git a/visidata/threads.py b/visidata/threads.py
index <HASH>..<HASH> 100644
--- a/visidata/threads.py
+++ b/visidata/threads.py
@@ -41,7 +41,7 @@ class _Progress:
def __init__(self, iterable=None, gerund="", total=None, sheet=None):
self.iterable = iterable
if total is None:
- i... | [progress] check if iterable is None, not bool/true | py |
diff --git a/discord/member.py b/discord/member.py
index <HASH>..<HASH> 100644
--- a/discord/member.py
+++ b/discord/member.py
@@ -238,11 +238,13 @@ class Member(discord.abc.Messageable, _BaseUser):
"""
default_colour = Colour.default()
+ roles = self.roles[1:] # remove @everyone
+
#... | Properly sort roles and discard everyone role in Member.colour. | py |
diff --git a/bottom/client.py b/bottom/client.py
index <HASH>..<HASH> 100644
--- a/bottom/client.py
+++ b/bottom/client.py
@@ -2,7 +2,8 @@ import asyncio
import collections
import functools
import logging
-from typing import Any, Callable, Dict, List, Optional, Tuple # noqa
+import ssl as _ssl
+from typing import A... | Allows users to specify their own custom SSL context. Users may wish to connect to servers with a self-signed SSL certificate. This change lets users create their own SSL context to be passed into the client. | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -94,6 +94,7 @@ class Dimension(param.Parameterized):
# Defines default formatting by type
type_formatters = {}
+ unit_formatter = ' ({u... | Added unit_formatter class attribute to Dimension | py |
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py
index <HASH>..<HASH> 100644
--- a/jsonschema/exceptions.py
+++ b/jsonschema/exceptions.py
@@ -48,9 +48,9 @@ class _Error(Exception):
return unicode(self).encode("utf-8")
def __unicode__(self):
- if _unset in (
- self.vali... | Fixes #<I>, ValidationError.__unicode__(): use 'is' operator instead of '==' for unset-check Test-case now passes OK. | py |
diff --git a/mistletoe/span_token.py b/mistletoe/span_token.py
index <HASH>..<HASH> 100644
--- a/mistletoe/span_token.py
+++ b/mistletoe/span_token.py
@@ -130,9 +130,9 @@ class InlineCode(SpanToken):
"""
Inline code tokens. ("`some code`")
"""
- pattern = re.compile(r"`(.+?)`", re.DOTALL)
+ pattern... | allow multiple backticks for InlineCode | py |
diff --git a/flask_sqlalchemy_bundle/bundle_config.py b/flask_sqlalchemy_bundle/bundle_config.py
index <HASH>..<HASH> 100644
--- a/flask_sqlalchemy_bundle/bundle_config.py
+++ b/flask_sqlalchemy_bundle/bundle_config.py
@@ -1,7 +1,18 @@
+# import flask_sqlalchemy_bundle into generated migrations when needed
+# http://al... | automatically import flask_sqlalchemy_bundle when needed in generated migration scripts | py |
diff --git a/openpnm/utils/Project.py b/openpnm/utils/Project.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/Project.py
+++ b/openpnm/utils/Project.py
@@ -74,7 +74,8 @@ class Project(list):
r"""
This function is used to add objects to the project. Arguments can
be single OpenPNM objects,... | Changed project.extend to ensure objects being added do have conflicting name | py |
diff --git a/redis_shard/shard.py b/redis_shard/shard.py
index <HASH>..<HASH> 100644
--- a/redis_shard/shard.py
+++ b/redis_shard/shard.py
@@ -54,7 +54,7 @@ class RedisShardAPI(object):
"lindex", "pop", "lset",
"lrem", "sadd", "srem",
"sismember", "smembers",
- "zadd", ... | support zrank in redis shard | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,7 +48,7 @@ extensions = [
'recommonmark',
]
-autodoc_mock_imports = ['cv2', 'torch', 'enum', 'pathlib']
+autodoc_mock_imports = ['cv2', 'torch', 'enum', 'pathlib', 'mmcv._ext']
# Add any paths th... | Add mmcv._ext to autodoc_mock_imports (#<I>) | py |
diff --git a/etk/extractors/spacy_ner_extractor.py b/etk/extractors/spacy_ner_extractor.py
index <HASH>..<HASH> 100644
--- a/etk/extractors/spacy_ner_extractor.py
+++ b/etk/extractors/spacy_ner_extractor.py
@@ -5,16 +5,16 @@ from typing import List
class SpacyNerExtractor(Extractor):
- def __init__(self, extrac... | ability to pass nlp to spacy ner and also remove loading of spacy model every time extract is called | py |
diff --git a/shinken/webui/plugins/user/user.py b/shinken/webui/plugins/user/user.py
index <HASH>..<HASH> 100644
--- a/shinken/webui/plugins/user/user.py
+++ b/shinken/webui/plugins/user/user.py
@@ -65,4 +65,29 @@ def save_pref():
return
-pages = {save_pref: {'routes': ['/user/save_pref'], 'method': 'POST'}}
+... | Add the page to save common prefs admin rights are required | py |
diff --git a/node.py b/node.py
index <HASH>..<HASH> 100644
--- a/node.py
+++ b/node.py
@@ -42,7 +42,7 @@ class Node(threading.Thread):
self.promiscuous = promiscuous
self.mac_addr = mac_addr or self._generate_MAC(6, 2)
self.inq = defaultdict(Queue)
- self.filters = [LoopbackFilter()] +... | Removed uneeded ")" Testing & checking for errors | py |
diff --git a/tornado/iostream.py b/tornado/iostream.py
index <HASH>..<HASH> 100644
--- a/tornado/iostream.py
+++ b/tornado/iostream.py
@@ -519,7 +519,13 @@ def _merge_prefix(deque, size):
chunk = chunk[:remaining]
prefix.append(chunk)
remaining -= len(chunk)
- deque.appendleft(b('').jo... | Use the appropriate version of ''.join() in _merge_prefix | py |
diff --git a/adjustText/adjustText.py b/adjustText/adjustText.py
index <HASH>..<HASH> 100644
--- a/adjustText/adjustText.py
+++ b/adjustText/adjustText.py
@@ -526,8 +526,8 @@ def adjust_text(texts, x=None, y=None, add_objects=None, ax=None,
dy = (np.array(d_y_text) * force_text[1] +
np.array(d_y... | Fix bug caused by variable shadowing. | py |
diff --git a/salesforce/backend/query.py b/salesforce/backend/query.py
index <HASH>..<HASH> 100644
--- a/salesforce/backend/query.py
+++ b/salesforce/backend/query.py
@@ -299,6 +299,12 @@ class CursorWrapper(object):
self.results = []
self.rowcount = None
+ def __enter__(self):
+ return self
+
+ def __exit__(s... | Fixed query.py to work with inspectdb in Django <I> | py |
diff --git a/scoop/utils.py b/scoop/utils.py
index <HASH>..<HASH> 100644
--- a/scoop/utils.py
+++ b/scoop/utils.py
@@ -39,10 +39,15 @@ localHostnames = loopbackReferences + [
socket.getfqdn().split('.')[0],
]
-localHostnames.extend([
- ip for ip in socket.gethostbyname_ex(socket.gethostname())[2]
- if... | + Added fallback when hostname is not resolvable or doesn`t have any address. | py |
diff --git a/furious/async.py b/furious/async.py
index <HASH>..<HASH> 100644
--- a/furious/async.py
+++ b/furious/async.py
@@ -186,6 +186,16 @@ class Async(object):
recursion_options = self._options.get('_recursion')
return recursion_options.get('current', 0)
+ def check_recursion_depth(self):
+ ... | Add check recursion depth method The check recursion depth method is called from to_task, and will raise an AsyncRecursionError if the task is too deeply nested. | py |
diff --git a/babelapi/data_type.py b/babelapi/data_type.py
index <HASH>..<HASH> 100644
--- a/babelapi/data_type.py
+++ b/babelapi/data_type.py
@@ -401,7 +401,7 @@ class Field(object):
class StructField(Field):
"""
- Represents a field in a composite type.
+ Represents a field of a struct.
"""
... | Add repr for UnionField. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ code with type notations. Typesafety is a means to enforce that those notations
are valid.
""",
license="LGPLv2+",
- version="2.1.1",
+ version="2.1.2",
author="Viktor Hercinger",
author_e... | version: bumped to <I> | py |
diff --git a/appinst/platforms/win32_common.py b/appinst/platforms/win32_common.py
index <HASH>..<HASH> 100644
--- a/appinst/platforms/win32_common.py
+++ b/appinst/platforms/win32_common.py
@@ -366,24 +366,8 @@ def add_shortcut(target,description,link_file,*args,**kw):
wininst.create_shortcut(target, desc... | Removing enthought-specific function as this is to be a community tool. | py |
diff --git a/graphenecommon/blockchainobject.py b/graphenecommon/blockchainobject.py
index <HASH>..<HASH> 100644
--- a/graphenecommon/blockchainobject.py
+++ b/graphenecommon/blockchainobject.py
@@ -200,6 +200,14 @@ class BlockchainObjects(Caching, list):
"""
self.store(self, key)
+ def __getitem... | Ensure we can iterate through instances of BlockchainObjects | py |
diff --git a/dpark/executor.py b/dpark/executor.py
index <HASH>..<HASH> 100755
--- a/dpark/executor.py
+++ b/dpark/executor.py
@@ -228,20 +228,20 @@ class MyExecutor(mesos.Executor):
self.killed_tasks.add(taskId.value)
def shutdown(self, driver):
- # clean work files
- if self.workdir:... | change the order when shutdown terminate worker first, then clean work dir. | py |
diff --git a/tests/pay_to_test.py b/tests/pay_to_test.py
index <HASH>..<HASH> 100755
--- a/tests/pay_to_test.py
+++ b/tests/pay_to_test.py
@@ -152,5 +152,10 @@ class ScriptTypesTest(unittest.TestCase):
tx2.sign(hash160_lookup=hash160_lookup, p2sh_lookup=p2sh_lookup)
self.assertEqual(tx2.bad_signature_... | Add a new (failing) test. | py |
diff --git a/ceam/modules/level3intervention.py b/ceam/modules/level3intervention.py
index <HASH>..<HASH> 100644
--- a/ceam/modules/level3intervention.py
+++ b/ceam/modules/level3intervention.py
@@ -21,7 +21,11 @@ class Level3InterventionModule(SimulationModule):
if label == 'ihd' or label == 'hemorrhagic_stro... | vectorized vs loop speed test | py |
diff --git a/salt/utils/config.py b/salt/utils/config.py
index <HASH>..<HASH> 100644
--- a/salt/utils/config.py
+++ b/salt/utils/config.py
@@ -501,7 +501,7 @@ class BaseConfigItemMeta(six.with_metaclass(Prepareable, type)):
for base in reversed(inspect.getmro(cls)):
validate_attributes = getattr(b... | Make the detection code work under Python <I> | py |
diff --git a/flowcraft/generator/components/assembly.py b/flowcraft/generator/components/assembly.py
index <HASH>..<HASH> 100644
--- a/flowcraft/generator/components/assembly.py
+++ b/flowcraft/generator/components/assembly.py
@@ -114,7 +114,7 @@ class Spades(Process):
"cpus": 4,
"memory": "{ ... | Update spades container to the <I> version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -35,5 +35,14 @@ setup(
author_email="him@richardkiss.com",
url="https://github.com/richardkiss/pycoin",
license="http://opensource.org/licenses/MIT",
- description="A bunch of utilities that might be helpful ... | Update setup.py description and classifiers. | py |
diff --git a/raiden/transfer/identifiers.py b/raiden/transfer/identifiers.py
index <HASH>..<HASH> 100644
--- a/raiden/transfer/identifiers.py
+++ b/raiden/transfer/identifiers.py
@@ -1,5 +1,7 @@
from dataclasses import dataclass
+from eth_utils import to_checksum_address
+
from raiden.constants import EMPTY_ADDRESS... | Added __str__ to CanonicalIdentifier | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ except ImportError:
setup(
name='django-userlog',
- version='0.1',
+ version='0.2',
description='A django apps to record user log in ip addresses and user agent',
author='Tamas Szabo',
... | Bumps version number to <I> | py |
diff --git a/tests/integration/test_orders_api.py b/tests/integration/test_orders_api.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_orders_api.py
+++ b/tests/integration/test_orders_api.py
@@ -326,7 +326,6 @@ async def test_download_asset_md(tmpdir):
@respx.mock
@pytest.mark.asyncio
-@pytest.mark.skip... | workaround for respx issue that still allows running test | py |
diff --git a/src/lib/daemon.py b/src/lib/daemon.py
index <HASH>..<HASH> 100644
--- a/src/lib/daemon.py
+++ b/src/lib/daemon.py
@@ -107,7 +107,6 @@ class Daemon:
os.kill(pid, SIGTERM)
time.sleep(0.1)
except OSError, err:
- err = str(err)
if err.errno == 3: # "No such process"
if os.path.exists(se... | Fix issue caused by last commit, if err is cast to str it won't have a errno. git-svn-id: <URL> | py |
diff --git a/qtpylib/algo.py b/qtpylib/algo.py
index <HASH>..<HASH> 100644
--- a/qtpylib/algo.py
+++ b/qtpylib/algo.py
@@ -34,7 +34,7 @@ from qtpylib.instrument import Instrument
from qtpylib.workflow import validate_columns as validate_csv_columns
from qtpylib.blotter import prepare_history
from qtpylib import (
- ... | using asynctools' RecurringTask | py |
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/editor.py
+++ b/spyderlib/widgets/editor.py
@@ -1791,7 +1791,7 @@ class EditorStack(QWidget):
_("Loading %s...") % filename)
text, enc = encoding.read(filename)
... | Editor: if user accept to fix "mixed end-of-line characters", when opening file, the current editor was set as "modified" (the tab title had a '*' at the end) instead of the newly created editor | py |
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ebrisk.py
+++ b/openquake/calculators/ebrisk.py
@@ -344,7 +344,9 @@ class EbriskCalculator(event_based.EventBasedCalculator):
logging.info('Producing %d(loss_types) x %s loss c... | Fixed ebrisk with SWMR [skip hazardlib][demos] | py |
diff --git a/pylds/models.py b/pylds/models.py
index <HASH>..<HASH> 100644
--- a/pylds/models.py
+++ b/pylds/models.py
@@ -163,15 +163,12 @@ class _LDSGibbsSampling(_LDSBase, ModelGibbsSampling):
class _LDSMeanField(_LDSBase, ModelMeanField):
def meanfield_coordinate_descent_step(self):
- self._meanfield... | remove superfluous _meanfield_update_sweep method | py |
diff --git a/salt/modules/win_service.py b/salt/modules/win_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_service.py
+++ b/salt/modules/win_service.py
@@ -12,6 +12,7 @@ __virtualname__ = 'service'
BUFFSIZE = 5000
+
def __virtual__():
'''
Only works on Windows systems | fix pylint complaining about only one hard return | py |
diff --git a/nonblock/BackgroundWrite.py b/nonblock/BackgroundWrite.py
index <HASH>..<HASH> 100644
--- a/nonblock/BackgroundWrite.py
+++ b/nonblock/BackgroundWrite.py
@@ -258,8 +258,9 @@ class BackgroundWriteProcess(threading.Thread):
doFlush(fileObj)
dataWritten += len(nextData)... | Test for now having charityPeriod = 1 block | py |
diff --git a/jwt/api.py b/jwt/api.py
index <HASH>..<HASH> 100644
--- a/jwt/api.py
+++ b/jwt/api.py
@@ -127,7 +127,7 @@ class PyJWT(object):
payload, signing_input, header, signature = self._load(jwt)
if verify:
- merged_options = self._merge_options(self.options, override_options=options)... | Optimized _merge_options and changed some variable names | py |
diff --git a/src/hypercorn/asyncio/run.py b/src/hypercorn/asyncio/run.py
index <HASH>..<HASH> 100644
--- a/src/hypercorn/asyncio/run.py
+++ b/src/hypercorn/asyncio/run.py
@@ -211,11 +211,12 @@ def _run(
def _signal_handler(*_: Any) -> None: # noqa: N803
signal_event.set()
- try:
- ... | Bugfix handle SIGINT/SIGTERM on Windows This follows Uvicorn and a suggestion from @selimb to ensure that the signal handlers are present on Windows where the loop add_signal_handler isn't implemented. | py |
diff --git a/discord/voice_client.py b/discord/voice_client.py
index <HASH>..<HASH> 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -346,8 +346,8 @@ class VoiceClient:
cmd = cmd.format(command, filename, self.encoder.sampling_rate, self.encoder.channels)
try:
process... | Fix exception handling having a NameError | py |
diff --git a/knack/arguments.py b/knack/arguments.py
index <HASH>..<HASH> 100644
--- a/knack/arguments.py
+++ b/knack/arguments.py
@@ -256,7 +256,7 @@ class ArgumentsContext(object):
# convert argument dest
target = '--{}'.format(argument_dest.replace('_', '-'))
elif options_list:
- ... | Use the longest option, not shortest. (#<I>) | py |
diff --git a/asphalt/core/concurrency/async.py b/asphalt/core/concurrency/async.py
index <HASH>..<HASH> 100644
--- a/asphalt/core/concurrency/async.py
+++ b/asphalt/core/concurrency/async.py
@@ -82,7 +82,7 @@ class _AsyncYieldValue:
yield self
-def yield_async(value):
+def yield_async(value=None):
"""... | Added default value to the argument of yield_async() | py |
diff --git a/inlineplz/env/jenkins.py b/inlineplz/env/jenkins.py
index <HASH>..<HASH> 100644
--- a/inlineplz/env/jenkins.py
+++ b/inlineplz/env/jenkins.py
@@ -2,6 +2,7 @@
from __future__ import absolute_import
import os
+import urlparse
from inlineplz.env.base import EnvBase
@@ -18,3 +19,6 @@ class Jenkins(Env... | set url for private githubs | py |
diff --git a/dingo/core/structure/regions.py b/dingo/core/structure/regions.py
index <HASH>..<HASH> 100644
--- a/dingo/core/structure/regions.py
+++ b/dingo/core/structure/regions.py
@@ -21,10 +21,14 @@ class MVGridDistrictDingo(RegionDingo):
self._lv_load_area_groups = []
self.geo_data = kwargs.get('... | more detailed description of peak load attributes of MVGD | py |
diff --git a/nat/ontoManager.py b/nat/ontoManager.py
index <HASH>..<HASH> 100644
--- a/nat/ontoManager.py
+++ b/nat/ontoManager.py
@@ -26,14 +26,14 @@ class OntoManager:
pass
- def __init__(self, fileNamePattern=None):
+ def __init__(self, fileNamePattern=None, recompute=False):
if fileNam... | Adding the possibiility to recompute the local ontological term databases. | py |
diff --git a/marshmallow_jsonschema/base.py b/marshmallow_jsonschema/base.py
index <HASH>..<HASH> 100644
--- a/marshmallow_jsonschema/base.py
+++ b/marshmallow_jsonschema/base.py
@@ -143,14 +143,6 @@ class JSONSchema(Schema):
metadata = field.metadata.pop('metadata', {})
metadata.update(field.metadata... | remove pointless test-and-pops for metadata description and title | py |
diff --git a/mock/mock.py b/mock/mock.py
index <HASH>..<HASH> 100644
--- a/mock/mock.py
+++ b/mock/mock.py
@@ -2057,6 +2057,8 @@ class _ANY(object):
def __repr__(self):
return '<ANY>'
+ __hash__ = None
+
ANY = _ANY()
@@ -2199,6 +2201,7 @@ class _Call(tuple):
def __ne__(self, other):
... | I am investigating a migration to Python 3, and to facilitate this we are using the -3 flag as decribed here: <URL> | py |
diff --git a/testrail/helper.py b/testrail/helper.py
index <HASH>..<HASH> 100644
--- a/testrail/helper.py
+++ b/testrail/helper.py
@@ -30,6 +30,8 @@ def class_name(meth):
def singleresult(func):
def func_wrapper(*args, **kw):
items = func(*args)
+ if hasattr(items, '__iter__'):
+ items ... | Update singleresult to correctly handle iterators - closes #<I> - Updates singleresult function to detect when an interator has been passed in, and transform it into a list | py |
diff --git a/test/DoCommandTest.py b/test/DoCommandTest.py
index <HASH>..<HASH> 100644
--- a/test/DoCommandTest.py
+++ b/test/DoCommandTest.py
@@ -85,6 +85,7 @@ class DoCommandTest(CommandTest.CommandTest):
prompt_shown = False
def prompt(p_prompt):
+ global prompt_shown
prom... | Assign to the variable in the outer scope. | py |
diff --git a/rtv/content.py b/rtv/content.py
index <HASH>..<HASH> 100644
--- a/rtv/content.py
+++ b/rtv/content.py
@@ -6,7 +6,7 @@ from datetime import datetime
import six
import praw
-from praw.errors import InvalidSubreddit, NotFound
+from praw.errors import InvalidSubreddit
from kitchen.text.display import wrap... | Remove use of python 3 specific tuple unpacking | py |
diff --git a/tests/integration/modules/cmdmod.py b/tests/integration/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/cmdmod.py
+++ b/tests/integration/modules/cmdmod.py
@@ -69,8 +69,8 @@ class CMDModuleTest(integration.ModuleCase):
cmd.which
'''
self.assertEqual(... | Use cat instead of echo for cmd.which test, as echo can be a built-in | py |
diff --git a/salt/modules/selinux.py b/salt/modules/selinux.py
index <HASH>..<HASH> 100644
--- a/salt/modules/selinux.py
+++ b/salt/modules/selinux.py
@@ -463,7 +463,7 @@ def fcontext_get_policy(name, filetype=None, sel_type=None, sel_user=None, sel_l
cmd_kwargs['filetype'] = '[[:alpha:] ]+' if filetype is None el... | Ignore retcode on call to grep in selinux.py module Fixes #<I> Returning an exit code of 1 is normal operation of grep when it does not find a match. This will happen every time this function is called by fcontext_policy_present to detirmine whether a selinux policy exists before creating it. Ignoring the retcode wil... | py |
diff --git a/parsl/executors/high_throughput/interchange.py b/parsl/executors/high_throughput/interchange.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/high_throughput/interchange.py
+++ b/parsl/executors/high_throughput/interchange.py
@@ -263,7 +263,7 @@ class Interchange(object):
logger("Received {} t... | Updating file logger name to avoid merging of loggers | py |
diff --git a/dictalchemy/utils.py b/dictalchemy/utils.py
index <HASH>..<HASH> 100644
--- a/dictalchemy/utils.py
+++ b/dictalchemy/utils.py
@@ -6,8 +6,12 @@ Utilities
"""
from __future__ import absolute_import, division
-from sqlalchemy.orm import (RelationshipProperty, ColumnProperty,
- S... | Using class_mapper for finding primary key | py |
diff --git a/openxc/measurements.py b/openxc/measurements.py
index <HASH>..<HASH> 100644
--- a/openxc/measurements.py
+++ b/openxc/measurements.py
@@ -263,6 +263,7 @@ class TurnSignalStatus(StatefulMeasurement):
class ButtonEvent(EventedMeasurement):
name = "button_event"
+ states = ['up', 'down', 'left', 'r... | Add states for button events - doesn't handle action types, yet. | py |
diff --git a/hererocks.py b/hererocks.py
index <HASH>..<HASH> 100755
--- a/hererocks.py
+++ b/hererocks.py
@@ -215,9 +215,9 @@ def get_default_cache():
return os.path.join(cache_root, "HereRocks", "Cache")
else:
- home = os.getenv("HOME")
+ home = os.path.expanduser("~")
- if home... | use os.path.expanduser to get home dir on Unix It works even if HOME is not set. | py |
diff --git a/scrubadub/scrubbers.py b/scrubadub/scrubbers.py
index <HASH>..<HASH> 100644
--- a/scrubadub/scrubbers.py
+++ b/scrubadub/scrubbers.py
@@ -78,7 +78,9 @@ class Scrubber(object):
if not isinstance(filth, Filth):
raise TypeError('iter_filth must always yield Filth')
... | Issue #<I> Fix for FilthMergeError MergeFilth was not having in count filths that are substrings of others. This can be fixed by sorting the filths not only per starting position but also having the inclusive filths first. | py |
diff --git a/easyaudit/signals.py b/easyaudit/signals.py
index <HASH>..<HASH> 100644
--- a/easyaudit/signals.py
+++ b/easyaudit/signals.py
@@ -85,6 +85,9 @@ def post_save(sender, instance, created, raw, using, update_fields, **kwargs):
def m2m_changed(sender, instance, action, reverse, model, pk_set, using, **kwargs):... | Add should_audit check to m2m_changed signal | py |
diff --git a/sdk/python/lib/pulumi/resource.py b/sdk/python/lib/pulumi/resource.py
index <HASH>..<HASH> 100644
--- a/sdk/python/lib/pulumi/resource.py
+++ b/sdk/python/lib/pulumi/resource.py
@@ -437,7 +437,7 @@ def _collapse_providers(opts: 'ResourceOptions'):
if provider_length == 0:
opts.provide... | Simplify merge code. (#<I>) | py |
diff --git a/mbuild/formats/lammpsdata.py b/mbuild/formats/lammpsdata.py
index <HASH>..<HASH> 100644
--- a/mbuild/formats/lammpsdata.py
+++ b/mbuild/formats/lammpsdata.py
@@ -279,8 +279,10 @@ def write_lammpsdata(structure, filename, atom_style='full', nbfix_in_data_file=
coeffs[(type1, type2)]... | Update to accomodate nbfix First update to accomodate nbfix | 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
@@ -1090,3 +1090,9 @@ class Storage(core_models.RuntimeStateMixin, NewResource):
class Meta(object):
abstract = T... | Add SubResurce model - wal-<I> | py |
diff --git a/src/cobra/io/web/cobrapy_repository.py b/src/cobra/io/web/cobrapy_repository.py
index <HASH>..<HASH> 100644
--- a/src/cobra/io/web/cobrapy_repository.py
+++ b/src/cobra/io/web/cobrapy_repository.py
@@ -3,6 +3,8 @@
import importlib_resources
+import cobra.data
+
from .abstract_model_repository import ... | refactor: proper use of package import for loading resources in cobrapy_repository.py | py |
diff --git a/heron/tools/cli/src/python/submit.py b/heron/tools/cli/src/python/submit.py
index <HASH>..<HASH> 100644
--- a/heron/tools/cli/src/python/submit.py
+++ b/heron/tools/cli/src/python/submit.py
@@ -424,8 +424,8 @@ def run(command, parser, cl_args, unknown_args):
tar_type = topology_file.endswith(".tar") or ... | Fix code when submitting a toplogy file without an known extension (#<I>) | py |
diff --git a/pyquil/tests/test_paulis.py b/pyquil/tests/test_paulis.py
index <HASH>..<HASH> 100644
--- a/pyquil/tests/test_paulis.py
+++ b/pyquil/tests/test_paulis.py
@@ -507,8 +507,6 @@ def test_sum_power():
with pytest.raises(ValueError):
_ = pauli_sum ** -1
pauli_sum = sI(0) + sI(1)
- import pd... | removing erroneous pdb import | py |
diff --git a/src/streamlink/plugins/afreeca.py b/src/streamlink/plugins/afreeca.py
index <HASH>..<HASH> 100644
--- a/src/streamlink/plugins/afreeca.py
+++ b/src/streamlink/plugins/afreeca.py
@@ -16,7 +16,7 @@ CHANNEL_RESULT_ERROR = 0
CHANNEL_RESULT_OK = 1
-_url_re = re.compile("http(s)?://(\w+\.)?afreeca(tv)?.com/... | Fixed afreecatv.com url matching (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -89,6 +89,7 @@ html_sidebars = {
# sphinx.ext.autodoc
autoclass_content = "both"
+autodoc_member_order = "bysource"
# sphinxext.opengraph
ogp_site_url = about["__docs__"] | docs(autodoc): Order by source | py |
diff --git a/grimoire_elk/elk/jenkins.py b/grimoire_elk/elk/jenkins.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/jenkins.py
+++ b/grimoire_elk/elk/jenkins.py
@@ -35,6 +35,8 @@ logger = logging.getLogger(__name__)
class JenkinsEnrich(Enrich):
+ MAIN_NODE_NAME = "main"
+
def __init__(self, db_sortin... | [enrich][jenkins] Add "main" as built_on when built_on field is empty | py |
diff --git a/asammdf/blocks/mdf_v4.py b/asammdf/blocks/mdf_v4.py
index <HASH>..<HASH> 100644
--- a/asammdf/blocks/mdf_v4.py
+++ b/asammdf/blocks/mdf_v4.py
@@ -651,7 +651,7 @@ class MDF4(object):
# delete the groups that contain raw CAN bus logging and also
# delete the channel entries from the channel... | fix(blocks.mdf_v4): do not edit groups if processed_can is None | py |
diff --git a/photutils/detection/tests/test_core.py b/photutils/detection/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/photutils/detection/tests/test_core.py
+++ b/photutils/detection/tests/test_core.py
@@ -59,7 +59,7 @@ class TestDetectSources(object):
"""Test detection with filter_fwhm."""
t... | New test for filter_kernel | py |
diff --git a/hug/types.py b/hug/types.py
index <HASH>..<HASH> 100644
--- a/hug/types.py
+++ b/hug/types.py
@@ -314,6 +314,13 @@ class JSON(Type):
return json_converter.loads(value)
except Exception:
raise ValueError('Incorrectly formatted JSON provided')
+ if type(v... | Fixed problem with hug.types.json | py |
diff --git a/netdiff/info.py b/netdiff/info.py
index <HASH>..<HASH> 100644
--- a/netdiff/info.py
+++ b/netdiff/info.py
@@ -1,4 +1,4 @@
-VERSION = (0, 4, 6, 'final')
+VERSION = (0, 4, 7, 'alpha')
__version__ = VERSION | Bumped VERSION to <I> alpha | py |
diff --git a/pyVmomi/VmomiSupport.py b/pyVmomi/VmomiSupport.py
index <HASH>..<HASH> 100644
--- a/pyVmomi/VmomiSupport.py
+++ b/pyVmomi/VmomiSupport.py
@@ -31,10 +31,6 @@ import threading
if PY3:
from functools import cmp_to_key
-if PY3:
- # python3 removed long, it's the same as int
- long = int
-
NoneTyp... | Fix serialization issue for long type in python3 Python3 doesn't have long type, creating a custom long type to workaround that. | py |
diff --git a/tests/test_documentation.py b/tests/test_documentation.py
index <HASH>..<HASH> 100644
--- a/tests/test_documentation.py
+++ b/tests/test_documentation.py
@@ -36,7 +36,7 @@ class TestCase(unittest.TestCase):
self.validate('context.rst', 'Context', ['release', 'mglo', 'core_profile_check'])
d... | Include __setitem__ in program doctests | py |
diff --git a/planet/scripts/__init__.py b/planet/scripts/__init__.py
index <HASH>..<HASH> 100644
--- a/planet/scripts/__init__.py
+++ b/planet/scripts/__init__.py
@@ -461,5 +461,7 @@ def set_workspace(id, aoi, name, create, workspace):
if name:
workspace['name'] = name
+ if not workspace:
+ ra... | don't fail on backend if no workspace | py |
diff --git a/orthopy/recurrence_coefficients.py b/orthopy/recurrence_coefficients.py
index <HASH>..<HASH> 100644
--- a/orthopy/recurrence_coefficients.py
+++ b/orthopy/recurrence_coefficients.py
@@ -72,15 +72,13 @@ def _jacobi_sympy(n, a, b):
if n == 0:
return [], []
- assert n > 1
-
mu = 2**(a+... | don't be too strict with jacobi_sympy | py |
diff --git a/src/feat/agencies/bootstrap.py b/src/feat/agencies/bootstrap.py
index <HASH>..<HASH> 100755
--- a/src/feat/agencies/bootstrap.py
+++ b/src/feat/agencies/bootstrap.py
@@ -33,6 +33,8 @@ from feat.common.serialization import json
from feat.interface.agent import Access, Address, Storage
from twisted.inter... | Configure twisted to use resolver from twisted.names.client instead of the default one. | py |
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/folder.py
+++ b/torchvision/datasets/folder.py
@@ -44,7 +44,7 @@ def make_dataset(dir, class_to_idx, extensions=None, is_valid_file=None):
d = os.path.join(dir, target)
i... | DatasetFolder should follow links when searching for data (#<I>) | py |
diff --git a/seleniumbase/plugins/pytest_plugin.py b/seleniumbase/plugins/pytest_plugin.py
index <HASH>..<HASH> 100644
--- a/seleniumbase/plugins/pytest_plugin.py
+++ b/seleniumbase/plugins/pytest_plugin.py
@@ -385,7 +385,7 @@ def pytest_addoption(parser):
dest='devtools',
de... | Add "--rs" as a simplified command arg for "--reuse-session" | py |
diff --git a/pyotelem/plots/__init__.py b/pyotelem/plots/__init__.py
index <HASH>..<HASH> 100644
--- a/pyotelem/plots/__init__.py
+++ b/pyotelem/plots/__init__.py
@@ -1,17 +1,3 @@
-import matplotlib.pyplot as plt
-import seaborn
-import string
-
-# Use specified style (e.g. 'ggplot')
-plt.style.use('seaborn-whitegrid')... | moved seaborn setup from __init__ to plotconfig.py | py |
diff --git a/pycent.py b/pycent.py
index <HASH>..<HASH> 100644
--- a/pycent.py
+++ b/pycent.py
@@ -1,8 +1,12 @@
+from typing import Union
+
+FloatIn = Union[int, float, str]
+
class pycent:
def __init__(self):
pass
- def percent_of(self, percent, whole):
+ def percent_of(self, percent: FloatIn, w... | Ensure type hinting and enabled rounding for percentage | py |
diff --git a/hdf5storage/core.py b/hdf5storage/core.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/core.py
+++ b/hdf5storage/core.py
@@ -615,10 +615,6 @@ def write(filename='data.h5', name='/data', data=None,
options = Options(**args)
- # Reset the list of MATLAB_fields attributes to set.
-
- _MATLAB_f... | Removed partial code for the currently impossible to set MATLAB_fields attribute. | py |
diff --git a/reana_commons/version.py b/reana_commons/version.py
index <HASH>..<HASH> 100755
--- a/reana_commons/version.py
+++ b/reana_commons/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.5.0.dev20190207"
+__version__ = "0.5.0.de... | release: <I>.de<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.