<commit_before>require 'bundler/setup'
require 'rack/rewrite'

root = File.dirname(__FILE__)
require File.join(root + '/lib/trix')

environment = Trix::Environment.new(root)
environment.paths = %w( assets src test/assets test/src test/vendor )

map '/' do
  run environment.sprockets_environment
  use Rack::Rewrite do
    rewrite '/', '/index.html'
    rewrite '/tests', 'tests.html'
  end
end
<commit_msg>Update rewrite<commit_after>require 'bundler/setup'
require 'rack/rewrite'

root = File.dirname(__FILE__)
require File.join(root + '/lib/trix')

environment = Trix::Environment.new(root)
environment.paths = %w( assets src test/assets test/src test/vendor )

map '/' do
  run environment.sprockets_environment
  use Rack::Rewrite do
    rewrite '/', '/index.html'
    rewrite '/test', 'test.html'
  end
end

{'fraction_non_alphanumeric': 0.13776137761377613, 'fraction_numerical': 0.0, 'mean_word_length': 4.426666666666667, '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': '7499574', 'n_tokens_mistral': 277, 'n_tokens_neox': 269, 'n_words': 65}