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

[% BLOCK options %]
    [% FOR option IN option_list %]
        <option value="[% option %]"[% ' selected' IF selected == option %]>[% option %]</opytion>
    [% END %]
[% END %]

<form method="post" action="[% c.uri_for('stats') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8" id="filter-form">
    <label for="form_category">Transport Type: </label>
    <select name="category" id="form_category">
        <option value="">Select</option>
        [% PROCESS options, option_list = [ 'Bus', 'Metro', 'Train' ], selected = category %]
    </select>

    <label for="form_subcategory">Incident Type: </label>
    <select name="subcategory" id="form_subcategory">
        <option value="">Select</option>
        [% PROCESS options, option_list = ['Smoking', 'Drugs', 'Anti-social Behaviour', 'Loud Music', 'Damage', 'Feet on Seats', 'Other'], selected = subcategory %]
    </select>

    <label for="form_service">Device: </label>
    <select name="service" id="form_service">
        <option value="">Select</option>
        [% PROCESS options, option_list = [ 'Android', 'iPhone' ], selected = service %]
    </select>

    <input type="submit" name="getcounts"  size="30" id="getcounts" value="Look Up" />
</form>

[% IF pager.total_entries == 0 %]
<p align="center">
No Results found
</p>
[% ELSE %]
<table class="admin-report">
    <thead>
        <tr>
            <th>Device</th>
            <th>Transport Category</th>
            <th>Incident Category</th>
            <th>Area</th>
            <th>Submitted</th>
        </tr>
    </thead>
    <tbody>
        [%- WHILE (report = reports.next) %]
        <tr>
            <td>[% report.service %]</td>
            <td>[% report.category %]</td>
            <td class="nowrap">[% report.subcategory %]</td>
            <td class="nowrap">[% council_details.${report.council}.name %]</td>
            <td class="nowrap">[% PROCESS format_time time=report.confirmed %]</td>
        </tr>
        [%- END %]
    </tbody>
</table>
[% END %]

[% INCLUDE 'pagination.html', param = 'p' %]

[% INCLUDE 'admin/footer.html' %]<commit_msg>Do not have a blank device column<commit_after>[% INCLUDE 'admin/header.html' title=loc('Reports') %]
[% PROCESS 'admin/report_blocks.html' %]

[% BLOCK options %]
    [% FOR option IN option_list %]
        <option value="[% option %]"[% ' selected' IF selected == option %]>[% option %]</opytion>
    [% END %]
[% END %]

<form method="post" action="[% c.uri_for('stats') %]" enctype="application/x-www-form-urlencoded" accept-charset="utf-8" id="filter-form">
    <label for="form_category">Transport Type: </label>
    <select name="category" id="form_category">
        <option value="">Select</option>
        [% PROCESS options, option_list = [ 'Bus', 'Metro', 'Train' ], selected = category %]
    </select>

    <label for="form_subcategory">Incident Type: </label>
    <select name="subcategory" id="form_subcategory">
        <option value="">Select</option>
        [% PROCESS options, option_list = ['Smoking', 'Drugs', 'Anti-social Behaviour', 'Loud Music', 'Damage', 'Feet on Seats', 'Other'], selected = subcategory %]
    </select>

    <label for="form_service">Device: </label>
    <select name="service" id="form_service">
        <option value="">Select</option>
        [% PROCESS options, option_list = [ 'Android', 'iPhone' ], selected = service %]
    </select>

    <input type="submit" name="getcounts"  size="30" id="getcounts" value="Look Up" />
</form>

[% IF pager.total_entries == 0 %]
<p align="center">
No Results found
</p>
[% ELSE %]
<table class="admin-report">
    <thead>
        <tr>
            <th>Device</th>
            <th>Transport Category</th>
            <th>Incident Category</th>
            <th>Area</th>
            <th>Submitted</th>
        </tr>
    </thead>
    <tbody>
        [%- WHILE (report = reports.next) %]
        <tr>
            <td>[% report.service || 'Other' %]</td>
            <td>[% report.category %]</td>
            <td class="nowrap">[% report.subcategory %]</td>
            <td class="nowrap">[% council_details.${report.council}.name %]</td>
            <td class="nowrap">[% PROCESS format_time time=report.confirmed %]</td>
        </tr>
        [%- END %]
    </tbody>
</table>
[% END %]

[% INCLUDE 'pagination.html', param = 'p' %]

[% INCLUDE 'admin/footer.html' %]
{'fraction_non_alphanumeric': 0.19807735300693047, 'fraction_numerical': 0.001788508830762352, 'mean_word_length': 2.9698314108251997, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1449460', 'n_tokens_mistral': 1554, 'n_tokens_neox': 1483, 'n_words': 321}