<commit_before>/*global $, document, Juggernaut, ddsmoothmenu, setTimeout, window, alert */

/**************************************************************
           GLOBAL VARIABLE(S)
**************************************************************/
var GNITE = {
  Tree : {
    MasterTree    : {},
    DeletedTree   : {},
    ReferenceTree : {},
    Node          : {}
  },
  token : ""
};

/**************************************************************
         JUGGERNAUT
**************************************************************/
var jug = new Juggernaut();

/********************************* jQuery START *********************************/
$(function() {

  "use strict";

  GNITE.token = $("meta[name='csrf-token']").attr("content");
  GNITE.Tree.MasterTree.id = $('.tree-container:first').attr('data-database-id');
  GNITE.Tree.MasterTree.channel = "tree_" + GNITE.Tree.MasterTree.id;

  jug.meta = { master_tree_id: GNITE.Tree.MasterTree.id, user_id: GNITE.Tree.MasterTree.user_id };
  jug.on("connect", function() { "use strict"; $('#master-tree').addClass("socket-active"); });
  jug.on("disconnect", function() { "use strict"; $('#master-tree').removeClass("socket-active"); });

  /**************************************************************
           TREE CONFIGURATION
  **************************************************************/
  GNITE.Tree.configuration = {
    'core' : {
      'strings' : {
        'new_node' : 'New child'
      }
    },
    'themes' : {
      'theme' : 'gnite',
      'icons' : false
    },
    'html_data' : {
      'ajax' : {
        'data' : function(node) {
          if (node.attr) {
            $('#' + node.attr('id')).append("<span class=\"jstree-loading\">&nbsp;</span>");
            return { 'parent_id' : node.attr('id') };
          } else {<commit_msg>Adjusted application.js to not add entry to roster when chat not visible<commit_after>/*global $, document, Juggernaut, ddsmoothmenu, setTimeout, window, alert */

/**************************************************************
           GLOBAL VARIABLE(S)
**************************************************************/
var GNITE = {
  Tree : {
    MasterTree    : {},
    DeletedTree   : {},
    ReferenceTree : {},
    Node          : {}
  },
  token : ""
};

/**************************************************************
         JUGGERNAUT
**************************************************************/
var jug = new Juggernaut();

/********************************* jQuery START *********************************/
$(function() {

  "use strict";

  GNITE.token = $("meta[name='csrf-token']").attr("content");
  GNITE.Tree.MasterTree.id = $('.tree-container:first').attr('data-database-id');
  GNITE.Tree.MasterTree.channel = "tree_" + GNITE.Tree.MasterTree.id;

  if($('#chat-messages-wrapper').length > 0) {
    jug.meta = { master_tree_id: GNITE.Tree.MasterTree.id, user_id: GNITE.Tree.MasterTree.user_id };
  }
  jug.on("connect", function() { "use strict"; $('#master-tree').addClass("socket-active"); });
  jug.on("disconnect", function() { "use strict"; $('#master-tree').removeClass("socket-active"); });

  /**************************************************************
           TREE CONFIGURATION
  **************************************************************/
  GNITE.Tree.configuration = {
    'core' : {
      'strings' : {
        'new_node' : 'New child'
      }
    },
    'themes' : {
      'theme' : 'gnite',
      'icons' : false
    },
    'html_data' : {
      'ajax' : {
        'data' : function(node) {
          if (node.attr) {
            $('#' + node.attr('id')).append("<span class=\"jstree-loading\">&nbsp;</span>");
            return { 'parent_id' : node.attr('id') };
          } else {
{'fraction_non_alphanumeric': 0.3859882791688865, 'fraction_numerical': 0.0002663825253063399, 'mean_word_length': 3.584859584859585, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '1190817', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1037, 'n_words': 161}