<commit_before><!DOCTYPE html>
<html>
<head>
  <title><%= content_for?(:title) ? content_for(:title) : 'Meme Captain meme generator' %></title>
  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag %>
  <% if @refresh_in %>
      <meta http-equiv="refresh" content="<%= @refresh_in %>"/>
  <% end %>
</head>
<body>

<div class="navbar navbar-static-top">
  <div class="navbar-inner">
    <div class="container-fluid">

      <%= link_to image_tag('logo.png'), root_url, class: 'brand' %>

      <ul class="nav">
        <% if current_user %>
            <li>
              <%= link_to(my_url) do %>
                  <%= image_tag(current_user.avatar.image_url(size: 20)) %>
                  My images
              <% end %>
            </li>
            <li><%= link_to "Logout #{current_user.email}", session_path, :method => :delete %></li>
        <% else %>
            <li><%= link_to "Login", new_session_path %></li>
        <% end %>
      </ul>
      <%= form_tag({ controller: :src_images, action: :index }, method: 'get', class: 'navbar-search pull-left') do %>
          <%= text_field_tag :q, nil, class: 'input-medium search-query', placeholder: 'Search' %>
      <% end %>

    </div>
  </div>
</div>

<div class="container-fluid">

  <% if ENV['DEPLOYED_TIME'] %>
      <div class="alert alert-error">
        <p>
          This is a a test build and images may not be preserved. Send feedback
          to <%= mail_to '<EMAIL>' %>. Last
          updated: <%= ENV['DEPLOYED_TIME'] %>, commit
          <a href="https://github.com/mmb/meme_captain_web/tree/<%= ENV['DEPLOYED_SHA'] %>"><%= ENV['DEPLOYED_SHA'][0, 4] %></a>
        </p>
      </div>
  <% end %>

  <% if flash[:error] -%>
      <div class="alert alert-error">
        <%= h flash[:error] %>
      </div>
  <% end -%>

  <% if flash[:notice] -%>
      <div class="alert alert-info">
        <%= h flash[:notice] %>
      </div>
  <% end -%>

  <%= yield %>

  <div class="footer">
    <p>
      <%= link_to 'Meme Captain version 1', 'http://v1.memecaptain.com/' %>
      |
      <%= link_to 'Source code', 'https://github.com/mmb/meme_captain_web' %>
      |
      Feedback: <%= mail_to '<EMAIL>' %>
    </p>
  </div>

</div>

<%= javascript_include_tag "application" %>

<%= render 'application/google_analytics' %>

</body>
</html><commit_msg>Link to github issues in footer.<commit_after><!DOCTYPE html>
<html>
<head>
  <title><%= content_for?(:title) ? content_for(:title) : 'Meme Captain meme generator' %></title>
  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= csrf_meta_tags %>
  <%= favicon_link_tag %>
  <% if @refresh_in %>
      <meta http-equiv="refresh" content="<%= @refresh_in %>"/>
  <% end %>
</head>
<body>

<div class="navbar navbar-static-top">
  <div class="navbar-inner">
    <div class="container-fluid">

      <%= link_to image_tag('logo.png'), root_url, class: 'brand' %>

      <ul class="nav">
        <% if current_user %>
            <li>
              <%= link_to(my_url) do %>
                  <%= image_tag(current_user.avatar.image_url(size: 20)) %>
                  My images
              <% end %>
            </li>
            <li><%= link_to "Logout #{current_user.email}", session_path, :method => :delete %></li>
        <% else %>
            <li><%= link_to "Login", new_session_path %></li>
        <% end %>
      </ul>
      <%= form_tag({ controller: :src_images, action: :index }, method: 'get', class: 'navbar-search pull-left') do %>
          <%= text_field_tag :q, nil, class: 'input-medium search-query', placeholder: 'Search' %>
      <% end %>

    </div>
  </div>
</div>

<div class="container-fluid">

  <% if ENV['DEPLOYED_TIME'] %>
      <div class="alert alert-error">
        <p>
          This is a a test build and images may not be preserved. Send feedback
          to <%= mail_to '<EMAIL>' %>. Last
          updated: <%= ENV['DEPLOYED_TIME'] %>, commit
          <a href="https://github.com/mmb/meme_captain_web/tree/<%= ENV['DEPLOYED_SHA'] %>"><%= ENV['DEPLOYED_SHA'][0, 4] %></a>
        </p>
      </div>
  <% end %>

  <% if flash[:error] -%>
      <div class="alert alert-error">
        <%= h flash[:error] %>
      </div>
  <% end -%>

  <% if flash[:notice] -%>
      <div class="alert alert-info">
        <%= h flash[:notice] %>
      </div>
  <% end -%>

  <%= yield %>

  <div class="footer">
    <p>
      <%= link_to 'https://github.com/mmb/meme_captain_web/issues' do %>
          Send
          <i class="icon-bug"></i> bug reports
          and
          <i class="icon-lightbulb"></i> suggestions
      <% end %>
    </p>
  </div>

</div>

<%= javascript_include_tag "application" %>

<%= render 'application/google_analytics' %>

</body>
</html>
{'fraction_non_alphanumeric': 0.20405179615705932, 'fraction_numerical': 0.0020885547201336674, 'mean_word_length': 2.4182726623840116, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 167, 'https://': 4, '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': '5816007', 'n_tokens_mistral': 1831, 'n_tokens_neox': 1643, 'n_words': 350}