<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.
<!DOCTYPE html>
<html>
<head>
## This meta tag tells IE to use IE8's rendering engine if possible
## and Google Chrome Frame if it's installed.
  <meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1" />
  <title>Hue</title>
  <link rel="shortcut icon" href="/static/art/favicon_solid.png" type="image/x-icon" />
  <link rel="icon" href="/static/art/favicon_solid.png" type="image/x-icon" />
  <link rel="stylesheet" href="/static/css/shared.css" type="text/css" media="screen" title="no title" charset="utf-8">
  <link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/windows.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/desktop.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/hue-deprecated.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/js/ThirdParty/jframe/Assets/jframe.css" type="text/css" media="screen" charset="utf-8">

  <link rel="stylesheet" href="/static/oocss/Button.css">
  <link rel="stylesheet" href="/static/oocss/Bar.css">
  <link rel="stylesheet" href="/static/oocss/Bar.Paginator.css">
  <link rel="stylesheet" href="/static/oocss/Grid.css">
  <link rel="stylesheet" href="/static/oocss/Icon.css">

  <script src="/depender/build?client=true&require=hue-shared/DesktopLoader"></script>
  <!--[if gte IE 8]>
      <script>
          window.ieOkay = true;
      </script>
  <![endif]-->
  <script>
  window.addEvent('domready', function(){
    if (Browser.Engine.trident) {
      //if we're in IE, there's a note about the fact that Hue doesn't love IE
      //add a click handler for hiding this note.
      $('closeWarning').addEvent('click', function(){
        //store the preference
        Cookie.write('desktop-browser-warned', true);
        //remove the class (which hides the warning)
        $(document.body).removeClass('warned');
      });
      if (!Cookie.read('desktop-browser-warned')) $(document.body).addClass('warned');
      if (!ieOkay) alert("Hue does not currently support any version of Internet Explorer earlier than IE8.");
    }
    var appName = "Hue";
    Depender.require({
      scripts: ["More/Fx.Elements"],
      callback: function(){
        //get the background images
        var bgEls = $('bg').getElements('img');
        //include the background container
        bgEls.push($('bg'));
        var styles = {};
        //loop through each and create an effect that fades them from 0 to 1 opacity
        bgEls.each(function(el, i){
          styles[i.toString()] = { opacity: [0, 1] };
        });
        //fade them in
        new Fx.Elements(bgEls, {
          duration: 500
        }).start(styles);
        
        //configure the clientcide assets location.
        Clientcide.setAssetLocation("/static/js/ThirdParty/clientcide/Assets");
        var growled = {};
        //add a notification for when apps are launched
        var launchGrowl = function(component){
          //get the app name ("File Browser" from "filebrowser")
          var appName = Hue.Desktop.getAppName(component);
          //show the appropriate flash message; if it's loaded then we're just "launching"
          //else show "loading"
          var loading = 'Loading ' + appName;
          var launching = 'Launching ' + appName;
          var msg = loading;
          if (Hue.Desktop.hasLoaded(component)) msg = launching;
          if (!FlashMessage.checkForFlashMessage(loading) && 
              !FlashMessage.checkForFlashMessage(launching) && 
              !$$('.loadingmsg').length) {
                growled[component] = FlashMessage.flash({
                  message: msg, 
                  duration: 10000
                });
          }
        };
        var clearGrowl = function(component) {
          if (growled[component]) {
            growled[component]();
            delete growled[component];
          }
        };
        Hue.Desktop.initialize({
          onBeforeLoad: launchGrowl,
          onBeforeLaunch: launchGrowl,
          onAfterLaunch: clearGrowl
        });
        //fade out the hue-loading message
        (function(){
          $('hue-loading').fade('out').get('tween').clearChain().chain(function(){
            $('hue-loading').destroy();
          });
        }).delay(300);

        //when the user logs in
        Hue.User.withUser(function(user){
          var bsLoaded;
          //this method runs once the bootstrap is run and the apps are registered
          var bootstrapped = function(){
            //ensure it only runs once
            if (bsLoaded) return;
            bsLoaded = true;

            //if there's no desktop to restore
            var linked = Hue.Desktop.launchLinked();
            // If a link was opened it chooses how to restore the desktop
            var restored;

            //we need to delay this slightly for IE; don't ask me why
            var finalize = function(){
              if (!linked) {
                //this is how we hide things in IE because it hates opacity/visibility stuff w/ VML
                $('hue-desktop').setStyle('top', -10000);
                restored = Hue.Desktop.restoreDesktop();
                $('hue-desktop').setStyle('top', null);
              }
              if (!linked && !restored) {
                //call the autolaunchers
                Hue.Desktop.autolaunchers.each(function(fn){
                  fn();
                });
              }
              //display the user as logged in
              $('hue-profileLink').set('text', user.username).addClass('loggedIn');
              $(document.body).addClass('hue-loaded');
              window.scrollTo(0,0);
              //fade in the toolbar
              $('hue-toolbar').show().tween('opacity', 0, 1);
              //and the dock
              $('hue-dock').tween('opacity', 0, 1);
            };

            //IE needs a brief delay
            if (Browser.Engine.trident) finalize.delay(100);
            else finalize();
          };

          //load the bootstraps
          new Element('script', {
            src: '/bootstrap.js',
            events: {
              //on load call the bootstrapped method above
              load: function() {
                bootstrapped();
              },
              //IE requires you monitor the readystate yourself for script tags
              readystatechange: function(){
                if (['loaded', 'complete'].contains(this.readyState)) bootstrapped();
              }
            }
          }).inject(document.head);
        });

      }
    });
  });
  </script>

  <script>
    % if send_dbug_messages:
      window.sendDbug = true;
    % else:
      window.sendDbug = false;
    % endif
  </script>
