<commit_before><?php use_helper('TemplatingPDF'); ?>
<?php use_helper('Lot') ?>
<style>
<?php echo style(); ?>
.bg-white{
  background-color:white;
}

</style>
      <table>
          <tr>
            <td style="width:60%;">
              Code Commission: <?= $degustation->_id ?><br/>
            </td>
            <td style="width:30%;">
              Responsable : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>
            </td>
            <td style="width:2%"><br/>
            </td>
          </tr>

          <tr>
            <td style="width:33%;">
              Date : <?php $date = date_create($degustation->date); echo $date->format("d/m/Y"); ?><br/>
            </td>
            <td style="width:33%;">
              Heure : <?php echo $date->format("H:i"); ?><br/>
            </td>
            <td style="width:33%">
              Lieu : <?php echo $degustation->getLieuNom(); ?> <br/>
            </td>
          </tr>

          <tr>
            <td style="width:33%;">
              Campagne: <?php echo $degustation->campagne; ?><br/>
            </td>
            <td style="width:33%"><br/>
            </td>
          </tr>
          <tr>
            <td style="width:33%;">
              Nombre total de lots : <?php echo count($degustation->getLots());?><br/>
            </td>
            <td style="width:33%"><br/>
            </td>
          </tr>
      </table>

     <?php $affiche = 0; $reste = 0; $i = 6; $table_header = true;  foreach($lots as $operateur => $lots_operateur):  ?>
     <?php $firstDisplay = true; $reste = 0?>
     <?php $nb_lots_par_page = 27; ?>
        <?php foreach ($lots_operateur as $lot): ?>
          <?php if ($i % $nb_lots_par_page == 0 ) : $table_header = true; $firstDisplay = true;?>
       </table>
            <br pagebreak="true" />
            <br/>
          <?php $i = 0; endif; ?>
          <?php if ($table_header): $table_header = false; ?>
            <table border="1px" class="table" cellspacing=0 cellpadding=0 style="text-align: center;">
              <tr style="line-height:20px;">
                 <th rowspan="2" class="bg-white" style="width:10%;"><?php echo tdStart() ?><strong>N° Dossier</strong></th>
                 <th rowspan="2" class="bg-white" style="width:22%; "><?php echo tdStart() ?><strong>Raison Sociale<br>N°CVI</strong></th>
                 <th class="bg-white" colspan="6"style="width:67%;"><?php echo tdStart() ?><strong>Liste des lots</strong> <small>(trié par n° déclarant et n° anonymat)</small></th>
              </tr>
              <tr style="line-height:13px;">
                <th class="bg-white" style="width:7%;"><?php echo tdStart() ?><strong><small>N°Lot ODG</small></strong></th>
                <th class="bg-white" style="width:5%;"><?php echo tdStart() ?><strong><small>N°Anon</small></strong></th>
                <th class="bg-white" style="width:11%;"><?php echo tdStart() ?><strong><small>Cuve</small></strong></th>
                <th class="bg-white" style="width:9%;"><?php echo tdStart() ?><strong><small>Volume</small></strong></th>
                <th class="bg-white" style="width:35%;"><?php echo tdStart() ?><strong><small>Produit millesime cépage</small></strong></th>
              </tr>
          <?php endif; ?>
          <tr>
            <?php if($firstDisplay == true):
              $affiche = count($lots_operateur) - $reste;
              if(($nb_lots_par_page - $i) > 0 && ($nb_lots_par_page - $i) < count($lots_operateur)){
                $reste = ($nb_lots_par_page - $i);
                $affiche = ($nb_lots_par_page - $i);
              }
              ?>
              <td rowspan="<?php echo $affiche; ?>" style="margin-top: 10em; vertical-align: middle;"><small><?php echo ($lot->numero_dossier) ? $lot->numero_dossier : "Leurre" ; ?></small></td>
              <td rowspan="<?php echo $affiche; ?>" style="vertical-align: middle;"><small><?php echo substr($lot->getRawValue()->declarant_nom, 0, 20)."<br>".$lot->declarant_identifiant;?></small></td>
            <?php $firstDisplay= false; endif; ?>
            <td><small><?php echo $lot->numero_archive ?></small></td>
            <td><small><?php echo $lot->numero_anonymat?></small></td>
            <td><small><?php echo $lot->numero_logement_operateur ?></small></td>
            <td style="float:right; text-align:right;"><small><?php echo number_format($lot->volume, 2, ',', ' ') ?>&nbsp;hl </small></td>
            <td style="height:25px;"><small><?php echo showProduitCepagesLot($lot); ?></small></td>
          </tr>
          <?php $i++; ?>
      <?php endforeach; ?>


    <?php endforeach; ?>
  </table>
<commit_msg>Le vrai tri<commit_after><?php use_helper('TemplatingPDF'); ?>
<?php use_helper('Lot') ?>
<style>
<?php echo style(); ?>
.bg-white{
  background-color:white;
}

