<commit_before>{% load forms %}

{{ form.non_field_errors }}

{% for field in form.hidden_fields %}
  {{ field }}
{% endfor %}

{% for field in form.visible_fields %}
  <div class="clearfix{% if field.errors %} error{% endif %}">
    {% if field|is_checkbox %}
      <ul class="inputs-list">
        <li>
            <div class="input">
              <label>
                {{ field }}
            	<span>{{ field.label }}</span>
            </label>
          </div> 
        </li>
      </ul>
    {% else %}
      {{ field.label_tag }}
      <div class="input">
        {{ field }}
        {% if field.help_text %}
            <span class="help-block">{{ field.help_text }}</span>
        {% endif %}
        {% if field.errors %}
          {% for error in field.errors %}
            <span class="help-inline">{{ error }}</span>
          {% endfor %}
        {% endif %}
      </div>
    {% endif %}
  </div>
{% endfor %}<commit_msg>Forms: add case for radioselect<commit_after>{% load forms %}

{{ form.non_field_errors }}

{% for field in form.hidden_fields %}
  {{ field }}
{% endfor %}

{% for field in form.visible_fields %}
  <div class="clearfix{% if field.errors %} error{% endif %}">
    {% if field|is_checkbox %}
      <ul class="inputs-list">
        <li>
          <div class="input">
            <label>
              {{ field }}
              <span>{{ field.label }}</span>
            </label>
          </div>
        </li>
      </ul>
    {% elif field|is_radioselect %}
      {% if field.errors %}
        {% for error in field.errors %}
          <span class="help-inline">{{ error }}</span>
        {% endfor %}
      {% endif %}
      <ul class="inputs-list">
        {% for choice in field %}
          <li>
            <label>
              {{ choice.tag }}
              <span>{{ choice.choice_label }}</span>
            </label>
          </li>
        {% endfor %}
      </ul>
    {% else %}
      {{ field.label_tag }}
      <div class="input">
        {{ field }}
        {% if field.help_text %}
          <span class="help-block">{{ field.help_text }}</span>
        {% endif %}
        {% if field.errors %}
          {% for error in field.errors %}
            <span class="help-inline">{{ error }}</span>
          {% endfor %}
        {% endif %}
      </div>
    {% endif %}
  </div>
{% endfor %}
{'fraction_non_alphanumeric': 0.18434559452523525, 'fraction_numerical': 0.0, 'mean_word_length': 1.5931263858093125, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '4808942', 'n_tokens_mistral': 783, 'n_tokens_neox': 692, 'n_words': 162}