<commit_before>SAT::Application.configure do |config|
  # directory structure
  config.set :root, File.expand_path('../..', __FILE__)
  config.set :views, File.join(config.root, 'app', 'views')

  # i18n
  I18n.load_path = Dir[File.join('config', 'locales', '*.{rb,yml}').to_s]
  I18n.default_locale = 'en'

  # link header
  config.helpers Sinatra::LinkHeader

  # logging
  file = File.new("#{config.root}/log/#{config.environment}.log", 'a+')
  file.sync = true
  config.use Rack::CommonLogger, file

  # method override
  config.enable :method_override

  # partial
  config.register Sinatra::Partial
  config.set :partial_template_engine, :slim
  config.enable :partial_underscores

  # sessions
  config.enable :sessions

  # show exceptions
  config.enable :show_exceptions

  # sprockets
  map '/assets' do
    environment = Sprockets::Environment.new
    environment.append_path File.join(config.root, 'app', 'assets', 'javascripts')
    environment.append_path File.join(config.root, 'app', 'assets', 'stylesheets')
    run environment
  end

  # template engine
  config.set :slim, layout_engine: :slim, layout: '../layouts/application'.to_sym
end<commit_msg>oops didnt test<commit_after>SAT::Application.configure do |config|
  # directory structure
  config.set :root, File.expand_path('../..', __FILE__)
  config.set :views, File.join(config.root, 'app', 'views')

  # i18n
  I18n.load_path = Dir[File.join('config', 'locales', '*.{rb,yml}').to_s]
  I18n.default_locale = 'en'

  # link header
  config.helpers Sinatra::LinkHeader

  # logging
  file = File.new("#{config.root}/log/#{config.environment}.log", 'a+')
  file.sync = true
  config.use Rack::CommonLogger, file

  # method override
  config.enable :method_override

  # partial
  config.register Sinatra::Partial
  config.set :partial_template_engine, :slim
  config.enable :partial_underscores

  # sessions
  config.enable :sessions

  # show exceptions
  config.enable :show_exceptions

  # sprockets
  config.builder.map '/assets' do
    environment = Sprockets::Environment.new
    environment.append_path File.join(config.root, 'app', 'assets', 'javascripts')
    environment.append_path File.join(config.root, 'app', 'assets', 'stylesheets')
    run environment
  end

  # template engine
  config.set :slim, layout_engine: :slim, layout: '../layouts/application'.to_sym
end
{'fraction_non_alphanumeric': 0.14000848536274926, 'fraction_numerical': 0.005091217649554518, 'mean_word_length': 4.322799097065463, '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': '880322', 'n_tokens_mistral': 797, 'n_tokens_neox': 765, 'n_words': 163}