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

{% block form_widget_simple -%}
    {% if type is not defined or 'file' != type  or 'textarea' != type %}
        {%- set attr = attr|merge({class: (attr.class|default('') ~ ' form__input')|trim}) -%}
    {% endif %}
    {{- parent() -}}
{%- endblock form_widget_simple %}

{%- block form_widget_compound -%}
    {{- block('form_rows') -}}
    {{- form_rest(form) -}}
{%- endblock form_widget_compound -%}

{% block textarea_widget -%}
    {% set attr = attr|merge({class: (attr.class|default('') ~ ' form__textarea')|trim}) %}
    {{- parent() -}}
{%- endblock textarea_widget %}

{% block collection_row -%}
    <div class="form__collection">
        {{- block('form_label') -}}
        <div class="form__collection-items"
             data-prototype="<div class='form__collection-item'>{{ form_widget(form.vars.prototype)|e }}<div class='form__collection-item-footer'><button class='button js-collection-remove'>Remove</button></div></div>">
            {% for children in form.children %}
                <div class="form__collection-item">
                    {{ form_row(children) }}
                    <div class="form__collection-item-footer">
                        <button class='button js-collection-remove'>{% trans %}lin3s_admin.form.remove{% endtrans %}</button>
                    </div>
                    <div class="form__collection-item-toggle">
                        {% include '@Lin3sAdmin/svg/toggle.svg.twig' with {
                        svgClass: 'form__collection-item-toggle-icon'
                        } %}
                    </div>
                </div>
            {% endfor %}
        </div>
        <div class="form__collection-footer">
            <button class="button js-collection-add">{% trans %}lin3s_admin.form.add{% endtrans %}</button>
        </div>
    </div>
{% endblock %}

{% block choice_widget -%}
    {% if not form.vars.multiple %}
        {% set attr = attr|merge({class: (attr.class|default('') ~ ' form__select')|trim}) %}
    {% endif %}
    {{- parent() -}}
{%- endblock choice_widget %}

{%- block choice_widget_expanded -%}<commit_msg>[fix] dynamic collection type had no implemented translation of REMOVE string<commit_after>{% use 'form_div_layout.html.twig' %}

{% block form_widget_simple -%}
    {% if type is not defined or 'file' != type  or 'textarea' != type %}
        {%- set attr = attr|merge({class: (attr.class|default('') ~ ' form__input')|trim}) -%}
    {% endif %}
    {{- parent() -}}
{%- endblock form_widget_simple %}

{%- block form_widget_compound -%}
    {{- block('form_rows') -}}
    {{- form_rest(form) -}}
{%- endblock form_widget_compound -%}

{% block textarea_widget -%}
    {% set attr = attr|merge({class: (attr.class|default('') ~ ' form__textarea')|trim}) %}
    {{- parent() -}}
{%- endblock textarea_widget %}

{% block collection_row -%}
    <div class="form__collection">
        {{- block('form_label') -}}
        <div class="form__collection-items"
             data-prototype="<div class='form__collection-item'>{{ form_widget(form.vars.prototype)|e }}<div class='form__collection-item-footer'><button class='button js-collection-remove'>{% trans %}lin3s_admin.form.remove{% endtrans %}</button></div></div>">
            {% for children in form.children %}
                <div class="form__collection-item">
                    {{ form_row(children) }}
                    <div class="form__collection-item-footer">
                        <button class='button js-collection-remove'>{% trans %}lin3s_admin.form.remove{% endtrans %}</button>
                    </div>
                    <div class="form__collection-item-toggle">
                        {% include '@Lin3sAdmin/svg/toggle.svg.twig' with {
                        svgClass: 'form__collection-item-toggle-icon'
                        } %}
                    </div>
                </div>
            {% endfor %}
        </div>
        <div class="form__collection-footer">
            <button class="button js-collection-add">{% trans %}lin3s_admin.form.add{% endtrans %}</button>
        </div>
    </div>
{% endblock %}

{% block choice_widget -%}
    {% if not form.vars.multiple %}
        {% set attr = attr|merge({class: (attr.class|default('') ~ ' form__select')|trim}) %}
    {% endif %}
    {{- parent() -}}
{%- endblock choice_widget %}

{%- block choice_widget_expanded -%}
{'fraction_non_alphanumeric': 0.17828054298642534, 'fraction_numerical': 0.001583710407239819, 'mean_word_length': 2.3877394636015326, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '4327882', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1296, 'n_words': 236}