<commit_before>$:.unshift '.'
require 'sinatra'
require "sinatra/activerecord"
set :database, "sqlite3:///app.db"

class People < ActiveRecord::Base
end

get '/people' do
  People.all.to_json
end<commit_msg>Load the HTML file through Sinatra.<commit_after>$:.unshift '.'
require 'sinatra'
require "sinatra/activerecord"
set :database, "sqlite3:///app.db"

class People < ActiveRecord::Base
end

get '/' do
  send_file 'index.html'
end

get '/people' do
  People.all.to_json
end
{'fraction_non_alphanumeric': 0.14465408805031446, 'fraction_numerical': 0.0041928721174004195, 'mean_word_length': 4.829268292682927, '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': '24871', 'n_tokens_mistral': 175, 'n_tokens_neox': 170, 'n_words': 43}