<commit_before><% # locals: templates, current_org %>

<div class="table-responsive">
  <table class="table table-hover table-bordered tablesorter">
    <thead>
      <% if scope.length > TABLE_FILTER_MIN_ROWS %>
        <tr>
          <th colspan="5" class="sorter-false">
            <%= render(partial: "shared/table_filter", locals: { placeholder: _('Search')}) %>
          </th>
        </tr>
      <% end %>
      <% if scopes.present? %>
        <tr><th colspan="5" class="sorter-false table-scope"><ul class="nav navbar-nav">
          <% scopes.keys.each do |k| %>
            <% unless k == :dmptemplate_ids %>
              <li><%= link_to "#{k.capitalize} (#{scopes[k]})", "#{funders_org_admin_templates_path(1)}?scope=#{k}", class: 'template-scope', 'data-remote': true %></li>
            <% end %>
          <% end %>
        </ul></th></tr>
      <% end %>
      <tr>
        <th><%= _('Template Name') %></th>
        <th><%= _('Funder') %></th>
        <th><%= _('Status') %></th>
        <th><%= _('Edited Date') %></th>
        <th class="sorter-false"></th>
      </tr>
    </thead>
    <tbody>
    <% scope.each do |template| %>
      <% customization = customizations[template.dmptemplate_id] %>
      <tr>
        <td>
          <%= "#{template.is_default? ? '* ' : ''}#{template.title}" %>
        </td>
          <td><commit_msg>updated filter labels on customizable templates table<commit_after><% # locals: templates, current_org %>

<div class="table-responsive">
  <table class="table table-hover table-bordered tablesorter">
    <thead>
      <% if scope.length > TABLE_FILTER_MIN_ROWS %>
        <tr>
          <th colspan="5" class="sorter-false">
            <%= render(partial: "shared/table_filter", locals: { placeholder: _('Search')}) %>
          </th>
        </tr>
      <% end %>
      <% if scopes.present? %>
        <tr><th colspan="5" class="sorter-false table-scope"><ul class="nav navbar-nav">
          <% scopes.keys.each do |k| %>
            <% unless k == :dmptemplate_ids %>
              <% label = (['published', 'unpublished'].include?(k.to_s) ? _('Customization %{publication_status}') % { publication_status: k } : k.capitalize) %>
              <li><%= link_to "#{label} (#{scopes[k]})", "#{funders_org_admin_templates_path(1)}?scope=#{k}", class: 'template-scope', 'data-remote': true %></li>
            <% end %>
          <% end %>
        </ul></th></tr>
      <% end %>
      <tr>
        <th><%= _('Template Name') %></th>
        <th><%= _('Funder') %></th>
        <th><%= _('Status') %></th>
        <th><%= _('Edited Date') %></th>
        <th class="sorter-false"></th>
      </tr>
    </thead>
    <tbody>
    <% scope.each do |template| %>
      <% customization = customizations[template.dmptemplate_id] %>
      <tr>
        <td>
          <%= "#{template.is_default? ? '* ' : ''}#{template.title}" %>
        </td>
          <td>
{'fraction_non_alphanumeric': 0.217406260749914, 'fraction_numerical': 0.0020639834881320948, 'mean_word_length': 2.3234285714285714, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 108, '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': '2494971', 'n_tokens_mistral': 1023, 'n_tokens_neox': 952, 'n_words': 185}