<commit_before>## Licensed to Cloudera, Inc. under one
## or more contributor license agreements.  See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership.  Cloudera, Inc. licenses this file
## to you 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.
<%!
from django.utils.html import escape
from django.utils.translation import ugettext as _

from desktop import conf
from desktop.conf import USE_NEW_EDITOR
from desktop.lib.i18n import smart_unicode
from desktop.views import commonheader, commonfooter, _ko
from beeswax.conf import LIST_PARTITIONS_LIMIT

from metastore.conf import ENABLE_NEW_CREATE_TABLE

from webpack_loader.templatetags.webpack_loader import render_bundle
%>

<%namespace name="actionbar" file="actionbar.mako" />
<%namespace name="components" file="components.mako" />

<%
MAIN_SCROLLABLE = is_embeddable and ".page-content" or ".content-panel"
if conf.CUSTOM.BANNER_TOP_HTML.get():
  TOP_SNAP = is_embeddable and "82px" or "108px"
else:
  TOP_SNAP = is_embeddable and "52px" or "78px"
%>

% if not is_embeddable:
${ commonheader(_("Metastore"), app_name, user, request) | n,unicode }

<script src="${ static('desktop/ext/js/jquery/plugins/jquery.mousewheel.min.js') }"></script>

<link rel="stylesheet" href="${ static('notebook/css/notebook-layout.css') }">
<style type="text/css">
% if conf.CUSTOM.BANNER_TOP_HTML.get():
  .show-assist {
    top: 110px!important;
  }
  .main-content {
    top: 112px!important;
  }
% endif
</style>
% endif

<script src="${ static('desktop/ext/js/wysihtml5-0.3.0.min.js') }"></script>
<script src="${ static('desktop/js/bootstrap-wysihtml5-0.0.2.js') }"></script>
<script src="${ static('desktop/ext/js/bootstrap-editable.wysihtml5.js') }"></script>
<script src="${ static('beeswax/js/stats.utils.js') }"></script>

<link rel="stylesheet" href="${ static('desktop/ext/css/bootstrap-editable.css') }">
<link rel="stylesheet" href="${ static('desktop/ext/css/bootstrap-wysihtml5-0.0.2.css') }">
<link rel="stylesheet" href="${ static('notebook/css/notebook.css') }">

## ${ render_bundle('vendors~tableBrowser') | n,unicode }
${ render_bundle('tableBrowser') | n,unicode }

<span class="notebook">

${ components.menubar(is_embeddable) }

<link rel="stylesheet" href="${ static('metastore/css/metastore.css') }" type="text/css">

<script type="text/html" id="metastore-breadcrumbs">
  <div style="font-size: 14px; margin: 0 12px; line-height: 27px;">
    <div data-bind="component: { name: 'hue-drop-down', params: { value: source, entries: sources, onSelect: sourceChanged, labelAttribute: 'name', searchable: true, linkTitle: '${ _ko('Source') }' } }" style="display: inline-block"></div>
    <!-- ko with: source -->
    <!-- ko if: window.HAS_MULTI_CLUSTER -->
    <!-- ko if: namespaces().length === 0 -->
    <i class="margin-left-10 fa fa-warning"></i> ${ _('No namespaces found') }
    <!-- /ko -->
    <!-- ko if: namespaces().length > 0 -->
    <div class="margin-left-10" data-bind="component: { name: 'hue-drop-down', params: { value: namespace, entries: namespaces, onSelect: namespaceChanged, labelAttribute: 'name', searchable: true, linkTitle: '${ _ko('Namespace') }' } }" style="display: inline-block"></div>
    <!-- /ko -->
    <!-- /ko -->
    <!-- /ko -->
  </div>
  <ul style="padding-top: 0" class="nav nav-pills hue-breadcrumbs-bar" id="breadcrumbs">
    <!-- ko with: source -->
    <!-- ko with: namespace -->
    <li>
      <a href="javascript:void(0);" data-bind="click: $root.databasesBreadcrumb">${_('Databases')}
        <!-- ko if: database -->
        <span class="divider">&gt;</span>
        <!-- /ko -->
      </a>
    </li>
    <!-- ko with: database -->
    <li>
      <a href="javascript:void(0);" data-bind="click: $root.tablesBreadcrumb">
        <span data-bind="text: catalogEntry.name"></span><commit_msg>HUE-8975 [metastore] Only show engine dropdown is there are more than one<commit_after>## Licensed to Cloudera, Inc. under one
