<commit_before>{% if field.data_type == 'choice' %}
    <select name="{{ field.identifier }}"
            value="{{ field.value|default_if_none:"" }}"
            {% if extra %}{{ extra }}{% endif %} />
        {% for option in field.choices %}
            <option value="{{ option }}">
                {{option}}
            </option>
        {% endfor %}
    </select>
{% elif field.data_type == 'bool' %}
    <input name="{{ field.identifier }}"
          {% if field.value %}
           checked="checked"
          {% endif %}
           type="checkbox"
           value="{{ field.value }}"
           {% if extra %}{{ extra }}{% endif %} />
{% else %}
    <input name="{{ field.identifier }}"
           type="text"
           value="{{ field.value|default_if_none:"" }}"
           {% if extra %}{{ extra }}{% endif %} />
{% endif %}
<commit_msg>Add default option to selects, properly set selected value<commit_after>{% if field.data_type == 'choice' %}
    <select name="{{ field.identifier }}"
            {% if extra %}{{ extra }}{% endif %} />
            <option value=""></option>
        {% for option in field.choices %}
            <option value="{{ option }}"
              {% ifequal option field.value %}selected="selected"{% endifequal %}>
                {{option}}
            </option>
        {% endfor %}
    </select>
{% elif field.data_type == 'bool' %}
    <input name="{{ field.identifier }}"
          {% if field.value %}
           checked="checked"
          {% endif %}
           type="checkbox"
           value="{{ field.value }}"
           {% if extra %}{{ extra }}{% endif %} />
{% else %}
    <input name="{{ field.identifier }}"
           type="text"
           value="{{ field.value|default_if_none:"" }}"
           {% if extra %}{{ extra }}{% endif %} />
{% endif %}

{'fraction_non_alphanumeric': 0.19911748483177055, 'fraction_numerical': 0.0, 'mean_word_length': 1.8793650793650793, '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': '4149911', 'n_tokens_mistral': 550, 'n_tokens_neox': 491, 'n_words': 119}