<commit_before><bootstrap-navbar current-tab='Notifications'></bootstrap-navbar>
<table class="table table-striped">
  <thead>
    <th>Files</th>
    <th>File Content</th>
  </thead>
    <tbody>
    <script>
        function enableTab(id) {
            var el = document.getElementById(id);
            el.onkeydown = function (e) {
                if (e.keyCode === 9) { // tab was pressed

                    // get caret position/selection
                    var val = this.value,
                        start = this.selectionStart,
                        end = this.selectionEnd;

                    // set textarea value to: text before caret + tab + text after caret
                    this.value = val.substring(0, start) + '\t' + val.substring(end);

                    // put caret at right position again
                    this.selectionStart = this.selectionEnd = start + 1;

                    // prevent the focus lose
                    return false;
                }
            };
        }

        // Enable the tab character onkeypress (onkeydown) inside textarea...
        // ... for a textarea that has an `id="my-textarea"`
        enableTab('notificationDescription');
    </script>
    <tr>
      <td>
        <label class="header" text ="Notifications">Notifications</label>
        <ul>
            <li ng-repeat="notify in notificationFiles"><img ng-src='./images/icons/X.png' ng-click="deleteFile(notify);" ></img> &nbsp;<a ng-click="updateTextArea(notify);">{{notify.replace('/opt/API/Notifications//','')}}</a>
            </li>
        </ul>
        <a class="btn btn-primary" ng-click="createNotification()" ><span class="glyphicon glyphicon-plus"></span> Create Notification</a>
        <br />
        <br />

      </td>
      <td>
          <table width="100%" >
            <tr>
              <td>
                Notification Name: <input type="text" class="filename" ng-model="notification.notificationName" />
              </td>
            </tr>
            <tr>
              <td>
                Enabled: <input type="checkbox" class="filename" ng-model="notification.enabled" />
              </td>
            </tr>
              <tr>
                  <td width="100%">
                    Search Name:  <select name="repeatSelect" id="repeatSelect" ng-model="notification.selectedSearch">
                                    <option ng-repeat="option in avalibleSearches" value="{{option.title}}">{{option.title}}</option>
                                  </select>
                  </td>
              </tr>
            <tr>
              <td>
                Threshold Type: <select name="thresholdType" id="thresholdType" ng-model="notification.thresholdType">
                                  <option value="Max" selected="true">Max</option>
                                  <option value="Min">Min</option>
                                  <option value="Any">Any</option>
                                </select>
              </td>
            </tr>
            <tr>
              <td>
                Threshold Count: <input type="number" ng-model="notification.thresholdCount"  />
              </td>
            </tr>
            <tr>
              <td>
                Threshold Time Interval: <input type="number" class="timeValue" ng-model="notification.timeValue"  />
                                <select name="timeFrame" id="timeFrame" ng-model="notification.timeFrame">
                                  <option value="m" selected="true">Minutes</option>
                                  <option value="h">Hours</option>
                                  <option value="d">Days</option>
                                </select>
              </td>
            </tr>
            <tr>
              <td>
                Description:<commit_msg>Updated table to use divs<commit_after><bootstrap-navbar current-tab='Notifications'></bootstrap-navbar>
<table class="table table-striped">
  <thead>
    <th>Files</th>
    <th>File Content</th>
  </thead>
    <tbody>
    <script>
        function enableTab(id) {
            var el = document.getElementById(id);
            el.onkeydown = function (e) {
                if (e.keyCode === 9) { // tab was pressed

                    // get caret position/selection
                    var val = this.value,
                        start = this.selectionStart,
                        end = this.selectionEnd;

                    // set textarea value to: text before caret + tab + text after caret
                    this.value = val.substring(0, start) + '\t' + val.substring(end);

                    // put caret at right position again
                    this.selectionStart = this.selectionEnd = start + 1;

                    // prevent the focus lose
                    return false;
                }
            };
        }

        // Enable the tab character onkeypress (onkeydown) inside textarea...
        // ... for a textarea that has an `id="my-textarea"`
        enableTab('notificationDescription');
    </script>
    <tr>
      <td>
        <label class="header" text ="Notifications">Notifications</label>
        <ul>
            <li ng-repeat="notify in notificationFiles"><img ng-src='./images/icons/X.png' ng-click="deleteFile(notify);" ></img> &nbsp;<a ng-click="updateTextArea(notify);">{{notify.replace('/opt/API/Notifications//','')}}</a>
            </li>
        </ul>
        <a class="btn btn-primary" ng-click="createNotification()" ><span class="glyphicon glyphicon-plus"></span> Create Notification</a>
        <br />
        <br />

      </td>
      <td>
        <div class="container">
            <div class="row">
                <div class="left">
                  Notification Name:
                </div>
                <div class ="right">
                  <input type="text" class="filename" width="100%" ng-model="notification.notificationName" />
                </div>
            </div>
        </div>
          <table width="100%" >
            <tr>
              <td>


              </td>
            </tr>
            <tr>
              <td>
                Enabled: <input type="checkbox" class="filename" width="100%" ng-model="notification.enabled" />
              </td>
            </tr>
              <tr>
                  <td width="100%">
                    Search Name:  <select name="repeatSelect" id="repeatSelect" width="100%" ng-model="notification.selectedSearch">
                                    <option ng-repeat="option in avalibleSearches" value="{{option.title}}">{{option.title}}</option>
                                  </select>
                  </td>
              </tr>
            <tr>
              <td>
                Threshold Type: <select name="thresholdType" id="thresholdType" width = "100%" ng-model="notification.thresholdType">
                                  <option value="Max" selected="true">Max</option>
                                  <option value="Min">Min</option>
                                  <option value="Any">Any</option>
                                </select>
              </td>
            </tr>
            <tr>
              <td>
                Threshold Count: <input type="number" ng-model="notification.thresholdCount"  />
              </td>
            </tr>
            <tr>
              <td>
                Threshold Time Interval: <input type="number" class="timeValue" ng-model="notification.timeValue"  />
                                <select name="timeFrame" id="timeFrame" ng-model="notification.timeFrame">
                                  <option value="m" selected="true">Minutes</option>
                                  <option value="h">Hours</option>
                                  <option value="d">Days</option>
                                </select>
              </td>
            </tr>
            <tr>
              <td>
                Description:
{'fraction_non_alphanumeric': 0.13366834170854272, 'fraction_numerical': 0.0037688442211055275, 'mean_word_length': 1.3128994770482278, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 177, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2066940', 'n_tokens_mistral': 2093, 'n_tokens_neox': 1937, 'n_words': 435}