<commit_before><h4>{{ action.type }}</h4>
<div class="jumbotron" ng-form="reportForm">
  <div class="form-group">
    <label class="col-md-2 control-label">Priority:</label>
    <div class="btn-group col-md-4">
      <label class="btn btn-danger btn-sm" ng-model="actionSettings.report.priority" btn-radio="'high'">High</label>
      <label class="btn btn-warning btn-sm" ng-model="actionSettings.report.priority" btn-radio="'medium'">Medium</label>
      <label class="btn btn-info btn-sm" ng-model="actionSettings.report.priority" btn-radio="'low'">Low</label>
    </div>
    <div class="col-md-2">
      <label class="checkbox">
        <input type="checkbox"
          ng-model="actionSettings.report.stateless"
          ng-checked="actionSettings.report.stateless"> stateless
      </label>
    </div>
    <div class="col-md-2">
      <label class="checkbox">
        <input type="checkbox"
          ng-model="actionSettings.report.snapshot.params.crop"
          ng-checked="actionSettings.report.snapshot.params.crop"> crop
      </label>
    </div>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportTitle.$invalid && !reportForm.reportTitle.$pristine}">
    <label class="col-md-2 control-label" for="reportTitle">Title:</label>
    <div class="col-md-6">
      <input
        type="text"
        id="reportTitle"
        name="reportTitle"
        value="{{actionName}}"
        class="form-control"
        placeholder="{{watcher._source.uuid}}"
        ng-model="actionSettings.$$title"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show=" reportForm.reportTitle.$invalid && !reportForm.reportTitle.$pristine" class="help-block">
      <small>Action title is required.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportTo.$invalid && !reportForm.reportTo.$pristine}">
    <label class="col-md-2 control-label" for="reportTo">To:</label>
    <div class="col-md-6">
      <input
        type="email"
        id="reportTo"
        name="reportTo"
        value="{{actionSettings.report.to}}"
        class="form-control"
        placeholder="reports@localhost"
        ng-model="actionSettings.report.to"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportTo.$invalid && !reportForm.reportTo.$pristine" class="help-block">
      <small>Enter a valid email.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportFrom.$invalid && !reportForm.reportFrom.$pristine}">
    <label class="col-md-2 control-label" for="reportFrom">From:</label>
    <div class="col-md-6">
      <input
        type="email"
        id="reportFrom"
        name="reportFrom"
        value="{{actionSettings.report.from}}"
        class="form-control"
        placeholder="<EMAIL>inl@<EMAIL>"
        ng-model="actionSettings.report.from"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportFrom.$invalid && !reportForm.reportFrom.$pristine" class="help-block">
      <small>Enter a valid email.</small>
    </p>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label" for="reportSubject">Subject:</label>
    <div class="col-md-6">
      <input
        type="text"
        id="reportSubject"
        name="reportSubject"
        value="{{actionSettings.report.subject}}"
        class="form-control"
        placeholder="SENTINL Report"
        ng-model="actionSettings.report.subject"
        ng-required="actionSettings.report.$$edit">
    </div>
  </div>
  <div class="form-group" ng-class="{'has-error': !actionSettings.report.body.length}">
    <div class="row">
      <label class="col-md-2 control-label" for="reportBody">Body:</label>
      <div class="col-md-8">
        <div id="reportBody"
          ng-model="actionSettings.report.body"
          ui-ace="aceOptions('behaviour')">
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-2"></div>
      <div class="col-md-8">
        <p ng-show="!actionSettings.report.body.length" class="text-warning">
          <small>Describe the report in the body.</small>
        </p>
      </div>
    </div>
  </div>
  <hr />
  <div class="form-group" ng-class="{'has-error': reportForm.reportResolution.$invalid && !reportForm.reportResolution.$pristine}">
    <label class="col-md-2 control-label" for="reportResolution">Resolution:</label>
    <div class="col-md-3">
      <input
        type="text"
        id="reportResolution"
        name="reportResolution"
        value="{{actionSettings.report.snapshot.res}}"
        class="form-control"
        placeholder="1280x900"
        ng-model="actionSettings.report.snapshot.res"
        ng-pattern="action.resolutionPattern"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportResolution.$invalid && !reportForm.reportResolution.$pristine" class="help-block">
      <small>Enter a valid resolution pattern.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportUrl.$invalid && !reportForm.reportUrl.$pristine}">
    <label class="col-md-2 control-label" for="reportUrl">URL:</label>
    <div class="col-md-6">
      <input
        type="url"
        id="reportUrl"<commit_msg>Set type=text for report action url. Parentheses in Kibi dashboard share url don't pass validation if type=url.<commit_after><h4>{{ action.type }}</h4>
