<commit_before><h1>Welcome, Admin!</h1>

<table>
  <thead>
    <tr>
      <th>User Email</th>
      <th>Is Admin?</th>
      <th>Is Instructor?</th>
      <th>User ID</th>
      <th>Toggle Admin</th>
      <th>Toggle Insturctor</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.email %></td>
        <td><%= user.has_role? :admin %></td>
        <td><%= user.has_role? :instructor %></td>
        <td><%= user.uid %></td>
        <td><%= button_to 'toggle_admin', toggle_admin_admin_panel_path(id), :class => "button" %></td>
        <td><%= button_to 'toggle_instructor', toggle_instructor_admin_panel_path(id), :class => "button" %></td> 
      </tr>
    <% end %>
  </tbody>
</table>
<commit_msg>admin toggles not working, pulling nick's work to fix<commit_after><h1>Welcome, Admin!</h1>

<table>
  <thead>
    <tr>
      <th>User Email</th>
      <th>Is Admin?</th>
      <th>Is Instructor?</th>
      <th>User ID</th>
      <th>Toggle Admin</th>
      <th>Toggle Insturctor</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.email %></td>
        <td><%= user.has_role? :admin %></td>
        <td><%= user.has_role? :instructor %></td>
        <td><%= user.uid %></td>
        <td><%= button_to 'toggle_admin', :class => "button" %></td>
        <td><%= button_to 'toggle_instructor', :class => "button" %></td>
      </tr>
    <% end %>
  </tbody>
</table>

{'fraction_non_alphanumeric': 0.23026315789473684, 'fraction_numerical': 0.003947368421052632, 'mean_word_length': 2.456818181818182, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 99, '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': '1348875', 'n_tokens_mistral': 615, 'n_tokens_neox': 583, 'n_words': 122}