<commit_before><div class="row">
  <div class="col-md-12">
    <h2 class="featurette-heading">Certificates
      <span class="text-muted"><small>Cipher text says what?</small></span></h2>
    <div class="panel panel-default">
      <div class="panel-heading">
        <div class="btn-group pull-right">
          <a data-placement="left" data-title="Create Certificate" bs-tooltip href="#/certificates/create"
             class="btn btn-primary">
            Create
          </a>
          <a data-placement="left" data-title="Upload Certificate" bs-tooltip href="#/certificates/upload"
             class="btn btn-info">
            Upload
          </a>
        </div>
        <div class="btn-group">
          <button ng-click="toggleFilter(certificateTable)" class="btn btn-default">Filter</button>
        </div>
        <!--<select class="form-control" ng-model="show" ng-options="item.value as item.title for item in fields"></select>-->
        <div class="clearfix"></div>
      </div>
      <div class="table-responsive">
        <table ng-table="certificateTable" class="table" show-filter="false" template-pagination="angular/pager.html">
          <tbody>
          <tr ng-class="{'even-row': $even }" ng-repeat-start="certificate in $data track by $index">
            <td data-title="'Name'" sortable="'name'" filter="{ 'name': 'text' }">
              <ul class="list-unstyled">
                <li>{{ certificate.name }}</li>
                <li><span class="text-muted">{{ certificate.owner }}</span></li>
              </ul>
            </td>
            <td data-title="'Accounts'" filter="{ 'account': 'select' }" filter-date="getAccountDropDown()">
              <div class="btn-group">
                <a href="#/accounts/{{ account.id }}/edit" class="btn btn-sm btn-default" ng-repeat="account in certificate.accounts">{{ account.label }}</a>
              </div>
            </td>
            <td data-title="'Active'" filter="{ 'active': 'select' }" filter-data="getCertificateStatus()">
              <form>
                <switch ng-change="certificateService.updateActive(certificate)" id="status" name="status" ng-model="certificate.active" class="green small"></switch>
              </form>
            </td>
            <td data-title="'Issuer'" sortable="'issuer'" filter="{ 'issuer': 'text' }">
              {{ certificate.authority.name || certificate.issuer }}
            </td>
            <td data-title="'Common Name'" filter="{ 'cn': 'text'}">
              {{ certificate.cn }}
            </td>
            <td data-title="''">
              <div class="btn-group-vertical pull-right">
                <button ng-model="certificate.toggle" class="btn btn-sm btn-info" btn-checkbox btn-checkbox-true="1" butn-checkbox-false="0">View</button>
              </div>
            </td>
          </tr>
          <tr class="warning" ng-show="certificate.toggle" ng-repeat-end>
            <td colspan="5">
              <div class="col-md-6">
                <ul class="list-group">
                  <li class="list-group-item">
                    <strong>Creator</strong>
                    <span class="pull-right">
                      {{ certificate.creator.email }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Not Before</strong>
                    <span class="pull-right" tooltip="{{ certificate.notBefore }}">
                      {{ momentService.createMoment(certificate.notBefore) }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Not After</strong>
                    <span class="pull-right" tooltip="{{ certificate.notAfter }}">
                      {{ momentService.createMoment(certificate.notAfter) }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>San</strong>
                    <span class="pull-right">
                        <i class="glyphicon glyphicon-ok" ng-show="certificate.san == 'true'"></i>
                        <i class="glyphicon glyphicon-remove" ng-show="certificate.san == 'false'"></i>
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Bits</strong>
                    <span class="pull-right">{{ certificate.bits }}</span>
                  </li>
                  <li class="list-group-item">
                    <strong>Serial</strong>
                    <span class="pull-right">{{ certificate.serial }}</span>
                  </li>
                  <li tooltip="Lemur will attempt to check a certificates validity, this is used to track whether a certificate as been revoked" class="list-group-item">
                    <strong>Validity</strong>
                    <span class="pull-right">
                      <span ng-show="!certificate.status" class="label label-warning">Unknown</span>
                      <span ng-show="certificate.status == 'revoked'" class="label label-danger">Revoked</span>
                      <span ng-show="certificate.status == 'valid'" class="label label-success">Valid</span>
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Description</strong>
                    <span class="pull-right">{{ certificate.description }}</span>
                  </li>
                </ul>
                <h4>Domains</h4>
                <div class="list-group">
                  <a href="#/domains/{{ domain.id }}" class="list-group-item" ng-repeat="domain in certificate.domains">{{ domain.name }}</a>
                </div>
                <h4 ng-show="certificate.accounts.total">ARNs</h4>
                <ul class="list-group">
                  <li class="list-group-item" ng-repeat="arn in certificate.arns">{{ arn }}</li>
                </ul>
              </div>
              <tabset justified="true" class="col-md-6">
                <tab heading="Chain">
                  <p>
                    <pre style="width: 550px">{{ certificate.chain }}</pre>
                  </p>
                </tab>
                <tab heading="Public Certificate">
                  <p>
                    <pre style="width: 550px">{{ certificate.body }}</pre>
                  </p>
                </tab>
                <tab ng-click="certificateService.loadPrivateKey(certificate)">
                  <tab-heading>
                    Private Key
                  </tab-heading>
                  <p>
                    <pre style="width: 550px">{{ certificate.privateKey }}</pre>
                  </p>
                </tab>
              </tabset>
            </td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</div>
<commit_msg>Simplifiying SAN identification.<commit_after><div class="row">
  <div class="col-md-12">
    <h2 class="featurette-heading">Certificates
      <span class="text-muted"><small>Cipher text says what?</small></span></h2>
    <div class="panel panel-default">
      <div class="panel-heading">
        <div class="btn-group pull-right">
          <a data-placement="left" data-title="Create Certificate" bs-tooltip href="#/certificates/create"
             class="btn btn-primary">
            Create
          </a>
          <a data-placement="left" data-title="Upload Certificate" bs-tooltip href="#/certificates/upload"
             class="btn btn-info">
            Upload
          </a>
        </div>
        <div class="btn-group">
          <button ng-click="toggleFilter(certificateTable)" class="btn btn-default">Filter</button>
        </div>
        <!--<select class="form-control" ng-model="show" ng-options="item.value as item.title for item in fields"></select>-->
        <div class="clearfix"></div>
      </div>
      <div class="table-responsive">
        <table ng-table="certificateTable" class="table" show-filter="false" template-pagination="angular/pager.html">
          <tbody>
          <tr ng-class="{'even-row': $even }" ng-repeat-start="certificate in $data track by $index">
            <td data-title="'Name'" sortable="'name'" filter="{ 'name': 'text' }">
              <ul class="list-unstyled">
                <li>{{ certificate.name }}</li>
                <li><span class="text-muted">{{ certificate.owner }}</span></li>
              </ul>
            </td>
            <td data-title="'Accounts'" filter="{ 'account': 'select' }" filter-date="getAccountDropDown()">
              <div class="btn-group">
                <a href="#/accounts/{{ account.id }}/edit" class="btn btn-sm btn-default" ng-repeat="account in certificate.accounts">{{ account.label }}</a>
              </div>
            </td>
            <td data-title="'Active'" filter="{ 'active': 'select' }" filter-data="getCertificateStatus()">
              <form>
                <switch ng-change="certificateService.updateActive(certificate)" id="status" name="status" ng-model="certificate.active" class="green small"></switch>
              </form>
            </td>
            <td data-title="'Issuer'" sortable="'issuer'" filter="{ 'issuer': 'text' }">
              {{ certificate.authority.name || certificate.issuer }}
            </td>
            <td data-title="'Common Name'" filter="{ 'cn': 'text'}">
              {{ certificate.cn }}
            </td>
            <td data-title="''">
              <div class="btn-group-vertical pull-right">
                <button ng-model="certificate.toggle" class="btn btn-sm btn-info" btn-checkbox btn-checkbox-true="1" butn-checkbox-false="0">View</button>
              </div>
            </td>
          </tr>
          <tr class="warning" ng-show="certificate.toggle" ng-repeat-end>
            <td colspan="5">
              <div class="col-md-6">
                <ul class="list-group">
                  <li class="list-group-item">
                    <strong>Creator</strong>
                    <span class="pull-right">
                      {{ certificate.creator.email }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Not Before</strong>
                    <span class="pull-right" tooltip="{{ certificate.notBefore }}">
                      {{ momentService.createMoment(certificate.notBefore) }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Not After</strong>
                    <span class="pull-right" tooltip="{{ certificate.notAfter }}">
                      {{ momentService.createMoment(certificate.notAfter) }}
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>San</strong>
                    <span class="pull-right">
                        <i class="glyphicon glyphicon-ok" ng-show="certificate.san"></i>
                        <i class="glyphicon glyphicon-remove" ng-show="!certificate.san"></i>
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Bits</strong>
                    <span class="pull-right">{{ certificate.bits }}</span>
                  </li>
                  <li class="list-group-item">
                    <strong>Serial</strong>
                    <span class="pull-right">{{ certificate.serial }}</span>
                  </li>
                  <li tooltip="Lemur will attempt to check a certificates validity, this is used to track whether a certificate as been revoked" class="list-group-item">
                    <strong>Validity</strong>
                    <span class="pull-right">
                      <span ng-show="!certificate.status" class="label label-warning">Unknown</span>
                      <span ng-show="certificate.status == 'revoked'" class="label label-danger">Revoked</span>
                      <span ng-show="certificate.status == 'valid'" class="label label-success">Valid</span>
                    </span>
                  </li>
                  <li class="list-group-item">
                    <strong>Description</strong>
                    <span class="pull-right">{{ certificate.description }}</span>
                  </li>
                </ul>
                <h4>Domains</h4>
                <div class="list-group">
                  <a href="#/domains/{{ domain.id }}" class="list-group-item" ng-repeat="domain in certificate.domains">{{ domain.name }}</a>
                </div>
                <h4 ng-show="certificate.accounts.total">ARNs</h4>
                <ul class="list-group">
                  <li class="list-group-item" ng-repeat="arn in certificate.arns">{{ arn }}</li>
                </ul>
              </div>
              <tabset justified="true" class="col-md-6">
                <tab heading="Chain">
                  <p>
                    <pre style="width: 550px">{{ certificate.chain }}</pre>
                  </p>
                </tab>
                <tab heading="Public Certificate">
                  <p>
                    <pre style="width: 550px">{{ certificate.body }}</pre>
                  </p>
                </tab>
                <tab ng-click="certificateService.loadPrivateKey(certificate)">
                  <tab-heading>
                    Private Key
                  </tab-heading>
                  <p>
                    <pre style="width: 550px">{{ certificate.privateKey }}</pre>
                  </p>
                </tab>
              </tabset>
            </td>
          </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</div>

{'fraction_non_alphanumeric': 0.1598031410581168, 'fraction_numerical': 0.0031844828834045017, 'mean_word_length': 1.5382072005878031, 'pattern_counts': {'":': 0, '<': 343, '<?xml version=': 0, '>': 343, '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': '674137', 'n_tokens_mistral': 3826, 'n_tokens_neox': 3576, 'n_words': 722}