<commit_before><p id="notice"><%= notice %></p>

<h1>Listing Users</h1>

<table>
  <thead>
    <tr>
      <th></th>
      <th>#</th>
      <th>First name</th>
      <th>Last name</th>
      <th>Email</th>
      <th>Super User</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= image_tag(user.image, class:'profile tiny') %></td>
        <td><%= user.id %></td>
        <td><%= user.first_name %></td>
        <td><%= user.last_name %></td>
        <td><%= user.email %></td>
        <td><%= user.super_user %></td>
        <td><%= link_to 'Show', manage_user_path(user) %></td>
        <td><%= link_to 'Edit', edit_manage_user_path(user) %></td>
        <td><%= link_to 'Destroy', manage_user_path(user), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New User', new_manage_user_path %><commit_msg>UI for users with activity level<commit_after><p id="notice"><%= notice %></p>

<h1>Listing Users</h1>

<table>
  <thead>
    <tr>
      <th></th>
      <th>#</th>
      <th>First name</th>
      <th>Last name</th>
      <th>Email</th>
      <th>Actvity Level</th>
      <th>Super User</th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= image_tag(user.image, class:'profile tiny') %></td>
        <td><%= user.id %></td>
        <td><%= user.first_name %></td>
        <td><%= user.last_name %></td>
        <td><%= user.email %></td>
        <td><%= (((user.votes.count.to_f / Vote.all.count.to_f) * 10).to_f).round(2) %></td>
        <td><%= user.super_user %></td>

      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.2510239906377999, 'fraction_numerical': 0.004681100058513751, 'mean_word_length': 2.33984375, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, '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': '4653024', 'n_tokens_mistral': 719, 'n_tokens_neox': 677, 'n_words': 139}