<commit_before><form tal:omit-tag="not:request/show_form|nothing">
  <tal:comment condition="nothing">
    When the requets contains ``show_form`` a form tag is rendered. This
    supports testing as the testbrowser does only recognise form elements
    inside a form. In a real browser this snipped is injected in form-tag so
    there must not be an extra form element.
  </tal:comment>
  <fieldset>

    <legend tal:content="view/legend"
            i18n:translate="">
      Legend
    </legend>

    <div tal:repeat="widget view/widget_data"
         tal:attributes="class widget/css_class">
      <div class="label">
        <label tal:attributes="
               cms:tooltip widget/widget/hint;
               for widget/widget/name"
               tal:content="widget/widget/label"
               i18n:translate="">
          Label
        </label>
        <div class="error"
             tal:condition="widget/widget/error"
             tal:content="structure widget/widget/error">
          error
        </div>
      </div>
      <div class="widget" tal:content="structure widget/widget"/>
    </div><commit_msg>Readded span to indicate required fields which was formerly placed in zeit.content.article.<commit_after><form tal:omit-tag="not:request/show_form|nothing">
  <tal:comment condition="nothing">
    When the requets contains ``show_form`` a form tag is rendered. This
    supports testing as the testbrowser does only recognise form elements
    inside a form. In a real browser this snipped is injected in form-tag so
    there must not be an extra form element.
  </tal:comment>
  <fieldset>

    <legend tal:content="view/legend"
            i18n:translate="">
      Legend
    </legend>

    <div tal:repeat="widget view/widget_data"
         tal:attributes="class widget/css_class">
      <div class="label">
        <label tal:attributes="
               cms:tooltip widget/widget/hint;
               for widget/widget/name"
               tal:content="widget/widget/label"
               i18n:translate="">
          Label
        </label>
        <span class="required"
              tal:condition="widget/widget/required"
              i18n:translate=""
              >required</span>
        <div class="error"
             tal:condition="widget/widget/error"
             tal:content="structure widget/widget/error">
          error
        </div>
      </div>
      <div class="widget" tal:content="structure widget/widget"/>
    </div>
{'fraction_non_alphanumeric': 0.11057108140947752, 'fraction_numerical': 0.004050222762251924, 'mean_word_length': 2.342354533152909, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '506399', 'n_tokens_mistral': 679, 'n_tokens_neox': 653, 'n_words': 183}