<commit_before><div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" />
<span class="error" th:errors="*{fields['__${field.name}__'].value}" />

<select class="six" th:field="*{fields['__${field.name}__'].value}" 
        th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) gt #props.getAsInt('admin.enum.minCountForDropDown')}">
    <option value="" th:text="#{Default_Select}" />
    <option th:each="entry : *{fields['__${field.name}__'].options}"
            th:value="${entry.key}"
            th:text="${entry.value}" />
</select>

<div th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) lt #props.getAsInt('admin.enum.minCountForDropDown')}"<commit_msg>Fixes #422 by showing a drop-down list for data driven enumerations with 5 items.<commit_after><div class="field-label inline" th:text="#{${field.friendlyName}}" th:classappend="${field.required ? 'required' : ''}" />
<span class="error" th:errors="*{fields['__${field.name}__'].value}" />

<select class="six" th:field="*{fields['__${field.name}__'].value}" 
        th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) ge #props.getAsInt('admin.enum.minCountForDropDown')}">
    <option value="" th:text="#{Default_Select}" />
    <option th:each="entry : *{fields['__${field.name}__'].options}"
            th:value="${entry.key}"
            th:text="${entry.value}" />
</select>

<div th:if="${!#maps.isEmpty(field.options) and #maps.size(field.options) lt #props.getAsInt('admin.enum.minCountForDropDown')}"
{'fraction_non_alphanumeric': 0.2320754716981132, 'fraction_numerical': 0.0025157232704402514, 'mean_word_length': 5.629166666666666, 'pattern_counts': {'":': 0, '<': 17, '<?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': '5331526', 'n_tokens_mistral': 531, 'n_tokens_neox': 525, 'n_words': 76}