<commit_before>{% extends 'form_div_layout.html.twig' %}

{% block alpixel_dropzone_widget %}
    {% set dropzoneId =  form.vars.id %}

    <div class="dropzone_widget" data-id="{{ dropzoneId }}" data-multiple="{{ multiple }}"
         data-max-file="{{ max_nb_file }}"
         data-url="{{ app.request.getSchemeAndHttpHost() }}{{ app.request.baseUrl }}/media/upload{{ upload_configuration ? "/"~upload_configuration }}"
            {{ upload_configuration ? "data-allowed-mime-types="~mimetypes|json_encode~"" }}>
        {% block dropzone_preview_template %}
            <div class="previewTemplateFileDrop" style="display: none;">
                <div class="dz-preview dz-file-preview">
                    <div class="dz-details">
                        <img data-dz-thumbnail/>
                        <p class="dz-label"></p>
                    </div>
                    <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>
                    <div class="dz-error-message"><span data-dz-errormessage></span></div>
                    <a href="#" data-dz-remove class="dz-remove" title="Supprimer cette photo"><i
                                class="fa fa-times-circle"></i></a>
                </div>
            </div>
        {% endblock %}

        <div class="dropzone-backup">
            {% if form.vars.value is defined %}
                {% for secretKey in form.vars.value|split('#&#') %}
                    {{ secretKey|previewIcon }}
                {% endfor %}
            {% endif %}
        </div>

        {# DROPZONE #}
        {% block dropzone_element %}
            <div class="center"><commit_msg>Update fields.html.twig<commit_after>{% extends 'form_div_layout.html.twig' %}

{% block alpixel_dropzone_widget %}
    {% set dropzoneId =  form.vars.id %}

    <div class="dropzone_widget" data-id="{{ dropzoneId }}" data-multiple="{{ multiple }}"
         data-max-file="{{ max_nb_file }}"
         data-url="{{ app.request.getSchemeAndHttpHost() }}{{ app.request.baseUrl }}/media/upload{{ upload_configuration ? "/"~upload_configuration }}"
            {{ upload_configuration ? "data-allowed-mime-types="~mimetypes|join(',')~"" }}>
        {% block dropzone_preview_template %}
            <div class="previewTemplateFileDrop" style="display: none;">
                <div class="dz-preview dz-file-preview">
                    <div class="dz-details">
                        <img data-dz-thumbnail/>
                        <p class="dz-label"></p>
                    </div>
                    <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>
                    <div class="dz-error-message"><span data-dz-errormessage></span></div>
                    <a href="#" data-dz-remove class="dz-remove" title="Supprimer cette photo"><i
                                class="fa fa-times-circle"></i></a>
                </div>
            </div>
        {% endblock %}

        <div class="dropzone-backup">
            {% if form.vars.value is defined %}
                {% for secretKey in form.vars.value|split('#&#') %}
                    {{ secretKey|previewIcon }}
                {% endfor %}
            {% endif %}
        </div>

        {# DROPZONE #}
        {% block dropzone_element %}
            <div class="center">
{'fraction_non_alphanumeric': 0.16497005988023952, 'fraction_numerical': 0.0, 'mean_word_length': 1.865351629502573, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '1350199', 'n_tokens_mistral': 981, 'n_tokens_neox': 906, 'n_words': 156}