diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_collections.py b/tests/test_collections.py
index <HASH>..<HASH> 100644
--- a/tests/test_collections.py
+++ b/tests/test_collections.py
@@ -91,7 +91,7 @@ class TestCollection:
with pytest.raises(Exception):
api.Event.create(b, '2cd64f22-2222-44f5-bc45-53440af38cec', (
... | Test: Fix uid inconsistency. | py |
diff --git a/src/toil/__init__.py b/src/toil/__init__.py
index <HASH>..<HASH> 100644
--- a/src/toil/__init__.py
+++ b/src/toil/__init__.py
@@ -27,6 +27,23 @@ def toilPackageDirPath():
assert result.endswith('/toil')
return result
-def resolveEntryPoint(entryPoint):
- return os.path.join(os.path.dirname(s... | Don't use absolute paths for entry points outside of virtualenvs (resolves #<I>) | py |
diff --git a/distribution/bin/tag-missing-milestones.py b/distribution/bin/tag-missing-milestones.py
index <HASH>..<HASH> 100755
--- a/distribution/bin/tag-missing-milestones.py
+++ b/distribution/bin/tag-missing-milestones.py
@@ -27,6 +27,7 @@ if len(sys.argv) != 5:
sys.stderr.write(" It is also necessary to set a... | Skip non-Apache repo PRs in milestone tagging script (#<I>) | py |
diff --git a/esda/shape.py b/esda/shape.py
index <HASH>..<HASH> 100644
--- a/esda/shape.py
+++ b/esda/shape.py
@@ -124,7 +124,7 @@ def isoperimetric_quotient(collection):
pp = (a_d) / (a_c) = (a_d) / ((p_d / (2*\pi))^2 * \pi) = (a_d) / (p_d**2 / (4\PI))
"""
- ga = _cast(ga)
+ ga = _cast(collection)
... | fix the ga/collection in ipq | py |
diff --git a/teneto/classes/bids.py b/teneto/classes/bids.py
index <HASH>..<HASH> 100644
--- a/teneto/classes/bids.py
+++ b/teneto/classes/bids.py
@@ -202,7 +202,7 @@ class TenetoBIDS:
if 'weight-var' in params.keys():
if params['weight-var'] == 'from-subject-fc':
fc_dir = base_di... | added possibility to supress report (fixed bug) | py |
diff --git a/udata/search/__init__.py b/udata/search/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/search/__init__.py
+++ b/udata/search/__init__.py
@@ -185,7 +185,7 @@ def suggest(q, field, size=10):
result = s.execute_suggest()
try:
return result.suggestions[0]['options']
- except IndexErr... | Do not fail when no suggestion is available | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate_commands/metadata.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate_commands/metadata.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/validate_commands/metadata.py
+++ b/datadog_ch... | add watt unit (#<I>) | py |
diff --git a/lettuce/core.py b/lettuce/core.py
index <HASH>..<HASH> 100644
--- a/lettuce/core.py
+++ b/lettuce/core.py
@@ -298,7 +298,8 @@ class Step(object):
def elsewhere(step):
# actual step behavior, maybe.
- This will raise error (thus halting execution of the step) if a subo... | When a subordinate step fails, raise the exception of that step rather than a generic 'Subordinate steps failed for this step.' message. | py |
diff --git a/master/buildbot/test/unit/test_process_buildstep.py b/master/buildbot/test/unit/test_process_buildstep.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_process_buildstep.py
+++ b/master/buildbot/test/unit/test_process_buildstep.py
@@ -219,11 +219,15 @@ class TestBuildStep(steps.BuildStep... | fix hideStepIf unit tests actually test that an exception is hideStepIf will be catched in error logs | py |
diff --git a/GPy/testing/examples_tests.py b/GPy/testing/examples_tests.py
index <HASH>..<HASH> 100644
--- a/GPy/testing/examples_tests.py
+++ b/GPy/testing/examples_tests.py
@@ -29,11 +29,11 @@ def checkgrads_generator(model):
"""
def model_checkgrads(model):
- assert model.checkgrad() is True
+ assert model... | Should now test all (although upon error it stops trying to generate any more) | py |
diff --git a/mdf_toolbox/globus_search/search_helper.py b/mdf_toolbox/globus_search/search_helper.py
index <HASH>..<HASH> 100644
--- a/mdf_toolbox/globus_search/search_helper.py
+++ b/mdf_toolbox/globus_search/search_helper.py
@@ -424,7 +424,7 @@ class SearchHelper():
dict: The full mapping for the index.
... | Update for Search change - unstable features now beta | py |
diff --git a/tests/test_features.py b/tests/test_features.py
index <HASH>..<HASH> 100644
--- a/tests/test_features.py
+++ b/tests/test_features.py
@@ -814,7 +814,7 @@ def test_fourier_tempogram_invert(sr, hop_length, win_length, center, window):
odf_inv = librosa.istft(tempogram, hop_length=1, center=center, win... | trying to fix fourier tempogram inversion test | py |
diff --git a/tests/test_symmetric.py b/tests/test_symmetric.py
index <HASH>..<HASH> 100644
--- a/tests/test_symmetric.py
+++ b/tests/test_symmetric.py
@@ -70,6 +70,17 @@ class SymmetricTests(unittest.TestCase):
plaintext = symmetric.rc2_cbc_pkcs5_decrypt(key, ciphertext, iv)
self.assertEqual(data, pla... | Add a test for RC2 with a <I> bit key | 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
@@ -1677,7 +1677,7 @@ class Client(Methods, BaseClient):
file_part += 1
if progress:
- progres... | Don't pass the client to progress callbacks anymore | py |
diff --git a/niworkflows/interfaces/tests/test_bids.py b/niworkflows/interfaces/tests/test_bids.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/tests/test_bids.py
+++ b/niworkflows/interfaces/tests/test_bids.py
@@ -519,7 +519,7 @@ def test_DerivativesDataSink_data_dtype_source(
def make_empty_nii_with_... | Simplify test_DerivativesDataSink_data_dtype_source | py |
diff --git a/masonite/drivers/SessionCookieDriver.py b/masonite/drivers/SessionCookieDriver.py
index <HASH>..<HASH> 100644
--- a/masonite/drivers/SessionCookieDriver.py
+++ b/masonite/drivers/SessionCookieDriver.py
@@ -85,7 +85,7 @@ class SessionCookieDriver(SessionContract, BaseDriver):
bool -- If the key... | fix F<I> local variable 'data' is assigned to but never used | py |
diff --git a/tests/test_signature_parser.py b/tests/test_signature_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_signature_parser.py
+++ b/tests/test_signature_parser.py
@@ -79,9 +79,9 @@ class StrategyGenerator(Parser):
"""
if len(toks) == 5 and toks[1] == '{' and toks[4] == '}':
- ... | Shorten lists in generated values in strategy. | py |
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/utils/__init__.py
+++ b/lib/svtplay_dl/utils/__init__.py
@@ -117,7 +117,9 @@ def select_quality(options, streams):
# Extract protocol prio, in the form of "hls,hds,http,rtmp",
# ... | select_quality: fix argument parsing Instead of parsing the argument to --stream-prio as a comma separated listed, it was accidentally handled as a space separated list. | py |
diff --git a/python/jsbeautifier/unpackers/packer.py b/python/jsbeautifier/unpackers/packer.py
index <HASH>..<HASH> 100644
--- a/python/jsbeautifier/unpackers/packer.py
+++ b/python/jsbeautifier/unpackers/packer.py
@@ -80,6 +80,7 @@ class Unbaser(object):
"""Functor for a given base. Will efficiently convert
... | More radix stuff Not much idea where all the radixes come from (dean.edwards.name doesn't seem to make them?) probably will need to extract radix params from the actual code. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,5 @@ setup(
# Any requirements here, e.g. "Django >= 1.1.1"
install_requires=[
'django',
- 'django-adminlte2'
],
) | Removing errant requirements in setup.py | py |
diff --git a/riak/test_server.py b/riak/test_server.py
index <HASH>..<HASH> 100644
--- a/riak/test_server.py
+++ b/riak/test_server.py
@@ -125,6 +125,7 @@ class TestServer(object):
def prepare(self):
if not self._prepared:
+ self.touch_ssl_distribution_args()
self.create_temp_dir... | Touch the ssl_distribution.args_file by running `riak chkconfig`. Closes #<I>. | py |
diff --git a/harvesters/core.py b/harvesters/core.py
index <HASH>..<HASH> 100755
--- a/harvesters/core.py
+++ b/harvesters/core.py
@@ -327,6 +327,7 @@ class Component2D(ComponentBase):
#
if self._part:
count = self._part.data_size
+ count //= component_per_bytes
da... | Resolve issue #<I> | py |
diff --git a/command/build_ext.py b/command/build_ext.py
index <HASH>..<HASH> 100644
--- a/command/build_ext.py
+++ b/command/build_ext.py
@@ -146,8 +146,7 @@ class build_ext (Command):
# Setup the CCompiler object that we'll use to do all the
# compiling and linking
- self.compiler = new_com... | Took out what looks like old debugging code that probably should never have been checked in: was passing the PLAT environment variable as the 'plat' argument to 'new_compiler()'. | py |
diff --git a/jose/jwt.py b/jose/jwt.py
index <HASH>..<HASH> 100644
--- a/jose/jwt.py
+++ b/jose/jwt.py
@@ -10,6 +10,7 @@ from six import string_types
from jose import jws
+from .exceptions import JWSError
from .exceptions import JWTClaimsError
from .exceptions import JWTError
from .exceptions import ExpiredSign... | Catch `JWSError`s in `jwt.decode()` So far exceptions raised in `jws.verify()` weren't caught in the above function, which led to it raising (undocumented) exceptions from the underlying module. This commit transforms said exceptions. This includes cases of invalid payload padding, error handling for which had previo... | py |
diff --git a/Lib/extractor/formats/ttx.py b/Lib/extractor/formats/ttx.py
index <HASH>..<HASH> 100644
--- a/Lib/extractor/formats/ttx.py
+++ b/Lib/extractor/formats/ttx.py
@@ -1,12 +1,12 @@
from extractor.formats.opentype import extractOpenTypeInfo, extractOpenTypeGlyphs, extractOpenTypeKerning
def isTTX(pathOrFile)... | import xml can raise all sort of exceptions apart from TTLibError | py |
diff --git a/mautrix/bridge/user.py b/mautrix/bridge/user.py
index <HASH>..<HASH> 100644
--- a/mautrix/bridge/user.py
+++ b/mautrix/bridge/user.py
@@ -84,11 +84,14 @@ class BaseUser(ABC):
current_dms = {}
if replace:
# Filter away all existing DM statuses with ... | Only send new m.direct account data if something changed | py |
diff --git a/py3status/modules/imap.py b/py3status/modules/imap.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/imap.py
+++ b/py3status/modules/imap.py
@@ -189,6 +189,9 @@ class Py3status:
socket.write(b'DONE\r\n') # important!
response = socket.read(4096).decode(encoding='ascii')
... | catch 'OK still there' (_now_ i'm done) when a change comes in, we send 'DONE', but sometimes more messages or the heartbeat come through right between those statements. then, we'll read again as to not fill up the logs with unnecessary 'recoverable errors' | py |
diff --git a/photutils/aperture_core.py b/photutils/aperture_core.py
index <HASH>..<HASH> 100644
--- a/photutils/aperture_core.py
+++ b/photutils/aperture_core.py
@@ -25,6 +25,7 @@ from .utils.wcs_helpers import (skycoord_to_pixel_scale_angle, assert_angle,
from astropy import __version__ as astropy_version
if versio... | decorating aperture_photometry() with support_nddata | py |
diff --git a/msvc9compiler.py b/msvc9compiler.py
index <HASH>..<HASH> 100644
--- a/msvc9compiler.py
+++ b/msvc9compiler.py
@@ -292,7 +292,6 @@ def query_vcvarsall(version, arch="x86"):
result[key] = removeDuplicates(value)
finally:
- popen.stdin.close()
popen.stdout.close()
... | Merged revisions <I> via svnmerge from svn+ssh://<EMAIL>/python/branches/py3k ........ r<I> | eric.araujo | <I>-<I>-<I> <I>:<I>:<I> <I> (ven., <I> nov. <I>) | 2 lines And now for something completely different: Finish fixing #<I> again. ........ | py |
diff --git a/openquake/hazardlib/shakemap.py b/openquake/hazardlib/shakemap.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/shakemap.py
+++ b/openquake/hazardlib/shakemap.py
@@ -195,11 +195,9 @@ def amplify_gmfs(imts, vs30s, gmfs):
Amplify the ground shaking depending on the vs30s
"""
n = len(vs... | Minor refactoring Former-commit-id: <I>ea3b<I>ef<I>e7ced<I>cb<I>a8d<I>cd1fc9df | py |
diff --git a/sos/plugins/ipmitool.py b/sos/plugins/ipmitool.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ipmitool.py
+++ b/sos/plugins/ipmitool.py
@@ -26,14 +26,22 @@ class IpmiTool(Plugin, RedHatPlugin, DebianPlugin):
packages = ('ipmitool',)
def setup(self):
+ result = self.get_command_output("... | [ipmitool] use usb interface if available SOSREPORT generally uses the default interface (/dev/ipmi0) while executing ipmitool command, which is quite slow as compare to usb interface. This usb interface uses the virtual device exposed from BMC like in OpenPower system AMI exposes virtual USB interface. IPMITOOL comm... | py |
diff --git a/openid/interface.py b/openid/interface.py
index <HASH>..<HASH> 100644
--- a/openid/interface.py
+++ b/openid/interface.py
@@ -60,7 +60,7 @@ class ValidLogin(ConsumerResponse):
if ret is None:
return False
- return ret[1] == server_id
+ return ret[1] == self.identity
... | [project @ Bug fix in consumer library] | py |
diff --git a/future/tests/test_int.py b/future/tests/test_int.py
index <HASH>..<HASH> 100644
--- a/future/tests/test_int.py
+++ b/future/tests/test_int.py
@@ -299,6 +299,12 @@ class IntTestCases(unittest.TestCase):
self.assertEqual(int(x), 100, msg=msg)
self.assertEqual(int(x, 2), 4, msg=msg)
... | Add a test for newint(newstr(u'<I>')), which worked in <I> but is failing now ... | py |
diff --git a/tests/test_views.py b/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -67,6 +67,26 @@ class GenerateDataTests(TestCase):
actual_list = self.mixin.generate_data(values_list_queryset, fields)
assert list(actual_list) == list(expected_li... | Test that we can extract data by following a ForeignKey relation. | py |
diff --git a/stone/target/obj_c_types.py b/stone/target/obj_c_types.py
index <HASH>..<HASH> 100644
--- a/stone/target/obj_c_types.py
+++ b/stone/target/obj_c_types.py
@@ -995,7 +995,6 @@ class ObjCTypesGenerator(ObjCBaseGenerator):
import_classes = [
fmt_routes_class(namespace.name),
... | [Obj-C] removed transport client import. | py |
diff --git a/geomet/tests/wkt_test.py b/geomet/tests/wkt_test.py
index <HASH>..<HASH> 100644
--- a/geomet/tests/wkt_test.py
+++ b/geomet/tests/wkt_test.py
@@ -112,10 +112,10 @@ class LineStringTestCase(unittest.TestCase):
self.assertEqual(expected, wkt.dumps(ls, decimals=3))
def test_loads_linestring_2d... | tests/wkt_test: Added negative test values to test_loads_linestring_2d. | py |
diff --git a/vprof/runtime_profile.py b/vprof/runtime_profile.py
index <HASH>..<HASH> 100644
--- a/vprof/runtime_profile.py
+++ b/vprof/runtime_profile.py
@@ -80,3 +80,9 @@ class RuntimeProfile(base_profile.BaseProfile):
'totalCalls': cprofile_stats.total_calls,
'callStats': self._transform_st... | Collect runtime stats in vprof process. | py |
diff --git a/tests/test_generators.py b/tests/test_generators.py
index <HASH>..<HASH> 100644
--- a/tests/test_generators.py
+++ b/tests/test_generators.py
@@ -318,10 +318,10 @@ class TestDoped(unittest.TestCase):
bqm = dimod.generators.random.doped(0.3, 100, seed=506)
total = len(bqm.quadratic)
... | change decimal places for doping tests | py |
diff --git a/azure-sdk-testutils/setup.py b/azure-sdk-testutils/setup.py
index <HASH>..<HASH> 100644
--- a/azure-sdk-testutils/setup.py
+++ b/azure-sdk-testutils/setup.py
@@ -11,4 +11,5 @@ setup(
author_email='azpysdkhelp@microsoft.com',
url='https://github.com/Azure/azure-sdk-for-python',
packages=find_... | Update setup.py (#<I>) | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -191,7 +191,10 @@ def get_related_resource_type(relation):
# Django 1.7
relation_model = parent_... | try to use field.remote_field instead of field.related (#<I>) | py |
diff --git a/python/rosette/api.py b/python/rosette/api.py
index <HASH>..<HASH> 100644
--- a/python/rosette/api.py
+++ b/python/rosette/api.py
@@ -111,16 +111,16 @@ def _retrying_request(op, url, data, headers):
if status < 500:
if not REUSE_CONNECTION:
HTTP_CONNECTION.close()
- return rdata, statu... | Updated python api again | py |
diff --git a/autotweet/learning.py b/autotweet/learning.py
index <HASH>..<HASH> 100644
--- a/autotweet/learning.py
+++ b/autotweet/learning.py
@@ -149,9 +149,12 @@ class DataCollection(object):
"""
if not grams:
- grams = session.query(Gram).all()
+ grams = session.query(Gram)
... | Enhance logging for recalculation | py |
diff --git a/api2.py b/api2.py
index <HASH>..<HASH> 100644
--- a/api2.py
+++ b/api2.py
@@ -23,11 +23,17 @@ class Canteen(Api2Entity):
self.fromJsonDict(values)
@staticmethod
- def find(ids=None):
+ def find(ids=None, near=None):
+ recvCanteens = lambda **kwargs: list(map(lambda c: Canteen(values=c),
+ Cantee... | api2: support canteens near filtering | py |
diff --git a/benchexec/runexecutor.py b/benchexec/runexecutor.py
index <HASH>..<HASH> 100644
--- a/benchexec/runexecutor.py
+++ b/benchexec/runexecutor.py
@@ -364,6 +364,7 @@ class RunExecutor():
stdin=DEVNULL,
stdout=outputFile, stderr=outputFile,
... | Prevent inheriting file descriptors to the benchmarked tool. This is the default since Python <I>, but we want it always. | py |
diff --git a/tools/dfu.py b/tools/dfu.py
index <HASH>..<HASH> 100755
--- a/tools/dfu.py
+++ b/tools/dfu.py
@@ -60,6 +60,10 @@ def build(file,targets,device=DEFAULT_DEVICE):
for t,target in enumerate(targets):
tdata = b''
for image in target:
+ # pad image to 8 bytes (needed at least for L476)
+ p... | tools/dfu.py: Pad image data to 8 byte alignment to support L<I>. | py |
diff --git a/sat_image/image.py b/sat_image/image.py
index <HASH>..<HASH> 100644
--- a/sat_image/image.py
+++ b/sat_image/image.py
@@ -1,3 +1,4 @@
+# coding: utf-8
# =============================================================================================
# Copyright 2017 dgketchum
# | added '# coding: utf-8' to top of file, a doc string was raising a SyntaxError; preparing to change Raster.bounds call from transform=transform to transform=affine, transform is a list, affine an affine object | py |
diff --git a/proj/__init__.py b/proj/__init__.py
index <HASH>..<HASH> 100755
--- a/proj/__init__.py
+++ b/proj/__init__.py
@@ -63,7 +63,10 @@ def archive(folder, dry_run=False):
def _last_modified(folder):
try:
- return max(_time_modified(f) for f in _iter_files(folder))
+ return max(
+ ... | Avoid timestamping symlinks, which can be broken | py |
diff --git a/sitetree/management/commands/sitetreeload.py b/sitetree/management/commands/sitetreeload.py
index <HASH>..<HASH> 100644
--- a/sitetree/management/commands/sitetreeload.py
+++ b/sitetree/management/commands/sitetreeload.py
@@ -79,8 +79,14 @@ class Command(BaseCommand):
tree_item_parents = defau... | fix sitetreeload management command for py<I> and django <I> | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -987,8 +987,6 @@ class OProc(object):
def setwinsize(fd):
rows, cols = OProc._default_window_size
TIOCSWINSZ = getattr(termios, 'TIOCSWINSZ', -2146929561)
- if TIOCSWINSZ == 2148037735: # L is not required in... | Pull in pexpect issue#<I> See discussion in <URL> | py |
diff --git a/web3/contract.py b/web3/contract.py
index <HASH>..<HASH> 100644
--- a/web3/contract.py
+++ b/web3/contract.py
@@ -474,6 +474,10 @@ class Contract:
encode_abi(cls.web3, constructor_abi, arguments, data=cls.bytecode)
)
else:
+ if args is not None or kwargs is... | bug: raise exception instead of silently ignoring unnecessary args | py |
diff --git a/mapchete/formats/default/raster_file.py b/mapchete/formats/default/raster_file.py
index <HASH>..<HASH> 100644
--- a/mapchete/formats/default/raster_file.py
+++ b/mapchete/formats/default/raster_file.py
@@ -114,7 +114,8 @@ class InputData(base.InputData):
)
# If soucre and target C... | avoid opening file again with rasterio | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -14,7 +14,7 @@ setup(
author_email="jbenet@cs.stanford.com",
url="http://github.com/jbenet/nanotime/tree/master/python",
keywords=["nanotime", "nanosecond", "time precision", "64bit time"],... | it is now a module not a whole package | py |
diff --git a/vel/launcher.py b/vel/launcher.py
index <HASH>..<HASH> 100644
--- a/vel/launcher.py
+++ b/vel/launcher.py
@@ -16,7 +16,7 @@ def main():
parser.add_argument('varargs', nargs='*', metavar='VARARGS', help='Extra options to the command')
parser.add_argument('-r', '--run_number', default=0, help="A ru... | Force seed to be an int. | py |
diff --git a/lenses/setter.py b/lenses/setter.py
index <HASH>..<HASH> 100644
--- a/lenses/setter.py
+++ b/lenses/setter.py
@@ -4,6 +4,12 @@ import copy
@singledispatch
def setitem_immutable(self, key, value):
+ '''Takes an object, a key, and a value and produces a new object
+ that is a copy of the original b... | added simple docstrings to setter functions | py |
diff --git a/conversejs/xmpp.py b/conversejs/xmpp.py
index <HASH>..<HASH> 100644
--- a/conversejs/xmpp.py
+++ b/conversejs/xmpp.py
@@ -212,7 +212,4 @@ def change_password(xmpp_account, new_password):
logger.error('Unable to connect to XMPP server.')
return False
- xmpp_account.password = new_pass... | Removing XMPPAccount password changing during change_password | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -229,7 +229,7 @@ class MixtureDistribution(Mixture, GibbsSampling, Distribution):
This makes a Mixture act like a Distribution for use in other compound models
'''
- def resample(self,data,niter=25):
+ de... | Temperature now propagates through resample_model calls | py |
diff --git a/master/buildbot/reporters/generators/utils.py b/master/buildbot/reporters/generators/utils.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/reporters/generators/utils.py
+++ b/master/buildbot/reporters/generators/utils.py
@@ -47,7 +47,7 @@ class BuildStatusGeneratorMixin(util.ComparableMixin):
def... | reporters: Support None subject in BuildStatusGeneratorMixin | py |
diff --git a/netpyne/network.py b/netpyne/network.py
index <HASH>..<HASH> 100644
--- a/netpyne/network.py
+++ b/netpyne/network.py
@@ -140,8 +140,7 @@ class Network (object):
if 'sec' not in connParam: connParam['sec'] = None # if section not specified, make None (will be assigned to first section in cell... | removed 'seed' param from conns in network.py (bug) | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -233,9 +233,8 @@ class Consul(object):
*token* is an optional `ACL token`_ to apply to this request.
*keys* is a boolean which, if True, says to return a flat list of
- ... | update docstring to make it clear seperator is used with the keys argument | py |
diff --git a/treeherder/log_parser/artifactbuildercollection.py b/treeherder/log_parser/artifactbuildercollection.py
index <HASH>..<HASH> 100644
--- a/treeherder/log_parser/artifactbuildercollection.py
+++ b/treeherder/log_parser/artifactbuildercollection.py
@@ -91,7 +91,7 @@ BuildbotPerformanceDataArtifactBuilder
... | Bug <I> - Send the unstructured log size to New Relic as ints New Relic Insights doesn't coerce strings to integers, so doesn't allow the graphing of custom attributes sent as strings. HTTP headers are always exposed as strings, even for fields that are expected to represent numbers, so we must explicitly cast Content... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,21 @@ setup(name='salt',
author='Thomas S Hatch',
author_email='thatch45@gmail.com',
url='https://github.com/thatch45/salt',
+ classifiers = [
+ 'Programming Language :: Python',
+ ... | Add classifiers to the setup.py | py |
diff --git a/taskqueue/aws_queue_api.py b/taskqueue/aws_queue_api.py
index <HASH>..<HASH> 100644
--- a/taskqueue/aws_queue_api.py
+++ b/taskqueue/aws_queue_api.py
@@ -102,7 +102,7 @@ class AWSTaskQueueAPI(object):
'All'
],
VisibilityTimeout=visibility_timeout,
- WaitTimeSeconds=0,
+ Wai... | fix: use <I> sec wait time to avoid polling 0s on tasks for AWS | py |
diff --git a/hupper/winapi.py b/hupper/winapi.py
index <HASH>..<HASH> 100644
--- a/hupper/winapi.py
+++ b/hupper/winapi.py
@@ -13,8 +13,8 @@ class JobObjectInfoType(object):
GroupInformation = 11
-class JOBOBJECTLIMIT(object):
- JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x2000
+class JobObjectLimit(object):
+ ... | cleanup names and pass a pointer explicitly | py |
diff --git a/ohapi/api.py b/ohapi/api.py
index <HASH>..<HASH> 100644
--- a/ohapi/api.py
+++ b/ohapi/api.py
@@ -326,6 +326,24 @@ def handle_error(r, expected_code):
def upload_aws(target_filepath, metadata, access_token, base_url=OH_BASE_URL,
remote_file_info=None, project_member_id=None,
... | Added documentation for upload_aws (#<I>) * project_member_id optional in upload function * resolving code climate issue * project_member_id optional in upload function * fix hound errors * Update api.py * optional project_member_id * Hound fixes and other refactoring * Hound fixes * Hound fix... | py |
diff --git a/alerta/top.py b/alerta/top.py
index <HASH>..<HASH> 100644
--- a/alerta/top.py
+++ b/alerta/top.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
import sys
import time
@@ -389,7 +388,8 @@ class Screen(object):
elif key in 'oO':
self.dedup_by = "origin"
elif key in 'qQ':
- ... | make screen sane after exiting | py |
diff --git a/devassistant/command_runners.py b/devassistant/command_runners.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_runners.py
+++ b/devassistant/command_runners.py
@@ -594,7 +594,7 @@ class SCLCommandRunner(CommandRunner):
@classmethod
def run(cls, c):
c.kwargs['__scls__'].append(c... | Fix SCLCommandRunner with new Yaml syntax | py |
diff --git a/python/orca/src/bigdl/orca/common.py b/python/orca/src/bigdl/orca/common.py
index <HASH>..<HASH> 100644
--- a/python/orca/src/bigdl/orca/common.py
+++ b/python/orca/src/bigdl/orca/common.py
@@ -155,7 +155,7 @@ def init_orca_context(cluster_mode="local", cores=2, memory="2g", num_nodes=1,
... | Support numa binding in init_spark_standalone (#<I>) * support numa binding in init_spark_standalone * add doc and add to orca context * address comments * address comments * update scripts * hyperthreading * fix | py |
diff --git a/spur/results.py b/spur/results.py
index <HASH>..<HASH> 100644
--- a/spur/results.py
+++ b/spur/results.py
@@ -1,8 +1,9 @@
def result(return_code, output, stderr_output, allow_error=False):
+ result = ExecutionResult(return_code, output, stderr_output)
if allow_error or return_code == 0:
- r... | Move logic for creating RunProcessError to ExecutionResult.to_error | py |
diff --git a/digsandpaper/search_server.py b/digsandpaper/search_server.py
index <HASH>..<HASH> 100644
--- a/digsandpaper/search_server.py
+++ b/digsandpaper/search_server.py
@@ -111,10 +111,10 @@ def _index_fields(request):
if (request.headers['Content-Type'] == 'application/x-gzip'):
gz_data_as_file = S... | Remove unnecessary utf-8 decode | py |
diff --git a/tests/settings/__init__.py b/tests/settings/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/settings/__init__.py
+++ b/tests/settings/__init__.py
@@ -17,3 +17,5 @@ INSTALLED_APPS = [
]
TEST_RUNNER = 'tests.runners.MutantTestSuiteRunner'
+
+SILENCED_SYSTEM_CHECKS = ['1_7.W001'] | Silenced a system check. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ def fontbakery_scripts():
setup(
name="fontbakery",
- version='0.3.1',
+ version='0.3.2',
url='https://github.com/googlefonts/fontbakery/',
description='Font Bakery is a set of command-li... | version bump in preparation for an imminent pypi release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ def read(fname):
install_requires = [
'Django>=1.4',
- 'PyScss>=1.2.0,<=1.3.0',
+ 'PyScss>=1.2.0,<1.3.0',
]
tests_require = [
'Pillow', | Fix bad pinning. We don't want to install <I> Really fixes #<I>. | py |
diff --git a/dedupe/core.py b/dedupe/core.py
index <HASH>..<HASH> 100644
--- a/dedupe/core.py
+++ b/dedupe/core.py
@@ -32,13 +32,14 @@ def randomPairs(n_records, sample_size):
n = int(n_records * (n_records - 1) / 2)
if sample_size >= n :
- random_pairs = numpy.arange(n)
+ random_pairs = numpy... | try to avoid numeric overflow in randomPairs | py |
diff --git a/rstcheck/__init__.py b/rstcheck/__init__.py
index <HASH>..<HASH> 100755
--- a/rstcheck/__init__.py
+++ b/rstcheck/__init__.py
@@ -397,6 +397,8 @@ def _get_directives_and_roles_from_sphinx() -> typing.Tuple[typing.List[str], ty
sphinx_roles += list(
sphinx.application.docutils.roles._roles # ... | remove code and code-block from sphinx ignore list | py |
diff --git a/tests/attrel/check_attrel.py b/tests/attrel/check_attrel.py
index <HASH>..<HASH> 100755
--- a/tests/attrel/check_attrel.py
+++ b/tests/attrel/check_attrel.py
@@ -12,6 +12,7 @@ def check_attrel(attrel_cls, filename, max_discrep_percentage,
max_errors=0, verbose=False):
reader = csv.re... | tests/attrel/check_attrel: better way to check if csv column has value from calculation context | py |
diff --git a/builder.py b/builder.py
index <HASH>..<HASH> 100755
--- a/builder.py
+++ b/builder.py
@@ -1585,6 +1585,11 @@ class Sample(Pmag_object):
if self.site.er_data['site_' + dtype]:
value = self.site.er_data['site_' + dtype]
self.er_data['samp... | automatically grab site latitudes/longitudes and apply them to samples if the samples don't have latitudes/longitudes of their own | py |
diff --git a/test/testutils.py b/test/testutils.py
index <HASH>..<HASH> 100644
--- a/test/testutils.py
+++ b/test/testutils.py
@@ -28,7 +28,7 @@ def gen_random_name():
def gen_random_version():
- return random.choice(string.digits) + '.' + random.choice(string.digits)
+ return ''.join(random.choice(string.di... | ensure that the chance of versions collision is mitigated | py |
diff --git a/allennlp/commands/main.py b/allennlp/commands/main.py
index <HASH>..<HASH> 100644
--- a/allennlp/commands/main.py
+++ b/allennlp/commands/main.py
@@ -5,8 +5,11 @@ import allennlp.commands.serve as serve
import allennlp.commands.predict as predict
import allennlp.commands.train as train
import allennlp.c... | Add check for PYTHONHASHSEED to run. (#<I>) | py |
diff --git a/rest_framework_nested/__init__.py b/rest_framework_nested/__init__.py
index <HASH>..<HASH> 100644
--- a/rest_framework_nested/__init__.py
+++ b/rest_framework_nested/__init__.py
@@ -12,3 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+__v... | __init__/__version__ is the new version place | py |
diff --git a/eth_utils/encoding.py b/eth_utils/encoding.py
index <HASH>..<HASH> 100644
--- a/eth_utils/encoding.py
+++ b/eth_utils/encoding.py
@@ -1,10 +1,6 @@
-import math
-
-
def int_to_big_endian(value):
- byte_length = max(math.ceil(value.bit_length() / 8), 1)
- return value.to_bytes(byte_length, byteorder='... | Faster int_to_big_endian implementation | py |
diff --git a/horizon/loaders.py b/horizon/loaders.py
index <HASH>..<HASH> 100644
--- a/horizon/loaders.py
+++ b/horizon/loaders.py
@@ -29,7 +29,7 @@ class TemplateLoader(BaseLoader):
is_usable = True
def get_template_sources(self, template_name):
- bits = template_name.split(os.path.sep, 2)
+ ... | Always split template names on forward slash Template names in Django always use forward slash, even on Windows, so to parse them properly, split on forward slash instead of os.path.sep which is '\\' on Windows. Change-Id: Ib<I>b<I>f<I>aa1e<I>fed<I>cbac5d<I>b<I>e Closes-Bug: #<I> | py |
diff --git a/edc_permissions/permissions_inspector.py b/edc_permissions/permissions_inspector.py
index <HASH>..<HASH> 100644
--- a/edc_permissions/permissions_inspector.py
+++ b/edc_permissions/permissions_inspector.py
@@ -169,6 +169,12 @@ class PermissionsInspector:
return {'unexpected': [x for x in existing ... | add method to inspector to delete unused codenames | py |
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py
index <HASH>..<HASH> 100644
--- a/salt/modules/zypper.py
+++ b/salt/modules/zypper.py
@@ -195,6 +195,7 @@ class Zypper(object):
# Zypper call will stuck here waiting, if another zypper hangs until forever.
# However, Zypper lock needs to b... | Fire an event about released Zypper with its result | py |
diff --git a/userena/urls.py b/userena/urls.py
index <HASH>..<HASH> 100644
--- a/userena/urls.py
+++ b/userena/urls.py
@@ -102,7 +102,7 @@ urlpatterns = patterns('',
name='userena_profile_edit'),
# View profiles
- url(r'^(?P<username>(?!signout|signup|signin)[\@\.\w-]+)/$',
+ url(r'^(?P<username>(?... | urls: update negative lookahead assertion in userena_profile_detail pattern Fixes #<I> by allowing user profile detail urls to contain username **starting** with 'signup', 'signout', or 'signin' strings | py |
diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py
index <HASH>..<HASH> 100644
--- a/napalm/junos/junos.py
+++ b/napalm/junos/junos.py
@@ -948,7 +948,6 @@ class JunOSDriver(NetworkDriver):
'type': py23_compat.text_type,
'apply_groups': list,
'remove_private_as': bool,
- ... | remove cluster from the output Conflicts: napalm/junos/junos.py | py |
diff --git a/matplotlib2tikz.py b/matplotlib2tikz.py
index <HASH>..<HASH> 100644
--- a/matplotlib2tikz.py
+++ b/matplotlib2tikz.py
@@ -1198,6 +1198,12 @@ def _draw_path(obj, data, path,
):
'''Adds code for drawing an ordinary path in PGFPlots (TikZ).
'''
+ if 'draw=white' in draw_options an... | don't convert void paths introduced by matplotlib | py |
diff --git a/sandstone/scripts/run_client_tests.py b/sandstone/scripts/run_client_tests.py
index <HASH>..<HASH> 100644
--- a/sandstone/scripts/run_client_tests.py
+++ b/sandstone/scripts/run_client_tests.py
@@ -36,6 +36,7 @@ dep_list = [
'ui.router',
'sandstone.acemodes',
'ui.bootstrap',
+ 'sandstone.... | Added broadcastservice to client test dep list. | py |
diff --git a/scripts/experiments/run_ace2.py b/scripts/experiments/run_ace2.py
index <HASH>..<HASH> 100755
--- a/scripts/experiments/run_ace2.py
+++ b/scripts/experiments/run_ace2.py
@@ -622,13 +622,20 @@ class SrlExpParamsRunner(ExpParamsRunner):
inference="BP",
... | Updating hyperparams for ace-agiga2 | py |
diff --git a/lib/autokey/scripting/engine.py b/lib/autokey/scripting/engine.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/scripting/engine.py
+++ b/lib/autokey/scripting/engine.py
@@ -19,7 +19,7 @@ from collections.abc import Iterable
from typing import Tuple, Optional, List, Union
-from autokey import model, i... | Allow new phrases to override existing hotkey | py |
diff --git a/fandjango/middleware.py b/fandjango/middleware.py
index <HASH>..<HASH> 100644
--- a/fandjango/middleware.py
+++ b/fandjango/middleware.py
@@ -97,6 +97,8 @@ class FacebookMiddleware():
user.oauth_token.save()
user.save()
+ finally:
+ ... | Extend the OAuth token for new and existing users alike | py |
diff --git a/turbolift/utils.py b/turbolift/utils.py
index <HASH>..<HASH> 100644
--- a/turbolift/utils.py
+++ b/turbolift/utils.py
@@ -580,7 +580,7 @@ def restor_perms(local_file, headers):
os.chmod(
local_file,
- int(headers['x-object-meta-perms'])
+ int(headers['x-object-meta-perms'], 8)... | change int to oct for perms restor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,6 @@ setup(
url='https://github.com/DMSC-Instrument-Data/lewis',
author='Michael Hart, Michael Wedel, Owen Arnold',
author_email='Michael Hart <michael.hart@stfc.ac.uk>, '
- 'Michael We... | Removed email as it is no longer valid | py |
diff --git a/panels/_version.py b/panels/_version.py
index <HASH>..<HASH> 100644
--- a/panels/_version.py
+++ b/panels/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.0.18"
+__version__ = "0.0.19" | Update version number to <I> | py |
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/classes.py
+++ b/Lib/glyphsLib/classes.py
@@ -1734,6 +1734,17 @@ class GSComponent(GSBase):
self.transform = [affine[0], affine[1], affine[3], affine[4], affine[2], affine[5]]
@property
+ ... | Implemented GSComponent.component and .componentName | py |
diff --git a/dividebatur/senatecount.py b/dividebatur/senatecount.py
index <HASH>..<HASH> 100755
--- a/dividebatur/senatecount.py
+++ b/dividebatur/senatecount.py
@@ -48,6 +48,11 @@ class SenateCountPost2015:
return Ticket((PreferenceFlow(tuple(prefs)), ))
def btl_flow(form):
+ if sel... | fix s<I> implementation talking with deanashley<I> on twitter, it seems BTL ballots shouldn't be excluded if informal (no clear 1-6) after the renumbering is applied. s<I> actually skips the exclusion of informal ballots step. (thanks Dean!) | py |
diff --git a/marathon/models/app.py b/marathon/models/app.py
index <HASH>..<HASH> 100644
--- a/marathon/models/app.py
+++ b/marathon/models/app.py
@@ -94,7 +94,7 @@ class MarathonApp(MarathonResource):
tasks_healthy=None, task_kill_grace_period_seconds=None, tasks_unhealthy=None, upgrade_strategy=None... | Adding the key "networks" in the JSON received of marathon | py |
diff --git a/artist/multi_plot.py b/artist/multi_plot.py
index <HASH>..<HASH> 100644
--- a/artist/multi_plot.py
+++ b/artist/multi_plot.py
@@ -31,7 +31,7 @@ class MultiPlot:
self.subplots = []
for i in range(rows):
for j in range(columns):
- self.subplots.append(SubPlot(i, ... | Renamed SubPlot -> SubPlotContainer | py |
diff --git a/contentfiles/storage.py b/contentfiles/storage.py
index <HASH>..<HASH> 100644
--- a/contentfiles/storage.py
+++ b/contentfiles/storage.py
@@ -44,4 +44,5 @@ class PrivateStorage(ContentFilesMixin, LibCloudPrivateStorage):
def url(self, name):
protocol = 'https' if CONTENTFILES_SSL else 'http'
... | Didn't quote the private storage file name | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -317,7 +317,7 @@ class Cluster(object):
if not self._is_setup:
self.load_balancing_policy.populate(
- weakref.proxy(self), self... | Fix bad load balancing policy population | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
'''
Execution: | should i add unicode support to setup.py? sure why not? what could possibly go wrong? | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.