<commit_before>configure :development do
  set :database, 'sqlite3:///development.sqlite3'
end

configure :production do
  set :require_auth, true
  db = URI.parse(ENV['DATABASE_URL'] || 'postgres:///localhost/mydb')

  ActiveRecord::Base.establish_connection(
    :adapter  => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
    :host     => db.host,
    :username => db.user,
    :password => <PASSWORD>,
    :database => db.path[1..-1],
    :encoding => 'utf8'
  )
end<commit_msg>Remove surplus row<commit_after>configure :development do
  set :database, 'sqlite3:///development.sqlite3'
end

configure :production do
  db = URI.parse(ENV['DATABASE_URL'] || 'postgres:///localhost/mydb')

  ActiveRecord::Base.establish_connection(
    :adapter  => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
    :host     => db.host,
    :username => db.user,
    :password => <PASSWORD>,
    :database => db.path[1..-1],
    :encoding => 'utf8'
  )
end
{'fraction_non_alphanumeric': 0.1720881427072403, 'fraction_numerical': 0.01049317943336831, 'mean_word_length': 3.676470588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6446742', 'n_tokens_mistral': 335, 'n_tokens_neox': 325, 'n_words': 64}