<commit_before><% if @search && (params[:query] || params[:filter]) %>
<div class="results cf">
  <p>Your search
  <% if params[:query].present? %>
    for <strong><%= params[:query] %></strong>
  <% end %>
  returned <%= pluralize(@search.count, 'result') %>. You can filter those results below.</p>
</div>
<% end %>


<% if @filters.present? %>
<div class="filters">
  <dl class="cf">
    <dt>Filter applied:</dt>
    <% @filters.each do |field_name, values| %>
      <dd>
        <% values.each do |value| %>
          <% label = field_name == 'priority' ? t("priority_#{value}") : value %>
          <div class="btn">
            <%= link_to "×", search_link_with_removed_filter(params, @filters, field_name => value), class: 'close' %>
            <p><strong><%= t("field.long.#{field_name}") %>:</strong> <%= label %></p>
          </div>
        <% end %>
      </dd>
    <% end %>
  </dl>
</div>
<% end %>

<div id="needs-content" class="needs-content">
  <% if @search.nothing_found? %>
  <p>Nothing found</p>
  <% else %>
  <table id="needs-table">
    <thead>
      <tr>
        <%= sortable_heading('id') %>
        <%= sortable_heading('title') %>
        <%= sortable_heading('kind') %>
        <%= sortable_heading('priority') %>
        <th><%= t('field.short.tags') %></th>
        <%= sortable_heading('updated_at') %>
        <th><%= t('field.short.creator') %></th>
        <% if current_user.is_admin? %>
        <th></th>
        <th></th>
        <% end %>
      </tr>
    </thead>
    <tbody>
    <% @search.each_result do |need| %>
      <tr>
        <td>#<%= need.id %></td>
        <th scope="row"><%= link_to need.title, need_path(need.id) %> <% if !params[:in_state] %><small class="status-label <%= need.status %>"><%= status_name need.status %></small><% end %></th>
        <td class="need"><%= need.format_assigned? ? need.kind : "-" %></td>
        <td><%= need.prioritised? ? need.named_priority : '-' %></td>
        <td><%= need.tag_list %></td>
        <td><%= false && time_ago_in_words(need.updated_at, true) %></td>
        <td><%= need.creator %></td>
        <% if current_user.is_admin? %>
        <td><%= link_to 'Edit', edit_need_path(need.id) %></td>
        <td><%= link_to 'Delete', need_path(need.id), confirm: 'Are you sure?', method: :delete %></td><commit_msg>attempt to add in format and priority<commit_after><% if @search && (params[:query] || params[:filter]) %>
<div class="results cf">
  <p>Your search
  <% if params[:query].present? %>
    for <strong><%= params[:query] %></strong>
  <% end %>
  returned <%= pluralize(@search.count, 'result') %>. You can filter those results below.</p>
</div>
<% end %>


<% if @filters.present? %>
<div class="filters">
  <dl class="cf">
    <dt>Filter applied:</dt>
    <% @filters.each do |field_name, values| %>
      <dd>
        <% values.each do |value| %>
          <% label = field_name == 'priority' ? t("priority_#{value}") : value %>
          <div class="btn">
            <%= link_to "×", search_link_with_removed_filter(params, @filters, field_name => value), class: 'close' %>
            <p><strong><%= t("field.long.#{field_name}") %>:</strong> <%= label %></p>
          </div>
        <% end %>
      </dd>
    <% end %>
  </dl>
</div>
<% end %>

<div id="needs-content" class="needs-content">
  <% if @search.nothing_found? %>
  <p>Nothing found</p>
  <% else %>
  <table id="needs-table">
    <thead>
      <tr>
        <%= sortable_heading('id') %>
        <%= sortable_heading('title') %>
        <%= sortable_heading('kind') %>
        <%= sortable_heading('priority') %>
        <th><%= t('field.short.tags') %></th>
        <%= sortable_heading('updated_at') %>
        <th><%= t('field.short.creator') %></th>
        <% if current_user.is_admin? %>
        <th></th>
        <th></th>
        <% end %>
      </tr>
    </thead>
    <tbody>
    <% @search.each_result do |need| %>
      <tr>
        <td>#<%= need.id %></td>
        <th scope="row"><%= link_to need.title, need_path(need.id) %> <% if !params[:in_state] %><small class="status-label <%= need.status %>"><%= status_name need.status %></small><% end %></th>
        <td class="need"><%= need.kind %></td>
        <td><%= need.named_priority %></td>
        <td><%= need.tag_list %></td>
        <td><%= false && time_ago_in_words(need.updated_at, true) %></td>
        <td><%= need.creator %></td>
        <% if current_user.is_admin? %>
        <td><%= link_to 'Edit', edit_need_path(need.id) %></td>
        <td><%= link_to 'Delete', need_path(need.id), confirm: 'Are you sure?', method: :delete %></td>
{'fraction_non_alphanumeric': 0.23726599912929908, 'fraction_numerical': 0.0, 'mean_word_length': 2.757154538021259, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 205, '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': '1532024', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1582, 'n_words': 327}