<commit_before>{% extends 'base.html' %}


{% block bodyjs %}
<script>
    var reportUrlState = {{ url_state|tojson|safe }};
</script>
{{ super() }}
{% endblock bodyjs %}

{% block content %}

{% if report %}

<h1>
    {% trans %}Report{% endtrans %}
    {% if permalinks %}
    <span class="pull-right">
        <a class="btn btn-primary" href="{{ permalinks.json }}" title="">{% trans %}JSON Link{% endtrans %}</a>
        <a class="btn btn-primary" href="{{ permalinks.html }}" title="">{% trans %}HTML Link{% endtrans %}</a>
    </span>
    {% endif %}
</h1>

<section id="report">

    <div id="bottom-line">

        {% if success -%}

        <h2><span class="text-success">{% trans %}Well done! The data source is valid.{% endtrans %}</span></h2>
        <p class="lead">{% trans %}You can find a brief summary of the data source below.{% endtrans %}</p>

        {%- else -%}

        <h2><span class="text-danger">{% trans %}Oops. the data source is not valid.{% endtrans %}</span></h2>
        <p class="lead">{% trans %}That's ok! Let's see what we can do about that using the info we collected along the way.{% endtrans %}</p>

        {%- endif %}

        <p>{% trans %}These results were calculated on <em>{{ datetime }}</em> using this <a target="_blank" href="{{ data_link }}" title="{{ data_link }}"><mark>data</mark></a>{% endtrans %}{% if schema_link %} {% trans  %}and this <a href="{{ schema_link }}" title="{{ schema_link }}"><mark>schema</mark></a>.{% endtrans %}{% endif %}</p>
    </div>

    <div id="summary">

        <h2>{% trans %}Summary{% endtrans %}</h2>

        {% if success %}

        <p class="lead">
            {% trans %}We processed a total of <strong>{{ row_count }}</strong> rows. Column-wise, we found <strong>{{ column_count }}</strong> columns. It's all good!{% endtrans %}
        </p>

        {% else %}

        <p class="lead">
            {% trans %}We processed a total of <strong>{{ row_count }}</strong> rows, of which <strong>{{ bad_row_percent }}%</strong> were found to have invalid data.{% endtrans %}
            {% trans %}When viewing the data column-wise, we found that out of the <strong>{{ column_count }}</strong> columns, <strong>{{ bad_column_percent }}%</strong> had invalid data.{% endtrans %}
        </p>
        <p class="lead">
            <u>{% trans %}All in all, a total of <strong>{{ bad_cell_count }}</strong> cells have invalid data. Let's have a look at the details.{% endtrans %}</u>
        </p>

        {% endif %}

    </div>
<commit_msg>Fix small templating error<commit_after>{% extends 'base.html' %}


{% block bodyjs %}
<script>
    var reportUrlState = {{ url_state|tojson|safe }};
</script>
{{ super() }}
{% endblock bodyjs %}

{% block content %}

{% if report %}

<h1>
    {% trans %}Report{% endtrans %}
    {% if permalinks %}
    <span class="pull-right">
        <a class="btn btn-primary" href="{{ permalinks.json }}" title="">{% trans %}JSON Link{% endtrans %}</a>
        <a class="btn btn-primary" href="{{ permalinks.html }}" title="">{% trans %}HTML Link{% endtrans %}</a>
    </span>
    {% endif %}
</h1>

<section id="report">

    <div id="bottom-line">

        {% if success -%}

        <h2><span class="text-success">{% trans %}Well done! The data source is valid.{% endtrans %}</span></h2>
        <p class="lead">{% trans %}You can find a brief summary of the data source below.{% endtrans %}</p>

        {%- else -%}

        <h2><span class="text-danger">{% trans %}Oops. the data source is not valid.{% endtrans %}</span></h2>
        <p class="lead">{% trans %}That's ok! Let's see what we can do about that using the info we collected along the way.{% endtrans %}</p>

        {%- endif %}

        <p>{% trans %}These results were calculated on <em>{{ datetime }}</em>{% endtrans %}{% if not data_link %}.{% else %} {% trans %}using this <a target="_blank" href="{{ data_link }}" title="{{ data_link }}"><mark>data</mark></a>{% endtrans %}{% if schema_link %} {% trans  %}and this <a href="{{ schema_link }}" title="{{ schema_link }}"><mark>schema</mark></a>.{% endtrans %}{% endif %}{% endif %}</p>
    </div>

    <div id="summary">

        <h2>{% trans %}Summary{% endtrans %}</h2>

        {% if success %}

        <p class="lead">
            {% trans %}We processed a total of <strong>{{ row_count }}</strong> rows. Column-wise, we found <strong>{{ column_count }}</strong> columns. It's all good!{% endtrans %}
        </p>

        {% else %}

        <p class="lead">
            {% trans %}We processed a total of <strong>{{ row_count }}</strong> rows, of which <strong>{{ bad_row_percent }}%</strong> were found to have invalid data.{% endtrans %}
            {% trans %}When viewing the data column-wise, we found that out of the <strong>{{ column_count }}</strong> columns, <strong>{{ bad_column_percent }}%</strong> had invalid data.{% endtrans %}
        </p>
        <p class="lead">
            <u>{% trans %}All in all, a total of <strong>{{ bad_cell_count }}</strong> cells have invalid data. Let's have a look at the details.{% endtrans %}</u>
        </p>

        {% endif %}

    </div>

{'fraction_non_alphanumeric': 0.20299727520435967, 'fraction_numerical': 0.003114052160373686, 'mean_word_length': 2.956120092378753, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, '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': '5550239', 'n_tokens_mistral': 1771, 'n_tokens_neox': 1556, 'n_words': 544}