fa78f0975ad68055fe25079fe0ea5ac033c8253c,mloop/learners.py,Learner,__init__,#Learner#Any#Any#Any#Any#Any#Any#,63

Before Change


        if learner_archive_filename is None:
            self.learner_archive_filename = None
        else:
            if not os.path.exists(mlu.archive_foldername):
                os.makedirs(mlu.archive_foldername)
            self.learner_archive_filename =str(learner_archive_filename)
            self.total_archive_filename = mlu.archive_foldername + self.learner_archive_filename + "_" + mlu.datetime_to_string(self.start_datetime) + "." + self.learner_archive_file_type
        
        self.archive_dict = {"archive_type":"learner",

After Change


            // the full path.
            learner_archive_filename = str(learner_archive_filename)
            self.learner_archive_filename = os.path.basename(learner_archive_filename)
            filename_suffix = mlu.generate_filename_suffix(
                self.learner_archive_file_type,
                file_datetime=self.start_datetime,
            )
            filename = learner_archive_filename + filename_suffix
            self.total_archive_filename = os.path.join(mlu.archive_foldername, filename)
            
            // Include any path info from learner_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":"learner",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


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__


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: deepchem/deepchem
Commit Name: 38e2076694fd069be6be5d0be428b28e7eddc99e
Time: 2019-07-30
Author: vsomnath@student.ethz.ch
File Name: deepchem/molnet/load_function/thermosol_datasets.py
Class Name:
Method Name: load_thermosol


Project Name: deepchem/deepchem
Commit Name: 38e2076694fd069be6be5d0be428b28e7eddc99e
Time: 2019-07-30
Author: vsomnath@student.ethz.ch
File Name: deepchem/molnet/load_function/hppb_datasets.py
Class Name:
Method Name: load_hppb