</head>
<body>
  <ul id="desktop-menu" class="desktop-menu" style="position:absolute; top: -100000px;">
  </ul>
  <div id="bg">
  </div>
  <div id="browserWarn">Hue is best experienced in <a target="browsers" href="http://getfirefox.com">Mozilla Firefox</a>, <a target="browsers" href="http://www.apple.com/safari/">Apple Safari</a>, or <a target="browsers" href="http://www.google.com/chrome">Google Chrome</a> <a id="closeWarning"></a></div>
  <div id="hue-desktop" class="hue-shared">
    <div id="hue-topnav">
      <div id="hue-toolbar">
        <img src="/static/art/favicon.png" width="16" height="16" class="hue-swoosh">
        <span>
          Hi
          <span id="hue-profileLink"></span>

          <span id="hue-logout">
            [<a href="/accounts/logout">logout</a>]
          </span>
        </span>
        <a class="hotkeys" id="hotkeys" title="show keyboard shortcuts">
          <img src="/static/art/shortcut.png"> Shortcuts
        </a>
      </div>
    </div>
    <div id="hue-dock">
      <div id="hue-dock-content">
        <div id="hue-dock-status" class="hue-inline">
          <div id="hue-dock-status-content">
          </div>
        </div>
        <span id="hue-dock-icons">
        </span>
      </div>
    </div>
    <div id="hue-loading">Launching Hue</div>
    <a id="hue-feedback" href="${feedback_url}" target="_blank"><img src="/static/art/feedback-tab.png" width="76" height="26"/></a>
  </div>
  <div class="alert_popup hue-error-popup">
    Warning, an AJAX request was made for the Hue desktop which cannot be loaded into an application window. Typically this means that a link clicked has no <em>href</em> value. Please notify the application's author.
  </div>

    <script>
    (function(){
      var state = Hue.Desktop.getState();
      var options = {};
      if (state && state.background) options.current = state.background;
      new BackgroundManager($('bg'), $('desktop-menu'), options);
      if (Browser.Engine.trident) $(document.body).addClass('IEroot');
      $(document.body).addClass(Browser.Engine.name);
    })();
    </script>
