<commit_before>{% load i18n %}

{% if request.user.is_superuser %}
<div class="modal hide fade" id="flag-thumbnails-modal">
    <div class="modal-header">
        <a class="close" data-dismiss="modal">&times;</a>
        <h3>{% trans "Flag malfunctioning thumbnails" %}</h3>
    </div>
    <div class="modal-body">
        <div class="well">
            {% trans "This will trigger the regeneration of all thumbnails for this image and all its revisions." %}
        </div>

        <form class="form-inline" action="{% url image_flag_thumbs image.id %}" method="post">{% csrf_token %}
            <input class="btn btn-primary" type="submit" value="{% trans "Continue" %}"/>
        </form>
    </div>
</div>
{% endif %}

<commit_msg>Remove limitation to superusers for fix-thumbnails modal<commit_after>{% load i18n %}

<div class="modal hide fade" id="flag-thumbnails-modal">
    <div class="modal-header">
        <a class="close" data-dismiss="modal">&times;</a>
        <h3>{% trans "Flag malfunctioning thumbnails" %}</h3>
    </div>
    <div class="modal-body">
        <div class="well">
            {% trans "This will trigger the regeneration of all thumbnails for this image and all its revisions." %}
        </div>

        <form class="form-inline" action="{% url image_flag_thumbs image.id %}" method="post">{% csrf_token %}
            <input class="btn btn-primary" type="submit" value="{% trans "Continue" %}"/>
        </form>
    </div>
</div>


{'fraction_non_alphanumeric': 0.17257844474761255, 'fraction_numerical': 0.005457025920873124, 'mean_word_length': 3.041322314049587, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '2766494', 'n_tokens_mistral': 485, 'n_tokens_neox': 448, 'n_words': 127}