<commit_before>(function ($) {
  'use strict';

  // ---------- Node class and methods ----------
  Node = function ($map, $parent, nodeName, href) {

    this.$map     = $map;
    this.name     = nodeName;
    this.href     = href;
    this.$parent  = $parent;
    this.children = []; // No children for us for now

    // Create the node element in the page and append it to the map's object
    this.element = $('<a href="' + this.href + '">' + this.name + '</a>')
      .addClass('node');
    this.$map.prepend (this.element);

    // The node will be moved directly from code
    this.element.css ('position', 'absolute');

    if (this.$parent == null) // Check if I'm the root
      this.element.addClass('root');
    else {
      this.$parent.node.children.push (this); // Add me as a child of my parent
      console.log("TODO line");//TODO if children add a line from me to parent to mapObject
    }

    // TODO activate draggable jquery ui

    //TODO click stuff
  }

  // Generate a node map on the jQuery selected objects
  $.fn.createNodeMap = function (options) {
    var initialSize = -1;
    options = $.extend({ // Add default options for our map to use
      mapArea: {
        width:  initialSize,
        height: initialSize
      }
    }, options);

    var $window = $(window);

    return this.each(function () { // Generate a node map (returns this)<commit_msg>Small comment added for map area<commit_after>(function ($) {
  'use strict';

  // ---------- Node class and methods ----------
  Node = function ($map, $parent, nodeName, href) {

    this.$map     = $map;
    this.name     = nodeName;
    this.href     = href;
    this.$parent  = $parent;
    this.children = []; // No children for us for now

    // Create the node element in the page and append it to the map's object
    this.element = $('<a href="' + this.href + '">' + this.name + '</a>')
      .addClass('node');
    this.$map.prepend (this.element);

    // The node will be moved directly from code
    this.element.css ('position', 'absolute');

    if (this.$parent == null) // Check if I'm the root
      this.element.addClass('root');
    else {
      this.$parent.node.children.push (this); // Add me as a child of my parent
      console.log("TODO line");//TODO if children add a line from me to parent to mapObject
    }

    // TODO activate draggable jquery ui

    //TODO click stuff
  }

  // ---------- Map class and methods ----------

  // Generate a node map on the jQuery selected objects
  $.fn.createNodeMap = function (options) {
    var initialSize = -1;
    options = $.extend({ // Add default options for our map to use
      mapArea: {
        width:  initialSize,
        height: initialSize
      }
    }, options);

    var $window = $(window);

    return this.each(function () { // Generate a node map (returns this)
{'fraction_non_alphanumeric': 0.15043936731107205, 'fraction_numerical': 0.00070298769771529, 'mean_word_length': 2.197752808988764, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '465063', 'n_tokens_mistral': 836, 'n_tokens_neox': 805, 'n_words': 298}