</body>
</html>
<commit_msg>Remove unnecessary warning for IE users.<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.
<!DOCTYPE html>
<html>
<head>
## This meta tag tells IE to use IE8's rendering engine if possible
## and Google Chrome Frame if it's installed.
  <meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1" />
  <title>Hue</title>
  <link rel="shortcut icon" href="/static/art/favicon_solid.png" type="image/x-icon" />
  <link rel="icon" href="/static/art/favicon_solid.png" type="image/x-icon" />
  <link rel="stylesheet" href="/static/css/shared.css" type="text/css" media="screen" title="no title" charset="utf-8">
  <link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/windows.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/desktop.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/css/hue-deprecated.css" type="text/css" media="screen" charset="utf-8">
  <link rel="stylesheet" href="/static/js/ThirdParty/jframe/Assets/jframe.css" type="text/css" media="screen" charset="utf-8">

  <link rel="stylesheet" href="/static/oocss/Button.css">
  <link rel="stylesheet" href="/static/oocss/Bar.css">
  <link rel="stylesheet" href="/static/oocss/Bar.Paginator.css">
  <link rel="stylesheet" href="/static/oocss/Grid.css">
  <link rel="stylesheet" href="/static/oocss/Icon.css">

  <script src="/depender/build?client=true&require=hue-shared/DesktopLoader"></script>
  <!--[if gte IE 8]>
      <script>
          window.ieOkay = true;
      </script>
  <![endif]-->
  <script>
  window.addEvent('domready', function(){
    if (Browser.Engine.trident) {
      if (!ieOkay) alert("Hue does not currently support any version of Internet Explorer earlier than IE8.");
    }
    var appName = "Hue";
    Depender.require({
      scripts: ["More/Fx.Elements"],
      callback: function(){
        //get the background images
        var bgEls = $('bg').getElements('img');
        //include the background container
        bgEls.push($('bg'));
        var styles = {};
        //loop through each and create an effect that fades them from 0 to 1 opacity
        bgEls.each(function(el, i){
          styles[i.toString()] = { opacity: [0, 1] };
        });
        //fade them in
        new Fx.Elements(bgEls, {
          duration: 500
        }).start(styles);
        
        //configure the clientcide assets location.
        Clientcide.setAssetLocation("/static/js/ThirdParty/clientcide/Assets");
        var growled = {};
        //add a notification for when apps are launched
        var launchGrowl = function(component){
          //get the app name ("File Browser" from "filebrowser")
          var appName = Hue.Desktop.getAppName(component);
          //show the appropriate flash message; if it's loaded then we're just "launching"
          //else show "loading"
          var loading = 'Loading ' + appName;
          var launching = 'Launching ' + appName;
          var msg = loading;
          if (Hue.Desktop.hasLoaded(component)) msg = launching;
          if (!FlashMessage.checkForFlashMessage(loading) && 
              !FlashMessage.checkForFlashMessage(launching) && 
              !$$('.loadingmsg').length) {
                growled[component] = FlashMessage.flash({
                  message: msg, 
                  duration: 10000
                });
          }
        };
        var clearGrowl = function(component) {
          if (growled[component]) {
            growled[component]();
            delete growled[component];
          }
        };
        Hue.Desktop.initialize({
          onBeforeLoad: launchGrowl,
          onBeforeLaunch: launchGrowl,
          onAfterLaunch: clearGrowl
        });
        //fade out the hue-loading message
        (function(){
          $('hue-loading').fade('out').get('tween').clearChain().chain(function(){
            $('hue-loading').destroy();
          });
        }).delay(300);

        //when the user logs in
        Hue.User.withUser(function(user){
          var bsLoaded;
          //this method runs once the bootstrap is run and the apps are registered
          var bootstrapped = function(){
            //ensure it only runs once
            if (bsLoaded) return;
            bsLoaded = true;

            //if there's no desktop to restore
            var linked = Hue.Desktop.launchLinked();
            // If a link was opened it chooses how to restore the desktop
            var restored;

            //we need to delay this slightly for IE; don't ask me why
            var finalize = function(){
              if (!linked) {
                //this is how we hide things in IE because it hates opacity/visibility stuff w/ VML
                $('hue-desktop').setStyle('top', -10000);
                restored = Hue.Desktop.restoreDesktop();
                $('hue-desktop').setStyle('top', null);
              }
              if (!linked && !restored) {
                //call the autolaunchers
                Hue.Desktop.autolaunchers.each(function(fn){
                  fn();
                });
              }
              //display the user as logged in
              $('hue-profileLink').set('text', user.username).addClass('loggedIn');
              $(document.body).addClass('hue-loaded');
              window.scrollTo(0,0);
              //fade in the toolbar
              $('hue-toolbar').show().tween('opacity', 0, 1);
              //and the dock
              $('hue-dock').tween('opacity', 0, 1);
            };

            //IE needs a brief delay
            if (Browser.Engine.trident) finalize.delay(100);
            else finalize();
          };

          //load the bootstraps
          new Element('script', {
            src: '/bootstrap.js',
            events: {
              //on load call the bootstrapped method above
              load: function() {
                bootstrapped();
              },
              //IE requires you monitor the readystate yourself for script tags
              readystatechange: function(){
                if (['loaded', 'complete'].contains(this.readyState)) bootstrapped();
              }
            }
          }).inject(document.head);
        });

      }
    });
  });
  </script>

  <script>
    % if send_dbug_messages:
      window.sendDbug = true;
    % else:
      window.sendDbug = false;
    % endif
  </script>