</style>
      <table>
          <tr>
            <td style="width:60%;">
              Code Commission: <?= $degustation->_id ?><br/>
            </td>
            <td style="width:30%;">
              Responsable : _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _<br/>
            </td>
            <td style="width:2%"><br/>
            </td>
          </tr>

          <tr>
            <td style="width:33%;">
              Date : <?php $date = date_create($degustation->date); echo $date->format("d/m/Y"); ?><br/>
            </td>
            <td style="width:33%;">
              Heure : <?php echo $date->format("H:i"); ?><br/>
            </td>
            <td style="width:33%">
              Lieu : <?php echo $degustation->getLieuNom(); ?> <br/>
            </td>
          </tr>

          <tr>
            <td style="width:33%;">
              Campagne: <?php echo $degustation->campagne; ?><br/>
            </td>
            <td style="width:33%"><br/>
            </td>
          </tr>
          <tr>
            <td style="width:33%;">
              Nombre total de lots : <?php echo count($degustation->getLots());?><br/>
            </td>
            <td style="width:33%"><br/>
            </td>
          </tr>
      </table>

     <?php $affiche = 0; $reste = 0; $i = 6; $table_header = true;  foreach($lots as $operateur => $lots_operateur):  ?>
     <?php $firstDisplay = true; $reste = 0?>
     <?php $nb_lots_par_page = 27; ?>
        <?php foreach ($lots_operateur as $lot): ?>
          <?php if ($i % $nb_lots_par_page == 0 ) : $table_header = true; $firstDisplay = true;?>
       </table>
            <br pagebreak="true" />
            <br/>
          <?php $i = 0; endif; ?>
          <?php if ($table_header): $table_header = false; ?>
            <table border="1px" class="table" cellspacing=0 cellpadding=0 style="text-align: center;">
              <tr style="line-height:20px;">
                 <th rowspan="2" class="bg-white" style="width:10%;"><?php echo tdStart() ?><strong>N° Dossier</strong></th>
                 <th rowspan="2" class="bg-white" style="width:22%; "><?php echo tdStart() ?><strong>Raison Sociale<br>N°CVI</strong></th>
                 <th class="bg-white" colspan="6"style="width:67%;"><?php echo tdStart() ?><strong>Liste des lots</strong> <small>(trié par n° de dossier et n° d'anonymat)</small></th>
              </tr>
              <tr style="line-height:13px;">
                <th class="bg-white" style="width:7%;"><?php echo tdStart() ?><strong><small>N°Lot ODG</small></strong></th>
                <th class="bg-white" style="width:5%;"><?php echo tdStart() ?><strong><small>N°Anon</small></strong></th>
                <th class="bg-white" style="width:11%;"><?php echo tdStart() ?><strong><small>Cuve</small></strong></th>
                <th class="bg-white" style="width:9%;"><?php echo tdStart() ?><strong><small>Volume</small></strong></th>
                <th class="bg-white" style="width:35%;"><?php echo tdStart() ?><strong><small>Produit millesime cépage</small></strong></th>
              </tr>
          <?php endif; ?>
          <tr>
            <?php if($firstDisplay == true):
              $affiche = count($lots_operateur) - $reste;
              if(($nb_lots_par_page - $i) > 0 && ($nb_lots_par_page - $i) < count($lots_operateur)){
                $reste = ($nb_lots_par_page - $i);
                $affiche = ($nb_lots_par_page - $i);
              }
              ?>
              <td rowspan="<?php echo $affiche; ?>" style="margin-top: 10em; vertical-align: middle;"><small><?php echo ($lot->numero_dossier) ? $lot->numero_dossier : "Leurre" ; ?></small></td>
              <td rowspan="<?php echo $affiche; ?>" style="vertical-align: middle;"><small><?php echo substr($lot->getRawValue()->declarant_nom, 0, 20)."<br>".$lot->declarant_identifiant;?></small></td>
            <?php $firstDisplay= false; endif; ?>
            <td><small><?php echo $lot->numero_archive ?></small></td>
            <td><small><?php echo $lot->numero_anonymat?></small></td>
            <td><small><?php echo $lot->numero_logement_operateur ?></small></td>
            <td style="float:right; text-align:right;"><small><?php echo number_format($lot->volume, 2, ',', ' ') ?>&nbsp;hl </small></td>
            <td style="height:25px;"><small><?php echo showProduitCepagesLot($lot); ?></small></td>
          </tr>
          <?php $i++; ?>
      <?php endforeach; ?>


    <?php endforeach; ?>
  </table>

{'fraction_non_alphanumeric': 0.2097382311752666, 'fraction_numerical': 0.012711407950016159, 'mean_word_length': 2.1686006825938566, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 371, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5457586', 'n_tokens_mistral': 3111, 'n_tokens_neox': 3040, 'n_words': 587}