<commit_before><div>

  <ol class="breadcrumb">
    <li>Type {{ ctrl.baseTestRun.type }}</li>
    <li>
      <a ng-href="#/test-runs/{{ ctrl.baseTestRun.id }}">
        Tir du {{ ctrl.baseTestRun.date | niceDate }}
      </a>
    </li>
    <li class="active">Comparaison</li>
  </ol>

  <h1>Comparaison contre le tir du {{ ctrl.baseTestRun.date | niceDate }}</h1>

  <p ng-if="ctrl.isOtherTestRunSelected()">
    Comparaison entre les tirs du
    <b>
      <a ng-href="#/test-runs/{{ ctrl.diff.leftTestRun.id }}">{{ ctrl.diff.leftTestRun.date | niceDate }}</a>
    </b>
    et du
    <b>
      <a ng-href="#/test-runs/{{ ctrl.baseTestRun.id }}">{{ ctrl.baseTestRun.date | niceDate }}</a>
    </b>
  </p>

  <!-- Select a test run -->

  <hr>

  <div ng-if="!ctrl.isOtherTestRunSelected()">

    <h2>Sélectionner un autre tir</h2>

    <div class="form" style="margin-bottom: 10px">
      <div class="form-group">
        <b>Filtrer :</b>
        <label class="checkbox-inline">
          <input type="checkbox" ng-model="ctrl.historyFilters.sameTestRun" ng-change="ctrl.updateHistoryStoredFilters()">
          Même type de tir
        </label>
      </div>
    </div>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-1">Type</th>
        <th class="col-md-11">Tir de test</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="testRun in ctrl.latestTestRuns | filter:ctrl.isTestRunDisplayable track by testRun.id">
        <td>
          <span class="label label-default">{{ testRun.type }}</span>
        </td>
        <td ng-switch on="ctrl.isBaseTestRun(testRun)">
          <a href ng-switch-when="false" ng-click="ctrl.selectOtherTestRun(testRun.id)">Tir du {{ testRun.date | niceDate }}</a>
          <i ng-switch-default>Tir du {{ testRun.date | niceDate }}</i>
        </td>
      </tr>
      </tbody>
    </table>

  </div>

  <!-- Show diff with selected test run -->

  <div ng-if="ctrl.isOtherTestRunSelected()">

    <h2>Différences constatées</h2>

    <h3>Nouveaux scénarii</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-11">Scénario</th>
        <th class="col-md-1">Statut</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenario in ctrl.diff.newScenarii track by scenario.id">
        <td>
          <a ng-href="#/scenarii/{{ scenario.id }}">
            <tc-element-info info="scenario.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenario.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.newScenarii.length === 0">
      <tr>
        <td class="warning" colspan="2" style="text-align: center">
          Aucun nouveau scénario
        </td>
      </tr>
      </tfoot>
    </table>

    <h3>Scénarii supprimés</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-11">Scénario</th>
        <th class="col-md-1">Statut</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenario in ctrl.diff.deletedScenarii track by scenario.id">
        <td>
          <a ng-href="#/scenarii/{{ scenario.id }}">
            <tc-element-info info="scenario.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenario.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.deletedScenarii.length === 0">
      <tr>
        <td class="warning" colspan="2" style="text-align: center">
          Aucun scénario supprimé
        </td>
      </tr>
      </tfoot>
    </table>

    <h3>Scénarii dont le statut a changé</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-10">Scénario</th>
        <th class="col-md-1">Ancien&nbsp;statut</th>
        <th class="col-md-1">Nouveau&nbsp;statut</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenarioDiff in ctrl.diff.differentScenarii">
        <td>
          <a ng-href="#/scenarii/{{ scenarioDiff.right.id }}">
            <tc-element-info info="scenarioDiff.right.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenarioDiff.left.status"></tc-status>
        </td>
        <td>
          <tc-status status="scenarioDiff.right.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.differentScenarii.length === 0">
      <tr><commit_msg>Bettter names in UI diff<commit_after><div>

  <ol class="breadcrumb">
    <li>Type {{ ctrl.baseTestRun.type }}</li>
    <li>
      <a ng-href="#/test-runs/{{ ctrl.baseTestRun.id }}">
        Tir du {{ ctrl.baseTestRun.date | niceDate }}
      </a>
    </li>
    <li class="active">Comparaison</li>
  </ol>

  <h1>Comparaison contre le tir du {{ ctrl.baseTestRun.date | niceDate }}</h1>

  <p ng-if="ctrl.isOtherTestRunSelected()">
    Comparaison entre les tirs du
    <b>
      <a ng-href="#/test-runs/{{ ctrl.diff.leftTestRun.id }}">{{ ctrl.diff.leftTestRun.date | niceDate }}</a>
    </b>
    et du
    <b>
      <a ng-href="#/test-runs/{{ ctrl.baseTestRun.id }}">{{ ctrl.baseTestRun.date | niceDate }}</a>
    </b>
  </p>

  <!-- Select a test run -->

  <hr>

  <div ng-if="!ctrl.isOtherTestRunSelected()">

    <h2>Sélectionner un autre tir</h2>

    <div class="form" style="margin-bottom: 10px">
      <div class="form-group">
        <b>Filtrer :</b>
        <label class="checkbox-inline">
          <input type="checkbox" ng-model="ctrl.historyFilters.sameTestRun" ng-change="ctrl.updateHistoryStoredFilters()">
          Même type de tir
        </label>
      </div>
    </div>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-1">Type</th>
        <th class="col-md-11">Tir de test</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="testRun in ctrl.latestTestRuns | filter:ctrl.isTestRunDisplayable track by testRun.id">
        <td>
          <span class="label label-default">{{ testRun.type }}</span>
        </td>
        <td ng-switch on="ctrl.isBaseTestRun(testRun)">
          <a href ng-switch-when="false" ng-click="ctrl.selectOtherTestRun(testRun.id)">Tir du {{ testRun.date | niceDate }}</a>
          <i ng-switch-default>Tir du {{ testRun.date | niceDate }}</i>
        </td>
      </tr>
      </tbody>
    </table>

  </div>

  <!-- Show diff with selected test run -->

  <div ng-if="ctrl.isOtherTestRunSelected()">

    <h2>Différences constatées</h2>

    <h3>Scénarii ajoutés</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-11">Scénario</th>
        <th class="col-md-1">Statut</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenario in ctrl.diff.newScenarii track by scenario.id">
        <td>
          <a ng-href="#/scenarii/{{ scenario.id }}">
            <tc-element-info info="scenario.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenario.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.newScenarii.length === 0">
      <tr>
        <td class="warning" colspan="2" style="text-align: center">
          Aucun scénario ajouté
        </td>
      </tr>
      </tfoot>
    </table>

    <h3>Scénarii supprimés</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-11">Scénario</th>
        <th class="col-md-1">Statut</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenario in ctrl.diff.deletedScenarii track by scenario.id">
        <td>
          <a ng-href="#/scenarii/{{ scenario.id }}">
            <tc-element-info info="scenario.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenario.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.deletedScenarii.length === 0">
      <tr>
        <td class="warning" colspan="2" style="text-align: center">
          Aucun scénario supprimé
        </td>
      </tr>
      </tfoot>
    </table>

    <h3>Scénarii dont le statut a changé</h3>

    <table class="table table-striped table-bordered">
      <thead>
      <tr>
        <th class="col-md-10">Scénario</th>
        <th class="col-md-1">Statut&nbsp;précédent</th>
        <th class="col-md-1">Statut&nbsp;suivant</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="scenarioDiff in ctrl.diff.differentScenarii">
        <td>
          <a ng-href="#/scenarii/{{ scenarioDiff.right.id }}">
            <tc-element-info info="scenarioDiff.right.info"></tc-element-info>
          </a>
        </td>
        <td>
          <tc-status status="scenarioDiff.left.status"></tc-status>
        </td>
        <td>
          <tc-status status="scenarioDiff.right.status"></tc-status>
        </td>
      </tr>
      </tbody>
      <tfoot ng-if="ctrl.diff.differentScenarii.length === 0">
      <tr>
{'fraction_non_alphanumeric': 0.18345402677199912, 'fraction_numerical': 0.007022163704191354, 'mean_word_length': 2.0866915001693194, 'pattern_counts': {'":': 0, '<': 329, '<?xml version=': 0, '>': 329, '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': '6194050', 'n_tokens_mistral': 3329, 'n_tokens_neox': 3247, 'n_words': 599}