<commit_before><!doctype html>
<html lang="en" ng-app="alarmail">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Alarmail</title>
    <link href="css/vendor.css" rel="stylesheet">
    <link href="css/app.css" rel="stylesheet">
    <script src="js/vendor.js"></script>
    <script src="js/app.js"></script>
  </head>
  <body ng-controller="AlarmController">
    <h3>Alarmail</h3>
    <div class="panel-group">

      <div class="panel panel-default">

        <div ng-repeat="alert in alerts">
          <div class="alert {{alert.type}}">
            <a href="#" class="close" ng-click="closeAlert($index)" data-dismiss="alert" aria-label="close">&times;</a>
            <strong>{{alert.title}}</strong> {{alert.message}}
          </div>
        </div>

        <div class="panel-heading">Alarms</div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-md-2">
              <input bs-switch type="checkbox" ng-model="alarmEnabled" ng-change="setAlarm()">
            </div>
            <div class="col-md-2">
              <div class="dropdown">
                <button class="btn btn-default dropdown-toggle" type="button" id="deviceDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  Add device
                  <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="deviceDropdown">
                  <li ng-repeat="device in devices" ng-if="!isAlarmDevice(device.id)">
                    <a ng-click="addAlarmDevice(device.id)">{{device.name}}</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-md-8">
              <ul class="list-group">
                <li class="list-group-item" ng-repeat="device in devices" ng-if="isAlarmDevice(device.id)">
                  <h5 style="margin-top: 0; margin-bottom: 0;">
                    <span ng-if="device.on==true" style="color: #009900" class="glyphicon glyphicon-off"></span>
                    <span ng-if="device.on==false" style="color: #303030" class="glyphicon glyphicon-off"></span>
                    &nbsp;{{device.name}} <small><i>Last on: {{getFormattedLastOnForAlarmDevice(device.id);}}</i></small>
                    <a class="pull-right" href="" ng-click="deleteAlarmDevice(device.id)">
                      <span class="glyphicon glyphicon-remove"></span>
                    </a>
                  </h5>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">
          Email notifications
          <a href="#" data-toggle="popover" data-placement="right" title="Email notifications" data-content="Email account configuration for sending emails must be done by manually editing the configuration file on the server.">
            <span class="glyphicon glyphicon-question-sign" aria-hidden="true" aria-label="Information"></span>
          </a>
        </div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-xs-12 col-md-8">
              <div class="input-group">
                <input type="text" class="form-control" ng-model="emailNotificationAddress" placeholder="Email address">
                <span class="input-group-btn">
                  <button type="button" class="btn btn-primary" ng-click="setEmailNotificationAddress()">Set</button>
                </span>
              </div>
            </div>
            <div class="col-xs-6 col-md-4">
              <input bs-switch type="checkbox" ng-model="emailNotificationEnabled" ng-change="setEmailNotificationEnabled()">
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">NMA notifications</div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-xs-12 col-md-8">
              <div class="input-group">
                <input type="text" class="form-control" ng-model="nmaApiKey" placeholder="NMA API key">
                <span class="input-group-btn">
                  <button type="button" class="btn btn-primary" ng-click="setNmaApiKey()">Set</button>
                </span>
              </div>
            </div>
            <div class="col-xs-6 col-md-4">
              <input bs-switch type="checkbox" ng-model="nmaEnabled" ng-change="setNmaEnabled()">
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">Configuration file</div>
        <div class="panel-body">
        <button type="button" class="btn btn-primary" ng-click="saveConfiguration()">
          <span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> Save
        </button>
        </div>
      </div>

    </div>
  </body>
