<commit_before>require 'sinatra/base'
require './helpers/application_helper'

class ApplicationController < Sinatra::Base
  set :views, File.expand_path('../../views', __FILE__)
  set :public_folder, File.expand_path('../../public', __FILE__)

  use Rack::Session::Cookie, :key => 'rack.session',
                             :path => '/',
                             :expire_after => 2592000, # In seconds
                             :secret => 'super_secret'

  after { ActiveRecord::Base.connection.close }

  helpers Sinatra::ApplicationHelpers
  register Sinatra::Flash
end<commit_msg>compress response using Rack::Deflater<commit_after>require 'sinatra/base'
require './helpers/application_helper'

class ApplicationController < Sinatra::Base
  set :views, File.expand_path('../../views', __FILE__)
  set :public_folder, File.expand_path('../../public', __FILE__)

  use Rack::Deflater
  use Rack::Session::Cookie, :key => 'rack.session',
                             :path => '/',
                             :expire_after => 2592000, # In seconds
                             :secret => 'super_secret'

  after { ActiveRecord::Base.connection.close }

  helpers Sinatra::ApplicationHelpers
  register Sinatra::Flash
end
{'fraction_non_alphanumeric': 0.13495934959349593, 'fraction_numerical': 0.011382113821138212, 'mean_word_length': 2.6205882352941177, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5884055', 'n_tokens_mistral': 350, 'n_tokens_neox': 331, 'n_words': 70}