<commit_before>Bundler.require(:default, :development)
require 'rspec'
require 'lib/immortal'
require 'active_record'
require 'sqlite3'

RSpec.configure do |config|
  config.before(:each) do
    ActiveRecord::Base.connection.execute('delete from immortal_models')
  end

  config.after(:all) do
  end
end


ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

old_stdout = $stdout
$stdout = StringIO.new

begin<commit_msg>add optional ActiveRecord debugging to the specs<commit_after>Bundler.require(:default, :development)
require 'rspec'
require 'lib/immortal'
require 'active_record'
require 'sqlite3'
require 'logger'

RSpec.configure do |config|
  config.before(:each) do
    ActiveRecord::Base.connection.execute('delete from immortal_models')
  end

  config.after(:all) do
  end
end


ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
ActiveRecord::Base.logger = Logger.new(STDOUT) if ENV['DEBUG']

old_stdout = $stdout
$stdout = StringIO.new

begin
{'fraction_non_alphanumeric': 0.12900096993210475, 'fraction_numerical': 0.0038797284190106693, 'mean_word_length': 6.371428571428571, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, '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': '3263678', 'n_tokens_mistral': 339, 'n_tokens_neox': 319, 'n_words': 75}