diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/packets.py b/packets.py
index <HASH>..<HASH> 100644
--- a/packets.py
+++ b/packets.py
@@ -1,3 +1,4 @@
+from json import loads
from SocketServer import UDPServer
from SocketServer import BaseRequestHandler
@@ -66,6 +67,10 @@ class Packet(object):
@property
def body(self):
return self.... | json property for Packets to ease loading json objects | py |
diff --git a/src/main/python/jpyutil.py b/src/main/python/jpyutil.py
index <HASH>..<HASH> 100644
--- a/src/main/python/jpyutil.py
+++ b/src/main/python/jpyutil.py
@@ -139,9 +139,9 @@ def _find_jvm_dll_file(java_home_dir):
search_dirs = _add_paths_if_exists([], *search_dirs)
- if platform.system() is 'Window... | Replaced 'is' by '==' | py |
diff --git a/canmatrix/dbc.py b/canmatrix/dbc.py
index <HASH>..<HASH> 100644
--- a/canmatrix/dbc.py
+++ b/canmatrix/dbc.py
@@ -539,13 +539,13 @@ def load(f, **options):
raise Exception('error decoding line',line)
extras = {}
- if float_factory is no... | This was already fixed for non multiplexed signals. | py |
diff --git a/sportsref/utils.py b/sportsref/utils.py
index <HASH>..<HASH> 100644
--- a/sportsref/utils.py
+++ b/sportsref/utils.py
@@ -95,7 +95,7 @@ def parseTable(table):
if 'year_id' in df.columns:
df['year_id'] = df.year_id.fillna(method='ffill')
- df['year_id'] = df.year_id.astype(str).str[:4... | fixed bug with year_id in parseTable | py |
diff --git a/TheCannon/cannon/continuum_normalization.py b/TheCannon/cannon/continuum_normalization.py
index <HASH>..<HASH> 100644
--- a/TheCannon/cannon/continuum_normalization.py
+++ b/TheCannon/cannon/continuum_normalization.py
@@ -162,9 +162,6 @@ def cont_norm_q(wl, fluxes, ivars, q, delta_lambda):
for jj in r... | cont norm q doesn't change ivar values to SMALL, keeps them at 0 | py |
diff --git a/MarkdownPP/Modules/TableOfContents.py b/MarkdownPP/Modules/TableOfContents.py
index <HASH>..<HASH> 100644
--- a/MarkdownPP/Modules/TableOfContents.py
+++ b/MarkdownPP/Modules/TableOfContents.py
@@ -79,7 +79,7 @@ class TableOfContents(Module):
# underlined headers
match = setextr... | Added check for blank line underlines | py |
diff --git a/gamepad.py b/gamepad.py
index <HASH>..<HASH> 100644
--- a/gamepad.py
+++ b/gamepad.py
@@ -24,7 +24,7 @@ class Axis(Widget):
_view_module = Unicode('nbextensions/gamepad/gamepad', sync=True)
-class GamePad(Widget):
+class Gamepad(Widget):
"""Represents a game controller"""
index = Int(syn... | pep8 and <I> | py |
diff --git a/tests/test_datasets.py b/tests/test_datasets.py
index <HASH>..<HASH> 100644
--- a/tests/test_datasets.py
+++ b/tests/test_datasets.py
@@ -685,7 +685,7 @@ def test_cli_dataset_create_tileset():
'--name', name])
assert result.exit_code == 0
- body = json.loads(responses.calls[0].request.b... | decode the response body in py3 | py |
diff --git a/bugzilla/apiversion.py b/bugzilla/apiversion.py
index <HASH>..<HASH> 100644
--- a/bugzilla/apiversion.py
+++ b/bugzilla/apiversion.py
@@ -7,5 +7,5 @@
# option) any later version. See http://www.gnu.org/copyleft/gpl.html for
# the full text of the license.
-version = "2.2.0.dev0"
+version = "2.1.0"
__... | apiversion: Set it back to <I> To fix rpm builds. If we want to have dev versions we need to come up with a complete solution | py |
diff --git a/arcrest/server.py b/arcrest/server.py
index <HASH>..<HASH> 100644
--- a/arcrest/server.py
+++ b/arcrest/server.py
@@ -299,9 +299,13 @@ class GenerateToken(RestURL):
query_dict['client'] = 'requestip'
urllist[3] = urllib.urlencode(query_dict)
url = urlpar... | Who's a moron? | py |
diff --git a/Qt.py b/Qt.py
index <HASH>..<HASH> 100644
--- a/Qt.py
+++ b/Qt.py
@@ -838,7 +838,7 @@ def _log(text):
def __loadUi(fname, baseinstance=None):
"""A PySide/PySide 2 implementation of the uic.loadUi method"""
- loader = UiLoader(baseinstance)
+ loader = __UiLoader(baseinstance)
widget = loa... | Rename UiLoader to __UiLoader so it's not imported | py |
diff --git a/synapse/lib/types.py b/synapse/lib/types.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/types.py
+++ b/synapse/lib/types.py
@@ -111,6 +111,10 @@ class GuidType(DataType):
if not s_compat.isstr(valu) or len(valu) < 1:
self._raiseBadValu(valu)
+ # generate me one. we dont ca... | added convention for guid types to generate a new guid on string * | py |
diff --git a/osbs/utils/labels.py b/osbs/utils/labels.py
index <HASH>..<HASH> 100644
--- a/osbs/utils/labels.py
+++ b/osbs/utils/labels.py
@@ -7,7 +7,7 @@ of the BSD license. See the LICENSE file for details.
"""
-from __future__ import absolute_import
+from __future__ import absolute_import, unicode_literals
... | Import unicode_literals in labels module In cea3df7, we moved the Labels class into its own module. When doing so, we did not import unicode_literals to the new module. As a consequence, the keys in the labels dicts became 'str's in python 2. This patch sets osbs-client back to the former behavior, which is py2/3 cons... | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -178,11 +178,9 @@ class TestUsers(unittest.TestCase):
users_set_avatar.get('error'))
def test_users_set_avatar_from_url(self):
- # ToDo: Users.setAvatar calls http... | Update test for set_avatar with working avatarUrl | py |
diff --git a/multiqc/modules/pbmarkdup/pbmarkdup.py b/multiqc/modules/pbmarkdup/pbmarkdup.py
index <HASH>..<HASH> 100755
--- a/multiqc/modules/pbmarkdup/pbmarkdup.py
+++ b/multiqc/modules/pbmarkdup/pbmarkdup.py
@@ -91,7 +91,7 @@ class MultiqcModule(BaseMultiqcModule):
general_stats_headers = OrderedDict([
... | Prefix column headers with % | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -63,7 +63,7 @@ def pack_bytes(payload):
class SendResponseTests(testing.AsyncHTTPTestCase):
def get_app(self):
- return examples.make_application(debug=True)
+ return examples.make_application()
de... | Stop using the tornado reloader in tests. This causes some interesting warnings. | py |
diff --git a/orator/connectors/connection_factory.py b/orator/connectors/connection_factory.py
index <HASH>..<HASH> 100644
--- a/orator/connectors/connection_factory.py
+++ b/orator/connectors/connection_factory.py
@@ -47,7 +47,7 @@ class ConnectionFactory(object):
)
def _create_read_write_connection(se... | Fix ConnectionFactory._create_read_write_connection Changes how the initial read_write connection is constructed to use the write_config and then apply a read_connection. This fixes a bug where a config containing `read` and `write`keys is passed directly into the connection, which results in an error. Compare this ... | py |
diff --git a/bcbio/variation/peddy.py b/bcbio/variation/peddy.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/peddy.py
+++ b/bcbio/variation/peddy.py
@@ -114,4 +114,5 @@ def expected_peddy_files(peddy_report, batch):
peddydir = os.path.dirname(peddy_report)
secondary = [batch + x for x in PEDDY_OUT_EXTEN... | peddy: only return output files that exist | py |
diff --git a/raven/contrib/flask/__init__.py b/raven/contrib/flask/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/flask/__init__.py
+++ b/raven/contrib/flask/__init__.py
@@ -8,6 +8,7 @@ raven.contrib.flask
from __future__ import absolute_import
+import sys
import os
from flask import request
@@ -8... | raven/contrib/flask/__init__.py: respect the app.config['RAVEN_IGNORE_EXCEPTIONS'] setting to ignore exceptions | py |
diff --git a/aredis/client.py b/aredis/client.py
index <HASH>..<HASH> 100644
--- a/aredis/client.py
+++ b/aredis/client.py
@@ -95,7 +95,7 @@ class StrictRedis(*mixins):
db=0, password=None, stream_timeout=None,
connect_timeout=None, connection_pool=None,
unix_socket... | Support SSL for StrictRedisCluster client (#<I>) * Add ssl param in get_redis_link to support ssl mode * Add ssl_context to StrictRedis constructor and make it higher priority than ssl parameter | py |
diff --git a/tests/commands/test_bump_command.py b/tests/commands/test_bump_command.py
index <HASH>..<HASH> 100644
--- a/tests/commands/test_bump_command.py
+++ b/tests/commands/test_bump_command.py
@@ -105,7 +105,7 @@ def test_bump_tag_exists_raises_exception(mocker):
with pytest.raises(BumpTagFailedError) as e... | test(bump_command): remove english text in favor of just the tag number | py |
diff --git a/salt/ssh/__init__.py b/salt/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/ssh/__init__.py
+++ b/salt/ssh/__init__.py
@@ -23,8 +23,13 @@ class SSH(object):
'''
# TODO, this is just the code to test the chain, this is where the
# parallel stuff needs to go once the chain i... | Merge in target data to preliminary cmd execution | py |
diff --git a/LiSE/LiSE/util.py b/LiSE/LiSE/util.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/util.py
+++ b/LiSE/LiSE/util.py
@@ -1002,11 +1002,4 @@ class AbstractCharacter(Mapping):
self.remove_edges_from(dead)
return self
- def cull_edges(self, stat, threshold=0.5, comparator=ge):
- """Delete edges whose st... | Turn a redundant method into an alias | py |
diff --git a/flask_injector.py b/flask_injector.py
index <HASH>..<HASH> 100644
--- a/flask_injector.py
+++ b/flask_injector.py
@@ -69,13 +69,7 @@ def wrap_fun(fun, injector):
def wrap_function(fun, injector):
@functools.wraps(fun)
def wrapper(*args, **kwargs):
- injections = injector.args_to_inject(
-... | Simplify the Injector use a little | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,9 +42,9 @@ TEST_REQUIRES = ANSIBLE_REQUIRES + (
'codecov==2.1.12',
# Linting
- 'flake8==3.8.3',
- 'flake8-commas==2.0.0',
- 'flake8-quotes==3.2.0',
+ 'flake8==4.0.1',
+ 'flake8-commas==2.1.0',
+ ... | Bump flake8 package requirements. | py |
diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py
index <HASH>..<HASH> 100644
--- a/cookiecutter/generate.py
+++ b/cookiecutter/generate.py
@@ -68,6 +68,10 @@ def apply_overwrites_to_context(context, overwrite_context):
"{} provided for choice variable {}, but the "
... | support partially overwrite keys in nested dict | py |
diff --git a/test/testfunctions/scatter_colormap.py b/test/testfunctions/scatter_colormap.py
index <HASH>..<HASH> 100644
--- a/test/testfunctions/scatter_colormap.py
+++ b/test/testfunctions/scatter_colormap.py
@@ -8,6 +8,7 @@ def plot():
from matplotlib import pyplot as plt
import numpy as np
fig = plt.... | scatter_colormap test: set random seed | py |
diff --git a/txzmq/__init__.py b/txzmq/__init__.py
index <HASH>..<HASH> 100644
--- a/txzmq/__init__.py
+++ b/txzmq/__init__.py
@@ -9,5 +9,5 @@ from txzmq.xreq_xrep import ZmqXREQConnection
__all__ = ['ZmqConnection', 'ZmqEndpoint', 'ZmqEndpointType', 'ZmqFactory',
- 'ZMQPushConnection', 'ZMQPullConnectio... | Fix misprint after adding push/pull sockets. | py |
diff --git a/pysc2/env/sc2_env.py b/pysc2/env/sc2_env.py
index <HASH>..<HASH> 100644
--- a/pysc2/env/sc2_env.py
+++ b/pysc2/env/sc2_env.py
@@ -511,10 +511,13 @@ class SC2Env(environment.Base):
discount=discount, observation=o)
for r, o in zip(reward, agent_obs))
... | Allow specification of prefix when saving replays. PiperOrigin-RevId: <I> | py |
diff --git a/etcd3/client.py b/etcd3/client.py
index <HASH>..<HASH> 100644
--- a/etcd3/client.py
+++ b/etcd3/client.py
@@ -571,7 +571,7 @@ class Etcd3Client(object):
def refresh_lease(self, lease_id):
keep_alive_request = etcdrpc.LeaseKeepAliveRequest(ID=lease_id)
request_stream = [keep_alive_req... | Pass an iterable to LeaseKeepAlive | py |
diff --git a/owslib/etree.py b/owslib/etree.py
index <HASH>..<HASH> 100644
--- a/owslib/etree.py
+++ b/owslib/etree.py
@@ -40,13 +40,19 @@ except ImportError:
try:
# Python 2.x/3.x with ElementTree included
import xml.etree.ElementTree as etree
- from xml.etree.ElementTree import ParseErro... | Update ParseError import logic for etree | py |
diff --git a/tests/test_sockets.py b/tests/test_sockets.py
index <HASH>..<HASH> 100644
--- a/tests/test_sockets.py
+++ b/tests/test_sockets.py
@@ -102,3 +102,27 @@ class TestChatBackend:
sockets.request.args.get.return_value = 'special'
sockets.outbox(ws)
assert ws in sockets.chat_backend.cli... | Add test for /inbox route | py |
diff --git a/pybar/scans/tune_fei4.py b/pybar/scans/tune_fei4.py
index <HASH>..<HASH> 100644
--- a/pybar/scans/tune_fei4.py
+++ b/pybar/scans/tune_fei4.py
@@ -94,7 +94,7 @@ class Fei4Tuning(GdacTuning, TdacTuning, FeedbackTuning, FdacTuning):
The target threshold value in PlsrDAC.
target_charge :... | MAINT: mean TOT can be float | py |
diff --git a/libsongtext/lyricwiki.py b/libsongtext/lyricwiki.py
index <HASH>..<HASH> 100644
--- a/libsongtext/lyricwiki.py
+++ b/libsongtext/lyricwiki.py
@@ -48,14 +48,6 @@ class LyricWikiSong(object):
self.url = self.json['url']
- def get_info(self):
- output = ""
- line1 = u'\n{0}: {1}\... | Remove unnecessary get_info method from lyricwiki.py | py |
diff --git a/tests/test_basic.py b/tests/test_basic.py
index <HASH>..<HASH> 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -18,6 +18,6 @@ def test_velocity_graph():
scv.tl.velocity(adata)
scv.tl.velocity_graph(adata)
- graph1 = adata.uns['velocity_graph'].copy()
+ graph = adata.uns['vel... | minor change for test_velocity_graph | py |
diff --git a/coaster/views.py b/coaster/views.py
index <HASH>..<HASH> 100644
--- a/coaster/views.py
+++ b/coaster/views.py
@@ -633,7 +633,7 @@ def cors(origins,
if origins == '*':
pass
- elif isinstance(origins, (list, tuple, set)) and origin in origins:
+ elif isin... | Frozensets are sets too | py |
diff --git a/landez/tiles.py b/landez/tiles.py
index <HASH>..<HASH> 100644
--- a/landez/tiles.py
+++ b/landez/tiles.py
@@ -4,7 +4,7 @@ import logging
from gettext import gettext as _
import json
import mimetypes
-import string
+import uuid
from StringIO import StringIO
@@ -326,6 +326,7 @@ class MBTilesBuilder(T... | - removed unused string - added a name metadata to prevent Maptiler crash | py |
diff --git a/osfclient/models/storage.py b/osfclient/models/storage.py
index <HASH>..<HASH> 100644
--- a/osfclient/models/storage.py
+++ b/osfclient/models/storage.py
@@ -87,6 +87,13 @@ class Storage(OSFCore, ContainerMixin):
parent = parent.create_folder(directory, exist_ok=True)
url = pare... | Fix #<I> by special casing zero length files | py |
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py
index <HASH>..<HASH> 100644
--- a/paramiko/ssh_exception.py
+++ b/paramiko/ssh_exception.py
@@ -135,7 +135,14 @@ class ProxyCommandFailure (SSHException):
class NoValidConnectionsError(socket.error):
"""
- High-level socket error wrapping 1+ ... | Add null errno to socket.error subclass. Makes downstream code less likely to break when they expect errno+msg style socket error objects. Re #<I> | py |
diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py
index <HASH>..<HASH> 100644
--- a/src/metpy/calc/thermo.py
+++ b/src/metpy/calc/thermo.py
@@ -125,7 +125,7 @@ def potential_temperature(pressure, temperature):
--------
>>> from metpy.units import units
>>> metpy.calc.potential_temperature(... | MNT: Adjust value in docstring example Value slightly changed with Pint <I> constant changes, and this was causing doctests to fail. | py |
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -791,6 +791,20 @@ class TestOptions:
}
assert dist.metadata.provides_extras == set(['pdf', 'rest'])
+ d... | Add test for dash preserved extras_require in setup.cfg | py |
diff --git a/librosa/core/constantq.py b/librosa/core/constantq.py
index <HASH>..<HASH> 100644
--- a/librosa/core/constantq.py
+++ b/librosa/core/constantq.py
@@ -226,7 +226,8 @@ def cqt(y, sr=22050, hop_length=512, fmin=None, n_bins=84,
if i > 0:
my_y = audio.resample(my_y, my_sr, my_sr/2.0, res_... | assert that we never round the downsampled hop size | py |
diff --git a/sslyze/plugins/early_data_plugin.py b/sslyze/plugins/early_data_plugin.py
index <HASH>..<HASH> 100644
--- a/sslyze/plugins/early_data_plugin.py
+++ b/sslyze/plugins/early_data_plugin.py
@@ -1,6 +1,7 @@
from dataclasses import dataclass
from typing import List, Optional
+import socket
import pydantic
... | [#<I>] Handle timeout with TLS <I> early data | py |
diff --git a/src/beliefs/beliefstate.py b/src/beliefs/beliefstate.py
index <HASH>..<HASH> 100644
--- a/src/beliefs/beliefstate.py
+++ b/src/beliefs/beliefstate.py
@@ -76,7 +76,6 @@ class BeliefState(DictCell):
for entry in self.__dict__['deferred_effects']:
effect_pos, effect = entry
... | removed return -1 if deferred effects | py |
diff --git a/salt/states/smartos.py b/salt/states/smartos.py
index <HASH>..<HASH> 100644
--- a/salt/states/smartos.py
+++ b/salt/states/smartos.py
@@ -171,6 +171,9 @@ def _parse_vmconfig(config, instances):
for instance in config[prop]:
instance_config = config[prop][instance]
... | vmadm always returns mac as lowercase If a mac contains upper case letters our compare fails, resulting in an attempt to add a new nic. This fails because a nic with the same mac already exists. We force the mac to lowercase to avoid this. | py |
diff --git a/tests/test_optimize.py b/tests/test_optimize.py
index <HASH>..<HASH> 100644
--- a/tests/test_optimize.py
+++ b/tests/test_optimize.py
@@ -55,6 +55,7 @@ def test_mono_not_inverted(resources, outdir):
assert im.getpixel((0, 0)) == 255, "Expected white background"
+@pytest.mark.skipif(not pngquant.av... | tests: mark test as requiring pngquant | py |
diff --git a/dedupe/training.py b/dedupe/training.py
index <HASH>..<HASH> 100644
--- a/dedupe/training.py
+++ b/dedupe/training.py
@@ -1,7 +1,3 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-# provides functions for selecting a sample of training data
-
from __future__ import annotations
import itertools | frozenset -> FrozenSet | py |
diff --git a/pyregion/ds9_region_parser.py b/pyregion/ds9_region_parser.py
index <HASH>..<HASH> 100644
--- a/pyregion/ds9_region_parser.py
+++ b/pyregion/ds9_region_parser.py
@@ -13,8 +13,10 @@ from .wcs_converter import (convert_to_imagecoord,
ds9_shape_defs = dict(
circle=wcs_shape(CoordOdd, CoordEven, Distan... | modofiy definition of box|rotbox to allow multiple sizes | py |
diff --git a/openquake/hazardlib/correlation.py b/openquake/hazardlib/correlation.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/correlation.py
+++ b/openquake/hazardlib/correlation.py
@@ -123,8 +123,7 @@ class JB2009CorrelationModel(BaseCorrelationModel):
def jbcorrelation(distances, imt, vs30_clustering)... | Shortened docstring [skip CI] Former-commit-id: 3dc<I>df<I>ab<I>ce3c<I>bbe<I>bd | py |
diff --git a/huey/storage.py b/huey/storage.py
index <HASH>..<HASH> 100644
--- a/huey/storage.py
+++ b/huey/storage.py
@@ -350,10 +350,9 @@ class MemoryStorage(BaseStorage):
# and atomically pop them from the sorted set and return them. It won't return
# anything if it isn't able to remove the items it reads.
SCHEDU... | Do not store key in local var in redis schedule pop lua script. This causes problems with some bullshit that redis cluster is doing. Fixes #<I> | py |
diff --git a/rfxcom/protocol/__init__.py b/rfxcom/protocol/__init__.py
index <HASH>..<HASH> 100644
--- a/rfxcom/protocol/__init__.py
+++ b/rfxcom/protocol/__init__.py
@@ -28,7 +28,7 @@ MODE_PACKET = b'\x0D\x00\x00\x01\x03\x53\x00\x00\x0E\x2F\x00\x00\x00\x00'
HANDLERS = [
Elec,
Lighting5,
- Packet,
St... | Fixed a bug around status packets. | py |
diff --git a/ipyrad/analysis/sratools.py b/ipyrad/analysis/sratools.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/sratools.py
+++ b/ipyrad/analysis/sratools.py
@@ -118,7 +118,9 @@ class SRA(object):
## clean up acc if it is not nicely formatted
## i.e., do not allow sp... | cleanup of badnames in sratools | py |
diff --git a/pipenv/environments.py b/pipenv/environments.py
index <HASH>..<HASH> 100644
--- a/pipenv/environments.py
+++ b/pipenv/environments.py
@@ -83,7 +83,7 @@ os.environ.pop("__PYVENV_LAUNCHER__", None)
SESSION_IS_INTERACTIVE = _isatty(sys.stdout)
# TF_BUILD indicates to Azure pipelines it is a build step
-PI... | refactor based on PR feedback. | py |
diff --git a/openquake/calculators/getters.py b/openquake/calculators/getters.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/getters.py
+++ b/openquake/calculators/getters.py
@@ -483,7 +483,7 @@ def gen_rupture_getters(dstore, slc=slice(None),
code2cls = get_code2cls(dstore.get_attrs('ruptures'))
... | Raised rup_weight [skip CI] | py |
diff --git a/rolldice/rolldice.py b/rolldice/rolldice.py
index <HASH>..<HASH> 100644
--- a/rolldice/rolldice.py
+++ b/rolldice/rolldice.py
@@ -128,7 +128,7 @@ class SimpleEval(object):
self.functions = DEFAULT_FUNCTIONS
self.nodes = {
- ast.Num: self._eval_num,
+ ast.Constant: ... | Update rolldice.py Replace 'ast.Num' with 'ast.Constant' as 'ast.Num' is deprecated as of Python <I> | py |
diff --git a/anchore/cli/analyzer.py b/anchore/cli/analyzer.py
index <HASH>..<HASH> 100644
--- a/anchore/cli/analyzer.py
+++ b/anchore/cli/analyzer.py
@@ -219,7 +219,7 @@ def analyze(anchore_config, force, image, imagefile, include_allanchore, dockerf
ecode = 1
else:
- step = 5
+ step = 1
... | reducing step count for analyze to use less disk space when analyzing a set of container images | py |
diff --git a/salt/output/highstate.py b/salt/output/highstate.py
index <HASH>..<HASH> 100644
--- a/salt/output/highstate.py
+++ b/salt/output/highstate.py
@@ -128,7 +128,12 @@ def output(data):
pass_opts = __opts__
if __opts__['color']:
pass_opts['color... | Pass in a starting indent for the nested outputter | py |
diff --git a/sos/report/plugins/ovirt_hosted_engine.py b/sos/report/plugins/ovirt_hosted_engine.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/ovirt_hosted_engine.py
+++ b/sos/report/plugins/ovirt_hosted_engine.py
@@ -39,6 +39,7 @@ class OvirtHostedEngine(Plugin, RedHatPlugin):
'/etc/ovirt-hosted-... | [ovirt_hosted_engine] Add vm.conf file The "/var/run/ovirt-hosted-engine-ha/vm.conf" is used as hosted-engine configuration. Resolves: #<I> | py |
diff --git a/optlang/interface.py b/optlang/interface.py
index <HASH>..<HASH> 100644
--- a/optlang/interface.py
+++ b/optlang/interface.py
@@ -144,9 +144,7 @@ class Variable(sympy.Symbol):
elif value == 'binary':
self._type = value
self._lb = 0
- print self
sel... | model.interface returns now a module/solver interface and is read-only | py |
diff --git a/python_modules/libraries/dagster-slack/setup.py b/python_modules/libraries/dagster-slack/setup.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-slack/setup.py
+++ b/python_modules/libraries/dagster-slack/setup.py
@@ -43,7 +43,7 @@ def _do_setup(name='dagster-slack'):
'Oper... | Fix slack client dependency Summary: They introduced <I>, a total and complete rewrite, a few days ago. A fresh install no longer works. See <URL> | py |
diff --git a/src/transformers/models/bert/modeling_bert.py b/src/transformers/models/bert/modeling_bert.py
index <HASH>..<HASH> 100755
--- a/src/transformers/models/bert/modeling_bert.py
+++ b/src/transformers/models/bert/modeling_bert.py
@@ -1585,7 +1585,7 @@ class BertForMultipleChoice(BertPreTrainedModel):
... | Update modeling_bert.py (#<I>) | py |
diff --git a/celerite/celerite.py b/celerite/celerite.py
index <HASH>..<HASH> 100644
--- a/celerite/celerite.py
+++ b/celerite/celerite.py
@@ -312,7 +312,7 @@ class GP(ModelSet):
(alpha_real, beta_real, alpha_complex_real, alpha_complex_imag,
beta_complex_real, beta_complex_imag) = kernel.coefficient... | use the provided kernel jitter in dot too | py |
diff --git a/gphoto2cffi/backend.py b/gphoto2cffi/backend.py
index <HASH>..<HASH> 100644
--- a/gphoto2cffi/backend.py
+++ b/gphoto2cffi/backend.py
@@ -109,6 +109,13 @@ class LibraryWrapper(object):
"""
self._lib = to_wrap
+ # Register logging callback with FFI
+ self.logging_cb = ffi.c... | Actually register logging callback (#<I>) | py |
diff --git a/rest_condition/permissions.py b/rest_condition/permissions.py
index <HASH>..<HASH> 100644
--- a/rest_condition/permissions.py
+++ b/rest_condition/permissions.py
@@ -62,7 +62,6 @@ class Condition(object):
>>> cond1 = C(Perm1, Perm2, Perm3, Perm4,
>>> reduce_op=operator.add, lazy_until=3... | Add more accurate type checks for permission result. | py |
diff --git a/alignak/objects/businessimpactmodulation.py b/alignak/objects/businessimpactmodulation.py
index <HASH>..<HASH> 100644
--- a/alignak/objects/businessimpactmodulation.py
+++ b/alignak/objects/businessimpactmodulation.py
@@ -104,15 +104,15 @@ class Businessimpactmodulations(Items):
:type timeperiods:... | Enh: Pylint - C<I> on variables names in businessimpactmodulation.py | py |
diff --git a/src/toil/jobStores/abstractJobStore.py b/src/toil/jobStores/abstractJobStore.py
index <HASH>..<HASH> 100644
--- a/src/toil/jobStores/abstractJobStore.py
+++ b/src/toil/jobStores/abstractJobStore.py
@@ -629,7 +629,7 @@ class AbstractJobStore(with_metaclass(ABCMeta, object)):
# This cleans the o... | Fix job/fileID method mismatch in AbstractJobStore.clean() logJobStoreFileID is a file, but jobStore.delete (intended for jobs) rather than jobStore.deleteFile (intended for files) was used. This was exposed by the recent changes to the job format. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -103,6 +103,7 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requ... | Add python_requires to help pip | py |
diff --git a/src/ai/backend/client/cli/admin/domains.py b/src/ai/backend/client/cli/admin/domains.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/cli/admin/domains.py
+++ b/src/ai/backend/client/cli/admin/domains.py
@@ -81,8 +81,10 @@ def domains(ctx):
help='Set total resource slots.')
@click... | Add allowed_docker_registries param for domain creation | py |
diff --git a/salt/utils/gitfs.py b/salt/utils/gitfs.py
index <HASH>..<HASH> 100644
--- a/salt/utils/gitfs.py
+++ b/salt/utils/gitfs.py
@@ -124,7 +124,6 @@ class GitProvider(object):
self.env_whitelist = self.opts.get(
'{0}_env_whitelist'.format(self.role), [])
repo_conf = copy.deepcopy(pe... | gitfs: remove unused variable "bad_per_remote_conf" According to `git log` it was never used. | py |
diff --git a/peyotl/phylo/tree.py b/peyotl/phylo/tree.py
index <HASH>..<HASH> 100644
--- a/peyotl/phylo/tree.py
+++ b/peyotl/phylo/tree.py
@@ -17,12 +17,17 @@ class Node(object):
else:
stack.append((node, True))
if node._children:
- stack.extend([(n, Fal... | added reversed children iterator to make the postorder traversal more natural fit for the data model | py |
diff --git a/admin_interface/version.py b/admin_interface/version.py
index <HASH>..<HASH> 100644
--- a/admin_interface/version.py
+++ b/admin_interface/version.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = '0.10.0'
+__version__ = '0.10.1' | Updated version. [ci skip] | py |
diff --git a/source/rafcon/gui/mygaphas/items/ports.py b/source/rafcon/gui/mygaphas/items/ports.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/items/ports.py
+++ b/source/rafcon/gui/mygaphas/items/ports.py
@@ -192,6 +192,10 @@ class PortView(object):
self._tmp_outgoing_connected = False
... | fix(PortView): Connected data ports not drawn filled If a data port of an ExecutionState is connected, it is now correctly drawn "filled". | py |
diff --git a/test/test_meters.py b/test/test_meters.py
index <HASH>..<HASH> 100644
--- a/test/test_meters.py
+++ b/test/test_meters.py
@@ -76,6 +76,17 @@ class TestMeters(unittest.TestCase):
err = mtr.value()
self.assertEqual(err, [50.0], "Half should be correct")
+ def testClassErrorMeteri_batch... | ClassErrorMeter has issue with batchsize=1 (#<I>) * Proposed fix of ClassErrorMeter to avoid issue with batchsize=1. The use of squeeze is problematic. A new test was added to illustrate this in test_meters.py | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -27,7 +27,7 @@ import tempfile
from configparser import ConfigParser
from hashlib import sha256, md5
from importlib import import_module
-from pathlib impo... | Update save_file to accept pathlib objects (#<I>) | py |
diff --git a/eth_abi/decoding.py b/eth_abi/decoding.py
index <HASH>..<HASH> 100644
--- a/eth_abi/decoding.py
+++ b/eth_abi/decoding.py
@@ -69,7 +69,7 @@ class ContextFramesBytesIO(io.BytesIO):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
- self._frames = [(0, 0)]
+ ... | Clean up implementation of ContextFramesBytesIO | py |
diff --git a/tests/support.py b/tests/support.py
index <HASH>..<HASH> 100644
--- a/tests/support.py
+++ b/tests/support.py
@@ -175,6 +175,7 @@ class taskforce(object):
close_fds=True,
cwd=e.working_dir,
universal_newlines=True)
+ self.pid = self.proc.pid
fl = fcntl.fcntl(self.proc.stdout.fileno(),... | record the subprocess pid for callers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,24 @@
-import scanf
+import re
from setuptools import setup
with open('README.md') as readme:
scanf_long_description = readme.read()
+def get_version(filename='scanf.py'):
+ """ Extract versio... | do not import scanf in setup.py (#8) | py |
diff --git a/djsupervisor/templatetags/djtags.py b/djsupervisor/templatetags/djtags.py
index <HASH>..<HASH> 100644
--- a/djsupervisor/templatetags/djtags.py
+++ b/djsupervisor/templatetags/djtags.py
@@ -8,14 +8,10 @@ ctx = None
@register.filter
def templated(template_path):
- if not template_path.endswith(".temp... | clean up implementation a little bit by writing to .templated instead of requiring .template extension | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -1054,11 +1054,11 @@ class API:
)
@payload('user')
- def show_list_member(self, *args, **kwargs):
+ def show_list_member(self, **kwargs):
""" :reference: https://developer.twi... | Stop allowing positional arguments for API.show_list_member | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,15 +4,6 @@ try:
except ImportError:
from distutils.core import setup, find_packages
-def read_requires(relative):
- try:
- abs_path = os.path.abspath(relative)
- contents = open(abs_path, 'r').read(... | Removing read_requires | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -281,4 +281,4 @@ class Mock(object):
# mock out non-pip installable modules to enable Sphinx autodoc even
# if these modules are unavailable, as on readthedocs.org
-Mock('PyQt4')
+Mock.mock_modules('PyQt4') | actually add the mock to sys | py |
diff --git a/i3pystatus/mem.py b/i3pystatus/mem.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/mem.py
+++ b/i3pystatus/mem.py
@@ -1,5 +1,5 @@
from i3pystatus import IntervalModule
-from psutil import virtual_memory
+import psutil
from .core.util import round_dict
@@ -42,12 +42,15 @@ class Mem(IntervalModule):
... | Mem: fix displaying negative values (#<I>) Accomodating to changes made in `psutil` version <I> in calculating `virtual_memory().used`. | py |
diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py b/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py
index <HASH>..<HASH> 100644
--- a/sdk/keyvault/azure-keyvault-certificates/tests/test_certificates_client_async.py
+++ b/sdk/keyvault/azure-key... | Test fix: prevent conflicts when creating cert versions (#<I>) | py |
diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/views.py
+++ b/{{cookiecutter.project_slug}}/{{cookiecu... | Update views.py added message wich will be shown when a user update his infos | py |
diff --git a/netlsd/kernels.py b/netlsd/kernels.py
index <HASH>..<HASH> 100644
--- a/netlsd/kernels.py
+++ b/netlsd/kernels.py
@@ -236,7 +236,7 @@ def _wkt(eivals, timescales, normalization, normalized_laplacian):
for idx, t in enumerate(timescales):
wkt[idx] = np.sum(np.exp(-1j * t * eivals))
if isi... | Update kernels.py Fix #1 | py |
diff --git a/src/unity/python/turicreate/toolkits/object_detector/util/_visualization.py b/src/unity/python/turicreate/toolkits/object_detector/util/_visualization.py
index <HASH>..<HASH> 100644
--- a/src/unity/python/turicreate/toolkits/object_detector/util/_visualization.py
+++ b/src/unity/python/turicreate/toolkits/... | Added the channel dimension for grayscale images so draw_bounding_boxes doesn't crash for grayscale images (#<I>) | py |
diff --git a/web/youraccount.py b/web/youraccount.py
index <HASH>..<HASH> 100644
--- a/web/youraccount.py
+++ b/web/youraccount.py
@@ -27,7 +27,7 @@ from mod_python import apache
import smtplib
from cdsware import webuser
-from cdsware.config import weburl,cdsname,cdslang,supportemail
+from cdsware.config import we... | Adapted display of account to new webbasket module. | py |
diff --git a/pyradigm/base.py b/pyradigm/base.py
index <HASH>..<HASH> 100644
--- a/pyradigm/base.py
+++ b/pyradigm/base.py
@@ -300,6 +300,11 @@ class BaseDataset(ABC):
if features.size <= 0:
raise EmptyFeatureSetException('Provided features are empty.')
+ if self._num_features and self._n... | add ValueError: feature dim mismatch back, but into _check_features Accidentally removed the check. Instead of putting back into add_samplet, moved the code into _check_features. DRYs up the check in __setitem__ | py |
diff --git a/hadoopy/_local.py b/hadoopy/_local.py
index <HASH>..<HASH> 100644
--- a/hadoopy/_local.py
+++ b/hadoopy/_local.py
@@ -96,7 +96,7 @@ class LocalTask(object):
elif w and not wrote:
tbfp_w.write(kv)
wrote = True
- ... | Set timeout to 0 when polling | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -20,10 +20,6 @@ import os
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
-# For some reason jpype.imports does not work if called in sp... | [doc] import jpype, after _jpype has been mocked also do not import jpype.imports | py |
diff --git a/examples/opf/clients/cpu/cpu.py b/examples/opf/clients/cpu/cpu.py
index <HASH>..<HASH> 100755
--- a/examples/opf/clients/cpu/cpu.py
+++ b/examples/opf/clients/cpu/cpu.py
@@ -43,7 +43,6 @@ fig = plt.figure()
plt.title('CPU prediction example')
plt.xlabel('time [s]')
plt.ylabel('CPU usage [%]')
-plt.autos... | remove offending line strange, I thought it's standart mpl method. Anyway, it was just experimental. no harm to remove | py |
diff --git a/huey/consumer.py b/huey/consumer.py
index <HASH>..<HASH> 100644
--- a/huey/consumer.py
+++ b/huey/consumer.py
@@ -229,9 +229,15 @@ class Scheduler(BaseProcess):
def loop(self, now=None):
start = time.time()
- for task in self.huey.read_schedule(now or self.get_utcnow()):
- ... | Catch ScheduleReadException in consumer's scheduler thread. | py |
diff --git a/paperwork_backend/pdf/doc.py b/paperwork_backend/pdf/doc.py
index <HASH>..<HASH> 100644
--- a/paperwork_backend/pdf/doc.py
+++ b/paperwork_backend/pdf/doc.py
@@ -194,8 +194,8 @@ class _CommonPdfDoc(BasicDoc):
if self._pdf:
NB_FDS -= 1
del self._pdf
- logger.deb... | PDF: keep track of opened file descriptors correctly (when the object is gc, the file descriptor is closed too) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,13 +14,13 @@ install_requires = [
setup(
name='figgypy',
- version='0.1.8',
+ version='0.2.0',
description='Simple configuration tool. Get config from yaml, json, or xml.',
long_description=readme,
... | Update setup.py to release version | py |
diff --git a/petrel/petrel/storm.py b/petrel/petrel/storm.py
index <HASH>..<HASH> 100644
--- a/petrel/petrel/storm.py
+++ b/petrel/petrel/storm.py
@@ -293,8 +293,11 @@ class Tuple(object):
class Task(object):
def shared_initialize(self):
conf, context = initComponent()
- self.task_index = context[... | Fix diagnostic code that depends on a patched version of Storm | py |
diff --git a/bcbio/structural/validate.py b/bcbio/structural/validate.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/validate.py
+++ b/bcbio/structural/validate.py
@@ -138,6 +138,8 @@ def _plot_evaluation_event(df_csv, svtype):
df = df[(df["svtype"] == svtype)]
event_sizes = _find_events_to_inc... | SV validation plotting: handle plots with a single set of event sizes | py |
diff --git a/shap/explainers/tree.py b/shap/explainers/tree.py
index <HASH>..<HASH> 100644
--- a/shap/explainers/tree.py
+++ b/shap/explainers/tree.py
@@ -204,10 +204,14 @@ class TreeExplainer(Explainer):
X = xgboost.DMatrix(X)
if tree_limit == -1:
tree_limit =... | XGBoost followup to #<I> | py |
diff --git a/examples/quantum_die.py b/examples/quantum_die.py
index <HASH>..<HASH> 100755
--- a/examples/quantum_die.py
+++ b/examples/quantum_die.py
@@ -76,4 +76,6 @@ def roll_die(qvm, number_of_sides):
if __name__ == '__main__':
number_of_sides = int(input("Please enter number of sides: "))
qvm = get_qvm(... | quantum die program (#<I>) * created correct quantum die program * fixed quantum die example so that roll is value <= number of sides | py |
diff --git a/faker/providers/date_time/__init__.py b/faker/providers/date_time/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/date_time/__init__.py
+++ b/faker/providers/date_time/__init__.py
@@ -1886,9 +1886,11 @@ class Provider(BaseProvider):
def date(self, pattern: str = "%Y-%m-%d", end_datetim... | Fix typo in docstring of date (#<I>) * Fix typo in docstring of date * Update __init__.py | py |
diff --git a/sos/jupyter/sos_step.py b/sos/jupyter/sos_step.py
index <HASH>..<HASH> 100755
--- a/sos/jupyter/sos_step.py
+++ b/sos/jupyter/sos_step.py
@@ -36,6 +36,8 @@ class Interactive_Step_Executor(Step_Executor):
self.run_mode='interactive'
def pending_tasks(self, tasks):
+ if not tasks:
+ ... | Fix jupyter notebook broken with the task manager code | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.