<commit_before>require 'sinatra'

class AhabApplication < Sinatra::Base
  set(:project_root)  { File.expand_path('../../', __FILE__) }
  set(:public_folder) { File.join(project_root, 'public') }
  set(:css_dir)       { public_folder }

  get '/' do
    erb :index
  end
end
<commit_msg>AhabApplication: allow reloading in development<commit_after>require 'sinatra'
require "sinatra/reloader" if development?

class AhabApplication < Sinatra::Base
  set(:project_root)  { File.expand_path('../../', __FILE__) }
  set(:public_folder) { File.join(project_root, 'public') }
  set(:css_dir)       { public_folder }

  configure :development do
    register Sinatra::Reloader
  end

  get '/' do
    erb :index
  end
end

{'fraction_non_alphanumeric': 0.13706293706293707, 'fraction_numerical': 0.0, 'mean_word_length': 4.006993006993007, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1424341', 'n_tokens_mistral': 241, 'n_tokens_neox': 236, 'n_words': 52}