diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/acestream/request.py b/acestream/request.py index <HASH>..<HASH> 100644 --- a/acestream/request.py +++ b/acestream/request.py @@ -16,7 +16,7 @@ class Response(object): class Request(object): def __init__(self, schema='http', host='127.0.0.1', port=6878): - self.base = self._getapi_base(schema, hos...
request: rename base url function
py
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index <HASH>..<HASH> 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -254,7 +254,7 @@ class SFTPClient (BaseSFTP): # If we've hit the end of our queued requests, reset nums. nums = list() - ...
Add python <I> support except block to listdir_iter
py
diff --git a/cherrypy/filters/baseurlfilter.py b/cherrypy/filters/baseurlfilter.py index <HASH>..<HASH> 100644 --- a/cherrypy/filters/baseurlfilter.py +++ b/cherrypy/filters/baseurlfilter.py @@ -13,7 +13,14 @@ class BaseUrlFilter(BaseFilter): return request = cherrypy.request - ne...
Fix for #<I> (BaseURLFilter doesn't use socket_port).
py
diff --git a/pytorch_pretrained_bert/modeling_gpt2.py b/pytorch_pretrained_bert/modeling_gpt2.py index <HASH>..<HASH> 100644 --- a/pytorch_pretrained_bert/modeling_gpt2.py +++ b/pytorch_pretrained_bert/modeling_gpt2.py @@ -218,7 +218,7 @@ class Attention(nn.Module): w = w / math.sqrt(v.size(-1)) n...
Fix gradient overflow issue during attention mask This fix is in reference to issue #<I>. GPT2 can now be trained in mixed precision, which I've confirmed with testing. I also tested unconditional generation on multiple seeds before and after changing 1e<I> to 1e4 and there was no difference. Please let me know if the...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -123,6 +123,7 @@ CLASSIFIERS = ( 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.1', 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: Implementation ::...
Add PyPy to Trove classifier in setup().
py
diff --git a/test/test_coordinator.py b/test/test_coordinator.py index <HASH>..<HASH> 100644 --- a/test/test_coordinator.py +++ b/test/test_coordinator.py @@ -55,7 +55,7 @@ def test_autocommit_enable_api_version(client, api_version): def test_protocol_type(coordinator): - assert coordinator.protocol_type() is '...
Use ==/!= to compare str, bytes, and int literals Identity is not the same thing as equality in Python so use ==/!= to compare str, bytes, and int literals. In Python >= <I>, these instances will raise __SyntaxWarnings__ so it is best to fix them now. <URL>
py
diff --git a/zounds/learn/preprocess.py b/zounds/learn/preprocess.py index <HASH>..<HASH> 100644 --- a/zounds/learn/preprocess.py +++ b/zounds/learn/preprocess.py @@ -417,9 +417,7 @@ class MeanStdNormalization(Preprocessor): def _forward_func(self): def x(d, mean=None, std=None): import numpy...
Eliminate warning associated with mean std normalization
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -50,8 +50,11 @@ class install(_install): def run(self): _install.run(self) # Installing the plugins requires write permission to plugins directory - # (Default: /usr/share/munin/plugins) which is...
Implement env var for forcing plugin dir in install script.
py
diff --git a/tests/test_comms.py b/tests/test_comms.py index <HASH>..<HASH> 100644 --- a/tests/test_comms.py +++ b/tests/test_comms.py @@ -45,7 +45,12 @@ class CommsTest(unittest.TestCase): self.assertFalse(cm.delete_channel(temp_channel, 'FAKE')) self.assertTrue('channel : temp_input : 0 incoming me...
basic test for message class in comms
py
diff --git a/pusherclient/connection.py b/pusherclient/connection.py index <HASH>..<HASH> 100755 --- a/pusherclient/connection.py +++ b/pusherclient/connection.py @@ -234,7 +234,7 @@ class Connection(Thread): self._start_timers() def _pong_handler(self, data): - # self. logger.info("Connection: p...
Re-enable pong logging.
py
diff --git a/plip/basic/config.py b/plip/basic/config.py index <HASH>..<HASH> 100644 --- a/plip/basic/config.py +++ b/plip/basic/config.py @@ -1,4 +1,4 @@ -__version__ = '2.1.6' +__version__ = '2.1.7' __maintainer__ = 'PharmAI GmbH (2020) - www.pharm.ai - hello@pharm.ai' import logging
Update config.py Changes version to <I>
py
diff --git a/container/docker/engine.py b/container/docker/engine.py index <HASH>..<HASH> 100644 --- a/container/docker/engine.py +++ b/container/docker/engine.py @@ -280,8 +280,9 @@ class Engine(BaseEngine): cap_add=['SYS_ADMIN'] ) - if command == 'build': - run_kwargs['privil...
Always run conductor privileged (#<I>)
py
diff --git a/bika/lims/browser/analysisrequest/workflow.py b/bika/lims/browser/analysisrequest/workflow.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest/workflow.py +++ b/bika/lims/browser/analysisrequest/workflow.py @@ -38,6 +38,10 @@ class AnalysisRequestWorkflowAction(WorkflowAction): ...
Protective request handling sentry.bikalabs.com/bikalims/bikalims/group/<I>/
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -74,7 +74,7 @@ setup( long_description=find_longdesc(), url='http://code.google.com/p/selenium/', src_root=src_root, - classifiers=['Development Status :: 4 - Beta', + classifiers=['Development Status ...
DavidBurns setting development status to stable r<I>
py
diff --git a/py/selenium/webdriver/remote/remote_connection.py b/py/selenium/webdriver/remote/remote_connection.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/remote/remote_connection.py +++ b/py/selenium/webdriver/remote/remote_connection.py @@ -471,6 +471,10 @@ class RemoteConnection(object): ...
fix python HTTPS encoding for python driver (#<I>) * fix python HTTPS encoding for python driver * adding an if statement here to only do this if there is a username and password passed * fixing if statement * missed a colon
py
diff --git a/irc/bot.py b/irc/bot.py index <HASH>..<HASH> 100644 --- a/irc/bot.py +++ b/irc/bot.py @@ -43,6 +43,11 @@ class ServerSpec(object): @six.add_metaclass(abc.ABCMeta) class ReconnectStrategy(object): + """ + An abstract base class describing the interface used by + SingleServerIRCBot for handling ...
Simplify construction of ExponentialBackoff to perform simple sanity checks on the bounds. No longer accept None or other False values for the min_interval (or reconnection_interval).
py
diff --git a/payu/experiment.py b/payu/experiment.py index <HASH>..<HASH> 100644 --- a/payu/experiment.py +++ b/payu/experiment.py @@ -21,6 +21,9 @@ import shutil import subprocess as sp import sysconfig +# Extensions +import yaml + # Local from payu import envmod from payu.fsops import mkdir_p, make_symlink, re...
Added missing import to experiment.py
py
diff --git a/torchvision/transforms/transforms.py b/torchvision/transforms/transforms.py index <HASH>..<HASH> 100644 --- a/torchvision/transforms/transforms.py +++ b/torchvision/transforms/transforms.py @@ -553,8 +553,9 @@ class RandomResizedCrop(object): tuple: params (i, j, h, w) to be passed to ``crop``...
move area calculation out of loop (#<I>) * move area calculation out of loop No need to calculate area <I> times when it doesn't change. * lint
py
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index <HASH>..<HASH> 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -983,6 +983,7 @@ _network_error_messages = ( # 'timeout: timed out', # 'socket.timeout: timed out', 'timed out', + 'Server Hangup', 'HTTP Error 503...
BLD: more exception message skipping in @network
py
diff --git a/leonardo/module/web/widget/application/models.py b/leonardo/module/web/widget/application/models.py index <HASH>..<HASH> 100644 --- a/leonardo/module/web/widget/application/models.py +++ b/leonardo/module/web/widget/application/models.py @@ -2,7 +2,7 @@ from __future__ import absolute_import, unicode_li...
Add select2 widget to external app.
py
diff --git a/tests/test_transport_http.py b/tests/test_transport_http.py index <HASH>..<HASH> 100644 --- a/tests/test_transport_http.py +++ b/tests/test_transport_http.py @@ -280,6 +280,8 @@ def test_sending_using_network_sockets(send_method, monkeypatch): def __init__(self, mocker): self.__mocke...
fix test failure with Python <I> New Python <I> urllib implementation now explicitly closes its HTTP server connection socket in case of any exceptions.
py
diff --git a/hooks/xkcd.py b/hooks/xkcd.py index <HASH>..<HASH> 100755 --- a/hooks/xkcd.py +++ b/hooks/xkcd.py @@ -30,10 +30,12 @@ substitutions={'keyboard': 'leopard', 'witnesses': 'these dudes I know', @Hook(types=['pubmsg', 'action'], args=['nick', 'type']) def handle(send, msg, args): """ Implements several ...
Also actuwlly do the change even if -ass isn't in the message
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -952,9 +952,10 @@ class State(object): if name not in high: errors.append( 'Cannot extend ID {0} in "{1}:{2}". It is not part ' - ...
Fix #<I> This adds a fallback to prevent the env from being missed
py
diff --git a/python/thunder/rdds/fileio/seriesloader.py b/python/thunder/rdds/fileio/seriesloader.py index <HASH>..<HASH> 100644 --- a/python/thunder/rdds/fileio/seriesloader.py +++ b/python/thunder/rdds/fileio/seriesloader.py @@ -35,13 +35,19 @@ class SeriesLoader(object): @staticmethod def __normalizeData...
protect against case where directory name happens to match file extension by prepending . to extension in seriesloader
py
diff --git a/dev_tools/change-log.py b/dev_tools/change-log.py index <HASH>..<HASH> 100755 --- a/dev_tools/change-log.py +++ b/dev_tools/change-log.py @@ -204,7 +204,7 @@ class Fragment(NamedTuple): } if self.issues: meta_data['issues'] = self.issues - if self.pulls: + if se...
fixed rename missed during refactoring
py
diff --git a/carto/sql.py b/carto/sql.py index <HASH>..<HASH> 100644 --- a/carto/sql.py +++ b/carto/sql.py @@ -277,12 +277,10 @@ class CopySQLClient(object): def _compress_chunks(self, chunk_generator, compression_level): zlib_mode = 16 + zlib.MAX_WBITS compressor = zlib.compressobj(compression_l...
Fix stream compression This makes the code python2/3 compatible and simplifies it at the same time.
py
diff --git a/safe/impact_statistics/function_options_dialog.py b/safe/impact_statistics/function_options_dialog.py index <HASH>..<HASH> 100644 --- a/safe/impact_statistics/function_options_dialog.py +++ b/safe/impact_statistics/function_options_dialog.py @@ -37,7 +37,9 @@ from collections import OrderedDict from saf...
Get rid of safe_interface usage in function_options_dialog.py.
py
diff --git a/source/rafcon/mvc/controllers/modification_history.py b/source/rafcon/mvc/controllers/modification_history.py index <HASH>..<HASH> 100755 --- a/source/rafcon/mvc/controllers/modification_history.py +++ b/source/rafcon/mvc/controllers/modification_history.py @@ -120,6 +120,8 @@ class ModificationHistoryTree...
add conservative storage_lock release for modification-history reset by controller
py
diff --git a/tabledata/normalizer.py b/tabledata/normalizer.py index <HASH>..<HASH> 100644 --- a/tabledata/normalizer.py +++ b/tabledata/normalizer.py @@ -51,10 +51,12 @@ class AbstractTableDataNormalizer(TableDataNormalizerInterface): :rtype: tabledata.TableData """ + normalize_header_list =...
Change to pass normalized headers to _normalize_row_list method
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,4 +25,7 @@ setup( ] }, zip_safe=False, + install_requires=( + 'decorator>=3.0.1' + ), )
Added decorator to required packages in setup.py
py
diff --git a/holoviews/plotting/sheetplots.py b/holoviews/plotting/sheetplots.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/sheetplots.py +++ b/holoviews/plotting/sheetplots.py @@ -360,10 +360,10 @@ class MatrixGridPlot(GridPlot, OverlayPlot): border = param.Number(default=10, doc=""" Aggregate ...
Enabled titles by default on MatrixGridPlot
py
diff --git a/cwltool/process.py b/cwltool/process.py index <HASH>..<HASH> 100644 --- a/cwltool/process.py +++ b/cwltool/process.py @@ -689,8 +689,8 @@ def mergedirs(listing): for e in listing: if e["basename"] not in ents: ents[e["basename"]] = e - elif e["class"] == "Directory": - ...
Fix mergedirs() so it doesn't fail if a Directory object lacks a listing field. (#<I>)
py
diff --git a/canary/api.py b/canary/api.py index <HASH>..<HASH> 100644 --- a/canary/api.py +++ b/canary/api.py @@ -251,11 +251,10 @@ class Entry: self._entry_type = data["entry_type"] self._start_time = data["start_time"] self._end_time = data["end_time"] - self._thumbnails_by_device_u...
Refactored Entry and Thumbnail
py
diff --git a/gcloud/datastore/query.py b/gcloud/datastore/query.py index <HASH>..<HASH> 100644 --- a/gcloud/datastore/query.py +++ b/gcloud/datastore/query.py @@ -308,3 +308,29 @@ class Query(object): return [Entity.from_protobuf(entity, dataset=self.dataset()) for entity in entity_pbs] + + def ord...
Add 'order' method to query. Manually apply diff from Tagtoo-master: 5f<I>e<I>a<I>fe1cef<I>cdffe<I>b<I>dc9^.. 4a<I>c<I>fda<I>a<I>e<I>bd0c<I>a0bb2fc<I>c5
py
diff --git a/pymatbridge/pymatbridge.py b/pymatbridge/pymatbridge.py index <HASH>..<HASH> 100644 --- a/pymatbridge/pymatbridge.py +++ b/pymatbridge/pymatbridge.py @@ -95,7 +95,7 @@ def decode_pymat(dct): if 'ndarray' in dct and 'data' in dct: value = decode_arr(dct['data']) shape = dct['shape'] -...
Made json encode/decode reversible with Python 3 support
py
diff --git a/paramiko/file.py b/paramiko/file.py index <HASH>..<HASH> 100644 --- a/paramiko/file.py +++ b/paramiko/file.py @@ -121,8 +121,8 @@ class BufferedFile (object): raise IOError('File not open for reading') if (size is None) or (size < 0): # go for broke - result = ...
[project @ Arch-1:<EMAIL><I>-public%secsh--dev--<I>--patch-<I>] fix rbuffer -> _rbuffer in 3 places i missed fix 3 places where "rbuffer" hadn't been converted to "_rbuffer". thanks to kevin c. dorff for the bug report.
py
diff --git a/highton/models/person.py b/highton/models/person.py index <HASH>..<HASH> 100644 --- a/highton/models/person.py +++ b/highton/models/person.py @@ -48,11 +48,11 @@ class Person( OFFSET = 500 def __init__(self, **kwargs): - self.company_id = fields.IntegerField(name=HightonConstants.COMPANY...
changed person fields to being required, so they are also send in an request even when they are empty/None
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ requirements = [ 'pyqode.qt', 'pyqode.core', 'jedi', - 'pep8', + 'pycodestyle', 'pyflakes', 'docutils' ]
Remove pep8 dependency since it is now replaced by pycodestyle.
py
diff --git a/satpy/readers/clavrx.py b/satpy/readers/clavrx.py index <HASH>..<HASH> 100644 --- a/satpy/readers/clavrx.py +++ b/satpy/readers/clavrx.py @@ -443,7 +443,7 @@ class CLAVRXNetCDFFileHandler(_CLAVRxHelper, BaseFileHandler): l1b_att, inst_att = (str(self.nc.attrs.get('L1B', None)), ...
Add the check for GOES in the netCDF file reader as well, so it does not get assigned a polar swath
py
diff --git a/rest_framework_jwt/views.py b/rest_framework_jwt/views.py index <HASH>..<HASH> 100644 --- a/rest_framework_jwt/views.py +++ b/rest_framework_jwt/views.py @@ -25,7 +25,8 @@ class JSONWebTokenAPIView(APIView): renderer_classes = (renderers.JSONRenderer,) def post(self, request): - serializ...
Some specialized serializers needs the request in context.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( version = '0.1.0', url = 'https://github.com/gregmuellegger/django-mobile', license = 'BSD', - description = '', + description = u'Detect mobile browsers and serve different template ...
Adding description to setup.py
py
diff --git a/OpenPNM/Utilities/IO.py b/OpenPNM/Utilities/IO.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Utilities/IO.py +++ b/OpenPNM/Utilities/IO.py @@ -1056,7 +1056,7 @@ class MARock(): net['pore.coords'] = _sp.array([ni, nj, nk]).T with open(th2np_file, mode='rb') as f: - Nt = _sp...
Wow, the numpy changes were quite severe...still can't believe it's only 2 errors
py
diff --git a/vecnet/openmalaria/tests/test_scenario.py b/vecnet/openmalaria/tests/test_scenario.py index <HASH>..<HASH> 100644 --- a/vecnet/openmalaria/tests/test_scenario.py +++ b/vecnet/openmalaria/tests/test_scenario.py @@ -40,7 +40,7 @@ class TestGetSchemaVersion(unittest.TestCase): self.assertRaises(Attri...
-Fix: Test scenario xml string's length is now equal to <I> characters.
py
diff --git a/runfiles.py b/runfiles.py index <HASH>..<HASH> 100644 --- a/runfiles.py +++ b/runfiles.py @@ -122,8 +122,8 @@ def main(): files_or_dirs.append(file + ':' + test) elif test_framework == PY_TEST_FRAMEWORK: - file = _NormFile(file) ...
Don't normalize the entry point for pytest anymore.
py
diff --git a/telethon/session.py b/telethon/session.py index <HASH>..<HASH> 100644 --- a/telethon/session.py +++ b/telethon/session.py @@ -325,10 +325,10 @@ class Session: """Generates a new unique message ID based on the current time (in ms) since epoch""" # Refer to mtproto_plain_sender....
Fix time offset failing if system time was ahead of time While the offset was working, the last message ID was never reset, so it would always pick an higher message ID (safety check), which completely defeated the purpose of negative time offsets. Should close #<I>.
py
diff --git a/pymc3/tests/test_models_utils.py b/pymc3/tests/test_models_utils.py index <HASH>..<HASH> 100644 --- a/pymc3/tests/test_models_utils.py +++ b/pymc3/tests/test_models_utils.py @@ -30,6 +30,7 @@ class TestUtils: m, l = utils.any_to_tensor_and_labels(self.data, labels=['x2', 'x3']) self.asser...
Disable test_dict_input while upstream issue is resolved.
py
diff --git a/ores/features_reverted.py b/ores/features_reverted.py index <HASH>..<HASH> 100644 --- a/ores/features_reverted.py +++ b/ores/features_reverted.py @@ -6,12 +6,12 @@ prints a TSV to stdout of the format: Usage: features_reverted -h | --help - features_reverted <features> --api=<url> [--language=<m...
modify features_reverted to make features named, if features is not defined, use generic
py
diff --git a/recipe-server/normandy/settings.py b/recipe-server/normandy/settings.py index <HASH>..<HASH> 100644 --- a/recipe-server/normandy/settings.py +++ b/recipe-server/normandy/settings.py @@ -383,6 +383,7 @@ class Production(Base): LOGGING_USE_JSON = values.Value(True) SECURE_HSTS_SECONDS = values.Inte...
Fix bug <I>: Do not reuse XPI filenames in prod configurations.
py
diff --git a/pynos/versions/base/interface.py b/pynos/versions/base/interface.py index <HASH>..<HASH> 100644 --- a/pynos/versions/base/interface.py +++ b/pynos/versions/base/interface.py @@ -2696,11 +2696,9 @@ class Interface(object): xmlns="urn:brocade.com:mgmt:brocade-interface-ext" ) i...
NOJIRA:- Fix has more request for vlans Change-Id: I<I>fdbb<I>d<I>b<I>ece2fba8b<I>f<I>
py
diff --git a/workalendar/usa/__init__.py b/workalendar/usa/__init__.py index <HASH>..<HASH> 100644 --- a/workalendar/usa/__init__.py +++ b/workalendar/usa/__init__.py @@ -56,7 +56,6 @@ from .west_virginia import WestVirginia from .wisconsin import Wisconsin from .wyoming import Wyoming -NONE, NEAREST_WEEKDAY, MONDA...
unrelated: cleaned up unused constants.
py
diff --git a/pypsa/linopf.py b/pypsa/linopf.py index <HASH>..<HASH> 100644 --- a/pypsa/linopf.py +++ b/pypsa/linopf.py @@ -235,7 +235,7 @@ def define_committable_generator_constraints(n, sns): def define_ramp_limit_constraints(n, sns, c): """ - Defines ramp limits for generators and links with valid ramplimi...
generalized the generator and links into components
py
diff --git a/server/workbench.py b/server/workbench.py index <HASH>..<HASH> 100644 --- a/server/workbench.py +++ b/server/workbench.py @@ -48,7 +48,11 @@ class WorkBench(): self.indexer = els_indexer.ELS_Indexer(**{'hosts': els_hosts} if els_hosts else {}) # Neo4j DB - self.neo_db = neo_db.Ne...
trying to capture failed Neo4j connection Former-commit-id: f6db4af<I>ad<I>ee5d0eae<I>d5f<I>b<I>
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100755 --- a/build.py +++ b/build.py @@ -676,6 +676,9 @@ def host_examples(t): t.cp(EXAMPLES, examples_dir) for example in [path.replace('.html', '.js') for path in EXAMPLES]: split_example_file(example, examples_dir % vars(variables)) + for ex...
Make sure we copy the example css if it exists
py
diff --git a/OpenPNM/Network/__GenericNetwork__.py b/OpenPNM/Network/__GenericNetwork__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Network/__GenericNetwork__.py +++ b/OpenPNM/Network/__GenericNetwork__.py @@ -1088,17 +1088,6 @@ class GenericNetwork(Core): ''' raise NotImplementedError() - def i...
Removed a method called 'isolated_pores' which I didn't realized was even there...the check_network_health method does this
py
diff --git a/authapi/permissions.py b/authapi/permissions.py index <HASH>..<HASH> 100644 --- a/authapi/permissions.py +++ b/authapi/permissions.py @@ -182,7 +182,8 @@ class UserPermission(BaseComposedPermision): only_admins_create_admins = Or( AllowAdmin, And( - ObjAttr...
flake8 shorten line that's too long
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -341,9 +341,14 @@ def latest_version(*names, **kwargs): refresh_db(_get_branch_option(**kwargs), repo_arg, exclude_arg) # Get updates for specified packag...
yumpkg.py: sort updates for latest_package to always actually get latest available
py
diff --git a/ugali/utils/healpix.py b/ugali/utils/healpix.py index <HASH>..<HASH> 100644 --- a/ugali/utils/healpix.py +++ b/ugali/utils/healpix.py @@ -131,7 +131,8 @@ def query_disc(nside, vec, radius, inclusive=False, fact=4, nest=False): try: # New-style call (healpy 1.6.3) return healpy.query...
Verbose about query_disc failure
py
diff --git a/h2o-py/h2o/frame.py b/h2o-py/h2o/frame.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/frame.py +++ b/h2o-py/h2o/frame.py @@ -380,7 +380,8 @@ class H2OFrame(H2OFrameWeakRefMixin): nrows = min(self.nrow,rows) ncols = min(self.ncol, cols) colnames = self.names[:ncols] - head = self[0:nrows,...
no need to do additional subsetting if frame is small enuf
py
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py index <HASH>..<HASH> 100644 --- a/django_airavata/apps/api/views.py +++ b/django_airavata/apps/api/views.py @@ -15,7 +15,6 @@ from rest_framework.renderers import JSONRenderer from rest_framework.response import Response from rest_fram...
AIRAVATA-<I> Check if user has READ access to project
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,4 +9,5 @@ setup( url = 'https://github.com/rhgrant10/Groupy', # use the URL to the github repo keywords = ['api', 'GroupMe'], # arbitrary keywords classifiers = [], + long_description=open('README.rst', 'r...
Added long description to setup.py
py
diff --git a/gwpy/utils/tests/test_misc.py b/gwpy/utils/tests/test_misc.py index <HASH>..<HASH> 100644 --- a/gwpy/utils/tests/test_misc.py +++ b/gwpy/utils/tests/test_misc.py @@ -19,7 +19,6 @@ """Tests for :mod:`gwpy.utils.misc` """ -import contextlib import sys import pytest @@ -40,7 +39,8 @@ def test_gprint(c...
gwpy.utils: fixed buggy tests on python3
py
diff --git a/post_office/test_settings.py b/post_office/test_settings.py index <HASH>..<HASH> 100644 --- a/post_office/test_settings.py +++ b/post_office/test_settings.py @@ -14,13 +14,13 @@ DATABASES = { CACHES = { 'default': { - 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', - '...
Use locmem cache for tests.
py
diff --git a/hydpy/models/evap/evap_model.py b/hydpy/models/evap/evap_model.py index <HASH>..<HASH> 100644 --- a/hydpy/models/evap/evap_model.py +++ b/hydpy/models/evap/evap_model.py @@ -665,8 +665,7 @@ class Calc_PossibleSunshineDuration_V1(modeltools.Method): class Calc_ClearSkySolarRadiation_V1(modeltools.Method): ...
Fix an unexpected indentation in method `Calc_ClearSkySolarRadiation_V1` of module `evap_model`.
py
diff --git a/openid/oidUtil.py b/openid/oidUtil.py index <HASH>..<HASH> 100644 --- a/openid/oidUtil.py +++ b/openid/oidUtil.py @@ -26,8 +26,8 @@ except AttributeError: except ImportError: raise RuntimeError('No adequate source of randomness found!') - # Implementation is like random.SystemRandom in P...
[project @ Make the PyCrypto-based random generator implementation the same as SystemRandom in Python <I>]
py
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index <HASH>..<HASH> 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1097,7 +1097,9 @@ def network(t, url="http://www.google.com", try: return t(*args, **kwargs) except Exception as e: - errno = g...
BLD: try harder to find errno in @network
py
diff --git a/datajoint/version.py b/datajoint/version.py index <HASH>..<HASH> 100644 --- a/datajoint/version.py +++ b/datajoint/version.py @@ -1 +1 @@ -__version__ = "0.12.0" +__version__ = "0.12.dev"
change version to <I>.dev
py
diff --git a/tests/linalg_test.py b/tests/linalg_test.py index <HASH>..<HASH> 100644 --- a/tests/linalg_test.py +++ b/tests/linalg_test.py @@ -1368,6 +1368,8 @@ class ScipyLinalgTest(jtu.JaxTestCase): if i == len(target_norms) - 1: # TODO(zhangqiaorjc): Reduce tol to default 1e-5 for norm = 3.0. ...
Bump tol of float<I> for complex<I> inner product.
py
diff --git a/flaky/flaky_nose_plugin.py b/flaky/flaky_nose_plugin.py index <HASH>..<HASH> 100644 --- a/flaky/flaky_nose_plugin.py +++ b/flaky/flaky_nose_plugin.py @@ -32,10 +32,7 @@ class FlakyPlugin(_FlakyPlugin, Plugin): self.add_report_option(parser.add_option) def configure(self, options, conf): - ...
Fix extra blank line in docstring.
py
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -172,6 +172,7 @@ INSTALLED_APPS = [ TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' AUTHENTICATION_BACKENDS = ('openstack_auth.backe...
Use the User model from d-o-a This patch moves us to explicitly using the replacement User model from django-openstack-auth. Change-Id: I<I>b9e0af3dd4c<I>f<I>cb9da<I>ef0bcc<I>e Closes-Bug: <I> Depends-On: I<I>cc5d<I>c<I>e<I>f2ad8c<I>
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -15,6 +15,9 @@ from keepassx.main import main from keepassx.main import CONFIG_FILENAME +PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + @contextmanager ...
Replace kp with full absolute path in tests
py
diff --git a/metric_learn/itml.py b/metric_learn/itml.py index <HASH>..<HASH> 100644 --- a/metric_learn/itml.py +++ b/metric_learn/itml.py @@ -101,7 +101,8 @@ class ITML(BaseMetricLearner): _lambda[i] -= alpha beta = alpha/(1 - alpha*wtw) pos_bhat[i] = 1./((1 / pos_bhat[i]) + (alpha / gamma))...
replaced A*(v*v)*A with (A*v)*(A*v), which improves the performance from O(n^3) to O(n^2), as described in the original ITML paper. (#<I>) note that A=A' in all stages of the algorithm since A is a Mahalanobis metrix
py
diff --git a/asyncpg/connection.py b/asyncpg/connection.py index <HASH>..<HASH> 100644 --- a/asyncpg/connection.py +++ b/asyncpg/connection.py @@ -793,7 +793,7 @@ class Connection(metaclass=ConnectionMeta): async def set_type_codec(self, typename, *, schema='public', encoder, decode...
Actually remove the `binary` argument from `set_type_codec` signature. Compatibility support was removed in <I>.
py
diff --git a/hvac/api/secrets_engines/rabbitmq.py b/hvac/api/secrets_engines/rabbitmq.py index <HASH>..<HASH> 100644 --- a/hvac/api/secrets_engines/rabbitmq.py +++ b/hvac/api/secrets_engines/rabbitmq.py @@ -136,4 +136,3 @@ class RabbitMQ(VaultApiBase): return self._adapter.get( url=api_path, ...
removed blank line that upset the linter
py
diff --git a/tests/test_build_jobs/test_views.py b/tests/test_build_jobs/test_views.py index <HASH>..<HASH> 100644 --- a/tests/test_build_jobs/test_views.py +++ b/tests/test_build_jobs/test_views.py @@ -47,7 +47,6 @@ class TestProjectBuildListViewV1(BaseViewTest): self.factory_class() self.queryset = ...
Remove redundant object creation in build job tests
py
diff --git a/AegeanTools/BANE.py b/AegeanTools/BANE.py index <HASH>..<HASH> 100644 --- a/AegeanTools/BANE.py +++ b/AegeanTools/BANE.py @@ -415,7 +415,12 @@ def filter_mc_sharemem(filename, step_size, box_size, cores, shape, dobkg=True): args.append((filename, region, step_size, box_size, shape, dobkg)) ...
cause BANE to shutdown gracefully when ctrl+C'd. reslove #<I>
py
diff --git a/spyder/widgets/variableexplorer/collectionseditor.py b/spyder/widgets/variableexplorer/collectionseditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/variableexplorer/collectionseditor.py +++ b/spyder/widgets/variableexplorer/collectionseditor.py @@ -256,7 +256,7 @@ class ReadOnlyCollectionsModel(QA...
Variable Explorer: Avoid a RuntimeError when modifying nested objects in the wrong order
py
diff --git a/mhcflurry/data.py b/mhcflurry/data.py index <HASH>..<HASH> 100644 --- a/mhcflurry/data.py +++ b/mhcflurry/data.py @@ -149,7 +149,6 @@ def load_allele_dicts( species_column_name="species", allele_column_name="mhc", peptide_column_name=None, - peptide_length_column_name="pep...
got rid of peptide_length_column_name
py
diff --git a/loky/backend/spawn.py b/loky/backend/spawn.py index <HASH>..<HASH> 100644 --- a/loky/backend/spawn.py +++ b/loky/backend/spawn.py @@ -160,7 +160,7 @@ def prepare(data): process.ORIGINAL_DIR = data['orig_dir'] if hasattr(mp, 'set_start_method'): - mp.set_start_method('loky') + ...
FIX force loky context in spawn - This permits to avoid conflict due to importing multiprocessing objects and make sure the default context is loky in subprocess
py
diff --git a/abilian/web/admin/panels/audit.py b/abilian/web/admin/panels/audit.py index <HASH>..<HASH> 100644 --- a/abilian/web/admin/panels/audit.py +++ b/abilian/web/admin/panels/audit.py @@ -363,7 +363,7 @@ class SecurityEntryPresenter(BaseEntryPresenter): entity_url = url_for(e.object) entity = r...
admin audit panel: fix security entry presentation
py
diff --git a/indra/literature/pubmed_client.py b/indra/literature/pubmed_client.py index <HASH>..<HASH> 100644 --- a/indra/literature/pubmed_client.py +++ b/indra/literature/pubmed_client.py @@ -243,10 +243,10 @@ def _get_journal_info(medline_citation, get_issns_from_nlm): # Add publish date from JournalIssue/Pu...
Change camel case to pep8
py
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py index <HASH>..<HASH> 100644 --- a/salt/returners/local_cache.py +++ b/salt/returners/local_cache.py @@ -305,7 +305,7 @@ def clean_old_jobs(): # No jid file means corrupted cache entry, scrub it shutil.rm...
st_ctime is an attribute, not a method
py
diff --git a/hpICsp/__init__.py b/hpICsp/__init__.py index <HASH>..<HASH> 100644 --- a/hpICsp/__init__.py +++ b/hpICsp/__init__.py @@ -43,6 +43,7 @@ __status__ = 'Development' import sys +import warnings PYTHON_VERSION = sys.version_info[:3] PY2 = (PYTHON_VERSION[0] == 2) @@ -50,10 +51,14 @@ PY3 = (PYTHON_VERS...
Swapping out error in case of unsupported python version for a warning.
py
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py index <HASH>..<HASH> 100644 --- a/zipline/assets/assets.py +++ b/zipline/assets/assets.py @@ -362,7 +362,10 @@ class AssetFinder(object): """ Retrieve the Asset for a given sid. """ - return self.retrieve_all((sid,), defa...
PERF: Try cache on scalar asset lookups. This provides a <I>% speedup for an algo that calls `data.current` with <I> every minute.
py
diff --git a/tests/pipeline/test_computable_term.py b/tests/pipeline/test_computable_term.py index <HASH>..<HASH> 100644 --- a/tests/pipeline/test_computable_term.py +++ b/tests/pipeline/test_computable_term.py @@ -115,7 +115,7 @@ class FillNATestCase(BaseUSEquityPipelineTestCase): str_fillval = "filled" ...
TEST: Fix int<I> expected type on windows.
py
diff --git a/bandicoot/individual.py b/bandicoot/individual.py index <HASH>..<HASH> 100755 --- a/bandicoot/individual.py +++ b/bandicoot/individual.py @@ -431,3 +431,16 @@ def number_of_interactions(records, direction=None): return len([r for r in records]) else: return len([r for r in records if...
Added function to compute new burstiness metric
py
diff --git a/omgorm/utils.py b/omgorm/utils.py index <HASH>..<HASH> 100644 --- a/omgorm/utils.py +++ b/omgorm/utils.py @@ -17,7 +17,7 @@ class ppartial(functools.partial): merged_args = (next(iter_args) if a is ... else a for a in self.args) merged_keywords = {**self.keywords, ...
fix ppartial issue with positional args
py
diff --git a/master/buildbot/schedulers/timed.py b/master/buildbot/schedulers/timed.py index <HASH>..<HASH> 100644 --- a/master/buildbot/schedulers/timed.py +++ b/master/buildbot/schedulers/timed.py @@ -450,7 +450,7 @@ class NightlyTriggerable(NightlyBase): @defer.inlineCallbacks def startBuild(self): ...
defer.returnValue(None) is the same as "return"
py
diff --git a/salt/config/schemas/esxi.py b/salt/config/schemas/esxi.py index <HASH>..<HASH> 100644 --- a/salt/config/schemas/esxi.py +++ b/salt/config/schemas/esxi.py @@ -18,6 +18,7 @@ from salt.utils.schema import (DefinitionsSchema, ComplexSchemaItem, Ar...
Added SimpleHostCacheSchema JSON schema
py
diff --git a/hwt/pyUtils/arrayQuery.py b/hwt/pyUtils/arrayQuery.py index <HASH>..<HASH> 100755 --- a/hwt/pyUtils/arrayQuery.py +++ b/hwt/pyUtils/arrayQuery.py @@ -67,7 +67,7 @@ def where(iterable, fn): yield i -def last_iter(iterable): +def iter_with_last(iterable): """ Iterate iterable and y...
rename last_iter to iter_with_last
py
diff --git a/tabula/section.py b/tabula/section.py index <HASH>..<HASH> 100644 --- a/tabula/section.py +++ b/tabula/section.py @@ -193,7 +193,7 @@ class Section(object): for col in self._get_col_hdrs(): for row in self._get_row_hdrs(): meta = self._get_meta(row, col) - ...
sort meta keys Sometimes, the sequence to apply formatters are critical. This change allows callers to define the sequency by carefully choosing meta keys (e.g: alphabetically)
py
diff --git a/pysparkling/tests/test_rdd.py b/pysparkling/tests/test_rdd.py index <HASH>..<HASH> 100644 --- a/pysparkling/tests/test_rdd.py +++ b/pysparkling/tests/test_rdd.py @@ -183,7 +183,7 @@ class RDDTest(unittest.TestCase): (1, r[1::3]), (2, r[2::3])) - ...
Replace unnecessary comprehensions with dict constructor
py
diff --git a/billy/web/admin/views.py b/billy/web/admin/views.py index <HASH>..<HASH> 100644 --- a/billy/web/admin/views.py +++ b/billy/web/admin/views.py @@ -699,7 +699,6 @@ def duplicate_versions(request, abbr): {'metadata': meta, 'report': report}) -@login_required def _bill_spec(meta, limit)...
Removing some required lines from non-view fns
py
diff --git a/ariba/reference_data.py b/ariba/reference_data.py index <HASH>..<HASH> 100644 --- a/ariba/reference_data.py +++ b/ariba/reference_data.py @@ -294,7 +294,7 @@ class ReferenceData: def sanity_check(self, outprefix): variants_only_removed = self._remove_bad_genes(self.seq_dicts['variants_only'],...
Bug fix reporting removed presabs/variants only wrong way around
py
diff --git a/jardin/query_builders.py b/jardin/query_builders.py index <HASH>..<HASH> 100644 --- a/jardin/query_builders.py +++ b/jardin/query_builders.py @@ -281,7 +281,7 @@ class WriteQueryBuilder(PGQueryBuilder): if isinstance(v, pd.Timestamp) and ((self.scheme == 'mysql' \ and ...
pd.NaT instead of pd._libs.tslib.NaTType
py
diff --git a/fut/core.py b/fut/core.py index <HASH>..<HASH> 100644 --- a/fut/core.py +++ b/fut/core.py @@ -385,9 +385,11 @@ class Core(object): self.logger.error("{0} (itemId: {1}) NOT MOVED to {2} Pile. REASON: {3}".format(trade_id, item_id, pile, rc['itemData'][0]['reason'])) return rc['itemDat...
core: logout automatically saves cookies to file
py
diff --git a/test/unit/test_caches.py b/test/unit/test_caches.py index <HASH>..<HASH> 100644 --- a/test/unit/test_caches.py +++ b/test/unit/test_caches.py @@ -117,7 +117,7 @@ VALUES['cache_ids'] = { 'components': { 'partition_name': VALUES['basic']['partition_name'], 'algo...
move from a set casting of a list comprehension to a set comprehension
py
diff --git a/angr/analyses/cfg_accurate.py b/angr/analyses/cfg_accurate.py index <HASH>..<HASH> 100644 --- a/angr/analyses/cfg_accurate.py +++ b/angr/analyses/cfg_accurate.py @@ -1435,8 +1435,13 @@ class CFGAccurate(ForwardAnalysis, CFGBase): # pylint: disable=abstract-metho current_function_addr = ...
CFGAccurate: robustness improvement
py
diff --git a/girder/api/v1/resource.py b/girder/api/v1/resource.py index <HASH>..<HASH> 100644 --- a/girder/api/v1/resource.py +++ b/girder/api/v1/resource.py @@ -226,7 +226,7 @@ class Resource(BaseResource): .errorResponse('Path refers to a resource that does not exist.') .errorResponse('Read access ...
Allow cookie authorization to be used for "POST resource/download"
py
diff --git a/lib/webuser.py b/lib/webuser.py index <HASH>..<HASH> 100644 --- a/lib/webuser.py +++ b/lib/webuser.py @@ -637,6 +637,9 @@ def auth_apache_user_p(user, password): Apache password data file. Return 0 in case of failure, 1 in case of success.""" try: + from invenio.config import cfg_apa...
If cfg_apache_password_file and cfg_apache_group_file are not absolute pathnames, try to look for them in tmpdir.
py
diff --git a/curtsies/escseqparse.py b/curtsies/escseqparse.py index <HASH>..<HASH> 100644 --- a/curtsies/escseqparse.py +++ b/curtsies/escseqparse.py @@ -86,7 +86,9 @@ def token_type(info): """ """ if info['command'] == 'm': - value, = info['numbers'] + # The default action for ESC[m is to...
Added support for the shorthand ESC[m, which is equivalent to ESC[0m
py