</head>
<body>
  <ul id="desktop-menu" class="desktop-menu" style="position:absolute; top: -100000px;">
  </ul>
  <div id="bg">
  </div>
  <div id="browserWarn">Hue is best experienced in <a target="browsers" href="http://getfirefox.com">Mozilla Firefox</a>, <a target="browsers" href="http://www.apple.com/safari/">Apple Safari</a>, or <a target="browsers" href="http://www.google.com/chrome">Google Chrome</a> <a id="closeWarning"></a></div>
  <div id="hue-desktop" class="hue-shared">
    <div id="hue-topnav">
      <div id="hue-toolbar">
        <img src="/static/art/favicon.png" width="16" height="16" class="hue-swoosh">
        <span>
          Hi
          <span id="hue-profileLink"></span>

          <span id="hue-logout">
            [<a href="/accounts/logout">logout</a>]
          </span>
        </span>
        <a class="hotkeys" id="hotkeys" title="show keyboard shortcuts">
          <img src="/static/art/shortcut.png"> Shortcuts
        </a>
      </div>
    </div>
    <div id="hue-dock">
      <div id="hue-dock-content">
        <div id="hue-dock-status" class="hue-inline">
          <div id="hue-dock-status-content">
          </div>
        </div>
        <span id="hue-dock-icons">
        </span>
      </div>
    </div>
    <div id="hue-loading">Launching Hue</div>
    <a id="hue-feedback" href="${feedback_url}" target="_blank"><img src="/static/art/feedback-tab.png" width="76" height="26"/></a>
  </div>
  <div class="alert_popup hue-error-popup">
    Warning, an AJAX request was made for the Hue desktop which cannot be loaded into an application window. Typically this means that a link clicked has no <em>href</em> value. Please notify the application's author.
  </div>

    <script>
    (function(){
      var state = Hue.Desktop.getState();
      var options = {};
      if (state && state.background) options.current = state.background;
      new BackgroundManager($('bg'), $('desktop-menu'), options);
      if (Browser.Engine.trident) $(document.body).addClass('IEroot');
      $(document.body).addClass(Browser.Engine.name);
    })();
    </script>
</body>
</html>

{'fraction_non_alphanumeric': 0.14683849337314683, 'fraction_numerical': 0.0060767981560060766, 'mean_word_length': 2.328683522231909, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '3622059', 'n_tokens_mistral': 5715, 'n_tokens_neox': 5412, 'n_words': 1472}