<commit_before><!--
This file is part of Lod4stat.

Copyright (c) 2014 Provincia autonoma di Trento


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

{% extends "explorer/base.html" %}
{% load i18n %}

{% block l4s_container %}
<div class="col-sm-12">
    <ul class="breadcrumb">
        <li>
            {% trans "Usage report" %}
        </li>
    </ul>
</div>
<table data-intro="{% trans " Report summary" %}"
       data-position="right"
       style="width:auto"
       class="table">
    <tr>
        <th colspan="2">{% trans "Report summary" %}</th>
    </tr>
    <tr>
        <td>{% trans "Year" %}</td>
        <td><i>
            {{ selected_year }}
        </i>
        </td>
    </tr>
    <tr>
        <td>{% trans "Month" %}</td>
        <td><i>
            {{ selected_month_name }}
        </i>
        </td>
    </tr>
</table>

<h4>{% trans "Number of saved queries for user types" %}</h4>
<br>
<table class="table table-striped">
    <thead>
    <tr>
        <th>{% trans "User type" %}</th>
        <th>{% trans "Saved queries" %}</th>
    </tr>
    </thead>
    {% for query in queries %}
    <tr>
        <td>{{query.0}}</td>
        <td>{{query.1}}</td>
    </tr>
    {% endfor %}
</table>
<br><br>
<h4>{% trans "Number of manual requests for user types" %}</h4>
<br>
<table class="table table-striped">
    <thead>
    <tr>
        <th>{% trans "User type" %}</th>
        <th>{% trans "Saved queries" %}</th>
    </tr>
    </thead>
    {% for manual_request in manual_requests %}
    <tr>
        <td>{{manual_request.0}}</td>
        <td>{{manual_request.1}}</td>
    </tr>
    {% endfor %}
</table>
<br><br>
<h4>{% trans "Select date" %}</h4>
<br>
<form method="GET" action=".">
    <table>
        <tr>
            <td>
                {% trans "Year" %}
            </td>
            <td>

                <div class="form-group">
                    <div >
                        <select name='year'
                                class="form-control">
                            {% for year in years %}
                            <option value="{{ year }}"> {{ year }}
                            </option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                {% trans "Month" %}
            </td>
            <td>
                <div>
                    <select name='month'
                            class="form-control">
                    {% for month in months %}
                            <option value="{{ month.0 }}"> {{ month.1 }}
                            </option>
                    {% endfor %}
                    </select>
                </div>
             </td>
        </tr>
        <tr>
            <td>
                <button class="btn btn-default"
                        type="submit"> {% trans "Submit" %}
                </button>
            </td>
        </tr>
    </table>
</form>
{% endblock %}<commit_msg>BBeautifyy usage report<commit_after><!--
This file is part of Lod4stat.

Copyright (c) 2014 Provincia autonoma di Trento


This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

{% extends "explorer/base.html" %}
{% load i18n %}

{% block l4s_container %}
<div class="col-sm-12">
    <ul class="breadcrumb">
        <li>
            {% trans "Usage report" %}
        </li>
    </ul>
</div>
<h4>{% trans "Select date" %}</h4>
<br>
<form method="GET" action=".">
    <table class="table table-striped">
        <tr>
            <td>
                {% trans "Year" %}
            </td>
            <td>
                <div class="form-group">
                    <div>
                        <select name='year'
                                class="form-control">
                            {% for year in years %}
                            <option value="{{ year }}"
                             {% if year == selected_year %}
                                    selected
                             {% endif %}> {{ year }}
                            </option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                {% trans "Month" %}
            </td>
            <td>
                <div>
                    <select name='month'
                            class="form-control">
                        {% for month in months %}
                        <option value="{{ month.0 }}"
                        {% if month.0 == selected_month %}
                                    selected
                        {% endif %}>{{ month.1 }}
                        </option>
                        {% endfor %}
                    </select>
                </div>
            </td>
        </tr>
    </table>
    <p align="center">
        <button class="btn btn-default"
                type="submit"> {% trans "Submit" %}
        </button>
    </p>
</form>
<br>
<br>
<h4>{% trans "Number of saved queries for user types" %}</h4>
<br>
<table class="table table-striped">
    <thead>
    <tr>
        <th>{% trans "User type" %}</th>
        <th>{% trans "Saved queries" %}</th>
    </tr>
    </thead>
    {% for query in queries %}
    <tr>
        <td>{{query.0}}</td>
        <td>{{query.1}}</td>
    </tr>
    {% endfor %}
</table>
<br><br>
<h4>{% trans "Number of manual requests for user types" %}</h4>
<br>
<table class="table table-striped">
    <thead>
    <tr>
        <th>{% trans "User type" %}</th>
        <th>{% trans "Manual requests" %}</th>
    </tr>
    </thead>
    {% for manual_request in manual_requests %}
    <tr>
        <td>{{manual_request.0}}</td>
        <td>{{manual_request.1}}</td>
    </tr>
    {% endfor %}
</table>
{% endblock %}
{'fraction_non_alphanumeric': 0.14916026188442927, 'fraction_numerical': 0.006831767719897523, 'mean_word_length': 1.393392370572207, 'pattern_counts': {'":': 0, '<': 201, '<?xml version=': 0, '>': 201, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6333734', 'n_tokens_mistral': 2144, 'n_tokens_neox': 1978, 'n_words': 623}