<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 class="navbar navbar-inverse navbar-fixed-top" style="display: none;" role="navigation" ng-class="{'displayNavBar': !asIframe}">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#/">RAYS
      </a>
    </div>

    <div class="collapse navbar-collapse" ng-controller="NavCtrl as navbar">
      <ul class="nav navbar-nav" ng-if="ticket">
        <li class="dropdown notebook-list-dropdown" uib-dropdown>
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" uib-dropdown-toggle>Notebook <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li ng-controller="NotenameCtrl as notenamectrl"><a href="" data-toggle="modal" data-target="#noteNameModal" ng-click="notenamectrl.getInterpreterSettings()"><i class="fa fa-plus"></i> Create new note</a></li>
            <li class="divider"></li>
            <div id="notebook-list" class="scrollbar-container" ng-if="isDrawNavbarNoteList">
              <li class="filter-names" ng-include="'components/filterNoteNames/filter-note-names.html'"></li>
              <div ng-if="!query.q || query.q === ''">
                <li ng-repeat="note in navbar.notes.root.children | orderBy:navbar.arrayOrderingSrv.noteListOrdering track by note.id"
                    ng-class="{'active' : navbar.isActive(note.id)}" ng-include="'components/navbar/navbar-noteList-elem.html'">
                </li>
              </div>
              <div ng-if="query.q">
                <li ng-repeat="note in navbar.notes.flatList | filter : query.q | orderBy:navbar.arrayOrderingSrv.noteListOrdering track by note.id"
                    ng-class="{'active' : navbar.isActive(note.id)}" ng-include="'components/navbar/navbar-noteList-elem.html'">
                </li>
              </div>
            </div>
          </ul>
        </li>
        <li><a href="#/jobmanager">Job</a></li>
        <li><a href="" data-toggle="modal" data-target="{{targetModal}}">Helper</a></li>
      </ul>

      <ul class="nav navbar-nav navbar-right" style="margin-right:5px;">
        <li class="nav-component" ng-if="ticket">
        <!--TODO(bzz): move to Typeahead https://angular-ui.github.io/bootstrap  -->

          <form role="search" data-ng-model="navbar.searchForm"
            style="display: inline-block; margin: 0px"
             class="navbar-form"
             ng-submit="navbar.search(navbar.searchForm.searchTerm)">
            <div class="input-group">
              <input
                type="text"
                ng-model="navbar.searchForm.searchTerm"
                id="searchTermId"
                ng-disabled="!navbar.connected"
                class="form-control"
                placeholder="Search your Notes"
              />
              <span class="input-group-btn">
                <button
                  type="submit"
                  class="btn btn-default"
                  ng-disabled="!navbar.connected || !navbar.searchForm.searchTerm"
                >
                  <i class="glyphicon glyphicon-search"></i>
                </button>
              </span>
            </div>
          </form>
        </li>
        <li style="margin-left: 10px;">
          <div class="dropdown">
            <i ng-if="navbar.connected" class="fa fa-circle server-connected"
               uib-tooltip="WebSocket Connected" tooltip-placement="bottom" style="margin-top: 7px; margin-right: 0px; vertical-align: top"></i>
            <i ng-if="!navbar.connected" class="fa fa-circle server-disconnected"
               uib-tooltip="WebSocket Disconnected" tooltip-placement="bottom" style="margin-top: 7px; vertical-align: top"></i>
            <button ng-if="ticket" class="nav-btn dropdown-toggle" type="button" data-toggle="dropdown" style="margin:11px 5px 0 0; padding-left: 0px;">
              <span class="username">{{ticket.principal}}</span>
              <span class="caret" style="margin-bottom: 8px"></span>
            </button>
            <span ng-if="!ticket" style="margin: 5px;"></span>
            <ul class="dropdown-menu">
              <li><a href="" data-toggle="modal" data-target="#aboutModal">About RAYS</a></li>
              <li role="separator" style="margin: 5px 0;" class="divider"></li>
              <li><a href="#/interpreter">Interpreter</a></li>
              <li><a href="#/notebookRepos">Notebook Repos</a></li>
              <li><a href="#/credential">Credential</a></li>
              <li><a href="#/helium">Helium</a></li>
              <li><a href="#/configuration">Configuration</a></li>
              <li ng-if="ticket.principal && ticket.principal !== 'anonymous'" role="separator" style="margin: 5px 0;" class="divider"></li>
              <li ng-if="ticket.principal && ticket.principal !== 'anonymous'"><a ng-click="navbar.logout()">Logout</a></li>
            </ul>
          </div>
        </li>
        <li class="nav-component" ng-if="!ticket">
          <button class="btn nav-login-btn" data-toggle="modal" data-target="#loginModal"
                  ng-click="navbar.showLoginWindow()">Login
          </button>
        </li>
      </ul>
    </div>
  </div>
</div>

