<commit_before>require './config/setup'

app = Rack::Builder.new do
  # Rack::Cascade runs requests through a list
  # of Rack Apps and returns the first matching
  # route.
  # 
  # Advault::App handles ONLY routes that end
  # with .html
  # 
  # AdVault::Api handles all other routes
  map('/')       { run Rack::Cascade.new([AdVault::App, AdVault::Api]) }
  map('/admin')  { run AdVault::Admin }
  map('/assets') { run AdVault::Assets }
end

run app<commit_msg>Commenting the rackup<commit_after>require './config/setup'

# Rack is a web server API for Ruby.
# Rack apps accept requests, and respond with an array of three things:
# A status, headers and the body.
# 
# Read more about it here: http://rack.rubyforge.org/doc/SPEC.html
# 
# Rack::Builder is a little wrapper that fits around other Rack apps
# to coordinate their behavior.
app = Rack::Builder.new do
  # Rack::Cascade runs requests through a list
  # of Rack Apps and returns the first matching
  # route.
  # 
  # Advault::App is a Sinatra app handles ONLY routes that end with .html
  # AdVault::Api is a Grape app handles all other routes
  map('/')       { run Rack::Cascade.new([AdVault::App, AdVault::Api]) }
  map('/admin')  { run AdVault::Admin }
  map('/assets') { run AdVault::Assets }
end

run app
{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.0, 'mean_word_length': 3.6173285198555956, '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': '6553319', 'n_tokens_mistral': 424, 'n_tokens_neox': 411, 'n_words': 148}