<commit_before>{% extends 'base.twig' %}
{% block content %}
    {% if modifications is defined %}
        <h4>{{ __('Modifications made to the database:') }}</h4>
        <ul>
        {% for item in modifications %}
            <li>{{ item|tt }}</li>
        {% endfor %}
        </ul>
        <p>
            {{ __('Your database is now up to date.') }}
        </p>
        <form action="{{ path('dbcheck') }}" method="GET">
            <p>
                <button type="submit" class="btn btn-primary">{{ __('Check again') }}</button>
            </p>
        </form>
    {% elseif required_modifications %}
        <h4>{{ __('Modifications needed:') }}</h4>
        <ul>
        {% for item in required_modifications %}
            <li>{{ item|tt }}</li>
        {% endfor %}
        </ul>
        <form action="{{ path('dbupdate') }}" method="POST">
            <p>
                <button type="submit" class="btn btn-primary">{{ __('Update the database') }}</button>
            </p>
        </form>
    {% else %}
        {{ __("Your database is already up to date.") }}
        <br><br><p><b>{{ __('Tip:') }}</b>
        {{ __('Add some sample <a href=\'%url%\' class=\'btn btn-small\'>Records with Loripsum text</a>', { '%url%' : path('prefill')}) }}
        </p>
    {% endif %}
{% endblock %}<commit_msg>Do not show "prefill database" button if lacking permission<commit_after>{% extends 'base.twig' %}
{% block content %}
    {% if modifications is defined %}
        <h4>{{ __('Modifications made to the database:') }}</h4>
        <ul>
        {% for item in modifications %}
            <li>{{ item|tt }}</li>
        {% endfor %}
        </ul>
        <p>
            {{ __('Your database is now up to date.') }}
        </p>
        <form action="{{ path('dbcheck') }}" method="GET">
            <p>
                <button type="submit" class="btn btn-primary">{{ __('Check again') }}</button>
            </p>
        </form>
    {% elseif required_modifications %}
        <h4>{{ __('Modifications needed:') }}</h4>
        <ul>
        {% for item in required_modifications %}
            <li>{{ item|tt }}</li>
        {% endfor %}
        </ul>
        <form action="{{ path('dbupdate') }}" method="POST">
            <p>
                <button type="submit" class="btn btn-primary">{{ __('Update the database') }}</button>
            </p>
        </form>
    {% else %}
        {{ __("Your database is already up to date.") }}
        {% if isallowed('prefill') %}
        <br><br><p><b>{{ __('Tip:') }}</b>
        {{ __('Add some sample <a href=\'%url%\' class=\'btn btn-small\'>Records with Loripsum text</a>', { '%url%' : path('prefill')}) }}
        </p>
        {% endif %}
    {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.20964207450693936, 'fraction_numerical': 0.0029218407596785976, 'mean_word_length': 1.9138297872340426, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '7447343', 'n_tokens_mistral': 881, 'n_tokens_neox': 821, 'n_words': 223}