<commit_before>{% block form_label -%}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if label is not same as(false) %}
        {% if not compound %}
            {% set label_attr = {for: id} + label_attr %}
        {% endif %}

        {% if label_attr.class is defined and label_attr.class is not null %}
            {% set label_attr = {class: {(label_attr.class): true}} + label_attr %}
        {% endif %}

        <label {{ attributes({class: label_attr.class ?? {} + {required: required, 'control-label': true}} + label_attr) }}>
            {{- translate_form_label(form, translation_domain) -}}
        </label>
    {%- endif %}
{% endblock -%}

{% block button_widget %}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if label is empty %}
        {% if label_format is not empty %}
            {% set label = label_format|replace({'%name%': name, '%id%': id})|trans({}, translation_domain) %}
        {% else %}
            {% set label = translate_form_label(form, translation_domain) %}
        {% endif %}
    {% endif %}

    {% set attr = {class: "#{class_name(attr.class ?? 'btn-default')} btn"} + attr %}
    <button type="{{ type|default('button') }}" {{ block('button_attributes') }}>{{ label }}</button>
{% endblock %}

{% block checkbox_radio_label %}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if widget is defined %}
        {% if required %}
            {% set label_attr = {class: "#{class_name(label_attr.class ?? '')} required"} + label_attr %}
        {% endif %}

        {% if parent_label_class is defined %}
            {% set label_attr = {class: "#{class_name(label_attr.class ?? '')} #{class_name(parent_label_class)}"} + label_attr %}
        {% endif %}

        <label {{ attributes(label_attr) }}>
            {{ widget|raw }}

            {% if label is not same as(false) %}
                {% if label is empty %}
                    {% if label_format is empty %}
                        {{ translate_form_label(form, translation_domain) }}
                    {% else %}
                        {{ label_format|replace({'%name%': name, '%id%': id})|trans({}, translation_domain) }}
                    {% endif %}
                {% elseif translation_domain is not same as(false) %}
                    {{ label|trans({}, translation_domain) }}
                {% endif %}
            {% endif %}
        </label>
    {% endif %}
{% endblock %}<commit_msg>Removed some whitespace in checkbox and radio label<commit_after>{% block form_label -%}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if label is not same as(false) %}
        {% if not compound %}
            {% set label_attr = {for: id} + label_attr %}
        {% endif %}

        {% if label_attr.class is defined and label_attr.class is not null %}
            {% set label_attr = {class: {(label_attr.class): true}} + label_attr %}
        {% endif %}

        <label {{ attributes({class: label_attr.class ?? {} + {required: required, 'control-label': true}} + label_attr) }}>
            {{- translate_form_label(form, translation_domain) -}}
        </label>
    {%- endif %}
{% endblock -%}

{% block button_widget %}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if label is empty %}
        {% if label_format is not empty %}
            {% set label = label_format|replace({'%name%': name, '%id%': id})|trans({}, translation_domain) %}
        {% else %}
            {% set label = translate_form_label(form, translation_domain) %}
        {% endif %}
    {% endif %}

    {% set attr = {class: "#{class_name(attr.class ?? 'btn-default')} btn"} + attr %}
    <button type="{{ type|default('button') }}" {{ block('button_attributes') }}>{{ label }}</button>
{% endblock %}

{% block checkbox_radio_label %}
    {% from '@VanioWeb/formTranslator.html.twig' import translate_form_label %}

    {% if widget is defined %}
        {% if required %}
            {% set label_attr = {class: "#{class_name(label_attr.class ?? '')} required"} + label_attr %}
        {% endif %}

        {% if parent_label_class is defined %}
            {% set label_attr = {class: "#{class_name(label_attr.class ?? '')} #{class_name(parent_label_class)}"} + label_attr %}
        {% endif %}

        <label {{ attributes(label_attr) }}>
            {{- widget|raw -}}

            {% if label is not same as(false) -%}
                {% if label is empty %}
                    {% if label_format is empty %}
                        {{ translate_form_label(form, translation_domain) }}
                    {% else %}
                        {{ label_format|replace({'%name%': name, '%id%': id})|trans({}, translation_domain) }}
                    {% endif %}
                {% else -%}
                    {{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}
                {% endif %}
            {% endif %}
        </label>
    {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.16660133281066247, 'fraction_numerical': 0.0, 'mean_word_length': 2.2503184713375797, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5389469', 'n_tokens_mistral': 1643, 'n_tokens_neox': 1416, 'n_words': 333}