4ef0b3641c9c34c5a01504c2fe3b4ca00b61f12e,brian2/__init__.py,,check_cache,#,116
Before Change
size = _get_size_recursively(cache_dir)
size_in_mb = int(round(size/1024./1024.))
if size_in_mb > prefs.codegen.max_cache_dir_size:
logger.warn("Cache size for target "%s": %s MB" % (target, size_in_mb))
else:
logger.debug("Cache size for target "%s": %s MB" % (target, size_in_mb))
After Change
size = _get_size_recursively(cache_dir)
size_in_mb = int(round(size/1024./1024.))
if size_in_mb > prefs.codegen.max_cache_dir_size:
logger.info("Cache size for target "{target}": {size} MB.\n"
"You can call "clear_cache(\"{target}\")" to delete all "
"files from the cache or manually delete files in the "
""{cache_dir}" directory.".format(target=target,
size=size_in_mb,
cache_dir=cache_dir))
else:
logger.debug("Cache size for target "%s": %s MB" % (target, size_in_mb))

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: brian-team/brian2
Commit Name: 4ef0b3641c9c34c5a01504c2fe3b4ca00b61f12e
Time: 2018-03-20
Author: marcel.stimberg@inserm.fr
File Name: brian2/__init__.py
Class Name:
Method Name: check_cache
Project Name: astroML/astroML
Commit Name: a199ccb9346b2b01b50fea49a9a51e2f2b4aa0ef
Time: 2019-01-02
Author: bsipocz@gmail.com
File Name: doc/sphinxext/example_builder.py
Class Name:
Method Name: read_contents
Project Name: pyprob/pyprob
Commit Name: 712da758a1b3ed376148a7487f8d358f9c450130
Time: 2020-08-30
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/model.py
Class Name: ConstrainedModel
Method Name: _trace_generator
Project Name: chartbeat-labs/textacy
Commit Name: db3deb22ff32f40ba446149946b4f0d47ba2fed2
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/similarity.py
Class Name:
Method Name: jaccard