<commit_before>{# Note: we can use general variables names here since this template is parsed within its own scope #}

<section class="mod">
  <div class="inner">
    <div class="bd">
      {% if successMessage %}
        <div id="{{ formName }}" class="message success">{{ successMessage|raw }}</div>{% endif %}
      {% if formBuilderError %}
        <div class="message error"><p>{{ formBuilderError }}</p></div>{% endif %}

      {% if fields %}
        <form {% if hidUtf8 %}accept-charset="UTF-8" {% endif %}id="{{ formName }}" method="post" action="{{ formAction }}">
          {% if formToken %}
            <input type="hidden" name="form_token" id="formToken{{ formName|ucfirst }}" value="{{ formToken }}" />
          {% endif %}

          <input type="hidden" name="form" value="{{ formName }}" />

          {% for field in fields %}
            {# Headings and paragraphs #}
            {% if field.plaintext %}
              <div class="content">
                {{ field.html|raw }}
              </div>
            {% endif %}

            {# Input field, textareas and drop downs #}
            {% if field.simple %}
              <p{% if field.error %} class="errorArea"{% endif %}>
                <label for="{{ field.name }}">
                  {{ field.label|raw }}{% if field.required %}
                    <abbr title="{{ 'lbl.RequiredField'|trans }}">*</abbr>{% endif %}
                </label>
                {{ field.html|raw }}
                {% if field.error %}<span class="formError inlineError">{{ field.error }}</span>{% endif %}
              </p>
            {% endif %}

            {# Radio buttons and checkboxes #}
            {% if field.multiple %}
              <div class="inputList{% if field.error %} errorArea{% endif %}">
                <p class="label">
                  {{ field.label|raw }}{% if field.required %}
                    <abbr title="{{ 'lbl.RequiredField'|trans }}">*</abbr>{% endif %}
                </p>
                <ul>
                  {% for html in field.html %}
                    <li><label for="{{ html.id }}">{{ html.field|raw }} {{ html.label|raw }}</label></li>
                  {% endfor %}
                </ul>
                {% if field.error %}<span class="formError inlineError">{{ field.error }}</span>{% endif %}
              </div>
            {% endif %}
          {% endfor %}

          <p>
            <input type="submit" value="{{ submitValue|raw }}" name="submit" class="inputSubmit" />
          </p>
        </form>
      {% endif %}
    </div>
  </div>
</section><commit_msg>Fix labels not clickable for checkboxes if they contain special chars<commit_after>{# Note: we can use general variables names here since this template is parsed within its own scope #}

<section class="mod">
  <div class="inner">
    <div class="bd">
      {% if successMessage %}
        <div id="{{ formName }}" class="message success">{{ successMessage|raw }}</div>{% endif %}
      {% if formBuilderError %}
        <div class="message error"><p>{{ formBuilderError }}</p></div>{% endif %}

      {% if fields %}
        <form {% if hidUtf8 %}accept-charset="UTF-8" {% endif %}id="{{ formName }}" method="post" action="{{ formAction }}">
          {% if formToken %}
            <input type="hidden" name="form_token" id="formToken{{ formName|ucfirst }}" value="{{ formToken }}" />
          {% endif %}

          <input type="hidden" name="form" value="{{ formName }}" />

          {% for field in fields %}
            {# Headings and paragraphs #}
            {% if field.plaintext %}
              <div class="content">
                {{ field.html|raw }}
              </div>
            {% endif %}

            {# Input field, textareas and drop downs #}
            {% if field.simple %}
              <p{% if field.error %} class="errorArea"{% endif %}>
                <label for="{{ field.name }}">
                  {{ field.label|raw }}{% if field.required %}
                    <abbr title="{{ 'lbl.RequiredField'|trans }}">*</abbr>{% endif %}
                </label>
                {{ field.html|raw }}
                {% if field.error %}<span class="formError inlineError">{{ field.error }}</span>{% endif %}
              </p>
            {% endif %}

            {# Radio buttons and checkboxes #}
            {% if field.multiple %}
              <div class="inputList{% if field.error %} errorArea{% endif %}">
                <p class="label">
                  {{ field.label|raw }}{% if field.required %}
                    <abbr title="{{ 'lbl.RequiredField'|trans }}">*</abbr>{% endif %}
                </p>
                <ul>
                  {% for html in field.html %}
                    <li><label for="{{ html.id|raw }}">{{ html.field|raw }} {{ html.label|raw }}</label></li>
                  {% endfor %}
                </ul>
                {% if field.error %}<span class="formError inlineError">{{ field.error }}</span>{% endif %}
              </div>
            {% endif %}
          {% endfor %}

          <p>
            <input type="submit" value="{{ submitValue|raw }}" name="submit" class="inputSubmit" />
          </p>
        </form>
      {% endif %}
    </div>
  </div>
</section>
{'fraction_non_alphanumeric': 0.18200916730328495, 'fraction_numerical': 0.0007639419404125286, 'mean_word_length': 1.726184279021343, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '6888100', 'n_tokens_mistral': 1569, 'n_tokens_neox': 1379, 'n_words': 367}