<commit_before><%= display_header title: "Taxonomy Health Warnings",
                   breadcrumbs: ["Taxonomy Health Warnings"] %>

<div class="tagged-content">
  <table class="table queries-list table-bordered table-striped"
         data-module="filterable-table">
    <thead>
    <tr class="table-header">
      <th style='width: 100px;'>Date</th>
      <th>Taxon</th>
      <th>Warning message</th>
    </tr>

    <%= render partial: 'shared/table_filter' %>
    </thead>

    <tbody>
    <% @taxonomy_health_warnings.each do |taxonomy_health_warning| %>
      <tr>
        <td><%= time_ago_in_words(taxonomy_health_warning.created_at) %></td>
        <td><%= link_to taxonomy_health_warning.internal_name,
                    taxon_path(taxonomy_health_warning.content_id) %>
          <br>
          <span class="text-muted"><%= taxonomy_health_warning.path %></span>
        </td>
        <td><%= taxonomy_health_warning.message %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
</div>
<commit_msg>Sort the health warnings in the table<commit_after><%= display_header title: "Taxonomy Health Warnings",
                   breadcrumbs: ["Taxonomy Health Warnings"] %>

<div class="tagged-content">
  <table class="table queries-list table-bordered table-striped"
         data-module="filterable-table">
    <thead>
    <tr class="table-header">
      <th style='width: 100px;'>Date</th>
      <th>Taxon</th>
      <th>Warning message</th>
    </tr>

    <%= render partial: 'shared/table_filter' %>
    </thead>

    <tbody>
    <% @taxonomy_health_warnings.order(value: :desc).each do |taxonomy_health_warning| %>
      <tr>
        <td><%= time_ago_in_words(taxonomy_health_warning.created_at) %></td>
        <td><%= link_to taxonomy_health_warning.internal_name,
                    taxon_path(taxonomy_health_warning.content_id) %>
          <br>
          <span class="text-muted"><%= taxonomy_health_warning.path %></span>
        </td>
        <td><%= taxonomy_health_warning.message %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
</div>

{'fraction_non_alphanumeric': 0.1595949855351977, 'fraction_numerical': 0.0028929604628736743, 'mean_word_length': 2.8213627992633517, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '1783455', 'n_tokens_mistral': 722, 'n_tokens_neox': 673, 'n_words': 123}