<commit_before># Require this file in a non-Rails app to load all the things
require "active_model"
require "mongoid"

%w[ app/models app/validators app/repositories app/traits app/decorators/models lib ].each do |path|
  full_path = File.expand_path(
    "#{File.dirname(__FILE__)}/../../#{path}", __FILE__)
  $LOAD_PATH.unshift full_path unless $LOAD_PATH.include?(full_path)
end

# Require everything under app
Dir.glob("#{File.dirname(__FILE__)}/../../app/**/*.rb").each do |file|
  require file
end<commit_msg>reorder require_all to load things correctly<commit_after># Require this file in a non-Rails app to load all the things
require "active_model"
require "mongoid"

%w[ app/decorators/models app/models app/validators app/repositories app/traits lib ].each do |path|
  full_path = File.expand_path(
    "#{File.dirname(__FILE__)}/../../#{path}", __FILE__)
  $LOAD_PATH.unshift full_path unless $LOAD_PATH.include?(full_path)
end

# Require everything under app
Dir.glob("#{File.dirname(__FILE__)}/../../app/**/*.rb").each do |file|
  require file
end
{'fraction_non_alphanumeric': 0.14891611687087652, 'fraction_numerical': 0.0, 'mean_word_length': 4.648936170212766, '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': '2476304', 'n_tokens_mistral': 349, 'n_tokens_neox': 346, 'n_words': 96}