<commit_before>ENV["RACK_ENV"] ||= "development"

use Slimmer::App

set :solr, lambda {
  config = YAML.load(File.read(File.expand_path("../solr.yml", __FILE__)))
  SolrWrapper.new(DelSolr::Client.new(config[ENV["RACK_ENV"]]))
}.call

set :top_results, 4
set :max_more_results, 46<commit_msg>only use slimmer in development or production<commit_after>ENV["RACK_ENV"] ||= "development"

configure :production, :development do
  use Slimmer::App
end


set :solr, lambda {
  config = YAML.load(File.read(File.expand_path("../solr.yml", __FILE__)))
  SolrWrapper.new(DelSolr::Client.new(config[ENV["RACK_ENV"]]))
}.call

set :top_results, 4
set :max_more_results, 46
{'fraction_non_alphanumeric': 0.16767371601208458, 'fraction_numerical': 0.00906344410876133, 'mean_word_length': 6.449438202247191, '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': '4166835', 'n_tokens_mistral': 263, 'n_tokens_neox': 248, 'n_words': 46}