<commit_before>class Hash
  def symbolize_keys!
    keys.each do |key|
      self[(key.to_sym rescue key) || key] = delete(key)
    end
    self
  end

  def symbolize_keys
    dup.symbolize_keys!
  end
end<commit_msg>Added symbolize_keys to Hash.<commit_after>class Hash
  def symbolize_keys!
    keys.each do |key|
      self[(key.to_sym rescue key) || key] = delete(key)
    end
    self
  end

  def symbolize_keys
    dup.symbolize_keys!
  end

  def underscore_keys!
    keys.each do |key|
      self[(key.downcase rescue key) || key] = delete(key)
    end
    self
  end

  def underscore_keys
    dup.underscore_keys!
  end
end
{'fraction_non_alphanumeric': 0.08661417322834646, 'fraction_numerical': 0.0, 'mean_word_length': 2.7633136094674557, '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': '1330115', 'n_tokens_mistral': 230, 'n_tokens_neox': 224, 'n_words': 59}