4db0d950b29c504b27b1a3bd65e18e402903646a,nilmtk/disaggregate/disaggregator.py,Disaggregator,clear_model_checkpoints,#Disaggregator#,72

Before Change


            return
            
        with os.scandir() as path_list:
            if not entry.is_file() and entry.name.startswith(self.file_prefix) and entry.name.endswith(".h5"):
                print("{}: Removing {}".format(self.MODEL_NAME, entry.path))
                os.remove(entry.path)

After Change



        with os.scandir() as path_list:
            for entry in path_list:
                if entry.is_file() and entry.name.startswith(self.file_prefix) and entry.name.endswith(".h5"):
                    print("{}: Removing {}".format(self.MODEL_NAME, entry.path))
                    os.remove(entry.path)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nilmtk/nilmtk
Commit Name: 4db0d950b29c504b27b1a3bd65e18e402903646a
Time: 2021-01-11
Author: phenyl@posteo.net
File Name: nilmtk/disaggregate/disaggregator.py
Class Name: Disaggregator
Method Name: clear_model_checkpoints


Project Name: RasaHQ/rasa
Commit Name: 86d8c33838768b1dcd2731e59f4a88d851c9c77a
Time: 2020-10-01
Author: t.wochinger@rasa.com
File Name: rasa/cli/data.py
Class Name:
Method Name: _get_rules_path


Project Name: deepmipt/DeepPavlov
Commit Name: 0c0077e6d3d9a52de47930377ce06ad4baa3971a
Time: 2018-01-10
Author: ol.gure@gmail.com
File Name: deeppavlov/models/classifiers/intents/intent_model.py
Class Name: KerasIntentModel
Method Name: __init__