<commit_before>#
# This class is a singleton that returns a list of exempted items and their pluralized form
#
class Exempted

  EXEMPTED = %w(BOOK CHOCOLATE PILL)

  @@pluralized_exempted_list = Array.new

  # Lazy init the pluralized exempted list
  def self.list
    if @@pluralized_exempted_list.empty?
      @@pluralized_exempted_list = EXEMPTED.inject(Array.new) { |list, itemName|
        list << itemName
        list << itemName + 'S'
      }
    end

    @@pluralized_exempted_list
  end
end<commit_msg>Refactored Exempted class<commit_after>#
# This class is a singleton that returns a list of exempted items and their pluralized form
#
class Exempted

  EXEMPTED = %w(BOOK CHOCOLATE PILL)

  @@pluralized_exempted_list = EXEMPTED.inject(Array.new) { |list, itemName|
    list << itemName
    list << itemName + 'S'
  }

  def self.list
    return @@pluralized_exempted_list
  end
end
{'fraction_non_alphanumeric': 0.08156424581005586, 'fraction_numerical': 0.0, 'mean_word_length': 3.618556701030928, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4462769', 'n_tokens_mistral': 329, 'n_tokens_neox': 306, 'n_words': 87}