<commit_before><!--

  Copyright 2014 TWO SIGMA OPEN SOURCE, LLC

  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 ng-class="isLocked() && 'locked'" class="bkcell {{cellmodel.type}}">
  <div ng-if="cellmodel.input.hidden && cellmodel.type=='code' && !isLocked()" class="mini-cell-stats advanced-hide">
    {{cellmodel.evaluator}} &nbsp;
    ({{cellmodel.lineCount}} lines)
  </div>
  <div class="toggle-menu">
    <div class="dropdown dropdown-promoted" data-toggle="dropdown" style="float: right;">
      <div class="cell-menu-item cell-dropdown dropdown-toggle" title="cell menu"></div>
      <bk-dropdown-menu menu-items="cellview.menu.items" submenu-classes="drop-left"></bk-dropdown-menu>
    </div>
    <div class="cell-menu-item move-cell-down" ng-click="moveCellDown()" ng-class="moveCellDownDisabled() && 'disabled'" title="move cell down"></div>
    <div class="cell-menu-item move-cell-up" ng-click="moveCellUp()" ng-class="moveCellUpDisabled() && 'disabled'" title="move cell up"></div>
    <div class="cell-menu-item delete-cell" ng-click="deleteCell()" title="delete cell"></div>
    <div class="cell-menu-item expand-contract" ng-if="cellmodel.type=='code'" ng-click="toggleCellInput()" ng-class="cellmodel.input.hidden && 'collapsed'" title="hide/show cell input"></div>
    <div class="dropdown dropdown-promoted advanced-only" ng-if="isCodeCell()" style="float: right;">
      <div ng-if="cellmodel.type=='code' && !cellmodel.evaluatorReader" class="loading-spinner rotating bkr"></div>
      <bk-code-cell-input-menu ng-if="cellmodel.type=='code' && cellmodel.evaluatorReader"></bk-code-cell-input-menu>
    </div>
    <div class="cell-menu-item evaluate" ng-click="evaluate($event)" ng-if="isCodeCell()" title="run cell"></div>
    <div class="cell-status-item loading-state advanced-hide" ng-if="cellmodel.type=='code' && !cellmodel.evaluatorReader">Initializing {{cellmodel.evaluator}}
      <div class="loading-spinner rotating"></div>
    </div>
  </div>
  <div ng-if="isDebugging()">
    [Debug]: cell Id = {{cellmodel.id}}, parent = {{getParentId()}}, level = {{cellmodel.level}}
    <a ng-click="toggleShowDebugInfo()" ng-hide="isShowDebugInfo()">show more</a>
    <a ng-click="toggleShowDebugInfo()" ng-show="isShowDebugInfo()">show less</a>
    <div collapse="!isShowDebugInfo()">
      <pre>{{cellmodel | json}}</pre>
    </div>
  </div>
  <div ng-include="getTypeCellUrl()"></div>
  <bk-new-cell-menu config="newCellMenuConfig" ng-class="isLarge && 'large'" is-large="isLarge" ng-if="newCellMenuConfig.isShow()"></bk-new-cell-menu>
</div><commit_msg>Fix delayed spinner hide in advanced mode.<commit_after><!--

  Copyright 2014 TWO SIGMA OPEN SOURCE, LLC

  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 ng-class="isLocked() && 'locked'" class="bkcell {{cellmodel.type}}">
  <div ng-if="cellmodel.input.hidden && cellmodel.type=='code' && !isLocked()" class="mini-cell-stats advanced-hide">
    {{cellmodel.evaluator}} &nbsp;
    ({{cellmodel.lineCount}} lines)
  </div>
  <div class="toggle-menu">
    <div class="dropdown dropdown-promoted" data-toggle="dropdown" style="float: right;">
      <div class="cell-menu-item cell-dropdown dropdown-toggle" title="cell menu"></div>
      <bk-dropdown-menu menu-items="cellview.menu.items" submenu-classes="drop-left"></bk-dropdown-menu>
    </div>
    <div class="cell-menu-item move-cell-down" ng-click="moveCellDown()" ng-class="moveCellDownDisabled() && 'disabled'" title="move cell down"></div>
    <div class="cell-menu-item move-cell-up" ng-click="moveCellUp()" ng-class="moveCellUpDisabled() && 'disabled'" title="move cell up"></div>
    <div class="cell-menu-item delete-cell" ng-click="deleteCell()" title="delete cell"></div>
    <div class="cell-menu-item expand-contract" ng-if="cellmodel.type=='code'" ng-click="toggleCellInput()" ng-class="cellmodel.input.hidden && 'collapsed'" title="hide/show cell input"></div>
    <div class="dropdown dropdown-promoted advanced-only" ng-if="isCodeCell()" style="float: right;">
      <div ng-if="!cellmodel.evaluatorReader">
        <div class="loading-spinner rotating bkr"></div>
      </div>
      <bk-code-cell-input-menu ng-if="cellmodel.evaluatorReader"></bk-code-cell-input-menu>
    </div>
    <div class="cell-menu-item evaluate" ng-click="evaluate($event)" ng-if="isCodeCell()" title="run cell"></div>
    <div class="cell-status-item loading-state advanced-hide" ng-if="isCodeCell() && !cellmodel.evaluatorReader">Initializing {{cellmodel.evaluator}}
      <div class="loading-spinner rotating"></div>
    </div>
  </div>
  <div ng-if="isDebugging()">
    [Debug]: cell Id = {{cellmodel.id}}, parent = {{getParentId()}}, level = {{cellmodel.level}}
    <a ng-click="toggleShowDebugInfo()" ng-hide="isShowDebugInfo()">show more</a>
    <a ng-click="toggleShowDebugInfo()" ng-show="isShowDebugInfo()">show less</a>
    <div collapse="!isShowDebugInfo()">
      <pre>{{cellmodel | json}}</pre>
    </div>
  </div>
  <div ng-include="getTypeCellUrl()"></div>
  <bk-new-cell-menu config="newCellMenuConfig" ng-class="isLarge && 'large'" is-large="isLarge" ng-if="newCellMenuConfig.isShow()"></bk-new-cell-menu>
</div>
{'fraction_non_alphanumeric': 0.17726240674667532, 'fraction_numerical': 0.0025948751216347712, 'mean_word_length': 4.689114391143911, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, 'https://': 0, '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': '1889149', 'n_tokens_mistral': 1966, 'n_tokens_neox': 1896, 'n_words': 451}