<commit_before>require 'active_support/inflector'

path_to_part_3_folder = File.expand_path('../..', __FILE__)
Dir["#{path_to_part_3_folder}/*.rb"].each do |file|
  klass = File.basename(file).split('.').first.classify
  autoload klass.to_sym, file
end
<commit_msg>Adding calls to autoload files to deal with order dependency when using require<commit_after>require 'active_support/inflector'

path_to_part_3_folder = File.expand_path('../..', __FILE__)
Dir["#{path_to_part_3_folder}/*.rb"].each do |file|
  klass = File.basename(file).gsub(/(?:^|_)(.)/) { |x| x.upcase }.gsub(/_/, '').sub(/\.rb\Z/, '')
  autoload klass.to_sym, file
end

{'fraction_non_alphanumeric': 0.18808777429467086, 'fraction_numerical': 0.006269592476489028, 'mean_word_length': 5.203883495145631, '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': '3189957', 'n_tokens_mistral': 240, 'n_tokens_neox': 247, 'n_words': 44}