<commit_before>require File.expand_path('../../test_helper', __FILE__)
require "logger"
require "active_record"
begin
  require "active_support/log_subscriber"
rescue MissingSourceFile
end

# If you want to see the ActiveRecord log, invoke the tests using `rake test LOG=true`
ActiveRecord::Base.logger = Logger.new($stdout) if ENV["LOG"]

require "friendly_id/active_record"
require File.expand_path("../../../generators/friendly_id/templates/create_slugs", __FILE__)
require File.expand_path("../support/models", __FILE__)
require File.expand_path('../core', __FILE__)<commit_msg>Fix to allow ActiveRecord tests to be run individually<commit_after>require File.expand_path('../../test_helper', __FILE__)
require "logger"
require "active_record"
begin
  require "active_support/log_subscriber"
rescue LoadError
end

# If you want to see the ActiveRecord log, invoke the tests using `rake test LOG=true`
ActiveRecord::Base.logger = Logger.new($stdout) if ENV["LOG"]

require "friendly_id/active_record"
require File.expand_path("../../../generators/friendly_id/templates/create_slugs", __FILE__)
require File.expand_path("../support/models", __FILE__)
require File.expand_path('../core', __FILE__)
{'fraction_non_alphanumeric': 0.13199665831244778, 'fraction_numerical': 0.0, 'mean_word_length': 6.005847953216374, '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': '3511125', 'n_tokens_mistral': 352, 'n_tokens_neox': 350, 'n_words': 93}