<commit_before><div>

  <ol class="breadcrumb">
    <li class="active">Derniers tirs de tests</li>
  </ol>

  <h1>Derniers tirs de tests</h1>

  <hr>

  <div class="btn-toolbar" role="toolbar">
    <div class="btn-group" role="group">

      <button type="button" class="btn btn-default" ng-click="ctrl.openCreateForm()">
        <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
        Créer un tir de tests
      </button>

    </div>
  </div>

  <hr>

  <table class="table table-striped table-bordered">
    <thead>
    <tr>
      <th class="col-md-1">Type</th>
      <th class="col-md-5">Tir de test</th>
      <th class="col-md-1">Total</th>
      <th class="col-md-1">Succès</th>
      <th class="col-md-1">Échecs</th>
      <th class="col-md-1">En attente</th>
      <th class="col-md-1">Non joués</th>
      <th class="col-md-1">Analysés</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="testRun in ctrl.latestTestRuns track by testRun.id">
      <td>
        <span class="label label-default">{{ testRun.type }}</span>
      </td>
      <td>
        <a ng-href="#/test-runs/{{ testRun.id }}">Tir du {{ testRun.date | niceDate }}</a>
      </td>
      <td><span class="badge">{{ testRun.stats.count }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['PASSED'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['FAILED'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['PENDING'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['NOT_RUN'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.reviewedCount }}</span></td>
    </tr>
    </tbody>
  </table>

  <!-- Create test run modal window -->
  <script type="text/ng-template" id="createTestRunForm.html">
    <form>
      <div class="modal-header">
        <button type="button" class="close" ng-click="$dismiss()" aria-label="Fermer">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Créer un nouveau tir de tests</h4>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <label for="type">Type</label>
          <input type="text" class="form-control" id="type" ng-model="createCtrl.testRun.type" autofocus>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" ng-click="$dismiss()">Annuler</button>
        <button type="submit" class="btn btn-primary" ng-click="createCtrl.create()">Créer</button>
      </div>
    </form>
  </script>

</div><commit_msg>Validate test run creation<commit_after><div>

  <ol class="breadcrumb">
    <li class="active">Derniers tirs de tests</li>
  </ol>

  <h1>Derniers tirs de tests</h1>

  <hr>

  <div class="btn-toolbar" role="toolbar">
    <div class="btn-group" role="group">

      <button type="button" class="btn btn-default" ng-click="ctrl.openCreateForm()">
        <span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span>
        Créer un tir de tests
      </button>

    </div>
  </div>

  <hr>

  <table class="table table-striped table-bordered">
    <thead>
    <tr>
      <th class="col-md-1">Type</th>
      <th class="col-md-5">Tir de test</th>
      <th class="col-md-1">Total</th>
      <th class="col-md-1">Succès</th>
      <th class="col-md-1">Échecs</th>
      <th class="col-md-1">En attente</th>
      <th class="col-md-1">Non joués</th>
      <th class="col-md-1">Analysés</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="testRun in ctrl.latestTestRuns track by testRun.id">
      <td>
        <span class="label label-default">{{ testRun.type }}</span>
      </td>
      <td>
        <a ng-href="#/test-runs/{{ testRun.id }}">Tir du {{ testRun.date | niceDate }}</a>
      </td>
      <td><span class="badge">{{ testRun.stats.count }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['PASSED'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['FAILED'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['PENDING'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.statsByStatus['NOT_RUN'] }}</span></td>
      <td><span class="badge">{{ testRun.stats.reviewedCount }}</span></td>
    </tr>
    </tbody>
  </table>

  <!-- Create test run modal window -->
  <script type="text/ng-template" id="createTestRunForm.html">
    <form name="createForm" ng-submit="createForm.$valid && createCtrl.create()" novalidate>

      <div class="modal-header">
        <button type="button" class="close" ng-click="$dismiss()" aria-label="Fermer">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Créer un nouveau tir de tests</h4>
      </div>

      <div class="modal-body">

        <div class="form-group" ng-class="createForm.type.$invalid && createForm.type.$dirty && 'has-error'">
          <label for="type">Type</label>
          <input name="type" type="text" class="form-control" id="type" ng-model="createCtrl.testRun.type" required
                 autofocus>
        </div>

      </div>

      <div class="modal-footer">
        <button type="button" class="btn btn-default" ng-click="$dismiss()">Annuler</button>
        <button type="submit" class="btn btn-primary" ng-disabled="createForm.$invalid">Créer</button>
      </div>

    </form>
  </script>

</div>
{'fraction_non_alphanumeric': 0.20873875527813476, 'fraction_numerical': 0.004406095098219203, 'mean_word_length': 2.982456140350877, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 207, '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': '4881169', 'n_tokens_mistral': 1937, 'n_tokens_neox': 1890, 'n_words': 361}