<commit_before>#\ -s Fishwife -p 9297 -O request_log_file=stderr -E none
# The above is equivalent to 'rackup [options]'

# We don't assume SLF4J log output handler when launching via
# 'rackup', so you should do something like this here.
# If launching via bin/fishwife, this isn't required.
require 'rjack-logback'
RJack::Logback.config_console( :stderr => true, :thread => true )

use Rack::ContentLength

run lambda { |env| [200, { "Content-Type" => "text/plain" }, ["Hello"]] }<commit_msg>Use defaults, improve example/config.ru<commit_after># -*- ruby -*-
#\ -s Fishwife -p 9297

# We don't assume SLF4J log output handler when launching via
# 'rackup', so you should do something like this here.
# If launching via bin/fishwife, this isn't required.
require 'rjack-logback'
RJack::Logback.config_console( :stderr => true, :thread => true )

run proc { [ 200, {"Content-Type" => "text/plain"}, ["Hello", " world!\n"] ] }
{'fraction_non_alphanumeric': 0.14578833693304535, 'fraction_numerical': 0.017278617710583154, 'mean_word_length': 4.550898203592815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3779653', 'n_tokens_mistral': 323, 'n_tokens_neox': 294, 'n_words': 107}