<commit_before>require "sinatra/base"
require "json"

class RnaSummerSchool < Sinatra::Base
  configure do
    set :app_file, __FILE__
    set :port, ENV["PORT"]
    set :public_folder, File.join(Dir.pwd, "components")
    set :protection, except: [:frame_options]
  end

  get "/" do
    @tab = "home"
    haml :home
  end

  get "/schedule" do
    @tab      = "schedule"
    @calendar = JSON.parse(File.read(File.join(Dir.pwd, "views", "schedule", "calendar.json"))).map do |event|
      %w|start_time end_time|.inject(event) do |hash, key|<commit_msg>Static assets<commit_after>require "sinatra/base"
require "json"

class RnaSummerSchool < Sinatra::Base
  configure do
    set :root, File.dirname(__FILE__)
    set :app_file, __FILE__
    set :port, ENV["PORT"]
    set :public_folder, File.join(Dir.pwd, "components")
    set :static, true
    set :protection, except: [:frame_options]
  end

  get "/" do
    @tab = "home"
    haml :home
  end

  get "/schedule" do
    @tab      = "schedule"
    @calendar = JSON.parse(File.read(File.join(Dir.pwd, "views", "schedule", "calendar.json"))).map do |event|
      %w|start_time end_time|.inject(event) do |hash, key|
{'fraction_non_alphanumeric': 0.1481164383561644, 'fraction_numerical': 0.0, 'mean_word_length': 3.5486381322957197, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6750291', 'n_tokens_mistral': 423, 'n_tokens_neox': 411, 'n_words': 102}