<commit_before><div class="well">
  <table class="table table-responsive table-hover sortable">
    <thead>
    <tr>
      <th>User Email</th>
      <th>Last Login</th>
      <th>Associated Organisation</th>
      <th>Pending Organisation</th>
      <th> </th>
    </tr>
    </thead>
    <% @users.each do |user| %>
        <tr id="<%= user.id %>" class="actions-right">
          <td><%= user.email %></td>
          <td><%= time_ago_in_words_with_nils(user.last_sign_in_at) %> </td>
          <td><%= user.organisation.name if user.organisation %></td>
          <td>
            <% if user.pending_organisation %>
                <%= user.pending_organisation.name %>
            <% end %>
          </td>
          <td>
            <%= link_to(user_reports_path(id: user.id), :method => :delete, :class => "btn btn-small btn-danger pull-right") do %>
                <i class="icon-trash icon-large"></i> Delete</a>
            <% end %>
            <% if user.pending_organisation %>
                <%= link_to(user_report_path(id: user.id), :method => :put, :class => "btn btn-small btn-success pull-right") do %>
                    <i class="icon-thumbs-up-alt icon-large"></i> Approve</a>
                <% end %>
            <% end %>
          </td>
        </tr><commit_msg>Revise listing page for deleted users<commit_after><div class="well">
  <table class="table table-responsive table-hover sortable">
    <thead>
    <tr>
      <th>User Email</th>
      <th>Deleted </th>
      <th>Associated Organisation</th>
      <th>Pending Organisation</th>
      <th> </th>
    </tr>
    </thead>
    <% @users.each do |user| %>
        <tr id="<%= user.id %>" class="actions-right">
          <td><%= user.email %></td>
          <td><%= time_ago_in_words_with_nils(user.deleted_at) %> </td>
          <td><%= user.organisation.name if user.organisation %></td>
          <td>
            <% if user.pending_organisation %>
                <%= user.pending_organisation.name %>
            <% end %>
          </td>
          <td>
            <%= link_to(nil, :method => :get, :class => "btn btn-small btn-danger pull-right") do %>
                <i class="fa fa-undo"></i> Restore User</a>
            <% end %>
          </td>
        </tr>
{'fraction_non_alphanumeric': 0.18197958277851753, 'fraction_numerical': 0.0, 'mean_word_length': 1.8934531450577663, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 98, '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': '4426292', 'n_tokens_mistral': 777, 'n_tokens_neox': 718, 'n_words': 148}