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

post '/city' do
  @user_city = City.new(params[:city], params[:state])
  @user_city.find_stations
  @user_city.stations.each do |station|
    station.find_stories
  end

  erb :graphs, layout: false
end<commit_msg>Errors raised by querying nonexistant city routed to error partial<commit_after>get '/' do
  erb :index
end

post '/city' do
  @user_city = City.new(params[:city], params[:state])
  begin
    @user_city.find_stations 
    @user_city.stations.each do |station|
      station.find_stories
    end
  erb :graphs, layout: false
  rescue
    erb :error, layout: false
  end
end
{'fraction_non_alphanumeric': 0.10952380952380952, 'fraction_numerical': 0.0, 'mean_word_length': 3.816793893129771, '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': '83937', 'n_tokens_mistral': 227, 'n_tokens_neox': 221, 'n_words': 59}