parameters: (self, debug=False, path=None, hash_path=None, set_path=None, backup_path=None)
docstring: Initialize Monitor class.
  
          Args:
              debug (bool): Log on terminal or not
              path (str): Path of the directory to monitor
              hash_path (str): Path of the original hash mapping of files (JSON config)
              backup_path (str): Path of the backup mapping of files (JSON config)
  
          Raises:
              None
  
          Returns:
              None
docstring_summary: Initialize Monitor class.
docstring_tokens: Initialize Monitor class .
function: def __init__(self, debug=False, path=None, hash_path=None, set_path=None, backup_path=None):
          """
          Initialize Monitor class.
  
          Args:
              debug (bool): Log on terminal or not
              path (str): Path of the directory to monitor
              hash_path (str): Path of the original hash mapping of files (JSON config)
              backup_path (str): Path of the backup mapping of files (JSON config)
  
          Raises:
              None
  
          Returns:
              None
          """
          # Initialize debug
          self.debug = debug
  
          # Initialize logger
          self.logger = DefaceLogger(
                  __name__,
                  debug=self.debug
          )
  
          # Create GatherFile object to gather list of files
          self.gather_file_obj = GatherFile(debug=self.debug, path=path)
          # Create SigDetect object to scan files for attack signatures
          self.sig_detect_obj = SigDetect(debug=self.debug, path=path)
          # Create DefaceDetect object to scan files for defacement attack using ML
          self.ml_deface_obj = DefaceDetect(debug=self.debug, path=path)
          # Create Hash object to get hashes of the files
          self.hash_gen_obj = Hash(debug=self.debug)
          # Load original hash config of files
          self.cache_hash = json_to_dict(hash_path)
          # Load original hash config of files
          self.cache_set = json_to_dict(set_path)
          # Load backup mapping config
          self.back_up_dict = json_to_dict(backup_path)
function_tokens: def __init__ ( self , debug = False , path = None , hash_path = None , set_path = None , backup_path = None ) : # Initialize debug self . debug = debug # Initialize logger self . logger = DefaceLogger ( __name__ , debug = self . debug ) # Create GatherFile object to gather list of files self . gather_file_obj = GatherFile ( debug = self . debug , path = path ) # Create SigDetect object to scan files for attack signatures self . sig_detect_obj = SigDetect ( debug = self . debug , path = path ) # Create DefaceDetect object to scan files for defacement attack using ML self . ml_deface_obj = DefaceDetect ( debug = self . debug , path = path ) # Create Hash object to get hashes of the files self . hash_gen_obj = Hash ( debug = self . debug ) # Load original hash config of files self . cache_hash = json_to_dict ( hash_path ) # Load original hash config of files self . cache_set = json_to_dict ( set_path ) # Load backup mapping config self . back_up_dict = json_to_dict ( backup_path )