<commit_before><?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= title %></title>

  <%= stylesheet_link_tag 'application', :media => "screen, projection" %>
  <%= stylesheet_link_tag 'jquery.rating', :media => "screen, projection" %>
  <%= stylesheet_link_tag 'print', :media => "print" %>
  <!--[lt IE 8]>
      <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
  <![endif]-->

  <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" -%>
  <%= javascript_include_tag 'jquery.livequery', 'jquery.MetaData', 'jquery.delayedObserver',
                             'jquery.rating.pack', 'jquery.validate.pack', 'application' -%>
  <%= javascript_tag "window.AUTH_TOKEN = '#{form_authenticity_token}';" %>

  <%= auto_discovery_link_tag :atom, @atom[:url], :title => @atom[:title] if @atom %>
  <meta name="verify-v1" content="YtXicWGGldm5yUfU718DJMAreQ9gf2gtsSCe5VysH10=" />
</head>
<body>

<div id="container">
  <div id="main">
    <% unless flash[:notice].blank? %>
      <div class="flash"><%= flash[:notice] %></div>
    <% end -%>

    <%= yield  %>
  </div>

  <div id="sidebar">
  <h1 class="title"><a href="/">crantastic!</a></h1>

  <div class="box">
    <ul>
      <li><%= link_to "Packages", packages_path %></li>
      <li><%= link_to "Authors", authors_path %></li>
      <li><%= link_to "Reviews", reviews_path %></li>
      <li><%= link_to "Tags", tags_path %></li>
      <% if logged_in? -%>
      <li><%= link_to "My profile", current_user %></li>
      <li><%= link_to "Log out", logout_path %></li>
      <% end -%>
    </ul>
  </div>

  <div id="search-box" class="box">
    <% form_tag search_path, :method => 'GET' do -%>
    <p style="margin: 0 0 0 0.1em">
      <%= text_field_tag 'q' %>
      <input type="submit" value="Search" />
    </p>
    <% end -%>
  </div>

  <div>
    <% if @atom -%>
      <small style="display: block; text-align: right">
        Stay up to date on <%= @atom[:title].scan(/(on|for) (.*)/)[0][1] %>: &nbsp;
        <%= link_to(image_tag("feed-icon-14x14.png"), @atom[:url],
                    :style => "background-color: transparent; margin-right: 16px; float: right;") %>
      </small>
    <% end -%>
  </div>

  <% unless logged_in? -%>
  <div class="box">

<script src="/javascripts/rpxnow.widget.js" type="text/javascript"></script>

<script type="text/javascript">
  //<![CDATA[
  RPXNOW.token_url = "http://localhost:3000/session/rpx_token";

  RPXNOW.realm = "crantastic";
  RPXNOW.overlay = true;
  RPXNOW.language_preference = 'en';
  //]]>
</script>

<ul>
<li>
<a class="rpxnow" style="border: #ccc 2px solid; padding: 2px; background-color:
  #eee; padding: 3px;" onclick="return false;" href="/login">
  Log in
</a>
</li>
<li>or &nbsp;<%= link_to "Sign up!", signup_path %></li>
</ul>
  </div>
  <% end -%>
</div>

<div id="footer">
  <p>Brought to you by <a href="http://had.co.nz"><NAME></a>
  and <a href="http://chrononaut.net/"><NAME></a>.
  Like it? Hate it? Let us know at
  <a href="mailto:<EMAIL>"><EMAIL></a>.
  <%= link_to "About crantastic", about_url %>.</p>
</div>
</div>

