<commit_before><div class = "container">
  <div class="navbar">
    <div class = "navbar-inner">
      <a class = "brand" href="#"> Weather
         for <%= if @city then @city+", " end%><%= if @state then @state+", " end %><%= if @country then @country end%>
         </a>
      <form id="search" method="get" action="/weather"> 
        <input type="text" placeholder="Search for your city or zip" id = "searchbox" name="search">
        <button type="submit" class="btn">Submit</button>
      </form>
    </div> 
  </div>
  <div class = "row">
    <%if @weather%>

      <% for i in 0..@weather['weather']['list'].length-1 %>
        <% curday = @weather['weather']['list'][i] %>
        <div class= "span2">
          <span class="centerme"> <%= @days[i] %></span>
          <div class="temp"><%=curday["temp"]["day"].to_i%>&deg;F </div>
          <div class ="desc"><%=curday["weather"][0]["main"]%> </div>
          <div class="wimg"><img src="<%=request.protocol + request.host%>/weather_img/<%=curday["weather"][0]["icon"]%>.svg"> </div>
        </div>
      <%end%>

    <%else%>

      <% @days.each do |day| %>
        <div class="span2">
           <span class = "centerme"><%= day %></span>
           <div class = "temp"></div>
           <div class = "desc"></div>
           <div class = "wimg"></div>
         </div>
       <% end %>

     <%end%>
  </div>
</div>

<%= javascript_tag do %>
  <% if(@weather) %>
    window.preload = true
  <% end %>
  window.user_ip = '<%= j request.remote_ip %>';
  window.mock_ip = '172.16.58.3'
  window.ruby_url = '<%= j request.protocol + request.host_with_port %>';
  window.site_url = '<%= j request.protocol + request.host %>';
<% end %><commit_msg>preload variable comments<commit_after><div class = "container">
  <div class="navbar">
    <div class = "navbar-inner">
      <a class = "brand" href="#"> Weather
         for <%= if @city then @city+", " end%><%= if @state then @state+", " end %><%= if @country then @country end%>
         </a>
      <form id="search" method="get" action="/weather"> 
        <input type="text" placeholder="Search for your city or zip" id = "searchbox" name="search">
        <button type="submit" class="btn">Submit</button>
      </form>
    </div> 
  </div>
  <div class = "row">
    <%if @weather%>

      <% for i in 0..@weather['weather']['list'].length-1 %>
        <% curday = @weather['weather']['list'][i] %>
        <div class= "span2">
          <span class="centerme"> <%= @days[i] %></span>
          <div class="temp"><%=curday["temp"]["day"].to_i%>&deg;F </div>
          <div class ="desc"><%=curday["weather"][0]["main"]%> </div>
          <div class="wimg"><img src="<%=request.protocol + request.host%>/weather_img/<%=curday["weather"][0]["icon"]%>.svg"> </div>
        </div>
      <%end%>

    <%else%>

      <% @days.each do |day| %>
        <div class="span2">
           <span class = "centerme"><%= day %></span>
           <div class = "temp"></div>
           <div class = "desc"></div>
           <div class = "wimg"></div>
         </div>
       <% end %>

     <%end%>
  </div>
</div>

<%= javascript_tag do %>
  <% if(@weather) %>
  <%#Request was a search. The preload variable indicates that we shouldn't try and use the user's ip to get the weather %>
    window.preload = true
  <% end %>
  window.user_ip = '<%= j request.remote_ip %>';
  window.mock_ip = '172.16.58.3'
  window.ruby_url = '<%= j request.protocol + request.host_with_port %>';
  window.site_url = '<%= j request.protocol + request.host %>';
<% end %>
{'fraction_non_alphanumeric': 0.2276056338028169, 'fraction_numerical': 0.007887323943661971, 'mean_word_length': 2.675983436853002, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 124, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '103823', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1183, 'n_words': 279}