<commit_before><div modal-page>
  <task-monitor monitor="taskMonitor"></task-monitor>
  <modal-close></modal-close>
  <div class="modal-header">
    <h3 ng-if="vm.command.pipeline && vm.triggers.length">Select Execution Parameters</h3>
    <h3 ng-if="vm.command.pipeline && !vm.triggers.length">Confirm Execution</h3>
    <h3 ng-if="!vm.command.pipeline">Select Pipeline</h3>
  </div>
  <form role="form">
    <div class="modal-body container-fluid form-horizontal">
      <div class="form-group" ng-if="vm.pipelineOptions">
        <label class="col-md-2 col-md-offset-1 sm-label-right">Pipeline</label>
        <div class="col-md-7">
          <ui-select ng-model="vm.command.pipeline"
                     style="width: 250px"
                     class="form-control input-sm"
                     on-select="vm.pipelineSelected()">
            <ui-select-match>
              <strong>{{$select.selected.name}}</strong>
            </ui-select-match>
            <ui-select-choices repeat="pipeline as pipeline in vm.pipelineOptions | anyFieldFilter: {name: $select.search }">
              <div><strong>{{pipeline.name}}</strong></div>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
      <div class="form-group" ng-if="vm.command.pipeline">
        <div class="col-md-10">
          <p>This will start a new run of <strong>{{vm.command.pipeline.name}}</strong>.</p>
        </div>
      </div>
      <div class="alert alert-warning"
           ng-if="vm.currentlyRunningExecutions.length">
        <p><strong>
          <span class="glyphicon glyphicon-warning-sign"></span>
          This pipeline is currently executing!
        </strong></p>
        <div ng-repeat="execution in vm.currentlyRunningExecutions" class="pad-left">
          <strong>Execution started: </strong>{{execution.startTime | timestamp }}
          <div>
            <strong>Current stage:</strong>
            <span ng-repeat="stage in execution.currentStages">
              {{stage.name}}
            </span>
          </div>
        </div>
      </div>

      <div ng-if="vm.triggers.length">
        <div class="form-group">
          <label class="col-md-2 col-md-offset-1 sm-label-right">Trigger</label>
          <div class="col-md-6">
            <p class="form-control-static"
               ng-if="vm.triggers.length === 1">{{vm.command.trigger.description}}</p>
            <select class="form-control input-sm"
                    ng-if="vm.triggers.length > 1"
                    ng-model="vm.command.trigger"
                    ng-options="trigger as trigger.description for trigger in vm.triggers"
                    ng-change="vm.triggerUpdated(trigger)">
            </select>
          </div>
        </div>
        <div ng-include="vm.triggerTemplate"></div>
      </div>
      <div class="form-group" ng-if="vm.showRebakeOption">
        <label ng-if="vm.triggers.length" class="col-md-2 col-md-offset-1 sm-label-right">Rebake</label>
        <div class="checkbox" ng-class="vm.triggers.length ? 'col-md-6' : 'col-md-10 col-md-offset-1'">
          <label>
            <input type="checkbox" ng-model="vm.command.trigger.rebake"/>
            Force Rebake
          </label>
          <help-field key="execution.forceRebake"></help-field>
        </div>
      </div>

      <div class="form-group" ng-if="vm.command.pipeline.parameterConfig !== undefined && vm.command.pipeline.parameterConfig.length">
        <div class="col-md-10">
          <h4>Parameters</h4>
        </div>
        <div class="form-group" ng-repeat="parameter in vm.command.pipeline.parameterConfig">
          <div class="col-md-offset-1 col-md-4 sm-label-right break-word">
            <b>{{parameter.name}}</b>
            <help-field content="{{parameter.description}}" ng-if="parameter.description"></help-field>
          </div>
          <div class="col-md-6" ng-if="!parameter.hasOptions">
            <input type="text" class="form-control input-sm" ng-model="vm.parameters[parameter.name]"/>
          </div>
          <div class="col-md-6" ng-if="parameter.hasOptions">
            <ui-select ng-model="vm.parameters[parameter.name]"
                       style="width:100%"
                       class="form-control input-sm">
              <ui-select-match>
                <strong>{{$select.selected.value}}</strong>
              </ui-select-match>
              <ui-select-choices repeat="option.value as option in parameter.options">
                <div><strong>{{option.value}}</strong></div>
              </ui-select-choices>
            </ui-select>
          </div>
        </div>
      </div>
    </div>
    <div class="modal-footer">
      <button class="btn btn-default" ng-click="vm.cancel()">Cancel</button>
      <button type="submit"
              class="btn btn-primary"
              ng-click="vm.execute()">
        <span class="glyphicon glyphicon-play"></span> Run
      </button><commit_msg>SPIN-1353: Make hitting <enter> key will run the execution.<commit_after><div modal-page>
  <task-monitor monitor="taskMonitor"></task-monitor>
  <modal-close></modal-close>
  <div class="modal-header">
    <h3 ng-if="vm.command.pipeline && vm.triggers.length">Select Execution Parameters</h3>
    <h3 ng-if="vm.command.pipeline && !vm.triggers.length">Confirm Execution</h3>
    <h3 ng-if="!vm.command.pipeline">Select Pipeline</h3>
  </div>
  <form role="form">
    <div class="modal-body container-fluid form-horizontal">
      <div class="form-group" ng-if="vm.pipelineOptions">
        <label class="col-md-2 col-md-offset-1 sm-label-right">Pipeline</label>
        <div class="col-md-7">
          <ui-select ng-model="vm.command.pipeline"
                     style="width: 250px"
                     class="form-control input-sm"
                     on-select="vm.pipelineSelected()">
            <ui-select-match>
              <strong>{{$select.selected.name}}</strong>
            </ui-select-match>
            <ui-select-choices repeat="pipeline as pipeline in vm.pipelineOptions | anyFieldFilter: {name: $select.search }">
              <div><strong>{{pipeline.name}}</strong></div>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
      <div class="form-group" ng-if="vm.command.pipeline">
        <div class="col-md-10">
          <p>This will start a new run of <strong>{{vm.command.pipeline.name}}</strong>.</p>
        </div>
      </div>
      <div class="alert alert-warning"
           ng-if="vm.currentlyRunningExecutions.length">
        <p><strong>
          <span class="glyphicon glyphicon-warning-sign"></span>
          This pipeline is currently executing!
        </strong></p>
        <div ng-repeat="execution in vm.currentlyRunningExecutions" class="pad-left">
          <strong>Execution started: </strong>{{execution.startTime | timestamp }}
          <div>
            <strong>Current stage:</strong>
            <span ng-repeat="stage in execution.currentStages">
              {{stage.name}}
            </span>
          </div>
        </div>
      </div>

      <div ng-if="vm.triggers.length">
        <div class="form-group">
          <label class="col-md-2 col-md-offset-1 sm-label-right">Trigger</label>
          <div class="col-md-6">
            <p class="form-control-static"
               ng-if="vm.triggers.length === 1">{{vm.command.trigger.description}}</p>
            <select class="form-control input-sm"
                    ng-if="vm.triggers.length > 1"
                    ng-model="vm.command.trigger"
                    ng-options="trigger as trigger.description for trigger in vm.triggers"
                    ng-change="vm.triggerUpdated(trigger)">
            </select>
          </div>
        </div>
        <div ng-include="vm.triggerTemplate"></div>
      </div>
      <div class="form-group" ng-if="vm.showRebakeOption">
        <label ng-if="vm.triggers.length" class="col-md-2 col-md-offset-1 sm-label-right">Rebake</label>
        <div class="checkbox" ng-class="vm.triggers.length ? 'col-md-6' : 'col-md-10 col-md-offset-1'">
          <label>
            <input type="checkbox" ng-model="vm.command.trigger.rebake"/>
            Force Rebake
          </label>
          <help-field key="execution.forceRebake"></help-field>
        </div>
      </div>

      <div class="form-group" ng-if="vm.command.pipeline.parameterConfig !== undefined && vm.command.pipeline.parameterConfig.length">
        <div class="col-md-10">
          <h4>Parameters</h4>
        </div>
        <div class="form-group" ng-repeat="parameter in vm.command.pipeline.parameterConfig">
          <div class="col-md-offset-1 col-md-4 sm-label-right break-word">
            <b>{{parameter.name}}</b>
            <help-field content="{{parameter.description}}" ng-if="parameter.description"></help-field>
          </div>
          <div class="col-md-6" ng-if="!parameter.hasOptions">
            <input type="text" class="form-control input-sm" ng-model="vm.parameters[parameter.name]"/>
          </div>
          <div class="col-md-6" ng-if="parameter.hasOptions">
            <ui-select ng-model="vm.parameters[parameter.name]"
                       style="width:100%"
                       class="form-control input-sm">
              <ui-select-match>
                <strong>{{$select.selected.value}}</strong>
              </ui-select-match>
              <ui-select-choices repeat="option.value as option in parameter.options">
                <div><strong>{{option.value}}</strong></div>
              </ui-select-choices>
            </ui-select>
          </div>
        </div>
      </div>
    </div>
    <div class="modal-footer">
      <button type="button" class="btn btn-default" ng-click="vm.cancel()">Cancel</button>
      <button type="submit"
              class="btn btn-primary"
              ng-click="vm.execute()">
        <span class="glyphicon glyphicon-play"></span> Run
      </button>
{'fraction_non_alphanumeric': 0.16787293928427824, 'fraction_numerical': 0.007639726578206675, 'mean_word_length': 2.093594527363184, 'pattern_counts': {'":': 0, '<': 250, '<?xml version=': 0, '>': 252, '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': '6892149', 'n_tokens_mistral': 3015, 'n_tokens_neox': 2938, 'n_words': 490}