<commit_before><!--
  Copyright © 2015 <NAME>, Inc.

  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.
-->

<!--
  I have passed level-1 vandame

  The spit follows like this,

  - Show info about the plugin (iframe)
  - OR: Show regular properties view
    - Show loading icon while fetching plugin config
    - OR: Don't show loading icon once fetch is complete
      - Show "No properties for plugin" message(if no property present)
      - OR: Show properties of the plugin
        - Show non-configured plugin properties as simple textboxes
        - OR: Show configured plugin properties (+ properties missed in plugin config json)


-->

<div class="bottompanel-header clearfix" ng-init="showinfo = false">
  <div class="pull-left">
    <h3>
      {{NodeConfigController.state.node.plugin.name}} Properties
      <small class="text-danger" ng-if="NodeConfigController.state.noConfigMessage">({{NodeConfigController.state.noConfigMessage}})</small>
    </h3>
    <p>{{NodeConfigController.state.node.description}}</p>
  </div>
</div>

<div class="bottompanel-body" ng-class="{'modal-sink': NodeConfigController.state.node.type === 'sink'}">
  <div ng-show="!showinfo">
    <div ng-if="NodeConfigController.state.configfetched">

      <div ng-if="NodeConfigController.state.noproperty !== 0">
        <div ng-if="NodeConfigController.state.noconfig" ng-include="'/assets/features/hydrator/templates/create/popovers/plugin-edit-noconfig-form.html'"></div>

        <div ng-if="(NodeConfigController.state.configfetched && !NodeConfigController.state.noconfig)">
          <div ng-include="'/assets/features/hydrator/templates/create/popovers/plugin-edit-config-form.html'"></div>
        </div>
      </div>

      <div ng-if="NodeConfigController.state.noproperty === 0">
        <div class="well well-lg">
          <p>No Properties for this Plugin.</p>
        </div>
      </div>
    </div>

    <div ng-if="!NodeConfigController.state.configfetched">
      <h3><commit_msg>add node version to node config<commit_after><!--
  Copyright © 2015 Cask Data, Inc.

  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.
-->

<!--
  I have passed level-1 vandame

  The spit follows like this,

  - Show info about the plugin (iframe)
  - OR: Show regular properties view
    - Show loading icon while fetching plugin config
    - OR: Don't show loading icon once fetch is complete
      - Show "No properties for plugin" message(if no property present)
      - OR: Show properties of the plugin
        - Show non-configured plugin properties as simple textboxes
        - OR: Show configured plugin properties (+ properties missed in plugin config json)


-->

<div class="bottompanel-header clearfix" ng-init="showinfo = false">
  <div class="pull-left">
    <h3>
      {{NodeConfigController.state.node.plugin.name}} Properties
      <small>{{ NodeConfigController.state.node.plugin.artifact.version }}</small>
      <small class="text-danger" ng-if="NodeConfigController.state.noConfigMessage">({{NodeConfigController.state.noConfigMessage}})</small>
    </h3>
    <p>{{NodeConfigController.state.node.description}}</p>
  </div>
</div>

<div class="bottompanel-body" ng-class="{'modal-sink': NodeConfigController.state.node.type === 'sink'}">
  <div ng-show="!showinfo">
    <div ng-if="NodeConfigController.state.configfetched">

      <div ng-if="NodeConfigController.state.noproperty !== 0">
        <div ng-if="NodeConfigController.state.noconfig" ng-include="'/assets/features/hydrator/templates/create/popovers/plugin-edit-noconfig-form.html'"></div>

        <div ng-if="(NodeConfigController.state.configfetched && !NodeConfigController.state.noconfig)">
          <div ng-include="'/assets/features/hydrator/templates/create/popovers/plugin-edit-config-form.html'"></div>
        </div>
      </div>

      <div ng-if="NodeConfigController.state.noproperty === 0">
        <div class="well well-lg">
          <p>No Properties for this Plugin.</p>
        </div>
      </div>
    </div>

    <div ng-if="!NodeConfigController.state.configfetched">
      <h3>
{'fraction_non_alphanumeric': 0.12366230677764566, 'fraction_numerical': 0.005548949663099485, 'mean_word_length': 3.50625, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 70, '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': '19651', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1425, 'n_words': 428}