<commit_before>{% extends "forms/field.html.twig" %}

{% block label %}
{% endblock %}

{% block input %}
    {% set id = field.id|default(field.name) ~ '-' ~ key %}
    <div class="{{ form_field_wrapper_classes ?: 'form-input-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}">
        <input
            {# required attribute structures #}
            name="{{ (scope ~ field.name)|fieldName }}"
            value="{{ value|join(', ') }}"
            type="checkbox"
            {% if value == true %} checked="checked" {% endif %}

            {# input attribute structures #}
            {% block input_attributes %}
                id="{{ id|e }}"
                {% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
                {% if field.style is defined %}style="{{ field.style|e }}" {% endif %}
                {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
                {% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %}
                {% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %}
                {% if required %}required="required"{% endif %}
                {% if field.tabindex %}tabindex="{{ field.tabindex }}" %}{% endif %}
            {% endblock %}
            />
        <label style="display:inline;" class="inline" for="{{ id|e }}">
            {% if field.markdown %}
                {{ field.label|t|markdown(false) }}
            {% else %}
                {{ field.label|t|e }}
            {% endif %}
            {{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
        </label>
    </div>
{% endblock %}
<commit_msg>Update checkbox.html.twig (#395)<commit_after>{% extends "forms/field.html.twig" %}

{% block label %}
{% endblock %}

{% block input %}
    {% set id = field.id|default(field.name) ~ '-' ~ key %}
    <div class="{{ form_field_wrapper_classes ?: 'form-input-wrapper' }} {{ field.size }} {{ field.wrapper_classes }}">
        <input
            {# required attribute structures #}
            name="{{ (scope ~ field.name)|fieldName }}"
            value="{{ value|join(', ') }}"
            type="checkbox"
            {% if value == true %} checked="checked" {% endif %}

            {# input attribute structures #}
            {% block input_attributes %}
                id="{{ id|e }}"
                {% if field.classes is defined %}class="{{ field.classes }}" {% endif %}
                {% if field.style is defined %}style="{{ field.style|e }}" {% endif %}
                {% if field.disabled or isDisabledToggleable %}disabled="disabled"{% endif %}
                {% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %}
                {% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %}
                {% if required %}required="required"{% endif %}
                {% if field.tabindex %}tabindex="{{ field.tabindex }}"{% endif %}
            {% endblock %}
            />
        <label style="display:inline;" class="inline" for="{{ id|e }}">
            {% if field.markdown %}
                {{ field.label|t|markdown(false) }}
            {% else %}
                {{ field.label|t|e }}
            {% endif %}
            {{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
        </label>
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.19400814426992438, 'fraction_numerical': 0.002617801047120419, 'mean_word_length': 2.0326278659611994, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3101952', 'n_tokens_mistral': 1091, 'n_tokens_neox': 930, 'n_words': 216}