<commit_before><h1>Review history for <%= @queue.name.titleize %> </h1>

<% if current_user&.has_role?(:developer) %>
  <p>
    <%= link_to 'Recheck items', recheck_queue_items_path(name: @queue.name), class: 'text-danger', method: :post %>
  </p>
<% end %>

<ul class="nav nav-tabs">
  <li class="<%= 'active' if @all %>"><%= link_to 'All', all: 1 %></li>
  <li class="<%= 'active' unless @all %>"><%= link_to 'Mine', all: 0 %></li>
</ul>

<% if @all %>
  <%= form_tag review_history_path(name: @queue.name), method: :get, class: 'form-inline top-filters' do %>
    <%= hidden_field_tag :all, value: '1' %>
    <%= label_tag :user %>
    <%= select_tag :user, options_from_collection_for_select(User.all, 'id', 'username', selected: params[:user]),
                   include_blank: true, class: 'form-control input-sm' %>
    <%= label_tag :response %>
    <%= select_tag :response, options_for_select(@queue.responses + [['Skip', 'skip']], selected: params[:response]),
                   include_blank: true, class: 'form-control input-sm' %>
    <%= submit_tag 'Filter', class: 'btn btn-primary btn-sm' %>
  <% end %>
<% end %>


<table class="table">
  <tr>
    <th class="text-muted">Item ID</th>
    <th class="text-muted">Review ID</th><commit_msg>I think we might be nearly there<commit_after><h1>Review history for <%= @queue.name.titleize %> </h1>

<% if current_user&.has_role?(:developer) %>
  <p>
    <%= link_to 'Recheck items', recheck_queue_items_path(name: @queue.name), class: 'text-danger', method: :post %>
  </p>
<% end %>

<ul class="nav nav-tabs">
  <li class="<%= 'active' if @all %>"><%= link_to 'All', all: 1 %></li>
  <li class="<%= 'active' unless @all %>"><%= link_to 'Mine', all: 0 %></li>
</ul>

<% if @all %>
  <%= form_tag review_history_path(name: @queue.name), method: :get, class: 'form-inline top-filters' do %>
    <%= hidden_field_tag :all, '1' %>
    <%= label_tag :user %>
    <%= select_tag :user, options_from_collection_for_select(User.all, 'id', 'username', selected: params[:user]),
                   include_blank: true, class: 'form-control input-sm' %>
    <%= label_tag :response %>
    <%= select_tag :response, options_for_select(@queue.responses + [['Skip', 'skip']], selected: params[:response]),
                   include_blank: true, class: 'form-control input-sm' %>
    <%= submit_tag 'Filter', class: 'btn btn-primary btn-sm' %>
  <% end %>
<% end %>


<table class="table">
  <tr>
    <th class="text-muted">Item ID</th>
    <th class="text-muted">Review ID</th>
{'fraction_non_alphanumeric': 0.2133808392715756, 'fraction_numerical': 0.00395882818685669, 'mean_word_length': 3.954901960784314, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '809810', 'n_tokens_mistral': 970, 'n_tokens_neox': 889, 'n_words': 210}