<commit_before>$:.unshift(File.dirname(__FILE__) + '/../lib')
require "bundler/setup"
require "minitest/autorun"

require "active_record"
require "yaml"
require "counter_cache_with_conditions"

if ActiveSupport::TestCase.respond_to?(:test_order=)
  ActiveSupport::TestCase.test_order = :random
end

def load_schema
  conf = YAML::load(File.open(File.dirname(__FILE__) + '/database.yml'))

  ActiveRecord::Base.establish_connection(conf['sqlite3'])
  load(File.dirname(__FILE__) + "/schema.rb")
end
<commit_msg>output rails version in tests<commit_after>$:.unshift(File.dirname(__FILE__) + '/../lib')
require "bundler/setup"
require "minitest/autorun"

require "active_record"
require "yaml"
require "counter_cache_with_conditions"

puts  "Rails #{ActiveSupport::VERSION::STRING}"

if ActiveSupport::TestCase.respond_to?(:test_order=)
  ActiveSupport::TestCase.test_order = :random
end

def load_schema
  conf = YAML::load(File.open(File.dirname(__FILE__) + '/database.yml'))

  ActiveRecord::Base.establish_connection(conf['sqlite3'])
  load(File.dirname(__FILE__) + "/schema.rb")
end

{'fraction_non_alphanumeric': 0.15207373271889402, 'fraction_numerical': 0.0018433179723502304, 'mean_word_length': 7.2272727272727275, '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': '1833660', 'n_tokens_mistral': 362, 'n_tokens_neox': 354, 'n_words': 59}