<commit_before><% if @people.empty? %>

    <p>Sorry, but no one has registered!
        Send people <%= link_to "here", :controller => "account", :action => "new" %>!</p>

<% else %>

    <table id="people-table" border="1">

    <thead>

        <tr>
            <th>id</th>
            <th>first_name</th>
            <th>last_name</th>
            <th>email_address</th>
            <th>password</th>
            <th>administrator?</th>
            <th>Most recent action</th>
            <th>See actions</th>
        </tr>

    </thead>

    <tbody>

        <% @people.each do |person| %>
        <tr>
            <td><%= person.id %></td>
            <td><%= person.first_name %></td>
            <td><%= person.last_name %></td>
            <td><%= mail_to person.email_address %></td>
            <td><%= person.password %></td>
            <td><%= "yes" if person.administrator? %></td>
            <td><%= distance_of_time_in_words(Time.now, person.latest_action_time) -%> ago</td>
            <td><%= link_to "See user's actions", :controller => "admin", :action => "view_person_actions", :id => person.id %></td>
        </tr>
        <% end %>

    </tbody>
    </table><commit_msg>And if they do not have any logged actions, please do not blow up...<commit_after><% if @people.empty? %>

    <p>Sorry, but no one has registered!
        Send people <%= link_to "here", :controller => "account", :action => "new" %>!</p>

<% else %>

    <table id="people-table" border="1">

    <thead>

        <tr>
            <th>id</th>
            <th>first_name</th>
            <th>last_name</th>
            <th>email_address</th>
            <th>password</th>
            <th>administrator?</th>
            <th>Most recent action</th>
            <th>See actions</th>
        </tr>

    </thead>

    <tbody>

        <% @people.each do |person| %>
        <tr>
            <td><%= person.id %></td>
            <td><%= person.first_name %></td>
            <td><%= person.last_name %></td>
            <td><%= mail_to person.email_address %></td>
            <td><%= person.password %></td>
            <td><%= "yes" if person.administrator? %></td>
            <td>
                <% if person.latest_action_time %>
                    <%= distance_of_time_in_words(Time.now, person.latest_action_time) -%> ago</td>
                <% else %>
                    -
                <% end %>

            <td><%= link_to "See user's actions", :controller => "admin", :action => "view_person_actions", :id => person.id %></td>
        </tr>
        <% end %>

    </tbody>
    </table>
{'fraction_non_alphanumeric': 0.1926782273603083, 'fraction_numerical': 0.0007707129094412332, 'mean_word_length': 1.726890756302521, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 130, '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': '2540263', 'n_tokens_mistral': 893, 'n_tokens_neox': 822, 'n_words': 182}