<commit_before>{#
 # This file is part of the CRUDlex package.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{% include '@crud/fieldLabel.twig' with {
    field: field,
    definition: crudData.getDefinition(),
    annotations: annotations
} only %}
<select class="form-control" id="{{ field }}" name="{{ fieldNamePrefix ~ field }}">
    <option value=""></option>
    {% set values = crudData.getDefinition().getSetItems(field) %}
    {% for setValue in values %}
        <option value="{{ setValue }}" {% if value and value == value %}selected="selected" {% endif %}>{{ setValue }}</option>
    {% endfor %}
</select><commit_msg>fixed set selection after refactoring<commit_after>{#
 # This file is part of the CRUDlex package.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{% include '@crud/fieldLabel.twig' with {
    field: field,
    definition: crudData.getDefinition(),
    annotations: annotations
} only %}
<select class="form-control" id="{{ field }}" name="{{ fieldNamePrefix ~ field }}">
    <option value=""></option>
    {% set values = crudData.getDefinition().getSetItems(field) %}
    {% for setValue in values %}
        <option value="{{ setValue }}" {% if value and setValue == value %}selected="selected" {% endif %}>{{ setValue }}</option>
    {% endfor %}
</select>
{'fraction_non_alphanumeric': 0.16173570019723865, 'fraction_numerical': 0.0, 'mean_word_length': 3.957654723127036, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '2324563', 'n_tokens_mistral': 459, 'n_tokens_neox': 430, 'n_words': 145}