diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ELiDE/statgrid.py b/ELiDE/statgrid.py
index <HASH>..<HASH> 100644
--- a/ELiDE/statgrid.py
+++ b/ELiDE/statgrid.py
@@ -6,6 +6,9 @@ user. Autoupdates when there's a change for any reason.
"""
from functools import partial
from kivy.properties import (
+ NumericProperty,
+ StringProperty,
+ Refere... | Revert recent statgrid related commits that weren't ready for master yet This reverts commit d0c9bf<I>fa<I>fab1b<I>c3b<I>e1d<I>f<I>eb. | py |
diff --git a/taskqueue/taskqueue.py b/taskqueue/taskqueue.py
index <HASH>..<HASH> 100644
--- a/taskqueue/taskqueue.py
+++ b/taskqueue/taskqueue.py
@@ -281,7 +281,7 @@ class TaskQueue(ThreadedQueue):
return self
class MockTaskQueue():
- def __init__(self, queue_name=''):
+ def __init__(self, queue_name... | fix: add queue_server to MockTaskQueue's constructor | py |
diff --git a/jsonrpc/backend/flask.py b/jsonrpc/backend/flask.py
index <HASH>..<HASH> 100644
--- a/jsonrpc/backend/flask.py
+++ b/jsonrpc/backend/flask.py
@@ -51,14 +51,8 @@ class JSONRPCAPI(object):
response = JSONRPCResponseManager.handle(
request_str, self.dispatcher)
else:
- ... | Removed logging in backend.flask because it assumed jsonrpc_request could only be of type JSONRPCRequest when it actually could also be JSONRPCBatchRequest which does not have a params according the the json rpc spec. | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2002,6 +2002,8 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
tis = dag.get_task_instances(start_date=min_date, end_date=base_date)... | Fix to make y-axis of Tries chart visible (#<I>) | py |
diff --git a/persephone/tests/test_corpus.py b/persephone/tests/test_corpus.py
index <HASH>..<HASH> 100644
--- a/persephone/tests/test_corpus.py
+++ b/persephone/tests/test_corpus.py
@@ -268,4 +268,12 @@ def test_divide_prefixes_too_few():
persephone.corpus.Corpus.divide_prefixes([])
with pytest.raises(... | Add coverage test case for divide_prefixes | py |
diff --git a/cocaine/tools/actions/runlist.py b/cocaine/tools/actions/runlist.py
index <HASH>..<HASH> 100644
--- a/cocaine/tools/actions/runlist.py
+++ b/cocaine/tools/actions/runlist.py
@@ -70,7 +70,7 @@ class Upload(Specific):
class Create(Specific):
@coroutine
def execute(self):
- return Upload(sel... | [Runlist] Fix runlist.Create: wait for the uploading future | py |
diff --git a/harvestingkit/utils.py b/harvestingkit/utils.py
index <HASH>..<HASH> 100644
--- a/harvestingkit/utils.py
+++ b/harvestingkit/utils.py
@@ -345,7 +345,7 @@ def download_file(from_url, to_filename, chunk_size=1024 * 8, retry_count=3):
def run_shell_command(commands, **kwargs):
"""Run a shell command."... | Utils: fix run_shell_command to support passing multiple args. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -123,7 +123,7 @@ def get_version_info():
vinfo = _version_helper.generate_git_version_info()
except:
vinfo = vdummy()
- vinfo.version = '2.0.1'
+ vinfo.version = '2.0.2'
vinfo.rele... | Update setup.py (#<I>) | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -765,6 +765,8 @@ class CondorDAGJob(CondorJob):
will not give hint to Pegasus
"""
self.__grid_site=str(site)
+ if site != 'local':
+ self.set_executable_installed('False')... | move the test that sets the exectuable installed flag to the CondorDAGJob method | py |
diff --git a/troposphere/__init__.py b/troposphere/__init__.py
index <HASH>..<HASH> 100644
--- a/troposphere/__init__.py
+++ b/troposphere/__init__.py
@@ -131,8 +131,10 @@ class BaseAWSObject(object):
# Mainly used to not have an empty "Properties".
if self.properties:
return self.resourc... | Not all AWSProperty instances must have properties (for example, Cloudfront's S3Object type). Only fall through to a dict with a 'Type' property if the current class has a 'type'. | py |
diff --git a/tests/test_blob.py b/tests/test_blob.py
index <HASH>..<HASH> 100644
--- a/tests/test_blob.py
+++ b/tests/test_blob.py
@@ -1,7 +1,7 @@
import numpy as np
from datajoint.blob import pack, unpack
from numpy.testing import assert_array_equal, raises
-from nose.tools import assert_false, assert_true
+from no... | Add tests for serializing lists and iterators into BLOB | py |
diff --git a/fireplace/targeting.py b/fireplace/targeting.py
index <HASH>..<HASH> 100644
--- a/fireplace/targeting.py
+++ b/fireplace/targeting.py
@@ -6,6 +6,10 @@ from .enums import CardType, PlayReq, Rarity
# Requirements-based targeting
def is_valid_target(self, target, requirements=None):
+ if target is self:
+... | Always mark a target as invalid if it's itself | py |
diff --git a/client/test.py b/client/test.py
index <HASH>..<HASH> 100644
--- a/client/test.py
+++ b/client/test.py
@@ -14,6 +14,7 @@ import test_mic
import vocabcompiler
import g2p
import brain
+import jasperpath
from diagnose import Diagnostics
DEFAULT_PROFILE = {
@@ -59,8 +60,8 @@ class TestVocabCompiler(unitt... | Use jasperpath in client/test.py | py |
diff --git a/annoying/fields.py b/annoying/fields.py
index <HASH>..<HASH> 100644
--- a/annoying/fields.py
+++ b/annoying/fields.py
@@ -60,10 +60,10 @@ class JSONField(models.TextField):
pass
return value
- def get_db_prep_save(self, value):
+ def get_db_prep_save(self, value, *args, **kwar... | added *args, **kwargs to `JSONField.get_db_prep_save` Django <I> added the `connection` argument to the `get_db_prep_save` method signature and, since Django <I>, issues a `DeprecationWarning` if subclasses don't accept that argument. | py |
diff --git a/flask_htmlmin.py b/flask_htmlmin.py
index <HASH>..<HASH> 100644
--- a/flask_htmlmin.py
+++ b/flask_htmlmin.py
@@ -1,10 +1,9 @@
-__author__ = 'Hamid FzM'
-
from htmlmin.main import minify
+__author__ = 'Hamid FzM'
-class HTMLMIN(object):
+class HTMLMIN(object):
def __init__(self, app=None):
... | bug fix; some html pages break while trying to minify them | py |
diff --git a/listmodel/models.py b/listmodel/models.py
index <HASH>..<HASH> 100644
--- a/listmodel/models.py
+++ b/listmodel/models.py
@@ -24,8 +24,8 @@ class RssModel(listmodel.XmlListModel):
timestamp = mktime_tz(parsedate_tz(value))
return datetime.datetime.utcfromtimestamp(timestamp)
... | Updated RssModel in acordense with XmlListModel changes | py |
diff --git a/mongo_connector/config.py b/mongo_connector/config.py
index <HASH>..<HASH> 100644
--- a/mongo_connector/config.py
+++ b/mongo_connector/config.py
@@ -98,6 +98,10 @@ class Config(object):
cli_option = parser.add_option(*args, **kwargs)
option.cli_names.append(cli_option.des... | Raise InvalidConfiguration when there are extra command-line options left over after parsing. | py |
diff --git a/pygccxml/parser/linker.py b/pygccxml/parser/linker.py
index <HASH>..<HASH> 100644
--- a/pygccxml/parser/linker.py
+++ b/pygccxml/parser/linker.py
@@ -38,11 +38,10 @@ class linker_t(
self.__inst = inst
# use inst, to reduce attribute access time
- if isinstance(inst, declarations.... | Simplify and clarify file name override If file_name is already an empty string, no need to set it again as empty. This simplifies the code logic here. Also, explicitly check with ‘is not None’, which makes it clear what the check condition is. | py |
diff --git a/tbapy/main.py b/tbapy/main.py
index <HASH>..<HASH> 100644
--- a/tbapy/main.py
+++ b/tbapy/main.py
@@ -50,7 +50,7 @@ class TBA:
:return: Requests Response object.
"""
- return post(self.WRITE_URL_PRE + url % self.event_key, data=data, headers={'X-TBA-Auth-Id': self.auth_id, 'X-TBA... | Format URL with event_key for hashing | py |
diff --git a/openpnm/utils/__init__.py b/openpnm/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/openpnm/utils/__init__.py
+++ b/openpnm/utils/__init__.py
@@ -31,8 +31,5 @@ del log_format
def _get_version():
- from openpnm.__version__ import __version__ as version
- _build = version.split(".")[-1]
- i... | Refactor/simplify _get_version [no ci] | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -135,14 +135,12 @@ def parallel_filter(csm, srcfilter, monitor):
seed = int(os.environ.get('OQ_SAMPLE_SOURCES', 0))
logging.info('Fi... | Restored prefiltering on the workers with celery | py |
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils.py
+++ b/pysat/tests/test_utils.py
@@ -182,7 +182,7 @@ class TestBasicNetCDF4():
assert(np.all(sorted(self.testInst.data.columns) == sorted(loaded_inst.columns)))
@raises(Exception... | Renamed test method for clarity. | py |
diff --git a/raiden/network/rpc/client.py b/raiden/network/rpc/client.py
index <HASH>..<HASH> 100644
--- a/raiden/network/rpc/client.py
+++ b/raiden/network/rpc/client.py
@@ -899,13 +899,7 @@ class TransactionMined:
class JSONRPCClient:
- """ Ethereum JSON RPC client.
-
- Args:
- host: Ethereum node h... | remove outdated docs [skip tests] | py |
diff --git a/stdnet/utils/__init__.py b/stdnet/utils/__init__.py
index <HASH>..<HASH> 100755
--- a/stdnet/utils/__init__.py
+++ b/stdnet/utils/__init__.py
@@ -71,6 +71,9 @@ class PPath(object):
def __repr__(self):
return self.local_path
__str__ = __repr__
+
+ def join(self, path):
+ ret... | added join method to utils.PPath | py |
diff --git a/bakery_cli/ttfont.py b/bakery_cli/ttfont.py
index <HASH>..<HASH> 100644
--- a/bakery_cli/ttfont.py
+++ b/bakery_cli/ttfont.py
@@ -85,18 +85,6 @@ class Font(BaseFont):
return ymin, ymax
@property
- def license_url(self):
- """ Return LicenseURL from "name" table
-
- >>> font... | delete unused property 'license_url' from bakery_cli/ttfont.py | py |
diff --git a/openpnm/core/Project.py b/openpnm/core/Project.py
index <HASH>..<HASH> 100644
--- a/openpnm/core/Project.py
+++ b/openpnm/core/Project.py
@@ -2,7 +2,7 @@ import time
import pickle
import h5py
from openpnm.core import Workspace
-from openpnm.utils.misc import SettingsDict, HealthDict
+from openpnm.utils.... | Adding function to project that returns a list of all names | py |
diff --git a/openquake/calculators/risk/classical_bcr/core.py b/openquake/calculators/risk/classical_bcr/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/risk/classical_bcr/core.py
+++ b/openquake/calculators/risk/classical_bcr/core.py
@@ -64,7 +64,7 @@ def classical_bcr(job_id, assets, hazard_getter, ha... | fix getter of the retrofitted model | py |
diff --git a/exchangelib/services/common.py b/exchangelib/services/common.py
index <HASH>..<HASH> 100644
--- a/exchangelib/services/common.py
+++ b/exchangelib/services/common.py
@@ -783,7 +783,7 @@ class EWSAccountService(EWSService, metaclass=abc.ABCMeta):
def _account_to_impersonate(self):
if self.acco... | Take logic frm parent method into account | py |
diff --git a/devassistant/assistants/python.py b/devassistant/assistants/python.py
index <HASH>..<HASH> 100644
--- a/devassistant/assistants/python.py
+++ b/devassistant/assistants/python.py
@@ -19,7 +19,8 @@ class PythonAssistant(assistant_base.AssistantBase):
args = [argument.Argument('-e', '--eclipse',
... | Use the new default_iff_used action in python assistant | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -267,8 +267,6 @@ class Redis(object):
response = self._parse_response(command_name)
if command_name in self.RESPONSE_CALLBACKS:
return self.RESPONSE_CALLBACKS[command_... | removing the decode() hook from earlier. it's really more effective to serialize/deserialize the data at a higher level. | py |
diff --git a/cirq/google/engine/engine.py b/cirq/google/engine/engine.py
index <HASH>..<HASH> 100644
--- a/cirq/google/engine/engine.py
+++ b/cirq/google/engine/engine.py
@@ -177,7 +177,7 @@ class Engine(Executor):
'scheduling_config': {
'priority': priority,
# TODO get ro... | Update engine route to new sim route | py |
diff --git a/javalink/model.py b/javalink/model.py
index <HASH>..<HASH> 100644
--- a/javalink/model.py
+++ b/javalink/model.py
@@ -64,7 +64,11 @@ class LinkableClass(object):
if args is None:
return method
- arglist = [a.strip() for a in args.split(',')]
+ ... | Fix arg list generation for nullary methods | py |
diff --git a/tests/test_multiprocessing.py b/tests/test_multiprocessing.py
index <HASH>..<HASH> 100644
--- a/tests/test_multiprocessing.py
+++ b/tests/test_multiprocessing.py
@@ -69,7 +69,7 @@ def test_pickle_app(app, protocol):
@pytest.mark.parametrize('protocol', [3, 4])
-def test_pikcle_app_with_bp(app, protoco... | Fix type pikcle->pickle in multiprocessing test | py |
diff --git a/fireplace/player.py b/fireplace/player.py
index <HASH>..<HASH> 100644
--- a/fireplace/player.py
+++ b/fireplace/player.py
@@ -19,7 +19,6 @@ class Player(Entity):
self.deck.hero.controller = self
self.hand = CardList()
self.field = CardList()
- self.buffs = CardList()
self.secrets = CardList()
... | Cleanup: Players can't have buffs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -37,5 +37,5 @@ setup(
long_description = "\n".join(doclines[2:]),
packages=['metanl'],
package_data = {'metanl': ['data/freeling/*.cfg', 'data/freeling/*.dat']},
- install_requires=['nltk >= 3.0a3', 'ftfy >= ... | take the awkward version requirement off of nltk | py |
diff --git a/path.py b/path.py
index <HASH>..<HASH> 100644
--- a/path.py
+++ b/path.py
@@ -921,9 +921,11 @@ class path(unicode):
def rename(self, new):
os.rename(self, new)
+ return self.__class__(new)
def renames(self, new):
os.renames(self, new)
+ return self.__class__(ne... | Implemented rename and rename_s return self | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -394,6 +394,7 @@ setup(
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: 3.7",
... | Claim support for Python <I> | py |
diff --git a/scot/connectivity_statistics.py b/scot/connectivity_statistics.py
index <HASH>..<HASH> 100644
--- a/scot/connectivity_statistics.py
+++ b/scot/connectivity_statistics.py
@@ -193,25 +193,6 @@ def test_bootstrap_difference(a, b):
return p.reshape(old_shape)
-def test_rank_difference_a(a, b):
- ""... | Removed obsolete Mann-Whitney-U rank difference test | py |
diff --git a/src/cryptojwt/jwk/ec.py b/src/cryptojwt/jwk/ec.py
index <HASH>..<HASH> 100644
--- a/src/cryptojwt/jwk/ec.py
+++ b/src/cryptojwt/jwk/ec.py
@@ -119,7 +119,7 @@ class ECKey(AsymmetricKey):
public_members = AsymmetricKey.public_members[:]
public_members.extend(["kty", "alg", "use", "kid", "crv", "x",... | use correct EC required parameters or thumbprint is wrong | py |
diff --git a/pytorch2keras/converter.py b/pytorch2keras/converter.py
index <HASH>..<HASH> 100644
--- a/pytorch2keras/converter.py
+++ b/pytorch2keras/converter.py
@@ -131,6 +131,7 @@ def pytorch_to_keras(
outputs = []
input_index = 0
+ model_inputs = dict()
for node in nodes:
node_inputs = ... | fix: models reusing inputs from previous layers | py |
diff --git a/semver.py b/semver.py
index <HASH>..<HASH> 100644
--- a/semver.py
+++ b/semver.py
@@ -28,13 +28,13 @@ def parse(version):
if match is None:
raise ValueError('%s is not valid SemVer string' % version)
- verinfo = match.groupdict()
+ version_parts = match.groupdict()
- verinfo['maj... | Rename version parts binding for clarity. The “version info” meaning already conventionally means the tuple of version components, like ‘sys.version_info’. Rename the mapping to avoid this meaning. | py |
diff --git a/pyjstat/pyjstat.py b/pyjstat/pyjstat.py
index <HASH>..<HASH> 100644
--- a/pyjstat/pyjstat.py
+++ b/pyjstat/pyjstat.py
@@ -478,12 +478,12 @@ def to_json_stat(input_df, value='value', output='list', version='1.3'):
"category":
{"index":
... | Fix pylint issues | py |
diff --git a/src/satosa/micro_services/consent.py b/src/satosa/micro_services/consent.py
index <HASH>..<HASH> 100644
--- a/src/satosa/micro_services/consent.py
+++ b/src/satosa/micro_services/consent.py
@@ -89,7 +89,8 @@ class Consent(ResponseMicroService):
}
if self.locked_attr:
consent_... | If requester logo is available, send it to CMservice to be shown in UI | py |
diff --git a/rllib/agents/sac/sac_policy.py b/rllib/agents/sac/sac_policy.py
index <HASH>..<HASH> 100644
--- a/rllib/agents/sac/sac_policy.py
+++ b/rllib/agents/sac/sac_policy.py
@@ -160,7 +160,7 @@ def actor_critic_loss(policy, model, _, train_batch):
# Q-values for current policy (no noise) in given current stat... | Fix SAC bug (twin Q not used for min'ing over both Q-nets in loss func). (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setup(
zip_safe=False,
keywords=["mongo", "mongodb", "wire protocol", "mockupdb", "mock"],
classifiers=[
- 'Development Status :: 2 - Pre-Alpha',
+ 'Development Status :: 5 - Product... | Development Status is long since "Production" | py |
diff --git a/rpi_courses/metadata.py b/rpi_courses/metadata.py
index <HASH>..<HASH> 100644
--- a/rpi_courses/metadata.py
+++ b/rpi_courses/metadata.py
@@ -1,6 +1,6 @@
__author__ = "Jeff Hui"
__author_email__ = "contrib@jeffhui.net"
-__copyright__ = "Copyright 2010, Jeff Hui"
+__copyright__ = "Copyright 2011, Jeff Hui... | Updated copyright year... because I can. | py |
diff --git a/gnupg/tests/test_gnupg.py b/gnupg/tests/test_gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg/tests/test_gnupg.py
+++ b/gnupg/tests/test_gnupg.py
@@ -703,7 +703,7 @@ class GPGTestCase(unittest.TestCase):
key = self.generate_key("Barbara Brown", "beta.com")
barbara = key.fingerprin... | Fix a call in a unittest to _make_binary_stream() to call the correct module. | py |
diff --git a/jsonrpcserver/dispatcher.py b/jsonrpcserver/dispatcher.py
index <HASH>..<HASH> 100644
--- a/jsonrpcserver/dispatcher.py
+++ b/jsonrpcserver/dispatcher.py
@@ -20,6 +20,7 @@ class Dispatcher(object):
if name is None:
name = func.__name__
self._rpc_methods[name] = func
+ ... | Bugfix: The decorator must return the function. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ descr = """Python interface to UMFPACK sparse direct solver."""
DISTNAME = 'scikit-umfpack'
DESCRIPTION = 'Python interface to UMFPACK sparse direct solver.'
-with open('README') as fd:
+wit... | BUG: fix setup.py for README.md | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+from ishell import __version__ as ishell_version
from setuptools import setup, find_packages
from sys import platform
@@ -16,7 +17,7 @@ with open(requires_fil... | Changed setup.py to pull version alone from ishell | py |
diff --git a/pyhpeimc/tests/test_pyhpeimc_plat_alarms.py b/pyhpeimc/tests/test_pyhpeimc_plat_alarms.py
index <HASH>..<HASH> 100644
--- a/pyhpeimc/tests/test_pyhpeimc_plat_alarms.py
+++ b/pyhpeimc/tests/test_pyhpeimc_plat_alarms.py
@@ -76,6 +76,8 @@ class TestGet_realtime_alarm(TestCase):
#TODO Remarked out failing... | commented out test_get_all_alarms tests due to preserve build integrity. Need to investigate why this is failing. | py |
diff --git a/interfaces/python/infomap.py b/interfaces/python/infomap.py
index <HASH>..<HASH> 100644
--- a/interfaces/python/infomap.py
+++ b/interfaces/python/infomap.py
@@ -1288,6 +1288,47 @@ class Infomap(InfomapWrapper):
return self.get_nodes(depth_level=1, states=False)
@property
+ def num_nodes... | feat(python): Add shorthand for accessing number of nodes and links | py |
diff --git a/tests/test_symbolic.py b/tests/test_symbolic.py
index <HASH>..<HASH> 100644
--- a/tests/test_symbolic.py
+++ b/tests/test_symbolic.py
@@ -32,7 +32,7 @@ def test_concretization_strategies():
s.add_constraints(x <= 3)
ss = s.copy()
- nose.tools.assert_equal(ss.se.any_n_str(ss.memory.load(x, 1)... | Don't assume list order in test (pypy fix) | py |
diff --git a/python/src/cm_api/endpoints/types.py b/python/src/cm_api/endpoints/types.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/endpoints/types.py
+++ b/python/src/cm_api/endpoints/types.py
@@ -1173,6 +1173,7 @@ class ApiClusterTemplateRole(BaseApiObject):
class ApiClusterTemplateHostTemplate(BaseApiObjec... | [scm] OPSAPS-<I> ClusterTemplates: Cardinality needs to be described in the exported template Added cardinality attribute to host template in cluster template | py |
diff --git a/param/parameterized.py b/param/parameterized.py
index <HASH>..<HASH> 100644
--- a/param/parameterized.py
+++ b/param/parameterized.py
@@ -891,7 +891,7 @@ class Parameterized(object):
# "add_param()" method has to deal with it (plus any future
# remove_param() method.)
type.__seta... | Explicitly refer to metaclass, as __metaclass__ no longer exists | py |
diff --git a/codeanalyzer.py b/codeanalyzer.py
index <HASH>..<HASH> 100644
--- a/codeanalyzer.py
+++ b/codeanalyzer.py
@@ -372,7 +372,7 @@ class CodeAnalyzer(object):
reg_info = self._translator._reg_access_mapper.get(register_name, None)
if reg_info:
- var_base_name, _, var_shift = reg_i... | Overall improvements to x<I>base module. (2) | py |
diff --git a/invocations/packaging.py b/invocations/packaging.py
index <HASH>..<HASH> 100644
--- a/invocations/packaging.py
+++ b/invocations/packaging.py
@@ -188,15 +188,19 @@ def push(c):
@task(aliases=['upload'])
-def publish(c, wheel=False, index=None):
+def publish(c, sdist=True, wheel=False, index=None):
... | Allow explicit control over sdists too, for easy wheel-only uploads | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -383,19 +383,24 @@ class Install(install):
class InstallLib(install_lib):
def run(self):
+ executables = [
+ 'salt/templates/git/ssh-id-wrapper',
+ 'salt/templates/lxc/salt_tarball'... | Allow for more files to be more easily set to executable This allows for files to just be listed and then BAM! They are installed executable | py |
diff --git a/pydmt/main.py b/pydmt/main.py
index <HASH>..<HASH> 100644
--- a/pydmt/main.py
+++ b/pydmt/main.py
@@ -110,8 +110,6 @@ def build_tools():
pylogconf.core.setup()
p = PyDMT()
- f = FeatureVenv()
- f.setup(p)
f = FeatureApt()
f.setup(p)
f = FeatureNpm() | removed creating venv as part of venv | py |
diff --git a/BAC0/bokeh/BokehServer.py b/BAC0/bokeh/BokehServer.py
index <HASH>..<HASH> 100644
--- a/BAC0/bokeh/BokehServer.py
+++ b/BAC0/bokeh/BokehServer.py
@@ -42,7 +42,7 @@ class BokehServer(Thread):
def startServer(self):
if 'win32' in sys.platform:
- commandToExecute = "bokeh.bat ser... | .bat not needed when starting the server now. | py |
diff --git a/experiment/flakedetector.py b/experiment/flakedetector.py
index <HASH>..<HASH> 100755
--- a/experiment/flakedetector.py
+++ b/experiment/flakedetector.py
@@ -41,7 +41,7 @@ data = r.json()
jobs = {}
for job in data:
- if job['type'] != 'pr':
+ if job['type'] != 'presubmit':
continue
... | Fix pr->presubmit in flakedetector.py. | py |
diff --git a/girc/client.py b/girc/client.py
index <HASH>..<HASH> 100755
--- a/girc/client.py
+++ b/girc/client.py
@@ -406,6 +406,8 @@ class ServerConnection(asyncio.Protocol):
if event['direction'] == 'in':
self.capabilities.ingest(subcmd, params)
+ else:
+ return
#... | girc.client: Fix registration | py |
diff --git a/SoftLayer/managers/account.py b/SoftLayer/managers/account.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/managers/account.py
+++ b/SoftLayer/managers/account.py
@@ -284,6 +284,11 @@ class AccountManager(utils.IdentifierMixin, object):
:param string location: location string
:returns: Rou... | fix to errors in slcli hw create-options | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,10 @@ def main():
description="A Python STUN client for getting NAT type and external IP (RFC 3489)",
long_description=README,
classifiers=[
+ "Development Status :: 4 - Beta",
... | Add a few PyPI classifiers. | py |
diff --git a/uproot/interp/jagged.py b/uproot/interp/jagged.py
index <HASH>..<HASH> 100644
--- a/uproot/interp/jagged.py
+++ b/uproot/interp/jagged.py
@@ -162,7 +162,7 @@ class JaggedArray(object):
for i, x in enumerate(lists):
contents[starts[i]:stops[i]] = x
- return JaggedArray(content... | Numba-compiled JaggedArray still works | py |
diff --git a/werkzeug/contrib/fixers.py b/werkzeug/contrib/fixers.py
index <HASH>..<HASH> 100644
--- a/werkzeug/contrib/fixers.py
+++ b/werkzeug/contrib/fixers.py
@@ -232,7 +232,7 @@ class InternetExplorerFix(object):
def run_fixed(self, environ, start_response):
def fixing_start_response(status, header... | Headers.linked doesn't exist anymore | py |
diff --git a/haigha/connection.py b/haigha/connection.py
index <HASH>..<HASH> 100644
--- a/haigha/connection.py
+++ b/haigha/connection.py
@@ -66,10 +66,10 @@ class Connection(object):
self._connected = False
self._output_buffer = []
self._close_info = {
- 'reply_code' : -1,
+ 'reply_code' ... | Default _close_info confirms to packing rules Removed * args from dispatch() for speedup [#<I>] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ requirements = [
"py-eth-sig-utils>=0.3.0",
"typing-extensions==3.10.0.0; python_version < '3.8'",
"requests>=2",
- "web3>=5.18",
+ "web3>=5.18<=5.19",
]
extras_require = { | Don't require new versions of web3 - Gnosis-py breaks with web3 >= <I> | py |
diff --git a/pymongo/collection.py b/pymongo/collection.py
index <HASH>..<HASH> 100644
--- a/pymongo/collection.py
+++ b/pymongo/collection.py
@@ -2225,8 +2225,9 @@ class Collection(common.BaseObject):
.. code-block:: python
- for change in db.collection.watch():
- print(change)
+ ... | PYTHON-<I> - Use with in watch examples | py |
diff --git a/abilian/core/tests/test_entities.py b/abilian/core/tests/test_entities.py
index <HASH>..<HASH> 100644
--- a/abilian/core/tests/test_entities.py
+++ b/abilian/core/tests/test_entities.py
@@ -143,14 +143,14 @@ class EntityTestCase(TestCase):
class PermissionsTestCase(AbilianTestCase):
def test_default_... | fix test due to entity class already declared in another test | py |
diff --git a/d1_client_cli/src/d1_client_cli/dataone.py b/d1_client_cli/src/d1_client_cli/dataone.py
index <HASH>..<HASH> 100755
--- a/d1_client_cli/src/d1_client_cli/dataone.py
+++ b/d1_client_cli/src/d1_client_cli/dataone.py
@@ -1043,7 +1043,7 @@ class CLI(cmd.Cmd):
'''
try:
n_replicas = self._split_... | Cut and paste error: need to call replication_policy_"S"et_number_of_replicas, not replication_policy_"G"et_number_of_replicas. | py |
diff --git a/django_th/management/commands/fire_th_as.py b/django_th/management/commands/fire_th_as.py
index <HASH>..<HASH> 100644
--- a/django_th/management/commands/fire_th_as.py
+++ b/django_th/management/commands/fire_th_as.py
@@ -58,7 +58,7 @@ class Command(BaseCommand):
asyncio.get_event_loop().stop()
... | able to run w/ asyncio | py |
diff --git a/examples/particle_system_emit.py b/examples/particle_system_emit.py
index <HASH>..<HASH> 100644
--- a/examples/particle_system_emit.py
+++ b/examples/particle_system_emit.py
@@ -52,7 +52,7 @@ class Particles(Example):
title = "Particle System Emitter"
gl_version = (3, 3)
aspect_ratio = None
... | Example: particle emit. turn off mouse control by default | py |
diff --git a/openquake/utils/stats.py b/openquake/utils/stats.py
index <HASH>..<HASH> 100644
--- a/openquake/utils/stats.py
+++ b/openquake/utils/stats.py
@@ -34,7 +34,7 @@ from openquake.utils import config
# https://bugs.launchpad.net/openquake/+bug/907703
# Please note: counters apply to certain computation ar... | added nhlib-based hazard total/done counters Former-commit-id: <I>e<I>dfd<I>f9d5cb<I>f7fe0c<I>fc<I> | py |
diff --git a/SpiffWorkflow/bpmn2/specs/BpmnProcessSpec.py b/SpiffWorkflow/bpmn2/specs/BpmnProcessSpec.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn2/specs/BpmnProcessSpec.py
+++ b/SpiffWorkflow/bpmn2/specs/BpmnProcessSpec.py
@@ -7,7 +7,11 @@ from lxml.html import builder as E
__author__ = 'matth'
class En... | After rebase, it seems that the 'End' event isn't included in subworkflows any more, so this workflow attributes must be copied through in the EndJoin, instead. | py |
diff --git a/surfaces/channel.py b/surfaces/channel.py
index <HASH>..<HASH> 100644
--- a/surfaces/channel.py
+++ b/surfaces/channel.py
@@ -21,6 +21,7 @@ class Channel(Surface):
depth = 0.3
length = 7
weir_height = 0.15
+ weir_lenght = 0.1
def __init__(self, slope = None):
@@ -36,1... | Chanel weir reduced to minimal length. | py |
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -485,7 +485,9 @@ class Project(object):
sim_proc_class, kwargs = self.sim_procedures[addr]
l.debug("Creating SimProcedure %s (originally at 0x%x)",
sim... | added an inspect call for simprocedure calls | py |
diff --git a/tests/test_write_readback.py b/tests/test_write_readback.py
index <HASH>..<HASH> 100644
--- a/tests/test_write_readback.py
+++ b/tests/test_write_readback.py
@@ -64,17 +64,18 @@ class TestPythonMatlabFormat(object):
'float32', 'float64', 'complex64', 'complex128',
... | Fixed write readback test to not reuse generated options for reading so that the transpose before reshape bug can be checked. (cherry picked from commit 8ca5a5c<I>b<I>f6b<I>a<I>f<I>a<I>ebdc) | py |
diff --git a/pymatgen/analysis/tests/test_eos.py b/pymatgen/analysis/tests/test_eos.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/tests/test_eos.py
+++ b/pymatgen/analysis/tests/test_eos.py
@@ -56,9 +56,9 @@ class EOSTest(unittest.TestCase):
def test_numerical_eos_values(self):
np.testing.assert_... | comment out the problematic tests of values obtained from b0 in numerical eos | py |
diff --git a/rocker/commands/build.py b/rocker/commands/build.py
index <HASH>..<HASH> 100644
--- a/rocker/commands/build.py
+++ b/rocker/commands/build.py
@@ -7,4 +7,4 @@ Builds the docker image in the specified subdir"""
def run(args, r):
if len(args) != 2:
help.usage(None, "'build' expects exactly one argument ... | fixed issue in build command (wrong indentation) | py |
diff --git a/ryu/app/client.py b/ryu/app/client.py
index <HASH>..<HASH> 100644
--- a/ryu/app/client.py
+++ b/ryu/app/client.py
@@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# This is a client library for Ryu REST API. (ryu.app.rest_quantu... | ryu.app.client: comments | py |
diff --git a/estnltk/layer/ambiguous_attribute_tuple_list.py b/estnltk/layer/ambiguous_attribute_tuple_list.py
index <HASH>..<HASH> 100644
--- a/estnltk/layer/ambiguous_attribute_tuple_list.py
+++ b/estnltk/layer/ambiguous_attribute_tuple_list.py
@@ -7,12 +7,16 @@ from estnltk.layer.span import Span
def to_str(val... | improved tuple representation with to_str function | py |
diff --git a/spead2/test/test_passthrough.py b/spead2/test/test_passthrough.py
index <HASH>..<HASH> 100644
--- a/spead2/test/test_passthrough.py
+++ b/spead2/test/test_passthrough.py
@@ -258,11 +258,11 @@ class TestPassthroughUDPCustomSocket(BaseTestPassthrough):
send_sock = socket.socket(socket.AF_INET, socke... | Give IPv4 name for localhost, to try to fix Travis | py |
diff --git a/ceph_deploy/hosts/fedora/install.py b/ceph_deploy/hosts/fedora/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/fedora/install.py
+++ b/ceph_deploy/hosts/fedora/install.py
@@ -56,6 +56,11 @@ def install(distro, version_kind, version, adjust_repos, **kw):
]
)
+ ... | [RM-<I>] fedora: don't set repo priority twice For dev mode installs, fedora install() calls centos.mirror_install(), and both these methods were setting yum repo priorities. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ def main():
long_description=open(join(base_dir, 'README.rst')).read(),
author='Kunal Parmar',
author_email='kunalparmar@gmail.com',
- url='https://pypi.python.org/pypi/rotunico... | Update URL to point to GitHub. | py |
diff --git a/anytemplate/utils.py b/anytemplate/utils.py
index <HASH>..<HASH> 100644
--- a/anytemplate/utils.py
+++ b/anytemplate/utils.py
@@ -75,7 +75,8 @@ def chaincalls(callables, obj):
3
"""
for fun in callables:
- assert callable(fun), "%s is not callable object!" % str(fun)
+ if not c... | refactor: raise ValueError instead of AssertionError in .utils.chaincalls | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ with open('twilio/__init__.py') as f:
#
# You need to have the setuptools module installed. Try reading the setuptools
# documentation: http://pypi.python.org/pypi/setuptools
-REQUIRES = ["requests >= 2.0.0",... | Constrain PyJWT dependency to working versions | py |
diff --git a/pymongo/connection.py b/pymongo/connection.py
index <HASH>..<HASH> 100644
--- a/pymongo/connection.py
+++ b/pymongo/connection.py
@@ -568,7 +568,7 @@ class Connection(common.BaseObject):
raise AutoReconnect('%s:%d is not primary or master' % node)
# Direct connection
- if res... | Allow a direct connection to an arbiter node to succeed. That way, we can execute commands on the arbiter. | py |
diff --git a/openquake/baselib/workerpool.py b/openquake/baselib/workerpool.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/workerpool.py
+++ b/openquake/baselib/workerpool.py
@@ -154,6 +154,8 @@ def worker(sock, executing):
with sock:
for cmd, args, taskno, mon in sock:
fname = os.pat... | Added a comment [skip CI] | py |
diff --git a/jsonrpc/manager.py b/jsonrpc/manager.py
index <HASH>..<HASH> 100644
--- a/jsonrpc/manager.py
+++ b/jsonrpc/manager.py
@@ -109,6 +109,8 @@ class JSONRPCResponseManager(object):
except JSONRPCDispatchException as e:
output = response(error=e.error._data)
... | Log exception in RPC function regardless of exception type It's useful as a server-side developer to see the stack trace regardless if the error is a TypeError or not. | py |
diff --git a/bfg9000/tools/cc.py b/bfg9000/tools/cc.py
index <HASH>..<HASH> 100644
--- a/bfg9000/tools/cc.py
+++ b/bfg9000/tools/cc.py
@@ -261,8 +261,7 @@ class CcLinker(BuildCommand):
'objc++': {'c', 'c++', 'objc', 'objc++', 'f77', 'f95'},
'f77' : {'c', 'f77', 'f95'},
'f95' : {'c', 'f77'... | Improve GCJ support a bit This is mostly-speculative and probably somewhat irrelevant given that GCJ has been dropped from GCC, but for the handful of people on the planet who care, it might be nice. | py |
diff --git a/tests/test_enrich_jira.py b/tests/test_enrich_jira.py
index <HASH>..<HASH> 100644
--- a/tests/test_enrich_jira.py
+++ b/tests/test_enrich_jira.py
@@ -30,7 +30,7 @@ import unittest
if '..' not in sys.path:
sys.path.insert(0, '..')
-from grimoire_elk.elk.jira import JiraEnrich
+from grimoire_elk.enri... | [tests] Replace elk with enriched in import section for test_enrich_jira This code replaces the elk package reference in the import section. | py |
diff --git a/ryu/ofproto/oxm_fields.py b/ryu/ofproto/oxm_fields.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/oxm_fields.py
+++ b/ryu/ofproto/oxm_fields.py
@@ -225,6 +225,7 @@ def parse(mod, buf, offset):
oxm_len = mod.oxm_tlv_header_extract_length(header)
oxm_class = oxm_type >> 7
if oxm_class == OFP... | oxm_fields: Add comments | py |
diff --git a/perceval/backends/mozilla/remo.py b/perceval/backends/mozilla/remo.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/mozilla/remo.py
+++ b/perceval/backends/mozilla/remo.py
@@ -27,12 +27,12 @@ import logging
from grimoirelab.toolkit.datetime import str_to_datetime
from grimoirelab.toolkit.uris impor... | [remo] Import perceval modules using relative paths This patch changes the way how perceval modules are imported. Now absolute paths are replaced by relative ones. | py |
diff --git a/src/metpy/io/_tools.py b/src/metpy/io/_tools.py
index <HASH>..<HASH> 100644
--- a/src/metpy/io/_tools.py
+++ b/src/metpy/io/_tools.py
@@ -138,7 +138,7 @@ class Enum:
def __init__(self, *args, **kwargs):
"""Initialize the mapping."""
# Assign values for args in order starting at 0
- ... | Remove unneeded use of dict comprehension Pulled from #<I>. | py |
diff --git a/resolwe/flow/managers/listener.py b/resolwe/flow/managers/listener.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/managers/listener.py
+++ b/resolwe/flow/managers/listener.py
@@ -567,20 +567,20 @@ class ExecutorListener:
return
self.last_load_log = time.time()
... | Put listener statistics under extra argument in logs | py |
diff --git a/salt/serializers/yaml.py b/salt/serializers/yaml.py
index <HASH>..<HASH> 100644
--- a/salt/serializers/yaml.py
+++ b/salt/serializers/yaml.py
@@ -102,10 +102,11 @@ class Dumper(BaseDumper): # pylint: disable=W0232
Dumper.add_multi_representer(type(None), Dumper.represent_none)
Dumper.add_multi_represe... | py3: fix salt/serializers/yaml.py conditionally handle py2-only types | py |
diff --git a/tests/unit/utils/test_network.py b/tests/unit/utils/test_network.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_network.py
+++ b/tests/unit/utils/test_network.py
@@ -164,7 +164,7 @@ class NetworkTestCase(TestCase):
## ccc
127.0.0.1 localhost thisismyhostname # 本机
... | Fix mock_open call to use new multifile syntax | py |
diff --git a/hardcode/setQS.py b/hardcode/setQS.py
index <HASH>..<HASH> 100644
--- a/hardcode/setQS.py
+++ b/hardcode/setQS.py
@@ -1,3 +1,6 @@
+import logging
+logger=logging.getLogger(__name__)
+
import slactrac as sltr
energy0 = 20.35
QS1_length = 1
@@ -9,6 +12,7 @@ class QS(object):
class setQS(object):
... | Updated logging a little... | py |
diff --git a/grimoire_elk/elk/mozillaclub.py b/grimoire_elk/elk/mozillaclub.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/mozillaclub.py
+++ b/grimoire_elk/elk/mozillaclub.py
@@ -169,7 +169,7 @@ class MozillaClubEnrich(Enrich):
def enrich_items(self, ocean_backend):
max_items = self.elastic.max_it... | [elk/mozillaclub] Fix enrich_items method This code enables to store enriched items using the common method safe_put_bulk. Thus, controlling possible failures and returning the number of inserted items | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.