<commit_before>{% extends "formelement-default.twig" %}

{% block input %}

    {% if type=='list' %}
        <div class="col-xs-5">
            <select multiple class="form-control" id="{{ id }}" name="{{ name }}[]">
                {% for k,v in options %}
                    {% if k in value %}
                        <option value="{{ k }}" selected="selected">{{ v }}</option>
                    {% else %}
                        <option value="{{ k }}">{{ v }}</option>
                    {% endif %}
                {% endfor %}
            </select>
        </div>
    {% endif %}
    {% if type=='checkbox' %}
        <div class="col-xs-8">
            {% for k,v in options %}
                <div class="radio">
                    <label>
                        {% if k in value %}
                            <input type="checkbox" name="{{ name }}[]" id="{{ id }}_{{ loop.index }}" value="{{ k }}"
                                   checked="checked"> {{ v }}
                        {% else %}
                            <input type="checkbox" name="{{ name }}[]" id="{{ id }}_{{ loop.index }}"
                                   value="{{ k }}"> {{ v }}
                        {% endif %}

                    </label>
                </div>

            {% endfor %}
        </div>
    {% endif %}


{% endblock %}<commit_msg>Update formelement-multiselection.twig<commit_after>{% extends "formelement-default.twig" %}

{% block input %}

    {% if type=='list' %}
        <div class="col-xs-5">
            <select multiple class="form-control" id="{{ id }}" name="{{ name }}[]">
                {% for k,v in options %}
                    {% if k == value %}
                        <option value="{{ k }}" selected="selected">{{ v }}</option>
                    {% else %}
                        <option value="{{ k }}">{{ v }}</option>
                    {% endif %}
                {% endfor %}
            </select>
        </div>
    {% endif %}
    {% if type=='checkbox' %}
        <div class="col-xs-8">
            {% for k,v in options %}
                <div class="radio">
                    <label>
                        {% if k == value %}
                            <input type="checkbox" name="{{ name }}[]" id="{{ id }}_{{ loop.index }}" value="{{ k }}"
                                   checked="checked"> {{ v }}
                        {% else %}
                            <input type="checkbox" name="{{ name }}[]" id="{{ id }}_{{ loop.index }}"
                                   value="{{ k }}"> {{ v }}
                        {% endif %}

                    </label>
                </div>

            {% endfor %}
        </div>
    {% endif %}


{% endblock %}
{'fraction_non_alphanumeric': 0.18921892189218922, 'fraction_numerical': 0.0014668133480014668, 'mean_word_length': 1.057315233785822, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3878441', 'n_tokens_mistral': 776, 'n_tokens_neox': 657, 'n_words': 169}