<commit_before>module ManagerRefresh
  class InventoryCollection
    class Reference
      include Vmdb::Logging

      attr_reader :full_reference, :ref, :stringified_reference

      delegate :[], :to => :full_reference

      def initialize(data, ref, keys)
        @full_reference = build_full_reference(data, keys)
        @ref            = ref

        @stringified_reference = self.class.build_stringified_reference(full_reference, keys)
      end

      def primary?
        ref == :manager_ref
      end<commit_msg>Store index keys of the reference<commit_after>module ManagerRefresh
  class InventoryCollection
    class Reference
      include Vmdb::Logging

      attr_reader :full_reference, :keys, :ref, :stringified_reference

      delegate :[], :to => :full_reference

      def initialize(data, ref, keys)
        @full_reference = build_full_reference(data, keys)
        @ref            = ref
        @keys           = keys

        @stringified_reference = self.class.build_stringified_reference(full_reference, keys)
      end

      def primary?
        ref == :manager_ref
      end
{'fraction_non_alphanumeric': 0.0759493670886076, 'fraction_numerical': 0.0, 'mean_word_length': 2.69, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3107062', 'n_tokens_mistral': 304, 'n_tokens_neox': 293, 'n_words': 73}