<div class="jumbotron" ng-form="reportForm">
  <div class="form-group">
    <label class="col-md-2 control-label">Priority:</label>
    <div class="btn-group col-md-4">
      <label class="btn btn-danger btn-sm" ng-model="actionSettings.report.priority" btn-radio="'high'">High</label>
      <label class="btn btn-warning btn-sm" ng-model="actionSettings.report.priority" btn-radio="'medium'">Medium</label>
      <label class="btn btn-info btn-sm" ng-model="actionSettings.report.priority" btn-radio="'low'">Low</label>
    </div>
    <div class="col-md-2">
      <label class="checkbox">
        <input type="checkbox"
          ng-model="actionSettings.report.stateless"
          ng-checked="actionSettings.report.stateless"> stateless
      </label>
    </div>
    <div class="col-md-2">
      <label class="checkbox">
        <input type="checkbox"
          ng-model="actionSettings.report.snapshot.params.crop"
          ng-checked="actionSettings.report.snapshot.params.crop"> crop
      </label>
    </div>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportTitle.$invalid && !reportForm.reportTitle.$pristine}">
    <label class="col-md-2 control-label" for="reportTitle">Title:</label>
    <div class="col-md-6">
      <input
        type="text"
        id="reportTitle"
        name="reportTitle"
        value="{{actionName}}"
        class="form-control"
        placeholder="{{watcher._source.uuid}}"
        ng-model="actionSettings.$$title"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show=" reportForm.reportTitle.$invalid && !reportForm.reportTitle.$pristine" class="help-block">
      <small>Action title is required.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportTo.$invalid && !reportForm.reportTo.$pristine}">
    <label class="col-md-2 control-label" for="reportTo">To:</label>
    <div class="col-md-6">
      <input
        type="email"
        id="reportTo"
        name="reportTo"
        value="{{actionSettings.report.to}}"
        class="form-control"
        placeholder="reports@localhost"
        ng-model="actionSettings.report.to"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportTo.$invalid && !reportForm.reportTo.$pristine" class="help-block">
      <small>Enter a valid email.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportFrom.$invalid && !reportForm.reportFrom.$pristine}">
    <label class="col-md-2 control-label" for="reportFrom">From:</label>
    <div class="col-md-6">
      <input
        type="email"
        id="reportFrom"
        name="reportFrom"
        value="{{actionSettings.report.from}}"
        class="form-control"
        placeholder="<EMAIL>inl@<EMAIL>"
        ng-model="actionSettings.report.from"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportFrom.$invalid && !reportForm.reportFrom.$pristine" class="help-block">
      <small>Enter a valid email.</small>
    </p>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label" for="reportSubject">Subject:</label>
    <div class="col-md-6">
      <input
        type="text"
        id="reportSubject"
        name="reportSubject"
        value="{{actionSettings.report.subject}}"
        class="form-control"
        placeholder="SENTINL Report"
        ng-model="actionSettings.report.subject"
        ng-required="actionSettings.report.$$edit">
    </div>
  </div>
  <div class="form-group" ng-class="{'has-error': !actionSettings.report.body.length}">
    <div class="row">
      <label class="col-md-2 control-label" for="reportBody">Body:</label>
      <div class="col-md-8">
        <div id="reportBody"
          ng-model="actionSettings.report.body"
          ui-ace="aceOptions('behaviour')">
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-2"></div>
      <div class="col-md-8">
        <p ng-show="!actionSettings.report.body.length" class="text-warning">
          <small>Describe the report in the body.</small>
        </p>
      </div>
    </div>
  </div>
  <hr />
  <div class="form-group" ng-class="{'has-error': reportForm.reportResolution.$invalid && !reportForm.reportResolution.$pristine}">
    <label class="col-md-2 control-label" for="reportResolution">Resolution:</label>
    <div class="col-md-3">
      <input
        type="text"
        id="reportResolution"
        name="reportResolution"
        value="{{actionSettings.report.snapshot.res}}"
        class="form-control"
        placeholder="1280x900"
        ng-model="actionSettings.report.snapshot.res"
        ng-pattern="action.resolutionPattern"
        ng-required="actionSettings.report.$$edit">
    </div>
    <p ng-show="reportForm.reportResolution.$invalid && !reportForm.reportResolution.$pristine" class="help-block">
      <small>Enter a valid resolution pattern.</small>
    </p>
  </div>
  <div class="form-group" ng-class="{'has-error': reportForm.reportUrl.$invalid && !reportForm.reportUrl.$pristine}">
    <label class="col-md-2 control-label" for="reportUrl">URL:</label>
    <div class="col-md-6">
      <input
        type="text"
        id="reportUrl"
{'fraction_non_alphanumeric': 0.17923914054506557, 'fraction_numerical': 0.005394846990977584, 'mean_word_length': 3.102251049217856, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 209, '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': '365161', 'n_tokens_mistral': 3411, 'n_tokens_neox': 3354, 'n_words': 527}