<commit_before><h3>System Activity Logs</h3>

<%= render "log_filters" %>

<table id="logs" class="datatable table table-striped table-bordered" >
  <thead>
    <tr>
      <th>User</th>
      <th>Category</th>
      <th>Message</th>
      <th>Date</th>
    </tr>
  </thead>

  <tbody>
    <% @logs.each do |log| %>
      <tr>
        <td><%= log.user.present? ? log.user.fullname : "Unknown User" %></td>
        <td><%= log.category %></td>
        <td><%= log.message %></td>
        <td><%= log.created_at %></td>
      </tr>
    <% end %>
  </tbody>
</table>
<commit_msg>Move to more modern try syntax<commit_after><h3>System Activity Logs</h3>

<%= render "log_filters" %>

<table id="logs" class="datatable table table-striped table-bordered" >
  <thead>
    <tr>
      <th>User</th>
      <th>Category</th>
      <th>Message</th>
      <th>Date</th>
    </tr>
  </thead>

  <tbody>
    <% @logs.each do |log| %>
      <tr>
        <td><%= log.user&.fullname || "Unknown User" %></td>
        <td><%= log.category %></td>
        <td><%= log.message %></td>
        <td><%= log.created_at %></td>
      </tr>
    <% end %>
  </tbody>
</table>

{'fraction_non_alphanumeric': 0.2280243690165361, 'fraction_numerical': 0.0034812880765883376, 'mean_word_length': 2.3430232558139537, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '4434326', 'n_tokens_mistral': 466, 'n_tokens_neox': 439, 'n_words': 90}