<commit_before>{%- use "form_div_layout.html.twig" -%}

{# Widgets #}

{%- block form_widget_simple -%}
    {% spaceless %}
        {%- if type is not defined or type not in ['file', 'hidden'] -%}
            {%- set attr = attr|merge({class: (attr.class|default('') ~ ' input')|trim}) -%}
        {%- endif -%}
        {%- set size_class = '' -%}
        {%- for size in ['is-small', 'is-medium', 'is-large'] if size in form.vars.attr.class|default('') -%}
            {%- set size_class = size -%}
        {%- endfor -%}
        {%- set widget_icon = attribute(form.vars, 'bulma_icon')|default(false) -%}
        <div {{ block('form_widget_container_attributes') }}>
            {{- parent() -}}
            {%- if widget_icon != false -%}
                <span class="{{ ('icon ' ~ size_class|default(''))|trim -}}">
                <i class="fa fa-{{ attribute(widget_icon, 'icon')|default('') -}}"></i>
            </span>
            {%- endif -%}
            {{- block('form_errors') -}}
        </div>
    {% endspaceless %}
{%- endblock form_widget_simple %}

{%- block choice_widget_collapsed -%}
    {% spaceless %}
        {%- set size_class = '' -%}
        {%- for size in ['is-small', 'is-medium', 'is-large'] if size in form.vars.attr.class|default('') -%}
            {%- set size_class = size -%}
        {%- endfor -%}
        <div {{ block('form_widget_container_attributes') }}>
        <span class="{{ ('select ' ~ size_class)|trim }}">
            {{- parent() -}}
        </span>
            {{- block('form_errors') -}}
        </div>
    {% endspaceless %}
{%- endblock choice_widget_collapsed -%}

{%- block choice_widget_expanded -%}<commit_msg>Fix height problem on select multiple<commit_after>{%- use "form_div_layout.html.twig" -%}

{# Widgets #}

{%- block form_widget_simple -%}
    {% spaceless %}
        {%- if type is not defined or type not in ['file', 'hidden'] -%}
            {%- set attr = attr|merge({class: (attr.class|default('') ~ ' input')|trim}) -%}
        {%- endif -%}
        {%- set size_class = '' -%}
        {%- for size in ['is-small', 'is-medium', 'is-large'] if size in form.vars.attr.class|default('') -%}
            {%- set size_class = size -%}
        {%- endfor -%}
        {%- set widget_icon = attribute(form.vars, 'bulma_icon')|default(false) -%}
        <div {{ block('form_widget_container_attributes') }}>
            {{- parent() -}}
            {%- if widget_icon != false -%}
                <span class="{{ ('icon ' ~ size_class|default(''))|trim -}}">
                <i class="fa fa-{{ attribute(widget_icon, 'icon')|default('') -}}"></i>
            </span>
            {%- endif -%}
            {{- block('form_errors') -}}
        </div>
    {% endspaceless %}
{%- endblock form_widget_simple %}

{%- block choice_widget_collapsed -%}
    {% spaceless %}
        {%- set size_class = '' -%}
        {%- for size in ['is-small', 'is-medium', 'is-large'] if size in form.vars.attr.class|default('') -%}
            {%- set size_class = size -%}
        {%- endfor -%}
        {%- set is_multiple_class = multiple ? ' is-multiple' : '' -%}
        <div {{ block('form_widget_container_attributes') }}>
        <span class="{{ ('select ' ~ size_class ~ is_multiple_class)|trim }}">
            {{- parent() -}}
        </span>
            {{- block('form_errors') -}}
        </div>
    {% endspaceless %}
{%- endblock choice_widget_collapsed -%}

{%- block choice_widget_expanded -%}
{'fraction_non_alphanumeric': 0.21352210343831263, 'fraction_numerical': 0.0, 'mean_word_length': 2.1133093525179856, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1675743', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1131, 'n_words': 212}