<commit_before><!--
  Copyright 2012-2018 the original author or authors.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<div class="gt-config-return-outer-div">
  <a class="gt-config-return-link"
     href="config/gauge-list{{agentQueryString()}}">
    Return to list
  </a>
</div>
<div class="panel panel-default">
  <div class="panel-heading">
    <h2 ng-class="{'gt-lighten-font': !loaded && !httpError}">
      Gauges
      <span class="gt-inline-block gt-separator">
        |
      </span>
      <span style="font-size: 24px;">{{heading}}</span>
    </h2>
  </div>
  <div class="panel-body">
    <div ng-include src="'template/gt-loading-overlay.html'"></div>
    <div ng-include src="'template/gt-http-error-overlay.html'"></div>
    <div ng-if="agentNotConnected" class="alert alert-warning">
      Limited functionality since agent is not currently connected
    </div>
    <div ng-form
         gt-form-autofocus-on-first-input
         class="form-horizontal"
         name="formCtrl"
         style="padding-top: 15px;">
      <div class="form-group gt-form-group-without-help-block"
           ng-class="{'has-error': hasMBeanObjectNameError()}">
        <label class="col-lg-3 control-label"
               for="mbeanObjectName{{$id}}">
          MBean object name
        </label>

        <div class="col-lg-9">
          <input type="text"
                 class="form-control"
                 ng-model="config.mbeanObjectName"
                 ng-required="true"
                 ng-disabled="!agentRollup.permissions.config.edit.gauge"
                 uib-typeahead="suggestion for suggestion in mbeanObjectNames($viewValue)"
                 typeahead-on-select="onSelectMBeanObjectName()"
                 ng-blur="onBlurMBeanObjectName()"
                 name="mbeanObjectName"
                 id="mbeanObjectName{{$id}}"
                 style="max-width: 40em; display: inline-block">

          <div gt-spinner
               gt-spinner-inline="true"
               gt-show="showMBeanObjectNameSpinner"
               class="gt-inline-spinner">
          </div>
          <div ng-show="mbeanUnavailable"
               class="gt-red"
               style="padding-top: 10px;">
            MBean not found
          </div>
          <div ng-show="mbeanUnmatched"
               class="gt-red"
               style="padding-top: 10px;">
            No matching MBean found
          </div>
          <div ng-show="duplicateMBean"
               class="gt-red"
               style="padding-top: 10px;">
            There is already a gauge for this MBean
          </div><commit_msg>Add MBean object name help text<commit_after><!--
  Copyright 2012-2018 the original author or authors.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<div class="gt-config-return-outer-div">
  <a class="gt-config-return-link"
     href="config/gauge-list{{agentQueryString()}}">
    Return to list
  </a>
</div>
<div class="panel panel-default">
  <div class="panel-heading">
    <h2 ng-class="{'gt-lighten-font': !loaded && !httpError}">
      Gauges
      <span class="gt-inline-block gt-separator">
        |
      </span>
      <span style="font-size: 24px;">{{heading}}</span>
    </h2>
  </div>
  <div class="panel-body">
    <div ng-include src="'template/gt-loading-overlay.html'"></div>
    <div ng-include src="'template/gt-http-error-overlay.html'"></div>
    <div ng-if="agentNotConnected" class="alert alert-warning">
      Limited functionality since agent is not currently connected
    </div>
    <div ng-form
         gt-form-autofocus-on-first-input
         class="form-horizontal"
         name="formCtrl"
         style="padding-top: 15px;">
      <div class="form-group"
           ng-class="{'has-error': hasMBeanObjectNameError()}">
        <label class="col-lg-3 control-label"
               for="mbeanObjectName{{$id}}">
          MBean object name
        </label>

        <div class="col-lg-9">
          <input type="text"
                 class="form-control"
                 ng-model="config.mbeanObjectName"
                 ng-required="true"
                 ng-disabled="!agentRollup.permissions.config.edit.gauge"
                 uib-typeahead="suggestion for suggestion in mbeanObjectNames($viewValue)"
                 typeahead-on-select="onSelectMBeanObjectName()"
                 ng-blur="onBlurMBeanObjectName()"
                 name="mbeanObjectName"
                 id="mbeanObjectName{{$id}}"
                 style="max-width: 40em; display: inline-block">

          <div gt-spinner
               gt-spinner-inline="true"
               gt-show="showMBeanObjectNameSpinner"
               class="gt-inline-spinner">
          </div>
          <div ng-show="mbeanUnavailable"
               class="gt-red"
               style="padding-top: 10px;">
            MBean not found
          </div>
          <div ng-show="mbeanUnmatched"
               class="gt-red"
               style="padding-top: 10px;">
            No matching MBean found
          </div>
          <div ng-show="duplicateMBean"
               class="gt-red"
               style="padding-top: 10px;">
            There is already a gauge for this MBean
          </div>
          <div class="help-block">
            If the object name includes at least one occurrence of the wildcard characters asterisk (*) or question mark
            (?), then the object name is a pattern. The asterisk matches any sequence of zero or more characters, while
            the question mark matches any single character.
            (see
            <a href="https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html">
              https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html</a>)
          </div>
{'fraction_non_alphanumeric': 0.12424197603904748, 'fraction_numerical': 0.008578612631267564, 'mean_word_length': 2.180620884289746, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4799311', 'n_tokens_mistral': 1971, 'n_tokens_neox': 1886, 'n_words': 484}