<commit_before># frozen_string_literal: true
module Spectrum
  module Config
    class MoreInformationField < Field
      type 'more_information'

      def value(value, request)
        {
          term: name,
          description: super(value, request).map { |val| JSON.parse(val) }
        }
      end
    end
  end
end<commit_msg>Bugfix.<commit_after># frozen_string_literal: true
module Spectrum
  module Config
    class MoreInformationField < Field
      type 'more_information'

      def value(value, request)
        return nil unless (values = super(value, request))
        {
          term: name,
          description: values.map { |val| JSON.parse(val) }
        }
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08192090395480225, 'fraction_numerical': 0.0, 'mean_word_length': 2.3130841121495327, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4660365', 'n_tokens_mistral': 203, 'n_tokens_neox': 197, 'n_words': 56}