<%= render :partial => "layouts/uservoice" -%>
<%= render :partial => "layouts/google_analytics" -%>
</body>
</html>
<commit_msg>Added auto-discovery of the "Latest activity on crantastic"-feed for all views<commit_after><?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= title %></title>

  <%= stylesheet_link_tag 'application', :media => "screen, projection" %>
  <%= stylesheet_link_tag 'jquery.rating', :media => "screen, projection" %>
  <%= stylesheet_link_tag 'print', :media => "print" %>
  <!--[lt IE 8]>
      <link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
  <![endif]-->

  <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" -%>
  <%= javascript_include_tag 'jquery.livequery', 'jquery.MetaData', 'jquery.delayedObserver',
                             'jquery.rating.pack', 'jquery.validate.pack', 'application' -%>
  <%= javascript_tag "window.AUTH_TOKEN = '#{form_authenticity_token}';" %>

  <%= auto_discovery_link_tag :atom, timeline_events_url(:format => :atom),
      :title => "Latest activity on crantastic" %>
  <%= auto_discovery_link_tag :atom, @atom[:url], :title => @atom[:title] if
      @atom && @atom[:title] != "Latest activity on crantastic" %>
  <meta name="verify-v1" content="YtXicWGGldm5yUfU718DJMAreQ9gf2gtsSCe5VysH10=" />
</head>
<body>

<div id="container">
  <div id="main">
    <% unless flash[:notice].blank? %>
      <div class="flash"><%= flash[:notice] %></div>
    <% end -%>

    <%= yield  %>
  </div>

  <div id="sidebar">
  <h1 class="title"><a href="/">crantastic!</a></h1>

  <div class="box">
    <ul>
      <li><%= link_to "Packages", packages_path %></li>
      <li><%= link_to "Authors", authors_path %></li>
      <li><%= link_to "Reviews", reviews_path %></li>
      <li><%= link_to "Tags", tags_path %></li>
      <% if logged_in? -%>
      <li><%= link_to "My profile", current_user %></li>
      <li><%= link_to "Log out", logout_path %></li>
      <% end -%>
    </ul>
  </div>

  <div id="search-box" class="box">
    <% form_tag search_path, :method => 'GET' do -%>
    <p style="margin: 0 0 0 0.1em">
      <%= text_field_tag 'q' %>
      <input type="submit" value="Search" />
    </p>
    <% end -%>
  </div>

  <div>
    <% if @atom -%>
      <small style="display: block; text-align: right">
        Stay up to date on <%= @atom[:title].scan(/(on|for) (.*)/)[0][1] %>: &nbsp;
        <%= link_to(image_tag("feed-icon-14x14.png"), @atom[:url],
                    :style => "background-color: transparent; margin-right: 16px; float: right;") %>
      </small>
    <% end -%>
  </div>

  <% unless logged_in? -%>
  <div class="box">

<script src="/javascripts/rpxnow.widget.js" type="text/javascript"></script>

<script type="text/javascript">
  //<![CDATA[
  RPXNOW.token_url = "http://localhost:3000/session/rpx_token";

  RPXNOW.realm = "crantastic";
  RPXNOW.overlay = true;
  RPXNOW.language_preference = 'en';
  //]]>
</script>

<ul>
<li>
<a class="rpxnow" style="border: #ccc 2px solid; padding: 2px; background-color:
  #eee; padding: 3px;" onclick="return false;" href="/login">
  Log in
</a>
</li>
<li>or &nbsp;<%= link_to "Sign up!", signup_path %></li>
</ul>
  </div>
  <% end -%>
</div>

<div id="footer">
  <p>Brought to you by <a href="http://had.co.nz"><NAME></a>
  and <a href="http://chrononaut.net/">Bj&<NAME>&aelig;land</a>.
  Like it? Hate it? Let us know at
  <a href="mailto:<EMAIL>"><EMAIL></a>.
  <%= link_to "About crantastic", about_url %>.</p>
</div>
</div>

<%= render :partial => "layouts/uservoice" -%>
<%= render :partial => "layouts/google_analytics" -%>
</body>
</html>

{'fraction_non_alphanumeric': 0.22967032967032966, 'fraction_numerical': 0.013736263736263736, 'mean_word_length': 3.559173450219161, 'pattern_counts': {'":': 0, '<': 232, '<?xml version=': 2, '>': 250, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '6329627', 'n_tokens_mistral': 2980, 'n_tokens_neox': 2740, 'n_words': 552}