<commit_before><h3>Domain Tracking</h3>
<p>Tracking <strong><%= pluralize(@total, 'domain') %></strong> in total.</p>

<%= form_tag spam_domains_path, method: :get, class: 'form-inline' do %>
  <%= text_field_tag :filter, params[:filter], class: 'form-control input-sm' %>
  <%= submit_tag 'Search', class: 'btn btn-primary btn-sm' %>
<% end %>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Domain</th>
      <th>Occurrences</th>
      <th colspan="3"></th>
    </tr>
  </thead>
  <tbody>
    <% @domains.each do |d| %>
      <tr>
        <td><code><%= d.domain %></code></td>
        <td>
          <%= @counts[:all][d.id] || 0 %>
          (<span class="text-success" title="TP" data-toggle="tooltip"><%= @counts[:tp][d.id] || 0 %></span>,
          <span class="text-danger" title="FP" data-toggle="tooltip"><%= @counts[:fp][d.id] || 0 %></span>,
          <span class="text-warning" title="NAA" data-toggle="tooltip"><%= @counts[:naa][d.id] || 0 %></span>)
        </td>
        <td><%= link_to 'Details', spam_domain_path(d) %></td>
        <% if user_signed_in? && current_user.has_role?(:core) %>
          <td><%= link_to 'Edit', edit_spam_domain_path(d) %></td>
        <% end %>
        <% if user_signed_in? && current_user.has_role?(:admin) %>
          <td><%= link_to 'Delete', destroy_spam_domain_path(d), method: :delete, class: 'text-danger',
                          data: { confirm: 'Are you sure?' } %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>Close #263<commit_after><h3>Domain Tracking</h3>
<p>Tracking <strong><%= pluralize(@total, 'domain') %></strong> in total. To apply one tag to many domains, use the <%= link_to "mass tagging tool", :domain_tags_mass_tagging %>.</p>

<%= form_tag spam_domains_path, method: :get, class: 'form-inline' do %>
  <%= text_field_tag :filter, params[:filter], class: 'form-control input-sm' %>
  <%= submit_tag 'Search', class: 'btn btn-primary btn-sm' %>
<% end %>

<table class="table table-striped">
  <thead>
    <tr>
      <th>Domain</th>
      <th>Occurrences</th>
      <th>Tags</th>
      <th colspan="3"></th>
    </tr>
  </thead>
  <tbody>
    <% @domains.each do |d| %>
      <tr>
        <td><code><%= d.domain %></code></td>
        <td>
          <%= @counts[:all][d.id] || 0 %>
          (<span class="text-success" title="TP" data-toggle="tooltip"><%= @counts[:tp][d.id] || 0 %></span>,
          <span class="text-danger" title="FP" data-toggle="tooltip"><%= @counts[:fp][d.id] || 0 %></span>,
          <span class="text-warning" title="NAA" data-toggle="tooltip"><%= @counts[:naa][d.id] || 0 %></span>)
        </td>
        <td>
          <% d.domain_tags.each do |tag| %>
            <%= render 'domain_tags/tag', tag: tag, domain: d %>
          <% end %>
        </td>
        <td><%= link_to 'Details', spam_domain_path(d) %></td>
        <% if user_signed_in? && current_user.has_role?(:core) %>
          <td><%= link_to 'Edit', edit_spam_domain_path(d) %></td>
        <% end %>
        <% if user_signed_in? && current_user.has_role?(:admin) %>
          <td><%= link_to 'Delete', destroy_spam_domain_path(d), method: :delete, class: 'text-danger',
                          data: { confirm: 'Are you sure?' } %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.22850270595309682, 'fraction_numerical': 0.005111244738424534, 'mean_word_length': 2.7936145952109466, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '3207657', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1180, 'n_words': 246}