<commit_before>/*jslint indent: 2, nomen: true, maxlen: 100, vars: true, white: true, plusplus: true */
/*global Backbone, templateEngine, $, window*/
(function () {
  "use strict";
  window.NavigationView = Backbone.View.extend({
    el: '#navigationBar',

    events: {
      "change #arangoCollectionSelect": "navigateBySelect",
      "click .tab": "navigateByTab",
      "click .internalLink": "navigateByTab",
      "mouseenter .dropdown": "showDropdown",
      "mouseleave .dropdown": "hideDropdown"
    },

    initialize: function () {
      this.dbSelectionView = new window.DBSelectionView({
        collection: window.arangoDatabase,
        current: window.currentDB
      });
      this.userBarView = new window.UserBarView({
        collection: this.options.notificationCollection,
        userCollection: window.activeUser
      });
      this.statisticBarView = new window.StatisticBarView({});
    },

    handleSelectDatabase: function () {
      this.dbSelectionView.render($("#dbSelect"));
    },


    template: templateEngine.createTemplate("navigationView.ejs"),

    render: function () {
      $(this.el).html(this.template.render({
        isSystem: window.currentDB.get("isSystem")
      }));
      this.dbSelectionView.render($("#dbSelect"));
      this.userBarView.render($("#userBar"));
      this.statisticBarView.render($("#statisticBar"));
      return this;
    },

    navigateBySelect: function () {<commit_msg>bugfix<commit_after>/*jslint indent: 2, nomen: true, maxlen: 100, vars: true, white: true, plusplus: true */
/*global Backbone, templateEngine, $, window*/
(function () {
  "use strict";
  window.NavigationView = Backbone.View.extend({
    el: '#navigationBar',

    events: {
      "change #arangoCollectionSelect": "navigateBySelect",
      "click .tab": "navigateByTab",
      "click .internalLink": "navigateByTab",
      "mouseenter .dropdown": "showDropdown",
      "mouseleave .dropdown": "hideDropdown"
    },

    initialize: function () {
      this.dbSelectionView = new window.DBSelectionView({
        collection: window.arangoDatabase,
        current: window.currentDB
      });
      this.userBarView = new window.UserBarView({
        collection: this.options.notificationCollection,
        userCollection: window.userCollection
      });
      this.statisticBarView = new window.StatisticBarView({});
    },

    handleSelectDatabase: function () {
      this.dbSelectionView.render($("#dbSelect"));
    },


    template: templateEngine.createTemplate("navigationView.ejs"),

    render: function () {
      $(this.el).html(this.template.render({
        isSystem: window.currentDB.get("isSystem")
      }));
      this.dbSelectionView.render($("#dbSelect"));
      this.userBarView.render($("#userBar"));
      this.statisticBarView.render($("#statisticBar"));
      return this;
    },

    navigateBySelect: function () {
{'fraction_non_alphanumeric': 0.14735385679695606, 'fraction_numerical': 0.002767208578346593, 'mean_word_length': 3.3228699551569507, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4553102', 'n_tokens_mistral': 836, 'n_tokens_neox': 817, 'n_words': 152}