<commit_before><ul id="content_element_source_list">
[?php foreach($allRecords as $model => $records): ?]
  <li>
    <strong>[?php echo $model; ?]</strong>
    <ol class="contents [?php echo $model; ?]">
[?php foreach($records as $i => $record): ?]
      <li class="[?php echo $i%2 ? 'even' : 'odd' ?]">
        <em>[?php echo $record; ?]</em>
        <input type="hidden" id="gj_page_designElements_%de%_Contents_%ce%_id" value="" name="gj_page[designElements][%de%][Contents][%ce%][id]" />
        <input type="hidden" id="gj_page_designElements_%de%_Contents_%ce%_position" value="%POSITION%" name="gj_page[designElements][%de%][Contents][%ce%][position]" />
        <input type="hidden" id="gj_page_designElements_%de%_Contents_%ce%_obj_type" value="[?php echo get_class($record); ?>" name="gj_page[designElements][%de%][Contents][%ce%][obj_type]" />
        <input type="hidden" id="gj_page_designElements_%de%_Contents_%ce%_obj_pk" value="[?php echo $record->id; ?>" name="gj_page[designElements][%de%][Contents][%ce%][obj_pk]" />
      </li>
[?php endforeach; ?]
    </ol>
  </li>
[?php endforeach; ?]
</ul><commit_msg>* corrected form structure and made it independant from specific models<commit_after><ul id="content_element_source_list">
[?php foreach($allRecords as $model => $records): ?]
  <li>
    <strong>[?php echo $model; ?]</strong>
    <ol class="contents [?php echo $model; ?]">
[?php foreach($records as $i => $record): ?]
      <li class="[?php echo $i%2 ? 'even' : 'odd' ?]">
        <em>[?php echo $record; ?]</em>
        <input type="hidden" id="<?php echo $this->getSingularName(); ?>_design_elements_x_contents_x_id" value="" name="<?php echo $this->getSingularName(); ?>[design_elements][x][contents][x][id]" />
        <input type="hidden" id="<?php echo $this->getSingularName(); ?>_design_elements_x_contents_x_position" value="0" name="<?php echo $this->getSingularName(); ?>[design_elements][x][contents][x][position]" />
        <input type="hidden" id="<?php echo $this->getSingularName(); ?>_design_elements_x_contents_x_obj_type" value="[?php echo $model; ?>" name="<?php echo $this->getSingularName(); ?>[design_elements][x][contents][x][obj_type]" />
        <input type="hidden" id="<?php echo $this->getSingularName(); ?>_design_elements_x_contents_x_obj_pk" value="[?php echo $record->id; ?>" name="<?php echo $this->getSingularName(); ?>[design_elements][x][contents][x][obj_pk]" />
      </li>
[?php endforeach; ?]
    </ol>
  </li>
[?php endforeach; ?]
</ul>
{'fraction_non_alphanumeric': 0.22235528942115768, 'fraction_numerical': 0.0011976047904191617, 'mean_word_length': 5.9805013927576605, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 61, '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': '5532032', 'n_tokens_mistral': 897, 'n_tokens_neox': 891, 'n_words': 161}