<commit_before><template>
 <div v-if="opts && (!opts.readonly || val)">

  <DateAttr v-model="val" :label="attr_labels[name]" v-if="uiType === 'date'"
    :opts="opts" :submitted="submitted">
  </DateAttr>

  <DateThreeInputsAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'dateThreeInputs'"
    :minYear="opts.minYear" :maxYear="opts.maxYear" :submitted="submitted">
  </DateThreeInputsAttr>

  <AddressAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'postalAddress'"
    :opts="opts" :submitted="submitted">
  </AddressAttr>

  <jpegPhotoAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'photo'"
     :opts="opts" :submitted="submitted">
  </jpegPhotoAttr>

  <StructureAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'structure'"
     :opts="opts" :submitted="submitted">
  </StructureAttr>

  <PasswordAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'password'"
     :submitted="submitted">
  </PasswordAttr>

  <my-bootstrap-form-group :name="name" multi="true" :label="attr_labels[name]" v-else-if="uiType === 'siret'">
     <div class="col-xs-3" :class="{'has-error': validity.submitted && !validity[name].valid}">
         <input-with-validity :name="name" v-model="val"
            real-type="siret" placeholder="<NAME>" :required="!opts.optional" :validity.sync="validity[name]">
         </input-with-validity>
         <validation-errors :name="name" :validity="validity"></validation-errors>
     </div>
  </my-bootstrap-form-group>

  <my-bootstrap-form-group :name="name" :label="attr_labels[name]" :validity="validity" :labels="opts.labels" v-else-if="opts">

    <radio-with-validity :name="name" v-model="val" v-if="uiType === 'radio'"
        :values="choicesMap" :required="!opts.optional" :validity.sync="validity[name]">
    </radio-with-validity>

    <select-with-validity :name="name" v-model="val" v-else-if="uiType === 'select'"
        :choices="opts.choices" :required="!opts.optional" :validity.sync="validity[name]">
    </select-with-validity>

    <div class="checkbox" v-else-if="uiType === 'checkbox'">
      <label>
        <checkbox-with-validity :name="name" v-model="val" :validity.sync="validity[name]">
        </checkbox-with-validity>
        <span v-html="conf.attrs_description[name]"></span>
      </label>
    </div><commit_msg>we do need to handle uiType "siret" differently than phone or frenchPostalCode<commit_after><template>
 <div v-if="opts && (!opts.readonly || val)">

  <DateAttr v-model="val" :label="attr_labels[name]" v-if="uiType === 'date'"
    :opts="opts" :submitted="submitted">
  </DateAttr>

  <DateThreeInputsAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'dateThreeInputs'"
    :minYear="opts.minYear" :maxYear="opts.maxYear" :submitted="submitted">
  </DateThreeInputsAttr>

  <AddressAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'postalAddress'"
    :opts="opts" :submitted="submitted">
  </AddressAttr>

  <jpegPhotoAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'photo'"
     :opts="opts" :submitted="submitted">
  </jpegPhotoAttr>

  <StructureAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'structure'"
     :opts="opts" :submitted="submitted">
  </StructureAttr>

  <PasswordAttr v-model="val" :label="attr_labels[name]" v-else-if="uiType === 'password'"
     :submitted="submitted">
  </PasswordAttr>

  <my-bootstrap-form-group :name="name" :label="attr_labels[name]" :validity="validity" :labels="opts.labels" v-else-if="opts">

    <radio-with-validity :name="name" v-model="val" v-if="uiType === 'radio'"
        :values="choicesMap" :required="!opts.optional" :validity.sync="validity[name]">
    </radio-with-validity>

    <select-with-validity :name="name" v-model="val" v-else-if="uiType === 'select'"
        :choices="opts.choices" :required="!opts.optional" :validity.sync="validity[name]">
    </select-with-validity>

    <div class="checkbox" v-else-if="uiType === 'checkbox'">
      <label>
        <checkbox-with-validity :name="name" v-model="val" :validity.sync="validity[name]">
        </checkbox-with-validity>
        <span v-html="conf.attrs_description[name]"></span>
      </label>
    </div>
{'fraction_non_alphanumeric': 0.21144859813084113, 'fraction_numerical': 0.00023364485981308412, 'mean_word_length': 4.8244897959183675, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 66, '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': '781092', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1477, 'n_words': 216}