a144a453fced68b0c8fb27020dd311e7b43c6341,studio/model.py,FirebaseProvider,_download_modeldir,#FirebaseProvider#Any#Any#,188
Before Change
self.logger.info("Downloading model directory...")
files = self.__getitem__(self._get_experiments_keybase(user_id) + key + "/modeldir/")
if files:
for _,fvalue in files.iteritems():
local_filename = os.path.join(fs_tracker.get_model_directory(key), fvalue["name"])
if not os.path.exists(local_filename) or fvalue["time"] > os.path.getmtime(local_filename):
with open(os.path.join(fs_tracker.get_model_directory(key), fvalue["name"]), "wb") as f:
self.logger.info("Downloading file " + fvalue["name"])
f.write(zlib.decompress(base64.b64decode(fvalue["data"])))
self.logger.info("Done")
def _get_experiment_info(self, key, user_id):
self._download_modeldir(key, user_id)
After Change
files = self.__getitem__(self._get_experiments_keybase(user_id) + key + "/modeldir/")
if files:
path = fs_tracker.get_model_directory(key)
if not os.path.exists(path):
os.makedirs(path)
for _,fvalue in files.iteritems():
local_filename = os.path.join(key, fvalue["name"])
if not os.path.exists(local_filename) or fvalue["time"] > os.path.getmtime(local_filename):
with open(os.path.join(fs_tracker.get_model_directory(key), fvalue["name"]), "wb") as f:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: studioml/studio
Commit Name: a144a453fced68b0c8fb27020dd311e7b43c6341
Time: 2017-05-25
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: FirebaseProvider
Method Name: _download_modeldir
Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main
Project Name: deeptools/HiCExplorer
Commit Name: 577f0fd5d21c491998e5f7ff42d93afa9000fb43
Time: 2019-07-12
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/chicSignificantInteractions.py
Class Name:
Method Name: main
Project Name: tensorlayer/tensorlayer
Commit Name: 35b2c4917344f338eda67c78673cf4064b3b4265
Time: 2020-02-07
Author: 34995488+Tokarev-TT-33@users.noreply.github.com
File Name: examples/reinforcement_learning/tutorial_DQN.py
Class Name:
Method Name: