<commit_before>require 'sinatra'
require 'sinatra/reloader' if development?

get '/' do
  "Hello world!"
end<commit_msg>A few new handlers<commit_after>require 'sinatra'
require 'sinatra/reloader' if development?

# Make object to hold settings
class Settings
  attr_accessor :name
end

# App-wide settings
@app_settings = Settings.new
@app_settings.name = "JRuby/Sinatra Test"


get '/' do
  "Hello world!"
end

get '/hi/:name' do
  "Hi #{params[:name]}!"
end

get '/time' do
  @title = "Time"
  erb 'The time is <%= Time.now.strftime("%I:%M:%S %p") %>'
end

__END__

@@ layout
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><%= "#{@app_settings.name} - #{@title}" %></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>
  <%= yield %>
</body>
</html>
{'fraction_non_alphanumeric': 0.1943231441048035, 'fraction_numerical': 0.013100436681222707, 'mean_word_length': 4.300578034682081, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, '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': '5943096', 'n_tokens_mistral': 376, 'n_tokens_neox': 348, 'n_words': 84}