<commit_before><script type="text/javascript">
  function confirmDestroyAll() {
    if (!confirm('Are you sure want destroy all Exception logs?')) {
      return false;
    }
  }
</script>
<div class="toolbar">
  <%= @logs.total_count %> exceptions

  <div class="pull-right">
    <%= form_tag(export_logs_path, method: 'post') do %>
      <button type="submit" class="btn">Export last 3 months</button>
    <% end %>
    <%= form_tag(all_logs_path, method: 'delete') do %>
      <button type="submit" class="btn btn-danger" onclick="return confirmDestroyAll()">Delete All</button>
    <% end %>
  </div>
</div>

<% if @logs.blank? %>
  <div class="no-record">No exceptions.</div>
<% else %>
  <%= paginate @logs %><commit_msg>Added "Back to app" button in index & fixed exception pluralization<commit_after><script type="text/javascript">
  function confirmDestroyAll() {
    if (!confirm('Are you sure want destroy all Exception logs?')) {
      return false;
    }
  }
</script>
<div class="toolbar">
  <a class="btn" href="/">Back to app </a>

  <div class="pull-right">
    <%= form_tag(export_logs_path, method: 'post') do %>
      <button type="submit" class="btn">Export last 3 months</button>
    <% end %>
    <%= form_tag(all_logs_path, method: 'delete') do %>
      <button type="submit" class="btn btn-danger" onclick="return confirmDestroyAll()">Delete All</button>
    <% end %>
  </div>
</div>

<% if @logs.blank? %>
  <div class="no-record">No exceptions.</div>
<% else %>
  <h1> <%= pluralize(@logs.total_count, 'exception') %></h1>
  <%= paginate @logs %>
{'fraction_non_alphanumeric': 0.18869123252858958, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 4.031948881789138, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '519092', 'n_tokens_mistral': 540, 'n_tokens_neox': 500, 'n_words': 127}