</html><commit_msg>Layout changes.<commit_after><!doctype html>
<html lang="en" ng-app="alarmail">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Alarmail</title>
    <link href="css/vendor.css" rel="stylesheet">
    <link href="css/app.css" rel="stylesheet">
    <script src="js/vendor.js"></script>
    <script src="js/app.js"></script>
  </head>
  <body ng-controller="AlarmController">
    <h3>&nbsp;Alarmail</h3>

    <div ng-repeat="alert in alerts">
      <div class="alert {{alert.type}}">
        <a href="#" class="close" ng-click="closeAlert($index)" data-dismiss="alert" aria-label="close">&times;</a>
          <strong>{{alert.title}}</strong> {{alert.message}}
      </div>
    </div>

    <div class="panel-group">
      <div class="panel panel-default">
        <div class="panel-heading">Alarms</div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-md-2">
              <input bs-switch type="checkbox" ng-model="alarmEnabled" ng-change="setAlarm()">
            </div>
            <div class="col-md-2">
              <div class="dropdown">
                <button class="btn btn-default dropdown-toggle" type="button" id="deviceDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                  Add device
                  <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="deviceDropdown">
                  <li ng-repeat="device in devices" ng-if="!isAlarmDevice(device.id)">
                    <a ng-click="addAlarmDevice(device.id)">{{device.name}}</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-md-8">
              <ul class="list-group" style="margin-top: 0; margin-bottom: 0;">
                <li class="list-group-item" ng-repeat="device in devices" ng-if="isAlarmDevice(device.id)">
                  <h5 style="margin-top: 0; margin-bottom: 0;">
                    <span ng-if="device.on==true" style="color: #009900" class="glyphicon glyphicon-off"></span>
                    <span ng-if="device.on==false" style="color: #303030" class="glyphicon glyphicon-off"></span>
                    &nbsp;{{device.name}} <small><i>Last on: {{getFormattedLastOnForAlarmDevice(device.id);}}</i></small>
                    <a class="pull-right" href="" ng-click="deleteAlarmDevice(device.id)">
                      <span class="glyphicon glyphicon-remove"></span>
                    </a>
                  </h5>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">
          Email notifications
          <a href="#" data-toggle="popover" data-placement="right" title="Email notifications" data-content="Email account configuration for sending emails must be done by manually editing the configuration file on the server.">
            <span class="glyphicon glyphicon-question-sign" aria-hidden="true" aria-label="Information"></span>
          </a>
        </div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-xs-12 col-sm-9">
              <div class="input-group">
                <input type="text" class="form-control" ng-model="emailNotificationAddress" placeholder="Email address">
                <span class="input-group-btn">
                  <button type="button" class="btn btn-primary" ng-click="setEmailNotificationAddress()">Set</button>
                </span>
              </div>
            </div>
            <div class="col-xs-3 col-sm-3">
              <input bs-switch type="checkbox" ng-model="emailNotificationEnabled" ng-change="setEmailNotificationEnabled()">
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">NMA notifications</div>
        <div class="panel-body">
          <div class="row row-grid">
            <div class="col-xs-12 col-sm-9">
              <div class="input-group">
                <input type="text" class="form-control" ng-model="nmaApiKey" placeholder="NMA API key">
                <span class="input-group-btn">
                  <button type="button" class="btn btn-primary" ng-click="setNmaApiKey()">Set</button>
                </span>
              </div>
            </div>
            <div class="col-xs-3 col-sm-3">
              <input bs-switch type="checkbox" ng-model="nmaEnabled" ng-change="setNmaEnabled()">
            </div>
          </div>
        </div>
      </div>

      <div class="panel panel-default">
        <div class="panel-heading">Configuration file</div>
        <div class="panel-body">
        <button type="button" class="btn btn-primary" ng-click="saveConfiguration()">
          <span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span> Save
        </button>
        </div>
      </div>

    </div>
  </body>
</html>
{'fraction_non_alphanumeric': 0.16843971631205673, 'fraction_numerical': 0.006698187549251379, 'mean_word_length': 2.058132530120482, 'pattern_counts': {'":': 0, '<': 259, '<?xml version=': 0, '>': 259, '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': '3553610', 'n_tokens_mistral': 3053, 'n_tokens_neox': 2890, 'n_words': 578}