<commit_before>require File.dirname(__FILE__) + '/config/boot.rb'

use ::Rack::ShowExceptions
# use Rack::CommonLogger
# use Rack::Reloader, 0
use ::Rack::Session::Cookie, :secret => "<KEY> "

use ::Warden::Manager do |manager|
  manager.default_strategies :password
  manager.failure_app = Imganom::Webapp
end

run Rack::URLMap.new({
  "/"    => Imganom::Webapp,
  "/api" => Imganom::API
})


<commit_msg>Change the path specifier for the API application<commit_after>require File.dirname(__FILE__) + '/config/boot.rb'

use ::Rack::ShowExceptions
use Rack::CommonLogger
use ::Rack::Session::Cookie, :secret => "<KEY> "

use ::Warden::Manager do |manager|
  manager.default_strategies :password
  manager.failure_app = Imganom::Webapp
end

run Rack::URLMap.new({
  "/"     => Imganom::Webapp,
  "/test" => Imganom::API
})
{'fraction_non_alphanumeric': 0.1668696711327649, 'fraction_numerical': 0.001218026796589525, 'mean_word_length': 5.47244094488189, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3162865', 'n_tokens_mistral': 291, 'n_tokens_neox': 288, 'n_words': 60}