<commit_before><!DOCTYPE html>
<html <%= rtl? ? "dir=rtl" : "" %>>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <% before = content_for?(:before_title) ? yield(:before_title) : '' %>
    <% after = content_for?(:after_title) ? yield(:after_title) : '' %>
    <title><%=  "#{before}Wiki Ed Dashboard#{after}" %></title>

    <% if(Rails.env == 'development') %>
      <%= favicon_link_tag 'favicon_dev.png' %>
    <% else %>
      <%= favicon_link_tag 'favicon.ico' %>
    <% end %>

    <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Myapp" %>">

    <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', media: 'all' %>
    <%= stylesheet_link_tag 'https://fonts.googleapis.com/css?family=Droid+Serif', media: 'all' %>
    <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Roboto', media: 'all' %>
    <%= stylesheet_link_tag '/stylesheets/' + (rtl? ? 'rtl/' : '') + 'main.css', media: 'all' %>
    <%= javascript_include_tag '/javascripts/vendor.js' %>
    <%= javascript_include_tag '/javascripts/main.js' %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <div class="container">
      <aside>
        <div class="logo">
          <a class="logo__link" href="http://wikiedu.org" target="_blank" title="wikiedu.org"><%= image_tag "/images/wiki-logo.png" %></a>
        </div>
        <nav>
          <div class="nav__item <%= content_for?(:navigation) ? '' : 'active' %>">
            <p class="subtitle desktop-only"><%= link_to 'Global Dashboard', root_url %></p>
            <p class="subtitle tablet-only"><%= link_to 'Home', root_url %></p>
          </div>
          <%= content_for?(:navigation) ? yield(:navigation) : '' %>
        </nav>
        <div class="login">
          <% if user_signed_in? %>
            <p>You are logged in as <b><%= current_user.wiki_id %></b>.&nbsp;&nbsp;&nbsp;<%= link_to "Logout", :destroy_user_session %></p>
          <% else %>
            <p><%= link_to "Login", user_omniauth_authorize_path(:mediawiki) %></p>
          <% end %>
        </div>
      </aside>
      <main role="main">
        <%= yield %>
      </main>
    </div>
  </body>
</html><commit_msg>Add piwik tracking code to the bottom of the layout.<commit_after><!DOCTYPE html>
<html <%= rtl? ? "dir=rtl" : "" %>>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <% before = content_for?(:before_title) ? yield(:before_title) : '' %>
    <% after = content_for?(:after_title) ? yield(:after_title) : '' %>
    <title><%=  "#{before}Wiki Ed Dashboard#{after}" %></title>

    <% if(Rails.env == 'development') %>
      <%= favicon_link_tag 'favicon_dev.png' %>
    <% else %>
      <%= favicon_link_tag 'favicon.ico' %>
    <% end %>

    <meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Myapp" %>">

    <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', media: 'all' %>
    <%= stylesheet_link_tag 'https://fonts.googleapis.com/css?family=Droid+Serif', media: 'all' %>
    <%= stylesheet_link_tag 'http://fonts.googleapis.com/css?family=Roboto', media: 'all' %>
    <%= stylesheet_link_tag '/stylesheets/' + (rtl? ? 'rtl/' : '') + 'main.css', media: 'all' %>
    <%= javascript_include_tag '/javascripts/vendor.js' %>
    <%= javascript_include_tag '/javascripts/main.js' %>
    <%= csrf_meta_tags %>
  </head>
  <body>
    <div class="container">
      <aside>
        <div class="logo">
          <a class="logo__link" href="http://wikiedu.org" target="_blank" title="wikiedu.org"><%= image_tag "/images/wiki-logo.png" %></a>
        </div>
        <nav>
          <div class="nav__item <%= content_for?(:navigation) ? '' : 'active' %>">
            <p class="subtitle desktop-only"><%= link_to 'Global Dashboard', root_url %></p>
            <p class="subtitle tablet-only"><%= link_to 'Home', root_url %></p>
          </div>
          <%= content_for?(:navigation) ? yield(:navigation) : '' %>
        </nav>
        <div class="login">
          <% if user_signed_in? %>
            <p>You are logged in as <b><%= current_user.wiki_id %></b>.&nbsp;&nbsp;&nbsp;<%= link_to "Logout", :destroy_user_session %></p>
          <% else %>
            <p><%= link_to "Login", user_omniauth_authorize_path(:mediawiki) %></p>
          <% end %>
        </div>
      </aside>
      <main role="main">
        <%= yield %>
      </main>
    </div>
    <!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//wikiedu.org/analytics/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//wikiedu.org/analytics/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
  </body>
</html>
{'fraction_non_alphanumeric': 0.2196676970633694, 'fraction_numerical': 0.002704791344667697, 'mean_word_length': 3.1682769726247986, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 0, '>': 144, 'https://': 2, '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': '2477250', 'n_tokens_mistral': 1946, 'n_tokens_neox': 1794, 'n_words': 303}