<commit_before>require 'rack-timeout'

require_relative 'lib/blocktrain'
require_relative 'lib/sir_handel'

use Rack::Timeout
Rack::Timeout.timeout = 60

map "/public" do
 run Rack::Directory.new("./public")
end

run SirHandel::App<commit_msg>Get Timeout from env<commit_after>require 'rack-timeout'

require_relative 'lib/blocktrain'
require_relative 'lib/sir_handel'

use Rack::Timeout
Rack::Timeout.timeout = ENV['SIR_HANDEL_TIMEOUT'] || 30

map "/public" do
 run Rack::Directory.new("./public")
end

run SirHandel::App
{'fraction_non_alphanumeric': 0.13409961685823754, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 6.6911764705882355, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1106631', 'n_tokens_mistral': 191, 'n_tokens_neox': 184, 'n_words': 39}