<commit_before><!--
 Obdi - a REST interface and GUI for deploying software
 Copyright (C) 2014  <NAME>

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!-- tool_content -->

<script type="text/ng-template" id="myModalContent.html">
    <div class="modal-header">
        <h3 class="modal-title">Delete Key</h3>
    </div>
    <div class="modal-body">
      Are you sure you want to delete '{{servername}}'?
    </div>
    <div class="modal-footer">
        <button class="btn btn-danger" ng-click="ok()">Yes</button>
        <button class="btn btn-primary" ng-click="cancel()">No</button>
    </div>
</script>

<div ng-controller="saltupdategitCtrl">

  <div class="row">
    <div class="col-lg-12">
      <h3 class="page-header">Update Git Repository
      <button class="btn btn-sm btn-success pull-right" type="button"
        ng-if="envchosen.shown" ng-click="Restart()" style="margin-top: -5px;">
        <i class="fa fa-refresh"> </i> Restart</button>
      <button class="btn btn-sm btn-default pull-right" type="button"
      ng-if="envsetting.shown" ng-click="GoBack()"
      style="margin-top: -5px;">
        <i class="fa fa-arrow-left"> </i> Go Back</button>
      <button class="btn btn-sm btn-success pull-right" type="button"
      ng-if="envsetting.shown" ng-disabled="forminvalid"
      ng-click="ApplySettings()"
      style="margin-top: -5px; margin-right:8px;">
        <i class="fa fa-check"> </i> Apply</button>
      </h3>
    </div>
  </div>

  <div class="row">
    <div class="col-sm-12">
      <div class="alert alert-success alert-dismissable" ng-show="okmessage">
        <button type="button" class="close" data-dismiss="alert"
          aria-hidden="true">&times;</button>
        {{okmessage}}
      </div>
      <div class="alert alert-danger alert-dismissable" ng-show="message">
        <button type="button" class="close" data-dismiss="alert"
          aria-hidden="true">&times;</button>
        {{message}}
        <span ng-if="message_jobid">
        See: <a href="#" ng-click="showOutputlines(message_jobid)">
        jobid:{{message_jobid}}</a> 
        </span>
      </div>
    </div>
  </div>

  <div class="row" ng-if="!showkeybtnblockhidden">
    <div class="col-sm-12">

      This page is used for updating the local Salt Git repository
      from the upstream Salt repository.

    </div>
    <div class="col-sm-12" style="margin-top: 20px">
      <div style="margin-left: 14px" class="btn-group"
      dropdown is-open="status.isopen">
        <button type="button" class="btn btn-primary dropdown-toggle"
        ng-disabled="btnenvlistdisabled">
          Choose Environment <span class="caret"></span>
        </button>
        <ul class="dropdown-menu" role="menu">
          <li ng-repeat="choice in environments">
          <a href ng-click="envChoice(choice, $event)">
            {{choice.DcSysName}} {{choice.SysName}}</a>
          </li>
        </ul>
      </div>
      <div class="btn-group">
        <button type="button" class="btn btn-primary dropdown-toggle"
        style="margin-left: 8px;" 
        ng-click="VersionList()" ng-disabled="btnshowversionsdisabled">
          Show Git Versions
        </button>
      </div>
    </div>
  </div>

  <!-- MAIN KEY MGMT PAGE -->

  <div class="row" ng-if="envchosen.shown">
    <div class="col-sm-12">

      <h4 class="page-header" style="margin-top:{{spacing}}px">{{env.DcDispName}} - {{env.DispName}}</h4>

      <p ng-if="!btnshowversionsdisabled">Press the Show Git Versions button above
      to get the list of versions from Salt.</p>

      <div ng-if="listbtnpressed">
        <p ng-if="!versionlist_ready && !message">Getting the list of
        versions. This might take a while
        <i class="ellipsis"><i>.</i><i>.</i><i>.</i></i></p>

        <p ng-if="versionlist_ready && versionlist_empty">Salt reports that
        this environment contains no versions keys!<br />
        </p>

        <div ng-if="versionlist_ready && !versionlist_empty">

          <div ng-if="!versionlist_empty">
            <p>The available versions for the environment, '{{env.SysName}}',
            are shown below.
            </p>

            <div class="table-responsive" style="margin-top: 8px;">
              <table class="table table-striped table-bordered">
                <thead>
                <tr>
                  <th>Version</th>
                  <th>Commit</th>
                  <th>HEAD Commit Message</th>
                </tr>
                </thead>
                <tbody>
                  <tr ng-repeat="version in filteredItems =
                    (versions | filter:versionfilter)">
                  <td>{{version.version}}</td><commit_msg>in progress<commit_after><!--
 Obdi - a REST interface and GUI for deploying software
 Copyright (C) 2014  <NAME>

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-->

