<commit_before>$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'factory_girl'
require 'faker'
require 'active_record'
require 'active_support/dependencies'
# require 'active_record/fixtures'
require 'randumb'

MODELS_PATH = File.join(File.dirname(__FILE__), 'models')


ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.logger.level = Logger::WARN

config = YAML::load(File.open(File.expand_path("../databases.yml", __FILE__)))
version = ActiveRecord::VERSION::STRING
driver = (ENV["DB"] or "sqlite3").downcase
in_memory = config[driver]["database"] == ":memory:"
    
# http://about.travis-ci.org/docs/user/database-setup/
commands = {
  "mysql"    => "mysql -e 'create database randumb_test;'",<commit_msg>was getting logger undefined error during tests<commit_after>$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'factory_girl'
require 'faker'
require 'active_record'
require 'active_support/dependencies'
require 'active_support/core_ext/logger'
# require 'active_record/fixtures'
require 'randumb'

MODELS_PATH = File.join(File.dirname(__FILE__), 'models')


ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.logger.level = Logger::WARN

config = YAML::load(File.open(File.expand_path("../databases.yml", __FILE__)))
version = ActiveRecord::VERSION::STRING
driver = (ENV["DB"] or "sqlite3").downcase
in_memory = config[driver]["database"] == ":memory:"
    
# http://about.travis-ci.org/docs/user/database-setup/
commands = {
  "mysql"    => "mysql -e 'create database randumb_test;'",
{'fraction_non_alphanumeric': 0.16557474687313878, 'fraction_numerical': 0.0011911852293031567, 'mean_word_length': 6.466666666666667, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 5, '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': '6772776', 'n_tokens_mistral': 556, 'n_tokens_neox': 547, 'n_words': 103}