<commit_before><navbar icon="icon-gf icon-gf-alert" title="Alerting" title-url="alerting">
	<a href="alerting/notifications" class="navbar-page-btn">
		<i class="fa fa-fw fa-envelope-o"></i>
		Notifications
	</a>
</navbar>

<div class="page-container" >
  <div class="page-header">
    <h1>Alert notification</h1>
  </div>

  <form name="ctrl.theForm">
    <div class="gf-form-group">
      <div class="gf-form">
        <span class="gf-form-label width-12">Name</span>
        <input type="text" required class="gf-form-input max-width-15" ng-model="ctrl.model.name" required></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-12">Type</span>
        <div class="gf-form-select-wrapper width-15">
          <select class="gf-form-input" ng-model="ctrl.model.type" ng-options="t for t in ['webhook', 'email', 'slack']" ng-change="ctrl.typeChanged(notification, $index)">
          </select>
        </div>
      </div>
      <div class="gf-form">
        <gf-form-switch
           class="gf-form"
           label="Send on all alerts"
           label-class="width-12"
           checked="ctrl.model.isDefault"
           tooltip="Use this notification for all alerts">
        </gf-form-switch>
      </div>
    </div>

    <div class="gf-form-group" ng-if="ctrl.model.type === 'webhook'">
      <h3 class="page-heading">Webhook settings</h3>
      <div class="gf-form">
        <span class="gf-form-label width-10">Url</span>
        <input type="text" required class="gf-form-input max-width-26" ng-model="ctrl.model.settings.url"></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Http Method</span>
        <div class="gf-form-select-wrapper width-14">
          <select class="gf-form-input" ng-model="ctrl.model.settings.httpMethod" ng-options="t for t in ['POST', 'PUT']">
          </select>
        </div>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Username</span>
        <input type="text" class="gf-form-input max-width-14" ng-model="ctrl.model.settings.username"></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Password</span>
        <input type="text" class="gf-form-input max-width-14" ng-model="ctrl.model.settings.password"></input>
      </div>
    </div>

    <div class="gf-form-group" ng-if="ctrl.model.type === 'slack'">
      <h3 class="page-heading">Slack settings</h3>
      <div class="gf-form">
        <span class="gf-form-label width-6">Url</span>
        <input type="text" required class="gf-form-input max-width-30" ng-model="ctrl.model.settings.url" placeholder="Slack incoming webhook url"></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-6">Recipient</span>
        <input type="text" class="gf-form-input max-width-30"
          ng-model="ctrl.model.settings.recipient"
          placeholder="Override default channel or user, use #channel-name or @username">
        </input>
      </div>
    </div>

    <div class="gf-form-group section" ng-if="ctrl.model.type === 'email'">
      <h3 class="page-heading">Email addresses</h3>
      <div class="gf-form">
        <textarea rows="7" class="gf-form-input width-25" required ng-model="ctrl.model.settings.addresses"></textarea>
      </div>
      <div class="gf-form">
        <span>You can enter multiple email addresses using a ";" separator</span>
      </div>
    </div>

    <div class="gf-form-group">
      <div class="gf-form-inline">
        <div class="gf-form width-6">
          <button type="submit" ng-click="ctrl.save()" class="btn btn-success">Save</button><commit_msg>feat(alerting): change placeholder to info-popover<commit_after><navbar icon="icon-gf icon-gf-alert" title="Alerting" title-url="alerting">
	<a href="alerting/notifications" class="navbar-page-btn">
		<i class="fa fa-fw fa-envelope-o"></i>
		Notifications
	</a>
</navbar>

<div class="page-container" >
  <div class="page-header">
    <h1>Alert notification</h1>
  </div>

  <form name="ctrl.theForm">
    <div class="gf-form-group">
      <div class="gf-form">
        <span class="gf-form-label width-12">Name</span>
        <input type="text" required class="gf-form-input max-width-15" ng-model="ctrl.model.name" required></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-12">Type</span>
        <div class="gf-form-select-wrapper width-15">
          <select class="gf-form-input" ng-model="ctrl.model.type" ng-options="t for t in ['webhook', 'email', 'slack']" ng-change="ctrl.typeChanged(notification, $index)">
          </select>
        </div>
      </div>
      <div class="gf-form">
        <gf-form-switch
           class="gf-form"
           label="Send on all alerts"
           label-class="width-12"
           checked="ctrl.model.isDefault"
           tooltip="Use this notification for all alerts">
        </gf-form-switch>
      </div>
    </div>

    <div class="gf-form-group" ng-if="ctrl.model.type === 'webhook'">
      <h3 class="page-heading">Webhook settings</h3>
      <div class="gf-form">
        <span class="gf-form-label width-10">Url</span>
        <input type="text" required class="gf-form-input max-width-26" ng-model="ctrl.model.settings.url"></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Http Method</span>
        <div class="gf-form-select-wrapper width-14">
          <select class="gf-form-input" ng-model="ctrl.model.settings.httpMethod" ng-options="t for t in ['POST', 'PUT']">
          </select>
        </div>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Username</span>
        <input type="text" class="gf-form-input max-width-14" ng-model="ctrl.model.settings.username"></input>
      </div>
      <div class="gf-form">
        <span class="gf-form-label width-10">Password</span>
        <input type="text" class="gf-form-input max-width-14" ng-model="ctrl.model.settings.password"></input>
      </div>
    </div>

    <div class="gf-form-group" ng-if="ctrl.model.type === 'slack'">
      <h3 class="page-heading">Slack settings</h3>
      <div class="gf-form max-width-30">
        <span class="gf-form-label width-6">Url</span>
        <input type="text" required class="gf-form-input max-width-30" ng-model="ctrl.model.settings.url" placeholder="Slack incoming webhook url"></input>
      </div>
      <div class="gf-form max-width-30">
        <span class="gf-form-label width-6">Recipient</span>
        <input type="text"
          class="gf-form-input max-width-30"
          ng-model="ctrl.model.settings.recipient"
          data-placement="right">
        </input>
        <info-popover mode="right-absolute">
          Override default channel or user, use #channel-name or &lt;@username&gt;&lt;/@username&gt;
        </info-popover>
      </div>
    </div>

    <div class="gf-form-group section" ng-if="ctrl.model.type === 'email'">
      <h3 class="page-heading">Email addresses</h3>
      <div class="gf-form">
        <textarea rows="7" class="gf-form-input width-25" required ng-model="ctrl.model.settings.addresses"></textarea>
      </div>
      <div class="gf-form">
        <span>You can enter multiple email addresses using a ";" separator</span>
      </div>
    </div>

    <div class="gf-form-group">
      <div class="gf-form-inline">
        <div class="gf-form width-6">
          <button type="submit" ng-click="ctrl.save()" class="btn btn-success">Save</button>
{'fraction_non_alphanumeric': 0.18607109818950707, 'fraction_numerical': 0.0121580547112462, 'mean_word_length': 2.768924302788845, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '6077625', 'n_tokens_mistral': 2619, 'n_tokens_neox': 2453, 'n_words': 471}