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: 8
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: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_bot_pot
Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_total_pot_value