<commit_before><template>
  <div>

    <div class="row">
      <div class="col-xs-12">
        <div class="box">
          <div class="box-header">
            <h3 class="box-title">Audit Log</h3>
          </div>
          <!-- /.box-header -->
          <div class="overlay" v-if="loading">
            <i class="fa fa-refresh fa-spin"></i>
          </div>
          <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
              <thead>
                <tr>
                  <th>Version</th>
                  <th>Who</th>
                  <th>When</th>
                  <th>Apply Revisions</th>
                  <th>Apply Status</th>
                  <th>Last Apply Run</th>
                  <th>Action</th>
                </tr>
              </thead>
              <tbody>
                <tr v-if="error">
                  <td><span class="label label-danger center">Error</span> <i class="text-red">{{ error }}</i></td>
                </tr>
                <tr v-for="p in policies">
                  <td>{{ p['metadata']['generation'] }}</td>
                  <td>{{ p['metadata']['updatedby'] }}</td>
                  <td>{{ p['metadata']['updatedat'] | formatDateAgo }} <small>({{ p['metadata']['updatedat'] | formatDate }})</small></td>
                  <td class="col-xs-4">
                    <span v-if="Object.keys(p['revisions']).length <= 0" class="label label-warning">N/A</span>
                    <span v-for="r in p['revisions']" class="label" v-bind:class="{ 'label-success': r['status'] === 'success', 'label-primary': r['status'] === 'inprogress', 'label-danger': r['status'] === 'error' }" style="float:left; margin-right: 2px; margin-bottom: 2px">{{ r.metadata.generation }}</span>
                  </td>
                  <td class="align-middle">
                    <div v-for="r, index in p['revisions']" v-if="index === p['revisions'].length - 1" class="progress-group">
                      <div v-if="r['status'] === 'inprogress'" class="progress progress-xs progress-striped active">
                        <div class="progress-bar progress-bar-primary" v-bind:style="{ width: percent(r) + '%' }"></div>
                      </div>
                      <div v-if="r['status'] === 'success'" class="progress progress-xs active">
                        <div class="progress-bar progress-bar-success" style="width: 100%"></div>
                      </div>
                      <div v-if="r['status'] === 'error'" class="progress progress-xs active">
                        <div class="progress-bar progress-bar-danger" style="width: 100%"></div>
                      </div>
                      <span class="progress-number"><b>{{ percent(r) }}%</b> ({{r['progress']['current']}}/{{r['progress']['total']}})</span>
                    </div>
                  </td>
                  <td v-if="p['revisions'].length <= 0">
                    <div>never</div>
                  </td>
                  <td v-for="r, index in p['revisions']" v-if="index === p['revisions'].length - 1">
                    <div v-if="r['status'] !== 'inprogress'">{{ r['appliedat'] | formatDateAgo }}</div>
                  </td>
                  <td>
                    <div class="btn-group btn-group-xs" style="position: absolute">
                      <button type="button" class="btn btn-default btn-flat">Action</button><commit_msg>fix for the "action" button on small displays<commit_after><template>
  <div>

    <div class="row">
      <div class="col-xs-12">
        <div class="box">
          <div class="box-header">
            <h3 class="box-title">Audit Log</h3>
          </div>
          <!-- /.box-header -->
          <div class="overlay" v-if="loading">
            <i class="fa fa-refresh fa-spin"></i>
          </div>
          <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
              <thead>
                <tr>
                  <th>Version</th>
                  <th>Who</th>
                  <th>When</th>
                  <th>Apply Revisions</th>
                  <th>Apply Status</th>
                  <th>Last Apply Run</th>
                  <th>Action</th>
                </tr>
              </thead>
              <tbody>
                <tr v-if="error">
                  <td><span class="label label-danger center">Error</span> <i class="text-red">{{ error }}</i></td>
                </tr>
                <tr v-for="p in policies">
                  <td>{{ p['metadata']['generation'] }}</td>
                  <td>{{ p['metadata']['updatedby'] }}</td>
                  <td>{{ p['metadata']['updatedat'] | formatDateAgo }} <small>({{ p['metadata']['updatedat'] | formatDate }})</small></td>
                  <td class="col-xs-4">
                    <span v-if="Object.keys(p['revisions']).length <= 0" class="label label-warning">N/A</span>
                    <span v-for="r in p['revisions']" class="label" v-bind:class="{ 'label-success': r['status'] === 'success', 'label-primary': r['status'] === 'inprogress', 'label-danger': r['status'] === 'error' }" style="float:left; margin-right: 2px; margin-bottom: 2px">{{ r.metadata.generation }}</span>
                  </td>
                  <td class="align-middle">
                    <div v-for="r, index in p['revisions']" v-if="index === p['revisions'].length - 1" class="progress-group">
                      <div v-if="r['status'] === 'inprogress'" class="progress progress-xs progress-striped active">
                        <div class="progress-bar progress-bar-primary" v-bind:style="{ width: percent(r) + '%' }"></div>
                      </div>
                      <div v-if="r['status'] === 'success'" class="progress progress-xs active">
                        <div class="progress-bar progress-bar-success" style="width: 100%"></div>
                      </div>
                      <div v-if="r['status'] === 'error'" class="progress progress-xs active">
                        <div class="progress-bar progress-bar-danger" style="width: 100%"></div>
                      </div>
                      <span class="progress-number"><b>{{ percent(r) }}%</b> ({{r['progress']['current']}}/{{r['progress']['total']}})</span>
                    </div>
                  </td>
                  <td v-if="p['revisions'].length <= 0">
                    <div>never</div>
                  </td>
                  <td v-for="r, index in p['revisions']" v-if="index === p['revisions'].length - 1">
                    <div v-if="r['status'] !== 'inprogress'">{{ r['appliedat'] | formatDateAgo }}</div>
                  </td>
                  <td class="col-xs-1">
                    <div class="btn-group btn-group-xs" style="position: absolute">
                      <button type="button" class="btn btn-default btn-flat">Action</button>
{'fraction_non_alphanumeric': 0.19698943407150094, 'fraction_numerical': 0.005065856129685917, 'mean_word_length': 1.6184160666919287, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 183, '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': '1675769', 'n_tokens_mistral': 2068, 'n_tokens_neox': 1903, 'n_words': 391}