<div id="aboutModal" class="modal fade" role="dialog"
     tabindex="-1">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content" id="NoteImportCtrl" ng-init="NoteImportInit">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">About RAYS</h4>
      </div>
      <div class="modal-body">

        <div class="row about">
          <div class="hidden-xs col-sm-4 logo">
            <img src="assets/images/zepLogo.png" alt="Apache RAYS" title="RAYS" />
          </div>
          <div class="col-xs-12 col-sm-8 content">
            <h3>RAYS</h3>
            <br/>
            <span id="i18n-14">Version</span>
            {{zeppelinVersion}}
            <br/>
            <br/>
            <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"><span id="i18n-16">Licensed under the Apache License, Version 2.0</span></a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="helperModal" class="modal fade" role="dialog">
  <div class="modal-dialog modal-lg">
    <!-- Modal content-->
    <div class="modal-content" id="modalListPackage">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">RAYS Helper</h4>
      </div>
      <div class="modal-body">
        <div ng-repeat="repo in repo">
          <div class="panel panel-default">
            <div class="panel-heading">
                <div class="issue-info" style="width: 100%">
                    <h2>
                        <a data-toggle="collapse" title="Click to see sub-modules" data-placement="bottom" data-target="#{{repo.name}}">
                            <i class="fa fa-cubes"></i>
                            {{repo.label || repo.name}}
                        </a>

                    </h2>
                    <div>
                        {{repo.description}}
                    </div>
                </div>
            </div>
            <div id="{{repo.name}}" class="panel-collapse collapse out">
                <ul class="list-group">
                    <li class="list-group-item" ng-repeat="mod in repo.modules">
                        <div class="issue-info" style="width:100%">
                          <i class="fa fa-cube"></i>
                          {{mod.label || mod.name}}
                          <button class="btn btn-xs btn-default pull-right ng-scope" ng-click="copyModule(mod.name)">
                            <span class="glyphicon glyphicon-paperclip"></span>
                             copy
                           </button>
                          <!-- <div>
                            <button class="btn pull-right ng-scope" data-clipboard-text= "{{mod.label || mod.name}}">
                              <svg class="icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewbox="0 0 24 24">
                                <path d="M17,9H7V7H17M17,13H7V11H17M14,17H7V15H14M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z" />
                              </svg><commit_msg>replace balise a by div<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 class="navbar navbar-inverse navbar-fixed-top" style="display: none;" role="navigation" ng-class="{'displayNavBar': !asIframe}">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#/">RAYS
      </a>
    </div>

    <div class="collapse navbar-collapse" ng-controller="NavCtrl as navbar">
      <ul class="nav navbar-nav" ng-if="ticket">
        <li class="dropdown notebook-list-dropdown" uib-dropdown>
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" uib-dropdown-toggle>Notebook <span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li ng-controller="NotenameCtrl as notenamectrl"><a href="" data-toggle="modal" data-target="#noteNameModal" ng-click="notenamectrl.getInterpreterSettings()"><i class="fa fa-plus"></i> Create new note</a></li>
            <li class="divider"></li>
            <div id="notebook-list" class="scrollbar-container" ng-if="isDrawNavbarNoteList">
              <li class="filter-names" ng-include="'components/filterNoteNames/filter-note-names.html'"></li>
              <div ng-if="!query.q || query.q === ''">
                <li ng-repeat="note in navbar.notes.root.children | orderBy:navbar.arrayOrderingSrv.noteListOrdering track by note.id"
                    ng-class="{'active' : navbar.isActive(note.id)}" ng-include="'components/navbar/navbar-noteList-elem.html'">
                </li>
              </div>
              <div ng-if="query.q">
                <li ng-repeat="note in navbar.notes.flatList | filter : query.q | orderBy:navbar.arrayOrderingSrv.noteListOrdering track by note.id"
                    ng-class="{'active' : navbar.isActive(note.id)}" ng-include="'components/navbar/navbar-noteList-elem.html'">
                </li>
              </div>
            </div>
          </ul>
        </li>
        <li><a href="#/jobmanager">Job</a></li>
        <li><a href="" data-toggle="modal" data-target="{{targetModal}}">Helper</a></li>
      </ul>

      <ul class="nav navbar-nav navbar-right" style="margin-right:5px;">
        <li class="nav-component" ng-if="ticket">
        <!--TODO(bzz): move to Typeahead https://angular-ui.github.io/bootstrap  -->

          <form role="search" data-ng-model="navbar.searchForm"
            style="display: inline-block; margin: 0px"
             class="navbar-form"
             ng-submit="navbar.search(navbar.searchForm.searchTerm)">
            <div class="input-group">
              <input
                type="text"
                ng-model="navbar.searchForm.searchTerm"
                id="searchTermId"
                ng-disabled="!navbar.connected"
                class="form-control"
                placeholder="Search your Notes"
              />
              <span class="input-group-btn">
                <button
                  type="submit"
                  class="btn btn-default"
                  ng-disabled="!navbar.connected || !navbar.searchForm.searchTerm"
                >
                  <i class="glyphicon glyphicon-search"></i>
                </button>
              </span>
            </div>
          </form>
        </li>
        <li style="margin-left: 10px;">
          <div class="dropdown">
            <i ng-if="navbar.connected" class="fa fa-circle server-connected"
               uib-tooltip="WebSocket Connected" tooltip-placement="bottom" style="margin-top: 7px; margin-right: 0px; vertical-align: top"></i>
            <i ng-if="!navbar.connected" class="fa fa-circle server-disconnected"
               uib-tooltip="WebSocket Disconnected" tooltip-placement="bottom" style="margin-top: 7px; vertical-align: top"></i>
            <button ng-if="ticket" class="nav-btn dropdown-toggle" type="button" data-toggle="dropdown" style="margin:11px 5px 0 0; padding-left: 0px;">
              <span class="username">{{ticket.principal}}</span>
              <span class="caret" style="margin-bottom: 8px"></span>
            </button>
            <span ng-if="!ticket" style="margin: 5px;"></span>
            <ul class="dropdown-menu">
              <li><a href="" data-toggle="modal" data-target="#aboutModal">About RAYS</a></li>
              <li role="separator" style="margin: 5px 0;" class="divider"></li>
              <li><a href="#/interpreter">Interpreter</a></li>
              <li><a href="#/notebookRepos">Notebook Repos</a></li>
              <li><a href="#/credential">Credential</a></li>
              <li><a href="#/helium">Helium</a></li>
              <li><a href="#/configuration">Configuration</a></li>
              <li ng-if="ticket.principal && ticket.principal !== 'anonymous'" role="separator" style="margin: 5px 0;" class="divider"></li>
              <li ng-if="ticket.principal && ticket.principal !== 'anonymous'"><a ng-click="navbar.logout()">Logout</a></li>
            </ul>
          </div>
        </li>
        <li class="nav-component" ng-if="!ticket">
          <button class="btn nav-login-btn" data-toggle="modal" data-target="#loginModal"
                  ng-click="navbar.showLoginWindow()">Login
          </button>
        </li>
      </ul>
    </div>
  </div>
