<commit_before><ion-header>
  <ion-navbar>
    <ion-title>
      Envoyer les données
    </ion-title>
  </ion-navbar>
</ion-header>



<ion-content padding>

  <ion-card>
    <ion-card-header>
      Nombre d'éléments restant : {{summary.Total}}
    </ion-card-header>
    <ion-card-content>
      <table style="width:100%">
        <tr>
          <th>Création</th>
          <th>Modification</th>
          <th>Suppression</th>
        </tr>
        <tr>
          <td>{{summary.Create}}</td>
          <td>{{summary.Update}}</td>
          <td>{{summary.Delete}}</td>
        </tr>
      </table>
    </ion-card-content>
  </ion-card>






  <ion-card>
       <ion-card-header>
      Commentaire du changeset
    </ion-card-header>
     <ion-card-content>
    <ion-item>
      <ion-input [(ngModel)]="commentChangeset" type="text"></ion-input>
    </ion-item>
     </ion-card-content>
  </ion-card>




  <table style="width:100%">
    <tr>
      <th style="width: 45px;">Type</th>
      <th>Clé principale</th>
      <th>Nom</th>
      <th style="width: 45px;"><ion-icon name="locate"></ion-icon></th>
      <th style="width: 45px;">Erreur</th>
      
    </tr>
    <tr *ngFor="let item of featuresChanges">
      <td>
        <ion-icon *ngIf="item.properties.changeType == 'Create'" name="add"></ion-icon>
        <ion-icon *ngIf="item.properties.changeType == 'Update'" name="create"></ion-icon>
        <ion-icon *ngIf="item.properties.changeType == 'Delete'" name="trash"></ion-icon>

      </td>
      <td>{{item.properties?.primaryTag.k}}: {{item.properties?.primaryTag.v}}</td>
      <td>{{item?.properties?.tags?.name}}</td>
        <td (click)="centerToElement(item.geometry.coordinates)"> <ion-icon name="locate"></ion-icon>  </td>
      <td>
        <div *ngIf="item.error" (click)="displayError(item.error)">
          <ion-icon name="bug"></ion-icon>
        </div>
      </td>
    
    </tr>
  </table>

  <!--[disabled]="summary.Total === 0 || isPushing"-->


</ion-content>

<ion-footer>
  <button [disabled]="summary.Total === 0 || isPushing" ion-button block color="danger" (click)="presentConfirm()">Supprimer les modifications</button>
  <button [disabled]="summary.Total === 0 || isPushing" ion-button block (click)="pushDataToOsm(commentChangeset)">Enoyer les données!</button>
</ion-footer><commit_msg>Envoyer != Enoyer<commit_after><ion-header>
  <ion-navbar>
    <ion-title>
      Envoyer les données
    </ion-title>
  </ion-navbar>
</ion-header>



<ion-content padding>

  <ion-card>
    <ion-card-header>
      Nombre d'éléments restant : {{summary.Total}}
    </ion-card-header>
    <ion-card-content>
      <table style="width:100%">
        <tr>
          <th>Création</th>
          <th>Modification</th>
          <th>Suppression</th>
        </tr>
        <tr>
          <td>{{summary.Create}}</td>
          <td>{{summary.Update}}</td>
          <td>{{summary.Delete}}</td>
        </tr>
      </table>
    </ion-card-content>
  </ion-card>






  <ion-card>
       <ion-card-header>
      Commentaire du changeset
    </ion-card-header>
     <ion-card-content>
    <ion-item>
      <ion-input [(ngModel)]="commentChangeset" type="text"></ion-input>
    </ion-item>
     </ion-card-content>
  </ion-card>




  <table style="width:100%">
    <tr>
      <th style="width: 45px;">Type</th>
      <th>Clé principale</th>
      <th>Nom</th>
      <th style="width: 45px;"><ion-icon name="locate"></ion-icon></th>
      <th style="width: 45px;">Erreur</th>
      
    </tr>
    <tr *ngFor="let item of featuresChanges">
      <td>
        <ion-icon *ngIf="item.properties.changeType == 'Create'" name="add"></ion-icon>
        <ion-icon *ngIf="item.properties.changeType == 'Update'" name="create"></ion-icon>
        <ion-icon *ngIf="item.properties.changeType == 'Delete'" name="trash"></ion-icon>

      </td>
      <td>{{item.properties?.primaryTag.k}}: {{item.properties?.primaryTag.v}}</td>
      <td>{{item?.properties?.tags?.name}}</td>
        <td (click)="centerToElement(item.geometry.coordinates)"> <ion-icon name="locate"></ion-icon>  </td>
      <td>
        <div *ngIf="item.error" (click)="displayError(item.error)">
          <ion-icon name="bug"></ion-icon>
        </div>
      </td>
    
    </tr>
  </table>

  <!--[disabled]="summary.Total === 0 || isPushing"-->


</ion-content>

<ion-footer>
  <button [disabled]="summary.Total === 0 || isPushing" ion-button block color="danger" (click)="presentConfirm()">Supprimer les modifications</button>
  <button [disabled]="summary.Total === 0 || isPushing" ion-button block (click)="pushDataToOsm(commentChangeset)">Envoyer les données!</button>
</ion-footer>
{'fraction_non_alphanumeric': 0.20939712508045483, 'fraction_numerical': 0.0064363870414074235, 'mean_word_length': 2.673758865248227, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, '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': '7139114', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1603, 'n_words': 254}