<commit_before>class String
  def underscore
    self.gsub(/::/, '/').
    gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
    gsub(/([a-z\d])([A-Z])/,'\1_\2').
    tr("-", "_").
    downcase
  end
end if !defined?(::ActiveSupport) && !"".respond_to?(:underscore)<commit_msg>Define String#underscore if it's not already defined<commit_after>class String
  def underscore
    self.gsub(/::/, '/').
    gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
    gsub(/([a-z\d])([A-Z])/,'\1_\2').
    tr("-", "_").
    downcase
  end if !"".respond_to?(:underscore)
end
{'fraction_non_alphanumeric': 0.3042671614100185, 'fraction_numerical': 0.014842300556586271, 'mean_word_length': 3.0601503759398496, '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': '1526672', 'n_tokens_mistral': 234, 'n_tokens_neox': 234, 'n_words': 32}