</div>

<div id="aboutModal" class="modal fade" role="dialog"
     tabindex="-1">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content" id="NoteImportCtrl" ng-init="NoteImportInit">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">About RAYS</h4>
      </div>
      <div class="modal-body">

        <div class="row about">
          <div class="hidden-xs col-sm-4 logo">
            <img src="assets/images/zepLogo.png" alt="Apache RAYS" title="RAYS" />
          </div>
          <div class="col-xs-12 col-sm-8 content">
            <h3>RAYS</h3>
            <br/>
            <span id="i18n-14">Version</span>
            {{zeppelinVersion}}
            <br/>
            <br/>
            <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank"><span id="i18n-16">Licensed under the Apache License, Version 2.0</span></a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<div id="helperModal" class="modal fade" role="dialog">
  <div class="modal-dialog modal-lg">
    <!-- Modal content-->
    <div class="modal-content" id="modalListPackage">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">RAYS Helper</h4>
      </div>
      <div class="modal-body">
        <div ng-repeat="repo in repo">
          <div class="panel panel-default">
            <div class="panel-heading">
                <div class="issue-info" style="width: 100%">
                    <h2>
                        <div data-toggle="collapse" title="Click to see sub-modules" data-placement="bottom" data-target="#{{repo.name}}">
                            <i class="fa fa-cubes"></i>
                            {{repo.label || repo.name}}
                        </div>

                    </h2>
                    <div>
                        {{repo.description}}
                    </div>
                </div>
            </div>
            <div id="{{repo.name}}" class="panel-collapse collapse out">
                <ul class="list-group">
                    <li class="list-group-item" ng-repeat="mod in repo.modules">
                        <div class="issue-info" style="width:100%">
                          <i class="fa fa-cube"></i>
                          {{mod.label || mod.name}}
                          <button class="btn btn-xs btn-default pull-right ng-scope" ng-click="copyModule(mod.name)">
                            <span class="glyphicon glyphicon-paperclip"></span>
                             copy
                           </button>
                          <!-- <div>
                            <button class="btn pull-right ng-scope" data-clipboard-text= "{{mod.label || mod.name}}">
                              <svg class="icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewbox="0 0 24 24">
                                <path d="M17,9H7V7H17M17,13H7V11H17M14,17H7V15H14M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z" />
                              </svg>
{'fraction_non_alphanumeric': 0.1675941780821918, 'fraction_numerical': 0.022153253424657533, 'mean_word_length': 2.08960158703918, 'pattern_counts': {'":': 0, '<': 405, '<?xml version=': 0, '>': 403, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, 'xml': 4}, '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': '4773001', 'n_tokens_mistral': 5947, 'n_tokens_neox': 5532, 'n_words': 1133}