<commit_before><div class="tagged-content">
  <table class="table queries-list table-bordered table-striped" data-module="filterable-table">
    <thead>
      <tr class="table-header">
        <th>Page</th>
        <th>Format</th>
        <th></th>
        <th></th>
      </tr>

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

    <tbody>
      <% tagged.each do |content_item| %>
        <tr>
          <td><%= link_to content_item["title"], website_url(content_item["base_path"]) %></td>
          <td><%= content_item["document_type"].humanize %></td>
          <td>
            <%=
              link_to(
                t('views.taxons.edit_tagging'),
                tagging_url(content_item["content_id"])
              )
            %>
          </td>
          <td>
            <%=
              link_to(
                t('views.taxons.view_similar'),
                similar_search_results_url(content_item['base_path']),
                target: 'blank'
              )
            %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div><commit_msg>Only show the edit tagging link if the user has access<commit_after><div class="tagged-content">
  <table class="table queries-list table-bordered table-striped" data-module="filterable-table">
    <thead>
      <tr class="table-header">
        <th>Page</th>
        <th>Format</th>
        <th></th>
        <th></th>
      </tr>

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

    <tbody>
      <% tagged.each do |content_item| %>
        <tr>
          <td><%= link_to content_item["title"], website_url(content_item["base_path"]) %></td>
          <td><%= content_item["document_type"].humanize %></td>
          <% if user_can_administer_taxonomy? %>
            <td>
              <%=
              link_to(
                t('views.taxons.edit_tagging'),
                tagging_url(content_item["content_id"])
              )
              %>
            </td>
          <% end %>
          <td>
            <%=
              link_to(
                t('views.taxons.view_similar'),
                similar_search_results_url(content_item['base_path']),
                target: 'blank'
              )
            %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
{'fraction_non_alphanumeric': 0.16063738156761412, 'fraction_numerical': 0.0, 'mean_word_length': 1.5471491228070176, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '5312600', 'n_tokens_mistral': 749, 'n_tokens_neox': 699, 'n_words': 112}