## or more contributor license agreements.  See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership.  Cloudera, Inc. licenses this file
## to you 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.
<%!
from django.utils.html import escape
from django.utils.translation import ugettext as _

from desktop import conf
from desktop.conf import USE_NEW_EDITOR
from desktop.lib.i18n import smart_unicode
from desktop.views import commonheader, commonfooter, _ko
from beeswax.conf import LIST_PARTITIONS_LIMIT

from metastore.conf import ENABLE_NEW_CREATE_TABLE

from webpack_loader.templatetags.webpack_loader import render_bundle
%>

<%namespace name="actionbar" file="actionbar.mako" />
<%namespace name="components" file="components.mako" />

<%
MAIN_SCROLLABLE = is_embeddable and ".page-content" or ".content-panel"
if conf.CUSTOM.BANNER_TOP_HTML.get():
  TOP_SNAP = is_embeddable and "82px" or "108px"
else:
  TOP_SNAP = is_embeddable and "52px" or "78px"
%>

% if not is_embeddable:
${ commonheader(_("Metastore"), app_name, user, request) | n,unicode }

<script src="${ static('desktop/ext/js/jquery/plugins/jquery.mousewheel.min.js') }"></script>

<link rel="stylesheet" href="${ static('notebook/css/notebook-layout.css') }">
<style type="text/css">
% if conf.CUSTOM.BANNER_TOP_HTML.get():
  .show-assist {
    top: 110px!important;
  }
  .main-content {
    top: 112px!important;
  }
% endif
</style>
% endif

<script src="${ static('desktop/ext/js/wysihtml5-0.3.0.min.js') }"></script>
<script src="${ static('desktop/js/bootstrap-wysihtml5-0.0.2.js') }"></script>
<script src="${ static('desktop/ext/js/bootstrap-editable.wysihtml5.js') }"></script>
<script src="${ static('beeswax/js/stats.utils.js') }"></script>

<link rel="stylesheet" href="${ static('desktop/ext/css/bootstrap-editable.css') }">
<link rel="stylesheet" href="${ static('desktop/ext/css/bootstrap-wysihtml5-0.0.2.css') }">
<link rel="stylesheet" href="${ static('notebook/css/notebook.css') }">

## ${ render_bundle('vendors~tableBrowser') | n,unicode }
${ render_bundle('tableBrowser') | n,unicode }

<span class="notebook">

${ components.menubar(is_embeddable) }

<link rel="stylesheet" href="${ static('metastore/css/metastore.css') }" type="text/css">

<script type="text/html" id="metastore-breadcrumbs">
  <div style="font-size: 14px; margin: 0 12px; line-height: 27px;">
    <!-- ko if: sources().length >= 2 -->
    <div data-bind="component: { name: 'hue-drop-down', params: { value: source, entries: sources, onSelect: sourceChanged, labelAttribute: 'name', searchable: true, linkTitle: '${ _ko('Source') }' } }" style="display: inline-block"></div>
    <!-- /ko -->
    <!-- ko with: source -->
    <!-- ko if: window.HAS_MULTI_CLUSTER -->
    <!-- ko if: namespaces().length === 0 -->
    <i class="margin-left-10 fa fa-warning"></i> ${ _('No namespaces found') }
    <!-- /ko -->
    <!-- ko if: namespaces().length > 0 -->
    <div class="margin-left-10" data-bind="component: { name: 'hue-drop-down', params: { value: namespace, entries: namespaces, onSelect: namespaceChanged, labelAttribute: 'name', searchable: true, linkTitle: '${ _ko('Namespace') }' } }" style="display: inline-block"></div>
    <!-- /ko -->
    <!-- /ko -->
    <!-- /ko -->
  </div>
  <ul style="padding-top: 0" class="nav nav-pills hue-breadcrumbs-bar" id="breadcrumbs">
    <!-- ko with: source -->
    <!-- ko with: namespace -->
    <li>
      <a href="javascript:void(0);" data-bind="click: $root.databasesBreadcrumb">${_('Databases')}
        <!-- ko if: database -->
        <span class="divider">&gt;</span>
        <!-- /ko -->
      </a>
    </li>
    <!-- ko with: database -->
    <li>
      <a href="javascript:void(0);" data-bind="click: $root.tablesBreadcrumb">
        <span data-bind="text: catalogEntry.name"></span>
{'fraction_non_alphanumeric': 0.17710338580002266, 'fraction_numerical': 0.011889933189899218, 'mean_word_length': 4.2540154669839385, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 118, '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': '6266990', 'n_tokens_mistral': 2941, 'n_tokens_neox': 2852, 'n_words': 731}