<commit_before>require "rubygems"
require "bundler/setup"

require "./lib/ext/hash.rb"
require "./lib/ext/string.rb"
require "./lib/ext/symbol.rb"

require "./lib/calculatorapp.rb"
require "./lib/calculatorloader.rb"
require "./lib/calculatorrouter.rb"

if __FILE__ == $0
  CalculatorApp.configure do |app|
    app.set :server_settings, { AccessLog: [] }
  end

  logger = Logging.logger_for "Server"

  loader = CalculatorLoader.new
  router = CalculatorRouter.new loader

  loader.load_calculators "./calculators"

  begin
    CalculatorApp.setup(router).run!
  rescue => error
    logger.error "Error: #{error.message}"
    error.backtrace.each { |line| logger.error line }
  end

end<commit_msg>Remove gap<commit_after>require "rubygems"
require "bundler/setup"

require "./lib/ext/hash.rb"
require "./lib/ext/string.rb"
require "./lib/ext/symbol.rb"

require "./lib/calculatorapp.rb"
require "./lib/calculatorloader.rb"
require "./lib/calculatorrouter.rb"

if __FILE__ == $0
  CalculatorApp.configure do |app|
    app.set :server_settings, { AccessLog: [] }
  end

  logger = Logging.logger_for "Server"

  loader = CalculatorLoader.new
  router = CalculatorRouter.new loader

  loader.load_calculators "./calculators"

  begin
    CalculatorApp.setup(router).run!
  rescue => error
    logger.error "Error: #{error.message}"
    error.backtrace.each { |line| logger.error line }
  end
end
{'fraction_non_alphanumeric': 0.13773314203730272, 'fraction_numerical': 0.0014347202295552368, 'mean_word_length': 3.8606271777003482, 'pattern_counts': {'":': 0, '<': 3, '<?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': '160933', 'n_tokens_mistral': 485, 'n_tokens_neox': 464, 'n_words': 98}