<commit_before><div class="row">
  <% if censor_rules.size > 0 %>
    <table class="table table-condensed span12">
      <tr>
        <th>Id</th>
        <% CensorRule.content_columns.each do |column| %>
          <th><%= column.human_name %></th>
        <% end %>
        <th>Actions</th>
      </tr>

      <% censor_rules.each do |censor_rule| %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td><%=h censor_rule.id %></td>
          <% CensorRule.content_columns.map { |c| c.name }.each do |column| %>
            <td><%=h censor_rule.send(column) %></td>
          <% end %>
          <td>
            <%= link_to "Edit", edit_admin_censor_rule_path(censor_rule) %>
          </td>
        </tr>
      <% end %>
    </table>
  <% else %>
    <p class="span12">None yet.</p>
  <% end %>
</div>

<div class="row">
  <p class="span12">
    <% if defined? info_request %>
      <%= link_to "New censor rule", new_admin_request_censor_rule_path(info_request), :class => "btn btn-info" %><commit_msg>Add hover highlight to censor rules table<commit_after><div class="row">
  <% if censor_rules.size > 0 %>
    <table class="table table-condensed table-hover span12">
      <tr>
        <th>Id</th>
        <% CensorRule.content_columns.each do |column| %>
          <th><%= column.human_name %></th>
        <% end %>
        <th>Actions</th>
      </tr>

      <% censor_rules.each do |censor_rule| %>
        <tr class="<%= cycle('odd', 'even') %>">
          <td><%=h censor_rule.id %></td>
          <% CensorRule.content_columns.map { |c| c.name }.each do |column| %>
            <td><%=h censor_rule.send(column) %></td>
          <% end %>
          <td>
            <%= link_to "Edit", edit_admin_censor_rule_path(censor_rule) %>
          </td>
        </tr>
      <% end %>
    </table>
  <% else %>
    <p class="span12">None yet.</p>
  <% end %>
</div>

<div class="row">
  <p class="span12">
    <% if defined? info_request %>
      <%= link_to "New censor rule", new_admin_request_censor_rule_path(info_request), :class => "btn btn-info" %>
{'fraction_non_alphanumeric': 0.1948742746615087, 'fraction_numerical': 0.006769825918762089, 'mean_word_length': 2.2998405103668262, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 87, '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': '5384011', 'n_tokens_mistral': 788, 'n_tokens_neox': 720, 'n_words': 145}