<commit_before><% if flash[:notice] %>
    <div class="notice"><%= flash[:notice] %></div>
<% end %>

<h1> Hi, <%= @user.email %> ! </h1>

<% if @user.places == [] %>
  <p> You have not added any cities yet. </p>
<% else %>

  <% @data.keys.each do |place| %>
    <% if place.name.split.length > 1 %>
      <% p = place.name.split.each {|p| p.capitalize!} %>
      <% place.name = p.join(' ') %>
    <% else %>
      <% place.name.capitalize! %>
    <% end %>
    <%= place.name %> <br>
    Current temperature: <%= (((@data[place]['main']['temp']) * (9.0/5)) - 459.67).round %> Farenheit
    <br>
    <%= link_to 'More Details', place_path(place) %> |
    <%= link_to 'Delete', place_path(place), method: :delete %>
    <br>
    <br>
  <% end %>

<% end %>


<%= link_to 'Add City', new_place_path(current_user) %>
<commit_msg>Simple cache on show page<commit_after><% if flash[:notice] %>
    <div class="notice"><%= flash[:notice] %></div>
<% end %>

<h1> Hi, <%= @user.email %> ! </h1>

<% if @user.places == [] %>
  <p> You have not added any cities yet. </p>
<% else %>
 <% cache @data do %>
  <% @data.keys.each do |place| %>
    <% if place.name.split.length > 1 %>
      <% p = place.name.split.each {|p| p.capitalize!} %>
      <% place.name = p.join(' ') %>
    <% else %>
      <% place.name.capitalize! %>
    <% end %>
    <%= place.name %> <br>
    Current temperature: <%= (((@data[place]['main']['temp']) * (9.0/5)) - 459.67).round %> Farenheit
    <br>
    <%= link_to 'More Details', place_path(place) %> |
    <%= link_to 'Delete', place_path(place), method: :delete %>
    <br>
    <br>
  <% end %>
 <% end %>
<% end %>


<%= link_to 'Add City', new_place_path(current_user) %>

{'fraction_non_alphanumeric': 0.25014714537963506, 'fraction_numerical': 0.012948793407886992, 'mean_word_length': 2.9080459770114944, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 67, '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': '1182263', 'n_tokens_mistral': 726, 'n_tokens_neox': 622, 'n_words': 138}