diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/intranet/apps/auth/backends.py b/intranet/apps/auth/backends.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/auth/backends.py
+++ b/intranet/apps/auth/backends.py
@@ -88,7 +88,9 @@ class KerberosAuthenticationBackend(object):
kinit = pexpect.spawnu("/usr/bin/kinit {}@{}".format(username... | Fail on Expired LOCAL Passwords It used to wait for a timeout. | py |
diff --git a/scapy/layers/inet.py b/scapy/layers/inet.py
index <HASH>..<HASH> 100644
--- a/scapy/layers/inet.py
+++ b/scapy/layers/inet.py
@@ -1597,7 +1597,7 @@ class MTR:
for asn in self._asns:
cipcur = [] # Array of IP Endpoints (Targets) consumed by the Current ASN Cluster
s += '... | Added the AS Description to the AS tooltip... | py |
diff --git a/pabot/pabotlib.py b/pabot/pabotlib.py
index <HASH>..<HASH> 100644
--- a/pabot/pabotlib.py
+++ b/pabot/pabotlib.py
@@ -166,7 +166,7 @@ class PabotLib(_PabotLib):
This can be used to run a global teardown that should be only
executed after all testing is done.
"""
- is_last ... | default: run on last process will execute the keyword | py |
diff --git a/allennlp/commands/train.py b/allennlp/commands/train.py
index <HASH>..<HASH> 100644
--- a/allennlp/commands/train.py
+++ b/allennlp/commands/train.py
@@ -261,13 +261,6 @@ def train_model(
num_procs = len(device_ids)
world_size = num_nodes * num_procs
- logging.info(
- ... | fix confusing distributed logging info (#<I>) | py |
diff --git a/sos/plugins/pcp.py b/sos/plugins/pcp.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/pcp.py
+++ b/sos/plugins/pcp.py
@@ -129,7 +129,7 @@ class Pcp(Plugin, RedHatPlugin, DebianPlugin):
self.pcp_hostname, '*')
pmlogger_ls = self.exec_cmd("ls -t1 %s" % path)
... | [pcp] Fix FileNotFoundError exception After API command consolidation via commit e8bb<I>c and commit e<I>d3e6, pcp started throwing a FileNotFound exception since the plugin treats the command output as the name of a path to open. Remove the open and just use the content of the 'output' entry directly. Resolves: #<I> | py |
diff --git a/explauto/environment/pendulum/pendulum.py b/explauto/environment/pendulum/pendulum.py
index <HASH>..<HASH> 100644
--- a/explauto/environment/pendulum/pendulum.py
+++ b/explauto/environment/pendulum/pendulum.py
@@ -1,5 +1,5 @@
from numpy import pi, array
-from numpy.random import randn
+from numpy import r... | Prevent an error when building the doc. | py |
diff --git a/angr/project.py b/angr/project.py
index <HASH>..<HASH> 100644
--- a/angr/project.py
+++ b/angr/project.py
@@ -159,14 +159,20 @@ class Project(object):
""" Use simprocedures where we can """
libs = self.__find_sim_libraries()
-
unresolved = []
- for i in self.main_binar... | Fix to get some missing simprocedures on MIPS | py |
diff --git a/spyder/plugins/ipythonconsole.py b/spyder/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole.py
@@ -1799,9 +1799,9 @@ class IPythonConsole(SpyderPluginWidget):
return
# Assign kernel manager and clie... | IPython console: Start kernel_client channels before assigning it to the client | py |
diff --git a/autolens/autofit/model_mapper.py b/autolens/autofit/model_mapper.py
index <HASH>..<HASH> 100644
--- a/autolens/autofit/model_mapper.py
+++ b/autolens/autofit/model_mapper.py
@@ -725,9 +725,13 @@ class TuplePrior(object):
tuple: (float,...)
A tuple of float values
"""
- ... | fixed creation of tuples with constants and variables | py |
diff --git a/emma2/__init__.py b/emma2/__init__.py
index <HASH>..<HASH> 100644
--- a/emma2/__init__.py
+++ b/emma2/__init__.py
@@ -1,7 +1,6 @@
"""
Emma2 package
"""
-
import coordinates
import msm
import pmm
@@ -9,4 +8,4 @@ import util
""" global logging support. See documentation of python library
loggi... | Removed import and put it in again. | py |
diff --git a/src/edeposit/amqp/aleph/convertors.py b/src/edeposit/amqp/aleph/convertors.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/aleph/convertors.py
+++ b/src/edeposit/amqp/aleph/convertors.py
@@ -4,6 +4,14 @@
# Interpreter version: python 2.7
#
#= Imports ==============================================... | Added module-level docstring. Removed fromEPublication, which is now uneccessary. | py |
diff --git a/neomodel/contrib/localisation.py b/neomodel/contrib/localisation.py
index <HASH>..<HASH> 100644
--- a/neomodel/contrib/localisation.py
+++ b/neomodel/contrib/localisation.py
@@ -34,7 +34,7 @@ class LocalisedIndexManager(NodeIndexManager):
lnode = node:%s({query})
MATCH (lnode)-[:L... | Overcome issue with python3 and unicode not being a type | py |
diff --git a/nfc/clf/pn53x.py b/nfc/clf/pn53x.py
index <HASH>..<HASH> 100644
--- a/nfc/clf/pn53x.py
+++ b/nfc/clf/pn53x.py
@@ -969,13 +969,14 @@ class Device(device.Device):
("CIU_CommIRq", 0b01111111), # clear interrupt request bits
("CIU_DivIRq", 0b01111111), # clear interrupt request b... | in card emulation response data may be None and timeout will often be None | py |
diff --git a/metpy/gridding/gridding_functions.py b/metpy/gridding/gridding_functions.py
index <HASH>..<HASH> 100644
--- a/metpy/gridding/gridding_functions.py
+++ b/metpy/gridding/gridding_functions.py
@@ -134,11 +134,11 @@ def interpolate(x, y, z, interp_type='linear', hres=50000,
Parameters
----------
- ... | MNT: Fix types in interpolate docstring. | py |
diff --git a/zhmcclient_mock/_urihandler.py b/zhmcclient_mock/_urihandler.py
index <HASH>..<HASH> 100644
--- a/zhmcclient_mock/_urihandler.py
+++ b/zhmcclient_mock/_urihandler.py
@@ -62,14 +62,14 @@ class InvalidResourceError(HTTPError):
def __init__(self, method, uri, handler_class=None):
if handler_cl... | Improved misleading exception message in mock support. Details: - The InvalidResourceError exception had text that stated 'no handler class' when a handler class actually did exist but the mock code simply did not specify it. Removed this misleading portion of the message when no handler was specified. | py |
diff --git a/docs/praat_manual.py b/docs/praat_manual.py
index <HASH>..<HASH> 100644
--- a/docs/praat_manual.py
+++ b/docs/praat_manual.py
@@ -14,9 +14,10 @@ def praat_manual_role(typ, rawtext, text, lineno, inliner, options={}, content=[
url = PRAAT_DOCS_URL.format(re.sub(r'[^A-Za-z0-9_+-]', '_', manpage)) # See Ma... | Changing the inner content of a link generated by the 'praat' role to 'emphasis' instead of 'literal' to make long Praat documentation titles wrappable over multiple lines when rendered | py |
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/oqvalidation.py
+++ b/openquake/commonlib/oqvalidation.py
@@ -116,7 +116,7 @@ class OqParam(valid.ParamSet):
ruptures_per_block = valid.Param(valid.positiveint, 1000)
co... | Changed the default of save_ruptures to True Former-commit-id: abf<I>b3d<I>f1a<I>ae<I>ec5b<I>b0f2ee<I> | py |
diff --git a/bcbio/rnaseq/stringtie.py b/bcbio/rnaseq/stringtie.py
index <HASH>..<HASH> 100644
--- a/bcbio/rnaseq/stringtie.py
+++ b/bcbio/rnaseq/stringtie.py
@@ -110,7 +110,9 @@ def version(data):
def supports_merge(data):
"""
- 1.2.0 and up supports the --merge option, obviating the need for cufflinks
- ... | Only run stringtie --merge if gffcompare is installed. The bare --merge doesn't add the class_codes, so we'll keep using cuffmerge for this step. | py |
diff --git a/bernhard/__init__.py b/bernhard/__init__.py
index <HASH>..<HASH> 100644
--- a/bernhard/__init__.py
+++ b/bernhard/__init__.py
@@ -59,7 +59,7 @@ class TCPTransport(object):
self.sock.close()
def read_exactly(self, sock, size):
- buffer = ''
+ buffer = bytes() # empty bytes seq... | fix using client with py3 | py |
diff --git a/pysc2/lib/renderer_human.py b/pysc2/lib/renderer_human.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/renderer_human.py
+++ b/pysc2/lib/renderer_human.py
@@ -198,7 +198,7 @@ def _get_desktop_size():
if os.name == "posix":
try:
xrandr_query = subprocess.check_output(["xrandr", "--query"])
- ... | Solved: Failed to get the resolution from xrandr (Screen reduction over episodes on Linux systems) PySC2: Import of refs/pull/<I>/head PiperOrigin-RevId: <I> | py |
diff --git a/testing.py b/testing.py
index <HASH>..<HASH> 100644
--- a/testing.py
+++ b/testing.py
@@ -18,10 +18,6 @@ def unit_test():
file1.gen_challenges(10, root_seed)
seed, hash_response = file1.get_challenge()
- # Check Seed and Hash Response
- assert(seed == 0.8872430607393933)
- assert(hash_response == '85... | Remove strict testing values. When the behavior of the challenges changes, these values will no longer match, regardless of whether the function works in a different way. | py |
diff --git a/digitalocean/Region.py b/digitalocean/Region.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Region.py
+++ b/digitalocean/Region.py
@@ -7,4 +7,7 @@ class Region(BaseAPI):
self.sizes = []
self.available = None
self.features = []
- super(Region, self).__init__(*args, **kwa... | The region should return the name when used as string. | py |
diff --git a/lime/lime_tabular.py b/lime/lime_tabular.py
index <HASH>..<HASH> 100644
--- a/lime/lime_tabular.py
+++ b/lime/lime_tabular.py
@@ -89,11 +89,17 @@ class TableDomainMapper(explanation.DomainMapper):
# Sparse case: only display the non-zero values and importances
fnames = [self.exp_f... | fix output order in visualize to be sorted in sparse case similar to dense case | py |
diff --git a/unitypack/utils.py b/unitypack/utils.py
index <HASH>..<HASH> 100644
--- a/unitypack/utils.py
+++ b/unitypack/utils.py
@@ -4,13 +4,11 @@ from os import SEEK_CUR
def lz4_decompress(data, size):
try:
- import lz4
+ from lz4.block import decompress
except ImportError:
- raise RuntimeError("python-lz4... | Update lz4_decompress for compatibility with python-lz4 >= <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,5 +3,6 @@ from distutils.core import setup
setup(name='pygraphml',
version='1.0',
author='Hadrien Mary',
+ description='Small library to parse GraphML files in Python',
url='https://github.com/hadim/pygra... | Update setup.py Changed description based on request. | py |
diff --git a/sachannelupdate/base.py b/sachannelupdate/base.py
index <HASH>..<HASH> 100644
--- a/sachannelupdate/base.py
+++ b/sachannelupdate/base.py
@@ -257,6 +257,6 @@ def entry(config, delete_files=None):
package(dest, tardir, version)
sign(config, path)
hash_file(path)
- if upload... | * FIX: upload check incorrect | py |
diff --git a/RL/space/set.py b/RL/space/set.py
index <HASH>..<HASH> 100644
--- a/RL/space/set.py
+++ b/RL/space/set.py
@@ -58,9 +58,6 @@ class AbstractSet(with_metaclass(ABCMeta, object)):
def __ne__(self, other):
return not self.equals(other)
- def __contains__(self, other):
- return self.con... | Removed magic `__contains__` method of `AbstractSet` ...due to bad behavior in case of numerical errors which may surprise the user. Now the check must me made explicitely with the `contains` method. | py |
diff --git a/troposphere/dms.py b/troposphere/dms.py
index <HASH>..<HASH> 100644
--- a/troposphere/dms.py
+++ b/troposphere/dms.py
@@ -75,7 +75,7 @@ class Endpoint(AWSObject):
'ServerName': (basestring, False),
'SslMode': (basestring, False),
'Tags': (Tags, False),
- 'Username': (bases... | Username property in DMS::Endpoint class should not be required (#<I>) | py |
diff --git a/flink-python/setup.py b/flink-python/setup.py
index <HASH>..<HASH> 100644
--- a/flink-python/setup.py
+++ b/flink-python/setup.py
@@ -326,7 +326,7 @@ run sdist.
'cloudpickle==1.2.2', 'avro-python3>=1.8.1,<=1.9.1', 'jsonpickle==1.2',
'pandas>=0.24.2,<1; ... | [FLINK-<I>][python] Limit the numpy version < <I> (#<I>) | py |
diff --git a/gcloud/datastore/helpers.py b/gcloud/datastore/helpers.py
index <HASH>..<HASH> 100644
--- a/gcloud/datastore/helpers.py
+++ b/gcloud/datastore/helpers.py
@@ -107,7 +107,7 @@ def get_value_from_protobuf(pb):
return pb.value.string_value
elif pb.value.HasField('entity_value'):
- return... | Drop XXX comment. Entities are not required to have datasets w/ active connections. | py |
diff --git a/interval/fields.py b/interval/fields.py
index <HASH>..<HASH> 100644
--- a/interval/fields.py
+++ b/interval/fields.py
@@ -84,7 +84,7 @@ class IntervalField(models.Field):
def db_type(self, connection):
if connection.settings_dict['ENGINE'].find('postgresql') >= 0 or \
- connection.s... | cleaned up an indentation issue for better PEP8 compliance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,9 +22,9 @@ class TestCommand(Command):
setup(
name='parse_rest',
- version='0.2.20141004',
+ version='0.2.20170114',
description='A client library for Parse.com\'.s REST API',
- url='https://github.co... | bring setup.py up to date | py |
diff --git a/test/test_concept_caching.py b/test/test_concept_caching.py
index <HASH>..<HASH> 100644
--- a/test/test_concept_caching.py
+++ b/test/test_concept_caching.py
@@ -103,6 +103,8 @@ def check_concept_caching(net, states, flushcache):
# End-to-end tests
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Ignore non-deterministic concept caching test with `xfail` | py |
diff --git a/tests/test_bypass_serialization.py b/tests/test_bypass_serialization.py
index <HASH>..<HASH> 100755
--- a/tests/test_bypass_serialization.py
+++ b/tests/test_bypass_serialization.py
@@ -36,7 +36,7 @@ class OutputTable(dj.Manual):
def test_bypass_serialization():
dj.blob.bypass_serialization = True
... | tests/test_bypass_serialization.py: actually turn off bypass | py |
diff --git a/src/maya/core.py b/src/maya/core.py
index <HASH>..<HASH> 100644
--- a/src/maya/core.py
+++ b/src/maya/core.py
@@ -602,7 +602,7 @@ class MayaInterval(object):
start += duration
def quantize(self, duration, snap_out=False, timezone="UTC"):
- """Returns a quanitzed interval."""
+ ... | Fix simple typo: quanitzed -> quantized Closes #<I> | py |
diff --git a/aioice/stun.py b/aioice/stun.py
index <HASH>..<HASH> 100644
--- a/aioice/stun.py
+++ b/aioice/stun.py
@@ -130,10 +130,12 @@ ATTRIBUTES = [
(0x0006, 'USERNAME', pack_string, unpack_string),
(0x0008, 'MESSAGE-INTEGRITY', pack_bytes, unpack_bytes),
(0x0009, 'ERROR-CODE', pack_error_code, unpack... | [stun] add some attributes for TURN | py |
diff --git a/benchbuild/environments/service_layer/handlers.py b/benchbuild/environments/service_layer/handlers.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/service_layer/handlers.py
+++ b/benchbuild/environments/service_layer/handlers.py
@@ -71,6 +71,9 @@ def create_benchbuild_base(
def run_project_co... | Add comment to run_project_container | py |
diff --git a/astromodels/tests/test_point_source.py b/astromodels/tests/test_point_source.py
index <HASH>..<HASH> 100644
--- a/astromodels/tests/test_point_source.py
+++ b/astromodels/tests/test_point_source.py
@@ -133,14 +133,18 @@ def test_call_with_units():
# Use the function as a spectrum
ps = Poi... | Avoid testing the TemplateModel class, which has its own test | py |
diff --git a/spyder_kernels/utils/iofuncs.py b/spyder_kernels/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/utils/iofuncs.py
+++ b/spyder_kernels/utils/iofuncs.py
@@ -379,13 +379,16 @@ def load_dictionary(filename):
data[name].insert(index, arr)
except KeyError:... | Catch additional errors loading dicts and ensure cleanup is done | py |
diff --git a/morango/sync/operations.py b/morango/sync/operations.py
index <HASH>..<HASH> 100644
--- a/morango/sync/operations.py
+++ b/morango/sync/operations.py
@@ -263,9 +263,7 @@ def _deserialize_from_store(profile, skip_erroring=False, filter=None):
# iterate through classes which are in foreign key depen... | Pass in filter to deserialize also | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -86,6 +86,9 @@ setup(
package_data = {
"pachyderm": ["py.typed"],
},
+ # Apparently this is required to be compatiable with mypy.
+ # See: https://mypy.readthedocs.io/en/latest/installed_packages.html
... | Fix mypy typing when used as third party package Apparently the package has to be `zip_safe = False` for `mypy` to work when being used as a third party package. | py |
diff --git a/vmo/utils/music21_interface.py b/vmo/utils/music21_interface.py
index <HASH>..<HASH> 100644
--- a/vmo/utils/music21_interface.py
+++ b/vmo/utils/music21_interface.py
@@ -50,7 +50,7 @@ def oracle_from_corpus(name, **kwags):
# Unstable, can break depending on the music21 structure of the piece
# ex... | Fixed bug in function calls to recently moved functions | py |
diff --git a/spyder/widgets/variableexplorer/utils.py b/spyder/widgets/variableexplorer/utils.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/utils.py
+++ b/spyder/widgets/variableexplorer/utils.py
@@ -450,8 +450,7 @@ def globalsfilter(input_dict, check_all=False, filters=None,
#==================... | Variable Explorer: Remove the remote_editing option | py |
diff --git a/girder/api/v1/user.py b/girder/api/v1/user.py
index <HASH>..<HASH> 100644
--- a/girder/api/v1/user.py
+++ b/girder/api/v1/user.py
@@ -277,12 +277,12 @@ class User(Resource):
# Only admins can change status
if 'status' in params and \
params['status'] != user.get('status',... | Don't send approval emails to re-enabled users An email message will only be sent on the transition from 'pending' -> 'enabled'. This should help to prevent misleading "approval" emails from being sent when users are changed 'disabled' -> 'enabled'. | py |
diff --git a/fitsio/test.py b/fitsio/test.py
index <HASH>..<HASH> 100644
--- a/fitsio/test.py
+++ b/fitsio/test.py
@@ -698,6 +698,23 @@ class TestReadWrite(unittest.TestCase):
if os.path.exists(fname):
os.remove(fname)
+ def testBadHeaderWriteRaises(self):
+ """
+ Test t... | TST added test for bad header key | py |
diff --git a/mpop/satin/viirs_sdr.py b/mpop/satin/viirs_sdr.py
index <HASH>..<HASH> 100644
--- a/mpop/satin/viirs_sdr.py
+++ b/mpop/satin/viirs_sdr.py
@@ -562,8 +562,10 @@ class ViirsSDRReader(Reader):
#"satellite": satscene.fullname
}
+ file_list = []
if filename... | ViirsSDR: Fix not to crash on single file input. | py |
diff --git a/greenhouse/scheduler.py b/greenhouse/scheduler.py
index <HASH>..<HASH> 100644
--- a/greenhouse/scheduler.py
+++ b/greenhouse/scheduler.py
@@ -178,7 +178,8 @@ def mainloop():
state.to_run.popleft().switch()
except Exception, exc:
- _consume_exception(*sys.exc_info())
+ ... | at python shutdown time, the sys module goes to None | py |
diff --git a/keyring/tests/test_backend.py b/keyring/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/test_backend.py
+++ b/keyring/tests/test_backend.py
@@ -347,9 +347,11 @@ class FileKeyringTests(BackendBasicTests):
def test_encrypt_decrypt(self):
password = random_string(20)
- ... | test_encrypt_decrypt now passes bytes, consistent with new behavior | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -414,15 +414,12 @@ class Reader(object):
self.close()
def close(self):
- try:
- if hasattr(self.shp, 'close'):
- self.shp.close()
- if hasattr(s... | safer closing of files in Reader.close() see #<I> | py |
diff --git a/theanets/layers/recurrent.py b/theanets/layers/recurrent.py
index <HASH>..<HASH> 100644
--- a/theanets/layers/recurrent.py
+++ b/theanets/layers/recurrent.py
@@ -234,7 +234,9 @@ class LRRNN(Recurrent):
\alpha_t h_{t-1} + (1 - \alpha_t) f(x_t, h_{t-1})`.
Rates might be defined in a number of way... | Add reference to fixed "leaky" RNN idea. | py |
diff --git a/py/h2o_gbm.py b/py/h2o_gbm.py
index <HASH>..<HASH> 100644
--- a/py/h2o_gbm.py
+++ b/py/h2o_gbm.py
@@ -1,6 +1,5 @@
import h2o_cmd, h2o
import re, random, math
-import matplotlib
def plotLists(xList, xLabel=None, eListTitle=None, eList=None, eLabel=None, fListTitle=None, fList=None, fLabel=None, server=... | mapplotlib import in wrong place | py |
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -252,21 +252,8 @@ class manifest_maker(sdist):
Write the file list in 'self.filelist' to the manifest file
named by 'sel... | FileList.append already excludes files that are not UTF-8 encodable, so rely on it when building the manifest. Ref #<I> | py |
diff --git a/fleece/__about__.py b/fleece/__about__.py
index <HASH>..<HASH> 100644
--- a/fleece/__about__.py
+++ b/fleece/__about__.py
@@ -15,7 +15,7 @@ __title__ = 'fleece'
__summary__ = 'Wrap the lamb...da'
__author__ = 'Rackers'
__email__ = 'bruce.stringer@rackspace.com'
-__version__ = '0.16.2'
+__version__ = '0.... | bumps version to <I> (#<I>) | py |
diff --git a/spyder/preferences/shortcuts.py b/spyder/preferences/shortcuts.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/shortcuts.py
+++ b/spyder/preferences/shortcuts.py
@@ -452,8 +452,8 @@ class ShortcutEditor(QDialog):
def set_sequence_to_default(self):
"""Set the new sequence to the de... | Use the more modern and clear format() syntax | py |
diff --git a/bika/lims/browser/analysisrequest/invoice.py b/bika/lims/browser/analysisrequest/invoice.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest/invoice.py
+++ b/bika/lims/browser/analysisrequest/invoice.py
@@ -58,8 +58,8 @@ class InvoiceView(BrowserView):
self.dateReceived = dateRe... | Fix bad context reference in Invoice view | py |
diff --git a/test_functools.py b/test_functools.py
index <HASH>..<HASH> 100644
--- a/test_functools.py
+++ b/test_functools.py
@@ -55,6 +55,8 @@ class TestThrottler(object):
class TestMethodCache:
+ bad_vers = '(3, 5, 0) <= sys.version_info < (3, 5, 2)'
+ @pytest.mark.skipif(bad_vers, reason="https://bugs.python.o... | Once again mark the test as skipped on versions where it's known to fail, as the upstream bug has been further extended to address the issue with __qualname__. Fixes #3. | py |
diff --git a/benchexec/model.py b/benchexec/model.py
index <HASH>..<HASH> 100644
--- a/benchexec/model.py
+++ b/benchexec/model.py
@@ -651,7 +651,7 @@ class Run(object):
return cmdline_for_run(self.runSet.benchmark.tool,
self.runSet.benchmark.executable,
... | Fix a bug from c<I>: Runs specified with <withoutfile> did not get their name as command-line argument anymore. | py |
diff --git a/dicom2nifti/compressed_dicom.py b/dicom2nifti/compressed_dicom.py
index <HASH>..<HASH> 100644
--- a/dicom2nifti/compressed_dicom.py
+++ b/dicom2nifti/compressed_dicom.py
@@ -47,6 +47,8 @@ def _get_gdcmconv():
if gdcmconv_executable is None:
raise ConversionError('GDCMCONV_NOT_FOUND')
+ r... | icometrix/dicom2nifti#<I>: Better/More consistent error handling if gdcmconv is not found | py |
diff --git a/HARK/utilities.py b/HARK/utilities.py
index <HASH>..<HASH> 100644
--- a/HARK/utilities.py
+++ b/HARK/utilities.py
@@ -942,7 +942,9 @@ def setup_latex_env_notebook(pf, latexExists):
latex_preamble = (
r"\usepackage{amsmath}\usepackage{amsfonts}\usepackage[T1]{fontenc}"
)
- ... | Make paths compatible with what latex expects | py |
diff --git a/wallace/models.py b/wallace/models.py
index <HASH>..<HASH> 100644
--- a/wallace/models.py
+++ b/wallace/models.py
@@ -812,10 +812,17 @@ class Network(Base):
return all_transformations
else:
return [t for t in all_transformations if t.node.status == node_status]
+
+ def... | Network: bulk up latest_transmission_recipient | py |
diff --git a/googlemaps/directions.py b/googlemaps/directions.py
index <HASH>..<HASH> 100644
--- a/googlemaps/directions.py
+++ b/googlemaps/directions.py
@@ -24,7 +24,7 @@ def directions(client, origin, destination,
mode=None, waypoints=None, alternatives=False, avoid=None,
language=Non... | Add traffic_model parameter This new parameter allows customers with Client IDs to utilize "Predictive Time in Traffic" in Directions queries which allows them to specify a travel_model (best_guess, optimistic, pessimistic) for a Directions result set to a departure time in the future and returns an estimated durratio... | py |
diff --git a/pifacedigitalio.py b/pifacedigitalio.py
index <HASH>..<HASH> 100644
--- a/pifacedigitalio.py
+++ b/pifacedigitalio.py
@@ -62,7 +62,7 @@ class Item(object):
"""An item connected to a pin on the RaspberryPi"""
def __init__(self, pin_num, board_num=0, handler=None):
self.pin_num = pin_num
-... | initialise now updates all boards, also fixed bug with class defs and board nums | py |
diff --git a/Tank/Plugins/Phantom.py b/Tank/Plugins/Phantom.py
index <HASH>..<HASH> 100644
--- a/Tank/Plugins/Phantom.py
+++ b/Tank/Plugins/Phantom.py
@@ -601,7 +601,7 @@ class PhantomConfig:
''' get option wrapper '''
return self.owner.get_option(option_ammofile, param2)
-
+ # FIXME: thi... | Finally fix IP resolving issue | py |
diff --git a/grapheneapi/aio/websocket.py b/grapheneapi/aio/websocket.py
index <HASH>..<HASH> 100644
--- a/grapheneapi/aio/websocket.py
+++ b/grapheneapi/aio/websocket.py
@@ -20,9 +20,6 @@ class Websocket(Rpc):
self._event = asyncio.Event(loop=self.loop)
async def connect(self):
- if log.getEffec... | Don't aut-set debug loglevel on websockets logger No sense, it's still needs a handler. Let's allow user to set this logger. | py |
diff --git a/nodeconductor/core/tasks.py b/nodeconductor/core/tasks.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/tasks.py
+++ b/nodeconductor/core/tasks.py
@@ -89,21 +89,21 @@ def set_state(model_class, uuid_or_pk, transition):
# There's nothing we can do here to save the state of an entity
... | Fix logging in @tracked_processing NC-<I> | py |
diff --git a/tensor2tensor/layers/common_layers.py b/tensor2tensor/layers/common_layers.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/layers/common_layers.py
+++ b/tensor2tensor/layers/common_layers.py
@@ -76,7 +76,7 @@ def shakeshake2_py(x, y, equal=False, individual=False):
"""The shake-shake sum of 2 tensors... | fix for shakeshake2_py with equal=True (#<I>) | py |
diff --git a/lavalink/client.py b/lavalink/client.py
index <HASH>..<HASH> 100644
--- a/lavalink/client.py
+++ b/lavalink/client.py
@@ -55,7 +55,7 @@ class Client:
}
async with self._session.get(destination, headers=headers) as res:
- if res_code == 200:
+ if res.status == 200:
... | this is a testament as to why you dont code while tired | py |
diff --git a/jacquard/variant_caller_transforms/strelka.py b/jacquard/variant_caller_transforms/strelka.py
index <HASH>..<HASH> 100644
--- a/jacquard/variant_caller_transforms/strelka.py
+++ b/jacquard/variant_caller_transforms/strelka.py
@@ -23,7 +23,7 @@ import jacquard.utils.vcf as vcf
JQ_STRELKA_TAG = "JQ_SK_"
... | ex-<I> (cagtes/dkriti) changed strelka version to <I> | py |
diff --git a/salt/modules/ssh.py b/salt/modules/ssh.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ssh.py
+++ b/salt/modules/ssh.py
@@ -862,7 +862,7 @@ def user_keys(user=None, pubfile=None, prvfile=None):
keys[u] = {}
userinfo = __salt__['user.info'](u)
- if not 'home' in userinfo:
+ ... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -78,7 +78,7 @@ setup(
# $ pip install -e .[dev,test]
extras_require={
'dev': ['check-manifest'],
- 'test': ['mock', 'coverage', 'pyfakefs'],
+ 'test': ['mock', 'coverage', 'pyfakefs', 'pytest']... | Adds pytest to dependencies | py |
diff --git a/uncompyle6/parsers/parse34.py b/uncompyle6/parsers/parse34.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/parsers/parse34.py
+++ b/uncompyle6/parsers/parse34.py
@@ -16,9 +16,18 @@ class Python34Parser(Python3Parser):
def p_misc34(self, args):
"""
# Python 3.5+ optimizes the trailing... | <I> continue handling. More work is needed | py |
diff --git a/switcheo/test_switcheo_client.py b/switcheo/test_switcheo_client.py
index <HASH>..<HASH> 100644
--- a/switcheo/test_switcheo_client.py
+++ b/switcheo/test_switcheo_client.py
@@ -17,6 +17,8 @@ class TestSwitcheoClient(unittest.TestCase):
'address': 'fea2b883725ef2d194c9060f606cd0a0468a2c59',
... | Adding new keys to the Order History API Return | py |
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_server.py
+++ b/cheroot/test/test_server.py
@@ -363,7 +363,10 @@ def test_high_number_of_file_descriptors(native_server_client, resource_limit):
assert any(fn >= resource_limit for fn in nativ... | Disable 'forked' functionality on macOS, which leads to errors. Ref #<I>. | py |
diff --git a/fusesoc/edalizer.py b/fusesoc/edalizer.py
index <HASH>..<HASH> 100644
--- a/fusesoc/edalizer.py
+++ b/fusesoc/edalizer.py
@@ -111,7 +111,7 @@ class Edalizer(object):
elif core.pos == 'last':
last_snippets.append(snippet)
else:
- last... | Fix bug in generator core pos logic. | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -773,7 +773,7 @@ class Item(BaseItem):
for f in files:
if (isinstance(f, string_types) and os.path.isdir(f)) or (os.path.isdir(f[-1])):
... | Avoid double / in s3 key. | py |
diff --git a/backprop/activation_functions.py b/backprop/activation_functions.py
index <HASH>..<HASH> 100644
--- a/backprop/activation_functions.py
+++ b/backprop/activation_functions.py
@@ -17,17 +17,26 @@ def sigmoid_function( signal, derivative=False ):
return signal
#end activation function
-def symmetr... | New: added a fast Sigmoid approximation (act. func.) | py |
diff --git a/ciscosparkapi/exceptions.py b/ciscosparkapi/exceptions.py
index <HASH>..<HASH> 100644
--- a/ciscosparkapi/exceptions.py
+++ b/ciscosparkapi/exceptions.py
@@ -128,12 +128,14 @@ class SparkApiError(ciscosparkapiException):
# Error message
response_code = response.status_code
+ resp... | Add response_reason to SparkApiError descriptions Add the `response.reason` (if present) to the `SparkApiError` description. | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -48,6 +48,8 @@ if salt.utils.is_windows():
_get_package_info = namespaced_function(_get_package_info, globals())
_get_latest_pkg_version = namespaced_function(_get_latest_pkg_v... | Add explanatory comment based on #<I> | py |
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -167,7 +167,8 @@ class KafkaConsumer(six.Iterator):
message iteration before raising StopIteration (i.e., ending the
iterator). Default bloc... | Fix docs by adding SASL mention This was previously supported but wasn't documented. Fix #<I>. | py |
diff --git a/mousedb/veterinary/tests.py b/mousedb/veterinary/tests.py
index <HASH>..<HASH> 100644
--- a/mousedb/veterinary/tests.py
+++ b/mousedb/veterinary/tests.py
@@ -18,7 +18,7 @@ MODELS = [MedicalIssue, MedicalCondition, MedicalTreatment]
class VeterinaryViewTests(TestCase):
'''This class tests the views fo... | Updated test fixture names for veterinary app | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -2600,7 +2600,8 @@ class ResponseFuture(object):
self._start_timer()
def _start_timer(self):
- self._timer = self.session.cluster.connection_class.create_t... | Allow ResponseFutures without a timeout | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,10 @@
from distutils.core import setup
-long_description = open('README.markdown').read()
+long_description = open('README.md').read()
setup(
name='django-mediasync',
- version="0.1",
+ version="1.0b"... | update setup.py to point to renamed README.md and update version number to <I>b | py |
diff --git a/aquarius/events/metadata_updater.py b/aquarius/events/metadata_updater.py
index <HASH>..<HASH> 100644
--- a/aquarius/events/metadata_updater.py
+++ b/aquarius/events/metadata_updater.py
@@ -325,7 +325,12 @@ class MetadataUpdater:
did_prefix = 'did:op:'
dao = Dao(oceandb=self._oceandb)
... | prevent repeated pool address in the ddo pools list | py |
diff --git a/etrago/cluster/disaggregation.py b/etrago/cluster/disaggregation.py
index <HASH>..<HASH> 100644
--- a/etrago/cluster/disaggregation.py
+++ b/etrago/cluster/disaggregation.py
@@ -218,6 +218,16 @@ class Disaggregation:
profile.disable()
print('Results transferred in ', (time.time() ... | Add sanity check for cumulative `'p'` values When summing up the `'p'` values for specific buses over all timesteps, the values should be identical, module small rounding errors, for the clustered network and the original network after uniform disaggregation. This commit adds output for the difference of these cumulat... | py |
diff --git a/biblion/models.py b/biblion/models.py
index <HASH>..<HASH> 100644
--- a/biblion/models.py
+++ b/biblion/models.py
@@ -24,11 +24,9 @@ from biblion.utils import can_tweet
class Post(models.Model):
- SECTION_CHOICES = [
- ("1", ALL_SECTION_NAME)
- ] + SECTIONS
+ SECTION_CHOICES = [(1,... | BI: changed section to IntegerField to allow for more nature section definition | py |
diff --git a/openquake/server/tests/tests.py b/openquake/server/tests/tests.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/tests.py
+++ b/openquake/server/tests/tests.py
@@ -110,12 +110,7 @@ class EngineServerTestCase(unittest.TestCase):
def setUp(self):
if sys.version_info[0] == 2:
- ... | Merged from master [skip CI] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -124,8 +124,8 @@ def get_version_info():
vinfo = _version_helper.generate_git_version_info()
except:
vinfo = vdummy()
- vinfo.version = '1.16.dev8'
- vinfo.release = 'False'
+ vinfo.... | Prep for release (#<I>) * Prep for release | py |
diff --git a/linebot/__about__.py b/linebot/__about__.py
index <HASH>..<HASH> 100644
--- a/linebot/__about__.py
+++ b/linebot/__about__.py
@@ -16,7 +16,7 @@
from __future__ import unicode_literals
-__version__ = '1.6.0'
+__version__ = '1.7.0'
__author__ = 'LINE Corporation'
__copyright__ = 'Copyright 2016, LINE ... | Release <I> (#<I>) | py |
diff --git a/SpiffWorkflow/bpmn/specs/IntermediateCatchEvent.py b/SpiffWorkflow/bpmn/specs/IntermediateCatchEvent.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn/specs/IntermediateCatchEvent.py
+++ b/SpiffWorkflow/bpmn/specs/IntermediateCatchEvent.py
@@ -71,12 +71,10 @@ class IntermediateCatchEvent(Simple, Bpmn... | Somewhat better on complete hook, - at least the timed boundary event doesn't get in a loop | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,15 +1,17 @@
from distutils.core import setup
+version = '2018.3.17'
+
setup(
name = 'graphdb',
packages = ['graphdb'], # this must be the same as the name above
- version = '2018.1.18',
+ version = version,
i... | graphdb is now thread safe thanks to new state machine internals | py |
diff --git a/securesystemslib/util.py b/securesystemslib/util.py
index <HASH>..<HASH> 100755
--- a/securesystemslib/util.py
+++ b/securesystemslib/util.py
@@ -27,12 +27,10 @@ from __future__ import division
from __future__ import unicode_literals
import os
-import sys
import gzip
import shutil
import logging
im... | Remove no-longer-needed imports in util.py sys and fnmatch are no longer needed due to the removal of unused functions in prior commits. | py |
diff --git a/zpar/__init__.py b/zpar/__init__.py
index <HASH>..<HASH> 100644
--- a/zpar/__init__.py
+++ b/zpar/__init__.py
@@ -46,8 +46,6 @@ class ZPar(object):
_unload_models.argtypes = [c.c_void_p]
self.libptr.unload_models(self._zpar_session_obj)
- sys.stderr.write('Done unloading\n')
-
... | Removed extraneous print statement. | py |
diff --git a/PleaseApp/please.py b/PleaseApp/please.py
index <HASH>..<HASH> 100644
--- a/PleaseApp/please.py
+++ b/PleaseApp/please.py
@@ -7,7 +7,7 @@ SEARCH_LIMIT = 12
def fingerprints(t_signal, freq=None, frame_width=4096, overlap=2048,
- density=15, fanout=.025, floor=0.2):
+ den... | Limit the number of constellations and key pairs to reduce db entries and size | py |
diff --git a/owslib/iso.py b/owslib/iso.py
index <HASH>..<HASH> 100644
--- a/owslib/iso.py
+++ b/owslib/iso.py
@@ -952,6 +952,9 @@ class MD_ReferenceSystem(object):
else:
val = md.find(util.nspath_eval(
'gmd:referenceSystemIdentifier/gmd:RS_Identifier/gmd:code/gco:CharacterString'... | Also look for gmx:Anchor for reference system code | py |
diff --git a/moto/ses/models.py b/moto/ses/models.py
index <HASH>..<HASH> 100644
--- a/moto/ses/models.py
+++ b/moto/ses/models.py
@@ -33,6 +33,7 @@ class SESBackend(BaseBackend):
def __init__(self):
self.addresses = []
self.domains = []
+ self.sent_messages = []
self.sent_message... | Add sent_messages back to SESBackend | py |
diff --git a/openquake/calculators/preclassical.py b/openquake/calculators/preclassical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/preclassical.py
+++ b/openquake/calculators/preclassical.py
@@ -132,7 +132,9 @@ def run_preclassical(calc):
pointlike.append(src)
elif hasattr(... | Fixed split_sources [ci skip] | py |
diff --git a/alotofeffort/s3.py b/alotofeffort/s3.py
index <HASH>..<HASH> 100755
--- a/alotofeffort/s3.py
+++ b/alotofeffort/s3.py
@@ -23,11 +23,11 @@ def deploy_file(root, f, bucket):
k.key = file_path
try:
k.set_contents_from_filename(file_path)
+ k.set_acl('public-read')
except socket.... | Move set_acl into try/except to avoid <I>. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -28,6 +28,8 @@ class Mock(object):
MOCK_MODULES = ['notmuch', 'notmuch.globals',
'twisted', 'twisted.internet',
'twisted.internet.defer',
+ 'twisted.python',
+ ... | Add two more twisted modules to the mock_modules list | py |
diff --git a/passphrase/calc.py b/passphrase/calc.py
index <HASH>..<HASH> 100644
--- a/passphrase/calc.py
+++ b/passphrase/calc.py
@@ -50,10 +50,6 @@ def entropy_bits(
# Some NumPy replacements
counts = [lst.count(x) for x in lst]
probs = [c / n_lst for c in counts]
- n_classes = len([x for x in probs... | Remove unused code from calc That piece of code was not being used, and the condition never reached: for `n_classes` to be <=1, `probs` had to be just 1 element because no element could ever be 0, given that each element is a quotient, and the dividend is never 0. And for `probs` to be just 1 element, `counts` should ... | py |
diff --git a/pyuavcan/_cli/_main.py b/pyuavcan/_cli/_main.py
index <HASH>..<HASH> 100644
--- a/pyuavcan/_cli/_main.py
+++ b/pyuavcan/_cli/_main.py
@@ -30,6 +30,8 @@ def main() -> None:
_logger.info('Interrupted')
_logger.debug('Stack trace where the program has been interrupted', exc_info=True)
... | Do not suppress the stack trace on assertion error because it's only useful in a dev setting anyway so the user is never expected to be bothered by it | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.