<commit_before>/*
 * Copyright (c) 2002-2011 "Neo Technology,"
 * Network Engine for Objects in Lund AB [http://neotechnology.com]
 *
 * This file is part of Neo4j.
 *
 * Neo4j is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
(function() {
  /*
  Copyright (c) 2002-2011 "<NAME>,"
  Network Engine for Objects in Lund AB [http://neotechnology.com]

  This file is part of Neo4j.

  Neo4j is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with this program. If not, see <http://www.gnu.org/licenses/>.
  */  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
    for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
    function ctor() { this.constructor = child; }
    ctor.prototype = parent.prototype;
    child.prototype = new ctor;
    child.__super__ = parent.prototype;
    return child;
  };
  define(['neo4j/webadmin/templates/base', 'neo4j/webadmin/views/View', 'lib/backbone'], function(template, View) {
    var BaseView;
    return BaseView = (function() {
      function BaseView() {
        this.remove = __bind(this.remove, this);;
        this.mainViewChanged = __bind(this.mainViewChanged, this);;
        this.initialize = __bind(this.initialize, this);;        BaseView.__super__.constructor.apply(this, arguments);
      }
      __extends(BaseView, View);
      BaseView.prototype.template = template;
      BaseView.prototype.initialize = function(options) {
        this.appState = options.appState;
        return this.appState.bind('change:mainView', this.mainViewChanged);
      };
      BaseView.prototype.mainViewChanged = function(event) {
        if (this.mainView != null) {
          this.mainView.detach();
        }
        this.mainView = event.attributes.mainView;
        return this.render();
      };
      BaseView.prototype.render = function() {
        $(this.el).html(this.template({
          mainmenu: [
            {
              label: "Dashboard",
              subtitle: "Get a grip",
              url: "#",
              current: location.hash === ""
            }, {
              label: "Data browser",
              subtitle: "Explore and edit",
              url: "#/data/",
              current: location.hash.indexOf("#/data/") === 0
            }, {
              label: "Console",
              subtitle: "Power tool",
              url: "#/console/",
              current: location.hash === "#/console/"
            }, {
              label: "Server info",
              subtitle: "Detailed information",
              url: "#/info/",
              current: location.hash === "#/info/"
            }
          ]
        }));
        if (this.mainView != null) {
          this.mainView.attach($("#contents"));
          this.mainView.render();
        }
        return this;
      };
      BaseView.prototype.remove = function() {
        this.appState.unbind('change:mainView', this.mainViewChanged);
        if (this.mainView != null) {
          this.mainView.remove();
        }
        return BaseView.__super__.remove.call(this);
      };
      return BaseView;
    })();
  });
}).call(this);<commit_msg>Removed the attitude of the subtitles<commit_after>/*
 * Copyright (c) 2002-2011 "<NAME>,"
 * Network Engine for Objects in Lund AB [http://neotechnology.com]
 *
 * This file is part of Neo4j.
 *
 * Neo4j is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
(function() {
  /*
  Copyright (c) 2002-2011 "<NAME>,"
  Network Engine for Objects in Lund AB [http://neotechnology.com]

  This file is part of Neo4j.

  Neo4j is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License
  along with this program. If not, see <http://www.gnu.org/licenses/>.
  */  var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
    for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
    function ctor() { this.constructor = child; }
    ctor.prototype = parent.prototype;
    child.prototype = new ctor;
    child.__super__ = parent.prototype;
    return child;
  };
  define(['neo4j/webadmin/templates/base', 'neo4j/webadmin/views/View', 'lib/backbone'], function(template, View) {
    var BaseView;
    return BaseView = (function() {
      function BaseView() {
        this.remove = __bind(this.remove, this);;
        this.mainViewChanged = __bind(this.mainViewChanged, this);;
        this.initialize = __bind(this.initialize, this);;        BaseView.__super__.constructor.apply(this, arguments);
      }
      __extends(BaseView, View);
      BaseView.prototype.template = template;
      BaseView.prototype.initialize = function(options) {
        this.appState = options.appState;
        return this.appState.bind('change:mainView', this.mainViewChanged);
      };
      BaseView.prototype.mainViewChanged = function(event) {
        if (this.mainView != null) {
          this.mainView.detach();
        }
        this.mainView = event.attributes.mainView;
        return this.render();
      };
      BaseView.prototype.render = function() {
        $(this.el).html(this.template({
          mainmenu: [
            {
              label: "Dashboard",
              subtitle: "Overview",
              url: "#",
              current: location.hash === ""
            }, {
              label: "Data browser",
              subtitle: "Explore and edit",
              url: "#/data/",
              current: location.hash.indexOf("#/data/") === 0
            }, {
              label: "Console",
              subtitle: "Power tool",
              url: "#/console/",
              current: location.hash === "#/console/"
            }, {
              label: "Server info",
              subtitle: "Detailed Stats",
              url: "#/info/",
              current: location.hash === "#/info/"
            }
          ]
        }));
        if (this.mainView != null) {
          this.mainView.attach($("#contents"));
          this.mainView.render();
        }
        return this;
      };
      BaseView.prototype.remove = function() {
        this.appState.unbind('change:mainView', this.mainViewChanged);
        if (this.mainView != null) {
          this.mainView.remove();
        }
        return BaseView.__super__.remove.call(this);
      };
      return BaseView;
    })();
  });
}).call(this);
{'fraction_non_alphanumeric': 0.11493461803165864, 'fraction_numerical': 0.005735260380821289, 'mean_word_length': 2.439447731755424, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4631104', 'n_tokens_mistral': 2402, 'n_tokens_neox': 2335, 'n_words': 777}