<commit_before><% content_for :header do %>
<style>
body {
  margin: 0px;
  padding: 0px;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  overflow: hidden;
}

div.heading {
  position: absolute;
  z-index: 10;
  background: white;
  opacity: 0.75;
  border: 1px solid #555;
  margin-left: 40px;
  margin-top: 10px;
}
p#subtitle {
  font-size: 80%;
}

.heading a {
  font-size: 26pt;
  font-weight: bold;
  color: black;
  text-decoration: none;
  border-bottom: 2px dotted #333;
  margin-right: 10px;
}

.heading p {
  margin: 10px 10px 17px 10px;
  font-size: 16pt;
}
div.topfive {
  position: relative; 
  float: right; 
  z-index: 10;
  background: white;
  opacity: 0.75;
  border: 1px solid #555;
  margin-right: 30px;
  margin-top: 10px;
}
div.topfive p{
  margin-bottom: 0px;
  margin-top: 0px;
  margin-left: 5px;
}
</style>
<% end %>

<div class="heading">
  <p>
    <a href="http://donpark.org/wiki/icecondor">IceCondor</a> <br/>
  </p>
  <p id="subtitle">
   Continuous location tracking.
  </p>
  <%= flash[:notice] %>
</div>

<div class="topfive">
    <p>
      Recent Updates
    </p>
    <table>
    <% @locations.each do |ary| %>
      <tr>
          <td><%= image_tag "http://labs.google.com/ridefinder/images/mm_20_#{MapHelper::COLORS[ary.last.guid.hash % MapHelper::COLORS.size]}.png" %></td>
          <td><%= link_to ary.last.user.openidentities.first.url, "locations.html?id=#{ary.last.user.openidentities.first.url}" %></td>
          <td> <%= time_ago_in_words(ary.first.timestamp) %> </td></tr>
    <% end %>
    </table>
</div>

<%= google_map(@locations, :width => "100%", :height => "500px", 
               :controls => [:zoom],
               :inject_on_load => <<__JS__, :partial => "location") 
function resize_map() { 
  $('google_map').style.height = "" + window.innerHeight + "px";
}
Event.observe(document.onresize ? document : window, "resize", resize_map);
resize_map();<commit_msg>fix the color selection on the front page<commit_after><% content_for :header do %>
<style>
body {
  margin: 0px;
  padding: 0px;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
  overflow: hidden;
}

div.heading {
  position: absolute;
  z-index: 10;
  background: white;
  opacity: 0.75;
  border: 1px solid #555;
  margin-left: 40px;
  margin-top: 10px;
}
p#subtitle {
  font-size: 80%;
}

.heading a {
  font-size: 26pt;
  font-weight: bold;
  color: black;
  text-decoration: none;
  border-bottom: 2px dotted #333;
  margin-right: 10px;
}

.heading p {
  margin: 10px 10px 17px 10px;
  font-size: 16pt;
}
div.topfive {
  position: relative; 
  float: right; 
  z-index: 10;
  background: white;
  opacity: 0.75;
  border: 1px solid #555;
  margin-right: 30px;
  margin-top: 10px;
}
div.topfive p{
  margin-bottom: 0px;
  margin-top: 0px;
  margin-left: 5px;
}
</style>
<% end %>

<div class="heading">
  <p>
    <a href="http://donpark.org/wiki/icecondor">IceCondor</a> <br/>
  </p>
  <p id="subtitle">
   Continuous location tracking.
  </p>
  <%= flash[:notice] %>
</div>

<div class="topfive">
    <p>
      Recent Updates
    </p>
    <table>
    <% @locations.each do |ary| %>
      <tr>
          <td><%= image_tag "http://labs.google.com/ridefinder/images/mm_20_#{MapHelper::COLORS[ary.last.user.id % MapHelper::COLORS.size]}.png" %></td>
          <td><%= link_to ary.last.user.openidentities.first.url, "locations.html?id=#{ary.last.user.openidentities.first.url}" %></td>
          <td> <%= time_ago_in_words(ary.first.timestamp) %> </td></tr>
    <% end %>
    </table>
</div>

<%= google_map(@locations, :width => "100%", :height => "500px", 
               :controls => [:zoom],
               :inject_on_load => <<__JS__, :partial => "location") 
function resize_map() { 
  $('google_map').style.height = "" + window.innerHeight + "px";
}
Event.observe(document.onresize ? document : window, "resize", resize_map);
resize_map();
{'fraction_non_alphanumeric': 0.18441161487519103, 'fraction_numerical': 0.030056036678553236, 'mean_word_length': 3.2408207343412525, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 79, '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': '2628034', 'n_tokens_mistral': 1648, 'n_tokens_neox': 1487, 'n_words': 322}