<commit_before>[% INCLUDE 'admin/header.html' title=loc('Flagged reports and users') %]
[% PROCESS 'admin/report_blocks.html' %]

<p class="fms-admin-info">
  [% loc("You can flag any report or user by editing them, and they will be listed on this page.
          For example, this can useful if you want to keep an eye on a user who has posted inappropriate
          reports in the past.") %]
  <br>
  [% loc("Reports made by flagged users are never sent through to bodies, but are automatically hidden instead.") %]
</p>

<h2>[% loc( 'Problems' ) %]</h2>
[% IF problems.size > 0 %]
<table cellspacing="0" cellpadding="2" border="1">
    <tr>
        <th>[% loc('ID') %]</th>
        <th>[% loc('Title') %]</th>
        <th>[% loc('Name') %]</th>
        <th>[% loc('Body') %]</th>
        <th>[% loc('State') %]</th>
        <th>*</th>
    </tr>
    [% INCLUDE 'admin/problem_row.html' %]
</table>
[% ELSE %]
<p>
[% loc('No flagged problems found') %]
</p>
[% END %]

<h2>[% loc( 'Users' ) %]</h2>
[% IF users%]
<table cellspacing="0" cellpadding="2" border="1">
    <tr>
        <th>[% loc('Name') %]</th>
        <th>[% loc('Email') %]</th>
    </tr>
[% WHILE ( user = users.next ) -%]
    <tr>
        <td>[% user.name | html %]</td>
        <td>[% user.email | html %]</td><commit_msg>don't test on resultset (it's always true)<commit_after>[% INCLUDE 'admin/header.html' title=loc('Flagged reports and users') %]
[% PROCESS 'admin/report_blocks.html' %]

<p class="fms-admin-info">
  [% loc("You can flag any report or user by editing them, and they will be listed on this page.
          For example, this can useful if you want to keep an eye on a user who has posted inappropriate
          reports in the past.") %]
  <br>
  [% loc("Reports made by flagged users are never sent through to bodies, but are automatically hidden instead.") %]
</p>

<h2>[% loc( 'Problems' ) %]</h2>
[% IF problems.size > 0 %]
<table cellspacing="0" cellpadding="2" border="1">
    <tr>
        <th>[% loc('ID') %]</th>
        <th>[% loc('Title') %]</th>
        <th>[% loc('Name') %]</th>
        <th>[% loc('Body') %]</th>
        <th>[% loc('State') %]</th>
        <th>*</th>
    </tr>
    [% INCLUDE 'admin/problem_row.html' %]
</table>
[% ELSE %]
<p>
[% loc('No flagged problems found') %]
</p>
[% END %]

<h2>[% loc( 'Users' ) %]</h2>
[% IF users.count > 0 %]
<table cellspacing="0" cellpadding="2" border="1">
    <tr>
        <th>[% loc('Name') %]</th>
        <th>[% loc('Email') %]</th>
    </tr>
[% WHILE ( user = users.next ) -%]
    <tr>
        <td>[% user.name | html %]</td>
        <td>[% user.email | html %]</td>
{'fraction_non_alphanumeric': 0.22179878048780488, 'fraction_numerical': 0.008765243902439025, 'mean_word_length': 2.877400295420975, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 80, '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': '4428012', 'n_tokens_mistral': 1030, 'n_tokens_neox': 981, 'n_words': 286}