<commit_before>require 'helper'
require 'rack/lobster'

class TestVitrineInRackStack < Test::Unit::TestCase
  include Rack::Test::Methods, VitrineTesting
  
  def app
    td = temporary_app_dir
    outer = Rack::Builder.new do
      use Vitrine::App do | v | 
        v.settings.set root: td 
      end
      map "/lobster" do
        run Rack::Lobster.new
      end
    end<commit_msg>Comments<commit_after>require 'helper'
require 'rack/lobster'

class TestVitrineInRackStack < Test::Unit::TestCase
  include Rack::Test::Methods, VitrineTesting
  
  def app
    td = temporary_app_dir
    outer = Rack::Builder.new do
      # The outer app
      use Vitrine::App do |v|
        v.settings.set root: td
      end
      
      # And a lobster downstream
      map "/lobster" do
        run Rack::Lobster.new
      end
    end
{'fraction_non_alphanumeric': 0.08969696969696969, 'fraction_numerical': 0.0, 'mean_word_length': 2.5450643776824036, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1767021', 'n_tokens_mistral': 281, 'n_tokens_neox': 270, 'n_words': 70}