<commit_before><% @subtabs = resque.queues unless partial? %>

<% if queue = params[:id] %>

  <h1><%= size = resque.size(queue) %> Pending Jobs in '<%= queue.upcase %>'</h1>
  <h2>Showing <%= start = params[:start].to_i %> to <%= start + 20 %></h2>
  <table>
    <tr>
      <th>Class</th>
      <th>Args</th>
    </tr>
    <% for job in resque.peek(queue, start, 20) %> 
    <tr>
      <td><%= job['class'] %></td>
      <td><%=h job['args'].inspect %></td>      
    </tr>
    <% end %>
    <%= partial :next_more, :start => start, :size => size %>  
  </table>
<% else %>

  <h1>Queues</h1>
  <table>
    <tr>
      <th>Name</th>
      <th>Pending</th>
    </tr>
    <% for queue in resque.queues %> 
    <tr>
      <td><a class="queue" href="/queues/<%= queue %>"><%= queue %></a></td>
      <td><%= resque.size queue %></td>      
    </tr>
    <% end %>
    <tr>
      <td><a class="queue" href="/failed">failed</a></td>
      <td><%= Resque::Job.failed_size %></td>      
    </tr>
  </table>
  
<% end %><commit_msg>sort queues<commit_after><% @subtabs = resque.queues unless partial? %>

<% if queue = params[:id] %>

  <h1><%= size = resque.size(queue) %> Pending Jobs in '<%= queue.upcase %>'</h1>
  <h2>Showing <%= start = params[:start].to_i %> to <%= start + 20 %></h2>
  <table>
    <tr>
      <th>Class</th>
      <th>Args</th>
    </tr>
    <% for job in resque.peek(queue, start, 20) %> 
    <tr>
      <td><%= job['class'] %></td>
      <td><%=h job['args'].inspect %></td>      
    </tr>
    <% end %>
    <%= partial :next_more, :start => start, :size => size %>  
  </table>
<% else %>

  <h1>Queues</h1>
  <table>
    <tr>
      <th>Name</th>
      <th>Pending</th>
    </tr>
    <% for queue in resque.queues.sort_by { |q| q.to_s } %> 
    <tr>
      <td><a class="queue" href="/queues/<%= queue %>"><%= queue %></a></td>
      <td><%= resque.size queue %></td>      
    </tr>
    <% end %>
    <tr>
      <td><a class="queue" href="/failed">failed</a></td>
      <td><%= Resque::Job.failed_size %></td>      
    </tr>
  </table>
  
<% end %>
{'fraction_non_alphanumeric': 0.2580956984050266, 'fraction_numerical': 0.009666505558240696, 'mean_word_length': 2.306709265175719, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 133, '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': '953940', 'n_tokens_mistral': 898, 'n_tokens_neox': 818, 'n_words': 171}