<commit_before>require 'bundler'
Bundler.require()

def fake_song(title, release_year, artist)
  {:title => title, :release_year => release_year, :artist => artist}
end

get '/' do
  '<h1>This is not a page that you should be at</h1><p>Please <a href="/">RTFM</a>!!!</p>'
end

get '/api/heat' do
  fake_song('Feel The Heat', 1986, 'Miranda Gardens').to_json
end

get '/api/garden' do
  fake_song('Play In My Garden ', 1990, 'Felicia Waxler').to_json
end

get '/api/hands' do
  fake_song('Feel My Hands', 2001, 'Tasha Underman').to_json
end<commit_msg>Needed to support cross origin requests<commit_after>require 'bundler'
Bundler.require()

def fake_song(title, release_year, artist)
  {:title => title, :release_year => release_year, :artist => artist}
end

get '/' do
  '<h1>This is not a page that you should be at</h1><p>Please <a href="/">RTFM</a>!!!</p>'
end

get '/api/heat' do
  cross_origin
  fake_song('Feel The Heat', 1986, 'Miranda Gardens').to_json
end

get '/api/garden' do
  cross_origin
  fake_song('Play In My Garden ', 1990, 'Felicia Waxler').to_json
end

get '/api/hands' do
  cross_origin
  fake_song('Feel My Hands', 2001, 'Tasha Underman').to_json
end
{'fraction_non_alphanumeric': 0.15515771526001704, 'fraction_numerical': 0.023870417732310314, 'mean_word_length': 4.783251231527093, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '5402616', 'n_tokens_mistral': 474, 'n_tokens_neox': 433, 'n_words': 127}