<commit_before>module Danica
  module Wrapper
    def wrap_value(value)
      return wrap_value(number(value)) if value.is_a?(Numeric)
      return wrap_value(constant(value)) if value.is_a?(Hash) && value.keys.map(&:to_sym) == %i(value latex gnu)
      return wrap_value(variable(value)) if value.is_a?(Hash)
      return wrap_value(variable(name: value)) if [ String, Symbol ].any? { |c| value.is_a?(c) }
      return wrap_value(variable) if value.nil?
      value
    end

    autoload :Number,    'danica/wrapper/number'
    autoload :Group,     'danica/wrapper/group'
    autoload :Negative,  'danica/wrapper/negative'
    autoload :PlusMinus, 'danica/wrapper/plus_minus'<commit_msg>Avoid doulbe wrapping<commit_after>module Danica
  module Wrapper
    def wrap_value(value)
      return number(value) if value.is_a?(Numeric)
      return constant(value) if value.is_a?(Hash) && value.keys.map(&:to_sym) == %i(value latex gnu)
      return variable(value) if value.is_a?(Hash)
      return variable(name: value) if [ String, Symbol ].any? { |c| value.is_a?(c) }
      return variable if value.nil?
      value
    end

    autoload :Number,    'danica/wrapper/number'
    autoload :Group,     'danica/wrapper/group'
    autoload :Negative,  'danica/wrapper/negative'
    autoload :PlusMinus, 'danica/wrapper/plus_minus'
{'fraction_non_alphanumeric': 0.12537764350453173, 'fraction_numerical': 0.0, 'mean_word_length': 3.6819787985865724, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2058928', 'n_tokens_mistral': 458, 'n_tokens_neox': 458, 'n_words': 99}