<!-- tool_content -->

<script type="text/ng-template" id="myModalContent.html">
    <div class="modal-header">
        <h3 class="modal-title">Delete Key</h3>
    </div>
    <div class="modal-body">
      Are you sure you want to delete '{{servername}}'?
    </div>
    <div class="modal-footer">
        <button class="btn btn-danger" ng-click="ok()">Yes</button>
        <button class="btn btn-primary" ng-click="cancel()">No</button>
    </div>
</script>

<div ng-controller="saltupdategitCtrl">

  <div class="row">
    <div class="col-lg-12">
      <h3 class="page-header">Update Git Repository
      <button class="btn btn-sm btn-success pull-right" type="button"
        ng-if="envchosen.shown" ng-click="Restart()" style="margin-top: -5px;">
        <i class="fa fa-refresh"> </i> Restart</button>
      <button class="btn btn-sm btn-default pull-right" type="button"
      ng-if="envsetting.shown" ng-click="GoBack()"
      style="margin-top: -5px;">
        <i class="fa fa-arrow-left"> </i> Go Back</button>
      <button class="btn btn-sm btn-success pull-right" type="button"
      ng-if="envsetting.shown" ng-disabled="forminvalid"
      ng-click="ApplySettings()"
      style="margin-top: -5px; margin-right:8px;">
        <i class="fa fa-check"> </i> Apply</button>
      </h3>
    </div>
  </div>

  <div class="row">
    <div class="col-sm-12">
      <div class="alert alert-success alert-dismissable" ng-show="okmessage">
        <button type="button" class="close" data-dismiss="alert"
          aria-hidden="true">&times;</button>
        {{okmessage}}
      </div>
      <div class="alert alert-danger alert-dismissable" ng-show="message">
        <button type="button" class="close" data-dismiss="alert"
          aria-hidden="true">&times;</button>
        {{message}}
        <span ng-if="message_jobid">
        See: <a href="#" ng-click="showOutputlines(message_jobid)">
        jobid:{{message_jobid}}</a> 
        </span>
      </div>
    </div>
  </div>

  <div class="row" ng-if="!showkeybtnblockhidden">
    <div class="col-sm-12">

      This page is used for updating the local Salt Git repository
      from the upstream Salt repository.

    </div>
    <div class="col-sm-12" style="margin-top: 20px">
      <div style="margin-left: 14px" class="btn-group"
      dropdown is-open="status.isopen">
        <button type="button" class="btn btn-primary dropdown-toggle"
        ng-disabled="btnenvlistdisabled">
          Choose Environment <span class="caret"></span>
        </button>
        <ul class="dropdown-menu" role="menu">
          <li ng-repeat="choice in environments">
          <a href ng-click="envChoice(choice, $event)">
            {{choice.DcSysName}} {{choice.SysName}}</a>
          </li>
        </ul>
      </div>
      <div class="btn-group">
        <button type="button" class="btn btn-primary dropdown-toggle"
        style="margin-left: 8px;" 
        ng-click="VersionList()" ng-disabled="btnshowversionsdisabled">
          Show Git Versions
        </button>
      </div>
    </div>
  </div>

  <!-- MAIN KEY MGMT PAGE -->

  <div class="row" ng-if="envchosen.shown">
    <div class="col-sm-12">

      <h4 class="page-header" style="margin-top:{{spacing}}px">{{env.DcDispName}} - {{env.DispName}}</h4>

      <p ng-if="!btnshowversionsdisabled">Press the Show Git Versions button above
      to get the list of versions from Salt.</p>

      <div ng-if="listbtnpressed">
        <p ng-if="!versionlist_ready && !message">Getting the list of
        versions. This might take a while
        <i class="ellipsis"><i>.</i><i>.</i><i>.</i></i></p>

        <p ng-if="versionlist_ready && versionlist_empty">Salt reports that
        this environment contains no versions keys!<br />
        </p>

        <div ng-if="versionlist_ready && !versionlist_empty">

          <div ng-if="!versionlist_empty">
            <p>The available versions for this environment, '{{env.SysName}}',
            are shown below.
            </p>

            <div class="table-responsive" style="margin-top: 8px;">
              <table class="table table-striped table-bordered">
                <thead>
                <tr>
                  <th>Version</th>
                  <th>Commit</th>
                  <th>HEAD Commit Message</th>
                </tr>
                </thead>
                <tbody>
                  <tr ng-repeat="version in filteredItems =
                    (versions | filter:versionfilter)">
                  <td>{{version.version}}</td>
{'fraction_non_alphanumeric': 0.15391923990498813, 'fraction_numerical': 0.005890736342042755, 'mean_word_length': 2.551282051282051, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 235, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6805276', 'n_tokens_mistral': 3269, 'n_tokens_neox': 3092, 'n_words': 840}