<commit_before><div class="app-container sentinl" id="main">
  <kbn-top-nav name="sentinl" config="topNavMenu">
    <!-- Transcluded elements. -->
    <div data-transclude-slots>

      <!-- Tabs. -->
      <div data-transclude-slot="bottomRow" class="kuiLocalTabs">
        <a
          ng-repeat="item in tabsMenu.list"
          class="kuiLocalTab"
          ng-class="{'kuiLocalTab-isSelected': tabsMenu.currentPath === item.url}"
          kbn-href="{{::item.url}}"
        >
          {{::item.display}}
        </a>
      </div>
    </div>
  </kbn-top-nav>

  <div class="row container">
    <div class="col-12">

      <!-- WATCHER WIZARD  -->
      <form name="watcherForm" class="form-horizontal" id="watcher-editor">
        <div class="form-group">
          <div class="col-md-8">
            <label for="watcherTitle">Give a proper name for the new watcher</label>
            <input type="text" class="form-control" id="watcherTitle" ng-model="watcher._source.title">
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-2">
            <label>Schedule</label>
            <i class="fa fa-question-circle"
              aria-hidden="true"
              popover-placement="bottom"
              uib-popover-html="help.schedule"
              popover-trigger="'outsideClick'"></i>
          </div>
          <div class="col-md-6">
            <input
              type="text"
              id="watcher-schedule"
              name="watcher-schedule"
              class="form-control"
              placeholder="every 5 mins"
              ng-model="watcher._source.trigger.schedule.later"/>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-8">
            <label for="watcherTitle">Enter number of search results there should be to execute this watcher</label>
            <input type="number" min="0" class="form-control" id="watcherTitle" ng-model="watcher.$$condition_value">
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-8">
            <new-action></new-action>
            <label>Multiple actions can be defined</label>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group" ng-if="actionsExist(watcher._source.actions)">
          <div class="col-md-8">
            <label>Actions:</label>
            <uib-accordion close-others="true" ng-repeat="(actionName, actionSettings) in watcher._source.actions track by $index">
              <webhook-action ng-if="actionOfType(actionSettings, 'webhook')" name="{{actionName}}"></webhook-action>
              <email-action ng-if="actionOfType(actionSettings, 'email')" name="{{actionName}}"></email-action>
              <report-action ng-if="actionOfType(actionSettings, 'report')" name="{{actionName}}"></report-action>
              <email-html-action ng-if="actionOfType(actionSettings, 'email_html')" name="{{actionName}}"></email-html-action>
              <slack-action ng-if="actionOfType(actionSettings, 'slack')" name="{{actionName}}"></slack-action>
              <console-action ng-if="actionOfType(actionSettings, 'console')" name="{{actionName}}"></console-action>
            </uib-accordion>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-8">
            <button type="button" class="btn btn-success" ng-click="saveEditor()">Save</button>
            <button type="button" class="btn btn-primary" ng-click="cancelEditor()">Cancel</button>
          </div>
        </div> <!-- end form-group -->
      </form> <!-- end form -->

    </div> <!-- end col-12 -->
  </div> <!-- end row -->
</div> <!-- end main --><commit_msg>Add nextScheduleOccurence filter to wizard template. Refactor wizard template.<commit_after><div class="app-container sentinl" id="main">
  <kbn-top-nav name="sentinl" config="topNavMenu">
    <!-- Transcluded elements. -->
    <div data-transclude-slots>

      <!-- Tabs. -->
      <div data-transclude-slot="bottomRow" class="kuiLocalTabs">
        <a
          ng-repeat="item in tabsMenu.list"
          class="kuiLocalTab"
          ng-class="{'kuiLocalTab-isSelected': tabsMenu.currentPath === item.url}"
          kbn-href="{{::item.url}}"
        >
          {{::item.display}}
        </a>
      </div>
    </div>
  </kbn-top-nav>

  <div class="row container">
    <div class="col-12">

      <!-- WATCHER WIZARD  -->
      <form name="watcherForm" class="form-horizontal" id="watcher-editor">
        <div class="form-group">
          <div class="col-md-2">
            <label>Name</label>
          </div>
          <div class="col-md-6">
            <input type="text" class="form-control" id="watcherTitle" ng-model="watcher._source.title">
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-2">
            <label>Schedule</label>
            <i class="fa fa-question-circle"
              aria-hidden="true"
              popover-placement="bottom"
              uib-popover-html="help.schedule"
              popover-trigger="'outsideClick'"></i>
          </div>
          <div class="col-md-6">
            <input
              type="text"
              id="watcher-schedule"
              name="watcher-schedule"
              class="form-control"
              placeholder="every 5 mins"
              ng-model="watcher._source.trigger.schedule.later"/>
          </div>
          <div class="col-md-4">
            <p>Next execution: {{watcher._source.trigger.schedule.later | nextScheduleOccurrence: sentinlConfig}}</p>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-2">
            <label>Number of results</label>
          </div>
          <div class="col-md-6">
            <input type="number" min="0" class="form-control" id="watcherTitle" ng-model="watcher.$$condition_value">
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-8">
            <new-action></new-action>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group" ng-if="actionsExist(watcher._source.actions)">
          <div class="col-md-8">
            <label>Actions:</label>
            <uib-accordion close-others="true" ng-repeat="(actionName, actionSettings) in watcher._source.actions track by $index">
              <webhook-action ng-if="actionOfType(actionSettings, 'webhook')" name="{{actionName}}"></webhook-action>
              <email-action ng-if="actionOfType(actionSettings, 'email')" name="{{actionName}}"></email-action>
              <report-action ng-if="actionOfType(actionSettings, 'report')" name="{{actionName}}"></report-action>
              <email-html-action ng-if="actionOfType(actionSettings, 'email_html')" name="{{actionName}}"></email-html-action>
              <slack-action ng-if="actionOfType(actionSettings, 'slack')" name="{{actionName}}"></slack-action>
              <console-action ng-if="actionOfType(actionSettings, 'console')" name="{{actionName}}"></console-action>
            </uib-accordion>
          </div>
        </div> <!-- end form-group -->
        <div class="form-group">
          <div class="col-md-8">
            <button type="button" class="btn btn-success" ng-click="saveEditor()">Save</button>
            <button type="button" class="btn btn-primary" ng-click="cancelEditor()">Cancel</button>
          </div>
        </div> <!-- end form-group -->
      </form> <!-- end form -->

    </div> <!-- end col-12 -->
  </div> <!-- end row -->
</div> <!-- end main -->
{'fraction_non_alphanumeric': 0.18379421221864953, 'fraction_numerical': 0.003729903536977492, 'mean_word_length': 2.138014527845036, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, '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': '3281870', 'n_tokens_mistral': 2325, 'n_tokens_neox': 2281, 'n_words': 409}