<commit_before>require 'bundler/setup'

require 'sinatra/base'
require 'active_record'

require_relative 'routes/quotes'

module Quotes
  class App < Sinatra::Base
    ActiveRecord::Base.establish_connection(
      adapter: 'sqlite3',
      database: 'quotes.db'
    )

    use Routes::Quotes
  end
end<commit_msg>Add `configure` block<commit_after>require 'bundler/setup'

require 'sinatra/base'
require 'active_record'

require_relative 'routes/quotes'

module Quotes
  class App < Sinatra::Base
    configure do
      set :db_adapter, 'sqlite3'
      set :db_database, 'quotes.db'
    end

    ActiveRecord::Base.establish_connection(
      adapter: settings.db_adapter,
      database: settings.db_database
    )

    use Routes::Quotes
  end
end
{'fraction_non_alphanumeric': 0.096, 'fraction_numerical': 0.0026666666666666666, 'mean_word_length': 3.8451612903225807, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6291950', 'n_tokens_mistral': 248, 'n_tokens_neox': 244, 'n_words': 54}