<commit_before><table id="users" class="datatable display table table-striped table-bordered" >
  <caption><h3><%= @page_title %></h3></caption>
  <thead>
    <tr>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Username</th>
      <th>Roles</th>
      <th>Last Sign-In</th>
      <th>Current Sign-In</th>
      <th>Sign-in Count</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @users.each do |user| %>
      <tr>
      	<td><%= user.firstname %></td>
      	<td><%= link_to user.lastname, user %></td>
      	<td><%= link_to user.username, user %></td>	
        <td><%= user.roles.pluck(:name).to_sentence %></td>
        <td><%= user.last_sign_in_at.to_s(:short) if user.last_sign_in_at %></td>
        <td><%= user.current_sign_in_at.to_s(:short) if user.current_sign_in_at %></td>
      	<td><%= user.sign_in_count if user.sign_in_count %></td>
        <td><%= link_to 'Edit', edit_user_path(user), :class => "btn btn-mini" if can? :update, user %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br /><commit_msg>fix display when a user's last name has not been set<commit_after><table id="users" class="datatable display table table-striped table-bordered" >
  <caption><h3><%= @page_title %></h3></caption>
  <thead>
    <tr>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Username</th>
      <th>Roles</th>
      <th>Last Sign-In</th>
      <th>Current Sign-In</th>
      <th>Sign-in Count</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% @users.each do |user| %>
      <tr>
      	<td><%= user.firstname %></td>
      	<td><%= link_to user.lastname, user if user.lastname %></td>
      	<td><%= link_to user.username, user %></td>	
        <td><%= user.roles.pluck(:name).to_sentence %></td>
        <td><%= user.last_sign_in_at.to_s(:short) if user.last_sign_in_at %></td>
        <td><%= user.current_sign_in_at.to_s(:short) if user.current_sign_in_at %></td>
      	<td><%= user.sign_in_count if user.sign_in_count %></td>
        <td><%= link_to 'Edit', edit_user_path(user), :class => "btn btn-mini" if can? :update, user %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br />
{'fraction_non_alphanumeric': 0.21488372093023256, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 2.7604895104895104, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 121, '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': '5083774', 'n_tokens_mistral': 878, 'n_tokens_neox': 841, 'n_words': 172}