c70362d7dae523cce63c049da17f39a340139574,lazyflow/operators/opCompressedCache.py,OpCompressedCache,usedMemory,#OpCompressedCache#,264
Before Change
def usedMemory(self):
tot = 0.0
for key in self._cacheFiles.keys():
try:
group = self._cacheFiles[key]
except KeyError:
// entry was removed, ignore it
continue
if "data" in group:
ds = group["data"]
// use actual size, not number of bytes in
// *uncompressed* array
After Change
def usedMemory(self):
tot, unc = self._usedMemory()
self._compression_factor = 1.0
if tot > 0:
self._compression_factor = unc/float(tot)
return tot
def _usedMemory(self):
tot = 0.0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: ilastik/ilastik
Commit Name: c70362d7dae523cce63c049da17f39a340139574
Time: 2015-03-20
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opCompressedCache.py
Class Name: OpCompressedCache
Method Name: usedMemory
Project Name: pymc-devs/pymc3
Commit Name: 9ef50183c43700fea3bfbacaa70b2283631373e8
Time: 2013-04-14
Author: jsalvatier@gmail.com
File Name: pymc/progressbar.py
Class Name: ProgressBar
Method Name: animate_ipython
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 57e877a49ca52e9f39b949e392992b0db29cef16
Time: 2017-06-26
Author: yutiansut@qq.com
File Name: QUANTAXIS/QABacktest/QABacktest.py
Class Name: QA_Backtest
Method Name: __QA_backtest_excute_bid