<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta charset='UTF-8' />
    <title>Output of rails_best_practices</title>
    <style type="text/css">
      body {
        color: #333;
        background: #eee;
        padding: 0 20px;
      }
      h1 {
        color: ##4E4E4E;
      }
      p {
        margin: 5px 0;
      }
      table {
        background: white;
        border: 1px solid #666;
        border-collapse: collapse;
        margin: 10px 0;
        font-size: 14px;
      }
      table th, table td {
        padding: 4px;
        border: 1px solid #D0D0D0;
      }
      table th {
        background-color: #DFC;
        color: #337022;
      }
      table td.filename {
        color: #ED1556;
      }
      table tr:hover {
        background-color: #FFFFC0;
      }
      ul {
        clear: both;
        display: inline-block;
        padding: 0;
        margin: 0;
      }
      ul li {
       list-style: none;
       display: none;
       float: left;
      }
    </style>
  </head>
  <body>
    <h1>rails_best_practices output</h1>
    <p>
      Please go to
      <a href='http://rails-bestpractices.com' target='_blank'>http://rails-bestpractices.com</a>
      to see more useful Rails Best Practices.
    </p>
    <p>
      <% if @errors.empty? %>
        No error found. Cool!
      <% else %>
        Found <%= @errors.size %> warnings.
      <% end %>
    </p>
    <ul>
      <% @error_types.each do |error_type| %>
        <li><input type="checkbox" value="<%= error_type.split(':').last %>" /><%= error_type.split(':').last %></li>
      <% end %>
    </ul>
    <table>
      <tr>
        <th>Filename</th>
        <th>Line Number</th>
        <th>Warning Message</th>
        <% if @hg %>
          <th>Hg Commit</th>
          <th>Hg Username</th>
        <% elsif @git %>
          <th>Git Commit</th>
          <th>Git Username</th>
        <% end %>
      </tr>
      <% @errors.each do |error| %>
        <tr class="<%= error.type.split(':').last %>">
          <td class='filename'>
            <% if @github %>
              <a href='https://github.com/<%= @github_name %>/blob/<%= @last_commit_id %>/<%= error.short_filename %>#L<%= error.first_line_number %>' target='_blank'><%= error.filename %></a>
            <% elsif @textmate %>
              <a href='txmt://open/?url=file://<%= File.expand_path(error.filename) %>&amp;line=<%= error.line_number %>'><%= error.filename %></a>
            <% elsif @mvim %>
              <a href='mvim://open/?url=file://<%= File.expand_path(error.filename) %>&amp;line=<%= error.line_number %>'><%= error.filename %></a>
            <% else %>
              <%= error.filename %>
            <% end %>
          </td>
          <td class='line'><%= error.line_number %></td>
          <td class='message'>
            <a href='<%= error.url %>' target='_blank'><%= error.message %></a>
          </td>
          <% if @hg %>
            <td class='hg_commit'><%= error.hg_commit %></td>
            <td class='hg_usename'><%= error.hg_username %></td>
          <% elsif @git %>
            <td class='git_commit'><%= error.git_commit %></td>
            <td class='git_usename'><%= error.git_username %></td>
          <% end %>
        </tr>
      <% end %>
    </table>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script type="text/javascript">
      $(function() {<commit_msg>display short filename in html<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta charset='UTF-8' />
    <title>Output of rails_best_practices</title>
    <style type="text/css">
      body {
        color: #333;
        background: #eee;
        padding: 0 20px;
      }
      h1 {
        color: ##4E4E4E;
      }
      p {
        margin: 5px 0;
      }
      table {
        background: white;
        border: 1px solid #666;
        border-collapse: collapse;
        margin: 10px 0;
        font-size: 14px;
      }
      table th, table td {
        padding: 4px;
        border: 1px solid #D0D0D0;
      }
      table th {
        background-color: #DFC;
        color: #337022;
      }
      table td.filename {
        color: #ED1556;
      }
      table tr:hover {
        background-color: #FFFFC0;
      }
      ul {
        clear: both;
        display: inline-block;
        padding: 0;
        margin: 0;
      }
      ul li {
       list-style: none;
       display: none;
       float: left;
      }
    </style>
  </head>
  <body>
    <h1>rails_best_practices output</h1>
    <p>
      Please go to
      <a href='http://rails-bestpractices.com' target='_blank'>http://rails-bestpractices.com</a>
      to see more useful Rails Best Practices.
    </p>
    <p>
      <% if @errors.empty? %>
        No error found. Cool!
      <% else %>
        Found <%= @errors.size %> warnings.
      <% end %>
    </p>
    <ul>
      <% @error_types.each do |error_type| %>
        <li><input type="checkbox" value="<%= error_type.split(':').last %>" /><%= error_type.split(':').last %></li>
      <% end %>
    </ul>
    <table>
      <tr>
        <th>Filename</th>
        <th>Line Number</th>
        <th>Warning Message</th>
        <% if @hg %>
          <th>Hg Commit</th>
          <th>Hg Username</th>
        <% elsif @git %>
          <th>Git Commit</th>
          <th>Git Username</th>
        <% end %>
      </tr>
      <% @errors.each do |error| %>
        <tr class="<%= error.type.split(':').last %>">
          <td class='filename'>
            <% if @github %>
              <a href='https://github.com/<%= @github_name %>/blob/<%= @last_commit_id %>/<%= error.short_filename %>#L<%= error.first_line_number %>' target='_blank'><%= error.short_filename %></a>
            <% elsif @textmate %>
              <a href='txmt://open/?url=file://<%= File.expand_path(error.filename) %>&amp;line=<%= error.line_number %>'><%= error.short_filename %></a>
            <% elsif @mvim %>
              <a href='mvim://open/?url=file://<%= File.expand_path(error.filename) %>&amp;line=<%= error.line_number %>'><%= error.short_filename %></a>
            <% else %>
              <%= error.short_filename %>
            <% end %>
          </td>
          <td class='line'><%= error.line_number %></td>
          <td class='message'>
            <a href='<%= error.url %>' target='_blank'><%= error.message %></a>
          </td>
          <% if @hg %>
            <td class='hg_commit'><%= error.hg_commit %></td>
            <td class='hg_usename'><%= error.hg_username %></td>
          <% elsif @git %>
            <td class='git_commit'><%= error.git_commit %></td>
            <td class='git_usename'><%= error.git_username %></td>
          <% end %>
        </tr>
      <% end %>
    </table>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script type="text/javascript">
      $(function() {
{'fraction_non_alphanumeric': 0.18854650344730547, 'fraction_numerical': 0.014352047277332207, 'mean_word_length': 1.7973238882329792, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 221, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '3789771', 'n_tokens_mistral': 2613, 'n_tokens_neox': 2382, 'n_words': 480}