<commit_before>module Scorm2004
  module Manifest
    class MinNormalizedMeasure
      include VisitorPattern
      
      # @return [Float] The value of <minNormalizedMeasure>
      def to_f
        Float(@el.content)
      end

      private
      
      def do_visit
        error("#{@el} should be between -1 and 1.") unless (-1.0..1.0).include?(to_f)
      end
    end
  end
end<commit_msg>Fix the to_hash bug.<commit_after>module Scorm2004
  module Manifest
    class MinNormalizedMeasure
      include VisitorPattern
      include DecimalNode

      private
      
      def do_visit
        error("#{@el} should be between -1 and 1.") unless (-1.0..1.0).include?(to_f)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08380681818181818, 'fraction_numerical': 0.028409090909090908, 'mean_word_length': 2.1473214285714284, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5004852', 'n_tokens_mistral': 226, 'n_tokens_neox': 217, 'n_words': 62}