<commit_before><div class="timepicker">
  <ul class="nav nav-tabs" role="tablist" ng-init="tab = 'filter'">
    <li ng-class="{active:tab== 'filter'}">
      <a href ng-click="tab = 'filter'">Time Filter</a>
    </li>
    <li ng-class="{active:tab== 'interval'}">
      <a href ng-click="tab = 'interval'">Refresh Interval</a>
    </li>
  </ul>

  <div class="tab-content">
    <!-- Filters -->
    <div ng-show="tab == 'filter'" role="tabpanel" class="tab-pane active">
      <br>
      <div class="row">
        <div class="col-md-2">
          <ul class="nav nav-pills nav-stacked">
            <li ng-class="{active: timepicker.mode=='quick'}">
              <a href ng-click="timepicker.setMode('quick')">Quick</a>
            </li>
            <li ng-class="{active: timepicker.mode=='relative'}">
              <a href ng-click="timepicker.setMode('relative')">Relative</a>
            </li>
            <li ng-class="{active: timepicker.mode=='absolute'}">
              <a href ng-click="timepicker.setMode('absolute')">Absolute</a>
            </li>
          </ul>
        </div>

        <div class="col-md-10">
          <div ng-switch on="timepicker.mode" class="container-fluid">

            <!-- Quick -->
            <div ng-switch-when="quick">
              <div ng-repeat="list in timepicker.quickLists" class="timepicker-section">
                <ul class="list-unstyled">
                  <li ng-repeat="option in list">
                    <a href ng-click="timepicker.setQuick(option)">{{ option.display }}</a>
                  </li>
                </ul><commit_msg>Fixed showing the right tab based on current settings<commit_after><div class="timepicker">
  <ul class="nav nav-tabs" role="tablist" ng-init="tab = 'filter'">
    <li ng-class="{active:tab== 'filter'}">
      <a href ng-click="tab = 'filter'">Time Filter</a>
    </li>
    <li ng-class="{active:tab== 'interval'}">
      <a href ng-click="tab = 'interval'">Refresh Interval</a>
    </li>
  </ul>

  <div class="tab-content">
    <!-- Filters -->
    <div ng-show="tab == 'filter'" role="tabpanel" class="tab-pane active">
      <br>
      <div class="row">
        <div class="col-md-2">
          <ul class="nav nav-pills nav-stacked">
            <li ng-class="{active: timepicker.time.mode=='quick'}">
              <a href ng-click="timepicker.setMode('quick')">Quick</a>
            </li>
            <li ng-class="{active: timepicker.time.mode=='relative'}">
              <a href ng-click="timepicker.setMode('relative')">Relative</a>
            </li>
            <li ng-class="{active: timepicker.time.mode=='absolute'}">
              <a href ng-click="timepicker.setMode('absolute')">Absolute</a>
            </li>
          </ul>
        </div>

        <div class="col-md-10">
          <div ng-switch on="timepicker.mode" class="container-fluid">

            <!-- Quick -->
            <div ng-switch-when="quick">
              <div ng-repeat="list in timepicker.quickLists" class="timepicker-section">
                <ul class="list-unstyled">
                  <li ng-repeat="option in list">
                    <a href ng-click="timepicker.setQuick(option)">{{ option.display }}</a>
                  </li>
                </ul>
{'fraction_non_alphanumeric': 0.1926040061633282, 'fraction_numerical': 0.0018489984591679508, 'mean_word_length': 2.1032504780114722, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '2345272', 'n_tokens_mistral': 1028, 'n_tokens_neox': 983, 'n_words': 197}