<commit_before>require 'rack'
require 'rack/cors'
require 'content-preview/router'

app = Rack::Builder.new do
  use Rack::CommonLogger
  # use Rack::ShowExceptions
  # use Rack::Lint

  use Rack::Cors do
   allow do
    origins origin
    resource %r{/},
      :headers => ['Origin', 'Accept', 'Content-Type'],
      :methods => [:get, :post]
   end
  end

  run ContentPreview::Router::Base
end<commit_msg>heroku debug ... rewrite without thor<commit_after>require 'rack'
require 'rack/cors'
require 'content-preview/router'

app = Rack::Builder.new do
  use Rack::CommonLogger
  # use Rack::ShowExceptions
  # use Rack::Lint

  use Rack::Cors do
   allow do
    origins origin
    resource %r{/},
      :headers => ['Origin', 'Accept', 'Content-Type'],
      :methods => [:get, :post]
   end
  end

  run ContentPreview::Router::Base
end.to_app
{'fraction_non_alphanumeric': 0.14167650531286896, 'fraction_numerical': 0.0, 'mean_word_length': 3.608695652173913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7601651', 'n_tokens_mistral': 295, 'n_tokens_neox': 286, 'n_words': 75}