<commit_before>class Acronym
  def self.abbreviate(string)
    string = string.gsub("-", " ")
    acronym = ""
    word_array = string.split(" ")

    word_array.each do |word|
      acronym << word[0]
    end
    acronym.upcase
  end
end<commit_msg>Use scan over gsub<commit_after>class Acronym
  def self.abbreviate(string)
    string = string.scan(/\b\w/)
    acronym = ""

    string.each do |letter|
      acronym << letter[0]
    end
    acronym.upcase
  end
end
{'fraction_non_alphanumeric': 0.12393162393162394, 'fraction_numerical': 0.004273504273504274, 'mean_word_length': 2.6640625, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3590445', 'n_tokens_mistral': 177, 'n_tokens_neox': 173, 'n_words': 36}