<commit_before>require 'bundler'
Bundler.setup

require 'sinatra'
require 'json'
require 'haml'

##
# This client is half of a very rough, ad-hoc client-server implementation of
# the fortune program.  It is a demonstration of
#
# 1. CAS proxying as implemented by bcsec, and
# 2. How ridiculously complex we can make simple UNIX programs[0].
#
# [0] http://radar.oreilly.com/2007/03/sfearthquakes-on-twitter.html

##
# First, we set up bcsec.
#
# Instead of the customary
#
#     Bcsec::Rack.use_in(self)
#
# we instead use
#
#     Bcsec::Rack.use_in(Sinatra::Application)
#
# because self is `main` extended with private delegators to<commit_msg>Need to explicitly require bcsec.<commit_after>require 'bundler'
Bundler.setup

require 'sinatra'
require 'json'
require 'haml'
require 'bcsec'

##
# This client is half of a very rough, ad-hoc client-server implementation of
# the fortune program.  It is a demonstration of
#
# 1. CAS proxying as implemented by bcsec, and
# 2. How ridiculously complex we can make simple UNIX programs[0].
#
# [0] http://radar.oreilly.com/2007/03/sfearthquakes-on-twitter.html

##
# First, we set up bcsec.
#
# Instead of the customary
#
#     Bcsec::Rack.use_in(self)
#
# we instead use
#
#     Bcsec::Rack.use_in(Sinatra::Application)
#
# because self is `main` extended with private delegators to
{'fraction_non_alphanumeric': 0.11186186186186187, 'fraction_numerical': 0.015015015015015015, 'mean_word_length': 4.248031496062992, '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': '395874', 'n_tokens_mistral': 476, 'n_tokens_neox': 451, 'n_words': 149}