<commit_before>ENV["RAILS_ENV"], ENV["RACK_ENV"] = "test", "test"
$:.unshift(File.expand_path("../", __FILE__))

if ENV["COVERAGE"] == true
  require "simplecov"
  SimpleCov.start
end

require "mongoid/finders/find_by"

Mongoid.load!(File.expand_path("../config/mongoid.yml", __FILE__), :test)
module Mongoid::SpecHelpers
  class << self
    def random_class
      random(10).capitalize.to_sym
    end<commit_msg>Cleanup the helper.<commit_after>ENV["RAILS_ENV"], ENV["RACK_ENV"] = "test", "test"
$:.unshift(File.expand_path("../../", __FILE__))

if ENV["COVERAGE"] == true
  require "simplecov"
  SimpleCov.start
end

require "mongoid/finders/find_by"

Mongoid.load!(File.expand_path("../../config/mongoid.yml", __FILE__), :test)
module Mongoid::SpecHelpers
  class << self
    def random_class
      random(10).capitalize.to_sym
    end
{'fraction_non_alphanumeric': 0.17541766109785203, 'fraction_numerical': 0.00477326968973747, 'mean_word_length': 4.7465753424657535, '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': '3058646', 'n_tokens_mistral': 316, 'n_tokens_neox': 311, 'n_words': 53}