f59fb87d9613da132096e85b60cf6c0a8efc1cf6,python/src/nnabla/utils/data_source_implements.py,CacheDataSource,__init__,#CacheDataSource#Any#Any#Any#Any#,281
Before Change
self._max_length = 1
info_filename = os.path.join(self._cachedir, "cache_info.csv")
if os.path.exists(info_filename):
self.initialize_cache_info(info_filename)
self._cache_type = ".npy"
else:
self._cache_type = ".h5"
index_filename = os.path.join(self._cachedir, "cache_index.csv")
if os .path.exists(index_filename):
self.initialize_cache_files_with_index(index_filename)
else:
self._filenames = [f for f in self._filereader.listdir() if os.path.splitext(f)[
After Change
self._thread_lock = threading.Lock()
self._original_order = []
for i in range(len(self._cache_files) ):
filename, length = self._cache_files[i]
for j in range(length):
self._original_order.append((filename, j))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: sony/nnabla
Commit Name: f59fb87d9613da132096e85b60cf6c0a8efc1cf6
Time: 2018-09-24
Author: Yukio.Oobuchi@sony.com
File Name: python/src/nnabla/utils/data_source_implements.py
Class Name: CacheDataSource
Method Name: __init__
Project Name: PyThaiNLP/pythainlp
Commit Name: dff9fec2881dfb43222ad1c84aa95fd8c42715c8
Time: 2019-07-25
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/__init__.py
Class Name:
Method Name: _download
Project Name: sony/nnabla
Commit Name: f59fb87d9613da132096e85b60cf6c0a8efc1cf6
Time: 2018-09-24
Author: Yukio.Oobuchi@sony.com
File Name: python/src/nnabla/utils/data_source_implements.py
Class Name: CacheDataSource
Method Name: __init__
Project Name: deepchem/deepchem
Commit Name: 03ef391a07e08eefce7299f3a934b49505c5be16
Time: 2017-03-06
Author: lilleswing@gmail.com
File Name: examples/pdbbind/pdbbind_datasets.py
Class Name:
Method Name: featurize_pdbbind