<commit_before><script type="text/ng-template" id="error_messages">
  <div ng-show="!angularElement.$pristine && angularElement.$error.required">${ _('This field is required') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.url">${ _('Invalid URL') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.number">${ _('Invalid number') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.float">${ _('Invalid float') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.integer">${ _('Invalid integer') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.pattern">${ _('Invalid character(s)') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.list">${ _('Invalid list') }</div>
</script>

<script type="text/ng-template" id="checkbox_label">
  <div class="control-group" ng-class="{'error': invalid, 'warning': warning}">
    <div class="controls">
      <label class="control-label" for="{{name}}">
        <span ng-transclude></span> {{getText()}}
        <i ng-show=tooltipContent class="icon-question-sign help" tooltip="{{tooltipContent}}"></i>
        <span ng-include="'error_messages'" class="text-error"></span>
        <i class="pull-right icon-warning-sign help"
           ng-show="warning"
           tooltip="tooltip"
           tooltip-content="{{warningMsg()}}">
        </i>
      </label>
    </div>
  </div>
</script>

<script type="text/ng-template" id="input_label">
  <div class="control-group" ng-class="{'error': invalid, 'warning': warning}">
    <label class="control-label" for="{{name}}">{{getText()}}:
        <i ng-show=tooltipContent class="icon-question-sign help" tooltip="{{tooltipContent}}"></i>
      </span>
  </label>
    <div class="controls">
      <span ng-transclude></span>
      <i class="pull-right icon-warning-sign help"
         ng-show="warning"
         tooltip="tooltip"
         tooltip-content="{{warningMsg()}}">
      </i>
      <span ng-include="'error_messages'" class="text-error"></span>
    </div>
  </div>
</script>

<script type="text/ng-template" id="input_label_toggleable">
  <div class="control-group" ng-class="{'error': invalid, 'warning': warning}" toggle-group mode="multiShow">
    <label class="control-label"
           for="{{name}}"
           toggle-element="next"
           set-focus>
      <span class="control-icons">
        <i class="icon-chevron-right" title="${ _('show content') }"></i>
        <i class="icon-chevron-down" ng-show=false title="${ _('hide content') }"></i>
      </span>
      {{getText()}}
      <i ng-show=tooltipContent class="icon-question-sign pull-right help" tooltip="{{tooltipContent}}"></i>
    </label>
<commit_msg>Used bootstrap 3 in label directive templates<commit_after><script type="text/ng-template" id="error_messages">
  <div ng-show="!angularElement.$pristine && angularElement.$error.required">${ _('This field is required') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.url">${ _('Invalid URL') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.number">${ _('Invalid number') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.float">${ _('Invalid float') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.integer">${ _('Invalid integer') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.pattern">${ _('Invalid character(s)') }</div>
  <div ng-show="!angularElement.$pristine && angularElement.$error.list">${ _('Invalid list') }</div>
</script>

<script type="text/ng-template" id="checkbox_label">
  <div class="form-group form-group-sm" ng-class="{'error': invalid, 'warning': warning}">
    <label>
      <span ng-transclude></span> {{getText()}}
      <i ng-show=tooltipContent class="glyphicon glyphicon-question-sign help" tooltip="{{tooltipContent}}"></i>
      <span ng-include="'error_messages'" class="text-error"></span>
      <i class="pull-right icon-warning-sign help"
         ng-show="warning"
         tooltip="tooltip"
         tooltip-content="{{warningMsg()}}">
      </i>
    </label>
  </div>
</script>

<script type="text/ng-template" id="input_label">
  <div class="form-group form-group-sm" ng-class="{'error': invalid, 'warning': warning}">
    <label for="{{name}}">{{getText()}}:
      <i ng-show=tooltipContent class="glyphicon glyphicon-question-sign help" tooltip="{{tooltipContent}}"></i>
    </label>
    <span ng-transclude></span>
    <i class="pull-right icon-warning-sign help"
       ng-show="warning"
       tooltip="tooltip"
       tooltip-content="{{warningMsg()}}">
    </i>
    <span ng-include="'error_messages'" class="text-error"></span>
  </div>
</script>

<script type="text/ng-template" id="input_label_toggleable">
  <div class="form-group form-group-sm" ng-class="{'error': invalid, 'warning': warning}" toggle-group mode="multiShow">
    <label for="{{name}}"
           toggle-element="next"
           set-focus>
      <span class="control-icons">
        <i class="icon-chevron-right" title="${ _('show content') }"></i>
        <i class="icon-chevron-down" ng-show=false title="${ _('hide content') }"></i>
      </span>
      {{getText()}}
      <i ng-show=tooltipContent class="glyphicon glyphicon-question-sign pull-right help" tooltip="{{tooltipContent}}"></i>
    </label>
{'fraction_non_alphanumeric': 0.2105069124423963, 'fraction_numerical': 0.00018433179723502304, 'mean_word_length': 4.157794676806084, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 0, '>': 120, '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': '6538381', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1664, 'n_words': 325}