<commit_before>require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'ruby-debug'
require 'logger'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'cohort_scope'

class Test::Unit::TestCase
end

$logger = Logger.new 'test/test.log' #STDOUT
ActiveSupport::Notifications.subscribe do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
  $logger.debug "#{event.payload[:name]} (#{event.duration}) #{event.payload[:sql]}"
end

ActiveRecord::Base.establish_connection(
  'adapter' => 'sqlite3',
  'database' => ':memory:'
)
<commit_msg>Debuggers kill kittens<commit_after>require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'logger'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'cohort_scope'

class Test::Unit::TestCase
end

$logger = Logger.new 'test/test.log' #STDOUT
ActiveSupport::Notifications.subscribe do |*args|
  event = ActiveSupport::Notifications::Event.new(*args)
  $logger.debug "#{event.payload[:name]} (#{event.duration}) #{event.payload[:sql]}"
end

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

{'fraction_non_alphanumeric': 0.17954911433172302, 'fraction_numerical': 0.001610305958132045, 'mean_word_length': 7.398648648648648, 'pattern_counts': {'":': 0, '<': 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': '602542', 'n_tokens_mistral': 430, 'n_tokens_neox': 422, 'n_words': 74}