<commit_before>#
# Rails Benchmark driver
#
require 'net/http'
require 'json'
require 'pathname'
require 'optparse'

RAW_URL = 'https://raw.githubusercontent.com/ruby-bench/ruby-bench-suite/master/rails/benchmarks/'

sqlite3_url =
  if Rails.version < '4.1.0'
    'sqlite3:/:memory:'
  else
    'sqlite3::memory:'
  end

ORMS = [
  sqlite3_url,
  "postgres://postgres@#{ENV['POSTGRES_PORT_5432_TCP_ADDR']}:#{ENV['POSTGRES_PORT_5432_TCP_PORT']}/rubybench",
  "mysql://rubybench@#{ENV['MYSQL_PORT_3306_TCP_ADDR']}:#{ENV['MYSQL_PORT_3306_TCP_PORT']}/rubybench",
]<commit_msg>Use root user which is the default for mysql2.<commit_after>#
# Rails Benchmark driver
#
require 'net/http'
require 'json'
require 'pathname'
require 'optparse'

RAW_URL = 'https://raw.githubusercontent.com/ruby-bench/ruby-bench-suite/master/rails/benchmarks/'

sqlite3_url =
  if Rails.version < '4.1.0'
    'sqlite3:/:memory:'
  else
    'sqlite3::memory:'
  end

ORMS = [
  sqlite3_url,
  "postgres://postgres@#{ENV['POSTGRES_PORT_5432_TCP_ADDR']}:#{ENV['POSTGRES_PORT_5432_TCP_PORT']}/rubybench",
  "mysql://root@#{ENV['MYSQL_PORT_3306_TCP_ADDR']}:#{ENV['MYSQL_PORT_3306_TCP_PORT']}/rubybench",
]
{'fraction_non_alphanumeric': 0.17150170648464164, 'fraction_numerical': 0.04010238907849829, 'mean_word_length': 5.9, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '784603', 'n_tokens_mistral': 497, 'n_tokens_neox': 473, 'n_words': 60}