fa78f0975ad68055fe25079fe0ea5ac033c8253c,mloop/controllers.py,Controller,__init__,#Controller#Any#Any#Any#Any#Any#Any#Any#Any#,97
Before Change
if controller_archive_filename is None:
self.controller_archive_filename = None
else:
if not os.path.exists(mlu.archive_foldername):
os.makedirs(mlu.archive_foldername)
self.controller_archive_filename =str(controller_archive_filename)
self.total_archive_filename = mlu.archive_foldername + self.controller_archive_filename + "_" + mlu.datetime_to_string(self.start_datetime) + "." + self.controller_archive_file_type
self.archive_dict = {"archive_type":"controller",
After Change
// include any path components in controller_archive_filename when
// constructing the full path.
controller_archive_filename = str(controller_archive_filename)
self.controller_archive_filename = os.path.basename(controller_archive_filename)
filename_suffix = mlu.generate_filename_suffix(
self.controller_archive_file_type,
file_datetime=self.start_datetime,
)
filename = controller_archive_filename + filename_suffix
self.total_archive_filename = os.path.join(mlu.archive_foldername, filename)
// Include any path info from controller_archive_filename when
// creating directory for archive files.]
archive_dir = os.path.dirname(self.total_archive_filename)
if not os.path.exists(archive_dir):
os.makedirs(archive_dir)
self.archive_dict = {"archive_type":"controller",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: michaelhush/M-LOOP
Commit Name: fa78f0975ad68055fe25079fe0ea5ac033c8253c
Time: 2020-06-13
Author: zakven@mit.edu
File Name: mloop/controllers.py
Class Name: Controller
Method Name: __init__
Project Name: RaRe-Technologies/gensim
Commit Name: bc773b1051a50c829032fd1d05ec7bd3d153cfb8
Time: 2014-11-15
Author: radimrehurek@seznam.cz
File Name: gensim/test/test_phrases.py
Class Name:
Method Name:
Project Name: michaelhush/M-LOOP
Commit Name: fa78f0975ad68055fe25079fe0ea5ac033c8253c
Time: 2020-06-13
Author: zakven@mit.edu
File Name: mloop/learners.py
Class Name: Learner
Method Name: __init__