<commit_before><!--
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>
  <div ng-include src="'app/notebook/paragraph/result/result-chart-selector.html'"></div>
  <div
    id="p{{id}}_resize"
    ng-if="!config.helium.activeApp"
    style="padding-bottom: 5px;"
    resize='{"allowresize": "{{!asIframe && !viewOnly}}", "graphType": "{{type}}"}'
       resizable on-resize="resize(width, height);">

    <div ng-if="type=='TABLE'">
      <!-- graph setting -->
      <div class="option lightBold" style="overflow: visible;"
           ng-show="graphMode!='table'
                    && config.graph.optionOpen && !asIframe && !viewOnly">
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="trsetting{{id}}_{{viz.id}}"
             ng-show="graphMode == viz.id"></div>
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="vizsetting{{id}}_{{viz.id}}"
             ng-show="graphMode == viz.id"></div>
      </div>

      <!-- graph -->
      <div id="p{{id}}_graph"
           class="graphContainer"
           ng-class="{'noOverflow': graphMode=='table'}"
           >
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="p{{id}}_{{viz.id}}"
             ng-show="graphMode == viz.id">
        </div>
      </div>

      <div id="{{id}}_comment"
           class="text"
           ng-if="tableDataComment"
           ng-bind-html="tableDataComment">
      </div>
    </div>

    <div ng-if="type == 'TEXT'"
         class="plainTextContainer">
      <div class="fa fa-level-down scroll-paragraph-down"
           ng-show="showScrollDownIcon()"
           ng-click="scrollParagraphDown()"
           tooltip="Follow Output"></div>
      <div id="p{{id}}_text"
           style="max-height: {{config.graph.height}}px; overflow: auto"
           class="text plainTextContent"></div>
      <div class="fa fa-chevron-up scroll-paragraph-up"
           ng-show="showScrollUpIcon()"
           ng-click="scrollParagraphUp()"<commit_msg>ZEPPELIN-2148: On creation of Bar graph zeppelin UI shows it as minigraph<commit_after><!--
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>
  <div ng-include src="'app/notebook/paragraph/result/result-chart-selector.html'"></div>
  <div
    id="p{{id}}_resize"
    ng-if="!config.helium.activeApp"
    style="padding-bottom: 5px;"
    resize='{"allowresize": "{{!asIframe && !viewOnly}}", "graphType": "{{type}}"}'
       resizable on-resize="resize(width, height);">

    <div ng-if="type=='TABLE'">
      <!-- graph setting -->
      <div class="option lightBold" style="overflow: visible;"
           ng-show="graphMode!='table'
                    && config.graph.optionOpen && !asIframe && !viewOnly">
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="trsetting{{id}}_{{viz.id}}"
             ng-if="graphMode == viz.id"></div>
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="vizsetting{{id}}_{{viz.id}}"
             ng-if="graphMode == viz.id"></div>
      </div>

      <!-- graph -->
      <div id="p{{id}}_graph"
           class="graphContainer"
           ng-class="{'noOverflow': graphMode=='table'}"
           >
        <div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
             id="p{{id}}_{{viz.id}}"
             ng-if="graphMode == viz.id">
        </div>
      </div>

      <div id="{{id}}_comment"
           class="text"
           ng-if="tableDataComment"
           ng-bind-html="tableDataComment">
      </div>
    </div>

    <div ng-if="type == 'TEXT'"
         class="plainTextContainer">
      <div class="fa fa-level-down scroll-paragraph-down"
           ng-show="showScrollDownIcon()"
           ng-click="scrollParagraphDown()"
           tooltip="Follow Output"></div>
      <div id="p{{id}}_text"
           style="max-height: {{config.graph.height}}px; overflow: auto"
           class="text plainTextContent"></div>
      <div class="fa fa-chevron-up scroll-paragraph-up"
           ng-show="showScrollUpIcon()"
           ng-click="scrollParagraphUp()"
{'fraction_non_alphanumeric': 0.15432338115548663, 'fraction_numerical': 0.002714230321830167, 'mean_word_length': 2.724909747292419, 'pattern_counts': {'":': 4, '<': 57, '<?xml version=': 0, '>': 55, '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': '1369745', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1495, 'n_words': 372}