<commit_before>require "rubygems"
require "spec"
require "spec/autorun"
require "rack/test"
require "rr"
ARGV.push("-b")

dir = File.dirname(__FILE__)
LIBRARY_ROOT_DIR = File.expand_path("#{dir}/../..")
$LOAD_PATH.unshift File.expand_path("#{LIBRARY_ROOT_DIR}/lib")
require "js_test_server"
require "nokogiri"
require "guid"
require "thin"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/be_http"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/example_group"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/fake_selenium_driver"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/show_test_exceptions"

Spec::Runner.configure do |config|
  config.mock_with RR::Adapters::Rspec
end

Sinatra::Application.use ShowTestExceptions
Sinatra::Application.set :raise_errors, true
Sinatra::Application.set :show_exceptions, false
JsTestServer::Server::App.set :raise_errors, true
JsTestServer::Server::App.set :show_exceptions, false

Sinatra::Application.use(JsTestServer::Server::App)<commit_msg>Using nested spec format.<commit_after>require "rubygems"
require "spec"
require "spec/autorun"
require "rack/test"
require "rr"
ARGV.push("-b", "--format", "nested")

dir = File.dirname(__FILE__)
LIBRARY_ROOT_DIR = File.expand_path("#{dir}/../..")
$LOAD_PATH.unshift File.expand_path("#{LIBRARY_ROOT_DIR}/lib")
require "js_test_server"
require "nokogiri"
require "guid"
require "thin"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/be_http"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/example_group"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/fake_selenium_driver"
require "#{LIBRARY_ROOT_DIR}/spec/spec_helpers/show_test_exceptions"

Spec::Runner.configure do |config|
  config.mock_with RR::Adapters::Rspec
end

Sinatra::Application.use ShowTestExceptions
Sinatra::Application.set :raise_errors, true
Sinatra::Application.set :show_exceptions, false
JsTestServer::Server::App.set :raise_errors, true
JsTestServer::Server::App.set :show_exceptions, false

Sinatra::Application.use(JsTestServer::Server::App)
{'fraction_non_alphanumeric': 0.14164164164164164, 'fraction_numerical': 0.0, 'mean_word_length': 8.945273631840797, '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': '3491249', 'n_tokens_mistral': 708, 'n_tokens_neox': 688, 'n_words': 112}