<commit_before>{# Page: NavSecondary > Configuration > Check database #}

{% extends '_base/_page-nav.twig' %}

{% from 'dbcheck/_macros.twig' import list %}

{% block page_nav 'Settings/Configuration' %}

{% block page_title __("Database check / update") %}

{% block page_main %}

    {% set hints = context.modifications_hints|default([]) %}

    <div class="row">
        <div class="col-xs-12">
            {% if context.modifications_made %}

                {{ list(__('Modifications made to the database:'), context.modifications_made) }}
                {{ list(__('Hints:'), hints) }}

                <p>{{ __('Your database is now up to date.') }}</p>

                <form action="{{ path('dbcheck') }}" method="get">
                    <p><button type="submit" class="btn btn-default btn-primary">{{ __('Check again') }}</button></p>
                </form>

            {% elseif context.modifications_required %}

                {{ list(__('Modifications needed:'), context.modifications_required) }}
                {{ list(__('Hints:'), hints) }}

                <form action="{{ path('dbupdate') }}" method="post">
                    <p><button type="submit" class="btn btn-default btn-primary">{{ __('Update the database') }}</button></p><commit_msg>This button is as "primary" as they get.<commit_after>{# Page: NavSecondary > Configuration > Check database #}

{% extends '_base/_page-nav.twig' %}

{% from 'dbcheck/_macros.twig' import list %}

{% block page_nav 'Settings/Configuration' %}

{% block page_title __("Database check / update") %}

{% block page_main %}

    {% set hints = context.modifications_hints|default([]) %}

    <div class="row">
        <div class="col-xs-12">
            {% if context.modifications_made %}

                {{ list(__('Modifications made to the database:'), context.modifications_made) }}
                {{ list(__('Hints:'), hints) }}

                <p>{{ __('Your database is now up to date.') }}</p>

                <form action="{{ path('dbcheck') }}" method="get">
                    <p><button type="submit" class="btn btn-default btn-primary">{{ __('Check again') }}</button></p>
                </form>

            {% elseif context.modifications_required %}

                {{ list(__('Modifications needed:'), context.modifications_required) }}
                {{ list(__('Hints:'), hints) }}

                <form action="{{ path('dbupdate') }}" method="post">
                    <p><button type="submit" class="btn btn-primary">{{ __('Update the database') }}</button></p>
{'fraction_non_alphanumeric': 0.18089668615984406, 'fraction_numerical': 0.0015594541910331384, 'mean_word_length': 2.5589459084604718, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '503337', 'n_tokens_mistral': 764, 'n_tokens_neox': 685, 'n_words': 167}