<commit_before>module ManagerRefresh
  class SaveInventory
    class << self
      def save_inventory(ems, inventory_collections)
        _log.info("#{log_header(ems)} Saving EMS Inventory...Start")

        inventory_object_saving_strategy = Settings.ems_refresh[ems.class.ems_type].try(:[], :inventory_object_saving_strategy)<commit_msg>Before the saving, we need to scan the inventory collections<commit_after>module ManagerRefresh
  class SaveInventory
    class << self
      def save_inventory(ems, inventory_collections)
        _log.info("#{log_header(ems)} Scanning Inventory Collections...Start")
        ManagerRefresh::InventoryCollection::Scanner.scan!(inventory_collections)
        _log.info("#{log_header(ems)} Scanning Inventory Collections...Complete")

        _log.info("#{log_header(ems)} Saving EMS Inventory...Start")

        inventory_object_saving_strategy = Settings.ems_refresh[ems.class.ems_type].try(:[], :inventory_object_saving_strategy)
{'fraction_non_alphanumeric': 0.10835913312693499, 'fraction_numerical': 0.0, 'mean_word_length': 5.024844720496894, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3303407', 'n_tokens_mistral': 280, 'n_tokens_neox': 269, 'n_words': 49}