<commit_before>
get '/' do
  erb :test
end

get '/lyrics' do
  artist = params[:artist].split().join("%20")
  url = "http://lyricwiki.org/api.php?artist=#{artist}&song=#{params[:song]}&fmt=json"

  response = HTTParty.get(url)

  content_type :json

  return response.to_json
end
<commit_msg>Finishes route for getting song lyrics through api<commit_after>
get '/' do
  erb :test
end

get '/lyrics' do
  artist = params[:artist].split().join("%20")
  song = params[:song].split().join("%20")
  url = "http://lyricwiki.org/api.php?artist=#{artist}&song=#{song}&fmt=json"

  response = HTTParty.get(url)

  content_type :json

  return response.to_json
end

get '/song' do

end

{'fraction_non_alphanumeric': 0.1760355029585799, 'fraction_numerical': 0.008875739644970414, 'mean_word_length': 4.459677419354839, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4305935', 'n_tokens_mistral': 265, 'n_tokens_neox': 251, 'n_words': 53}