<commit_before>MYSQL_CONFIG = {
  :username => 'arjdbc',
  :password => '<PASSWORD>',
  :adapter  => 'mysql2',
  :database => 'arjdbc_test',
  :host     => 'localhost'
}

unless ( ps = ENV['PREPARED_STATEMENTS'] || ENV['PS'] ).nil?
  MYSQL_CONFIG[:prepared_statements] = ps
end<commit_msg>allow running tests using `rake test_mysql DRIVER=MariaDB`<commit_after>MYSQL_CONFIG = {
  :username => 'arjdbc',
  :password => '<PASSWORD>',
  :adapter  => 'mysql2',
  :database => 'arjdbc_test',
  :host     => 'localhost'
}

unless ( ps = ENV['PREPARED_STATEMENTS'] || ENV['PS'] ).nil?
  MYSQL_CONFIG[:prepared_statements] = ps
end

if driver = ENV['DRIVER']
  if driver =~ /maria/i
    if driver.index('.').nil?
      driver = 'org.mariadb.jdbc.Driver'
    end
    jars = File.expand_path('../jars', File.dirname(__FILE__))
    if jar = Dir.glob("#{jars}/mariadb*.jar").last
      load jar
    end
  end
  MYSQL_CONFIG[:driver] = driver if driver.index('.')
end
{'fraction_non_alphanumeric': 0.18238993710691823, 'fraction_numerical': 0.0020964360587002098, 'mean_word_length': 3.8974358974358974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7426048', 'n_tokens_mistral': 364, 'n_tokens_neox': 356, 'n_words': 69}