<commit_before>(function ( $ ) {

	var methods = {
		init : function(options) {
			
			// Default Settings
			var settings = $.extend({
  				'expandIconClass' : 'closed',
  				'contractIconClass' : 'open',
  				'setFocus' : undefined,
  				'classPrefix' : 'goodtree_',
				}, options);

			return this.each(function() {

				// Hide all of the children Elements
				$(this).find('ul').hide();

				// Add the plus minus buttons
				$(this).find('li').each(function() {
					if($(this).children('ul').length > 0)
						$(this).prepend($('<div />', {'class': settings.classPrefix + "toggle " + settings.expandIconClass}));
				});

				// Events
				$('.' + settings.classPrefix + 'toggle').click(function() {
					$(this).parent().children('ul').toggle();
					$(this).hasClass('open') 
						? $(this).removeClass(settings.contractIconClass).addClass(settings.expandIconClass) 
						: $(this).removeClass(settings.expandIconClass).addClass(settings.contractIconClass);
				});

				if(undefined !== settings.setFocus)
				{
					$(this).goodtree('setFocus', settings.setFocus);
				}

			});
		},

		setFocus : function(obj) {
			return this.each(function() {
				var tree_parent = this;
				$(obj).parents('ul').each(function() {
					if($(this) === this)
						return;
					else
						$(this).show();
				});
			});
		}
	}

	$.fn.goodtree = function( method ) {
		if ( methods[method] ) {
	      return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
	    } else if ( typeof method === 'object' || ! method ) {
	      return methods.init.apply( this, arguments );
	    } else {
	      $.error( 'Method ' +  method + ' does not exist on jQuery.goodtree' );
	    }
	};
}) ( jQuery );<commit_msg>spaces man spaces<commit_after>(function ( $ ) {

  var methods = {
    init : function(options) {
      
      // Default Settings
      var settings = $.extend({
          'expandIconClass' : 'closed',
          'contractIconClass' : 'open',
          'setFocus' : undefined,
          'classPrefix' : 'goodtree_',
        }, options);

      return this.each(function() {

        // Hide all of the children Elements
        $(this).find('ul').hide();

        // Add the plus minus buttons
        $(this).find('li').each(function() {
          if($(this).children('ul').length > 0)
            $(this).prepend($('<div />', {'class': settings.classPrefix + "toggle " + settings.expandIconClass}));
        });

        // Events
        $('.' + settings.classPrefix + 'toggle').click(function() {
          $(this).parent().children('ul').toggle();
          $(this).hasClass('open') 
            ? $(this).removeClass(settings.contractIconClass).addClass(settings.expandIconClass) 
            : $(this).removeClass(settings.expandIconClass).addClass(settings.contractIconClass);
        });

        if(undefined !== settings.setFocus)
        {
          $(this).goodtree('setFocus', settings.setFocus);
        }

      });
    },

    setFocus : function(obj) {
      return this.each(function() {
        var tree_parent = this;
        $(obj).parents('ul').each(function() {
          if($(this) === this)
            return;
          else
            $(this).show();
        });
      });
    }
  }

  $.fn.goodtree = function( method ) {
    if ( methods[method] ) {
        return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
      } else if ( typeof method === 'object' || ! method ) {
        return methods.init.apply( this, arguments );
      } else {
        $.error( 'Method ' +  method + ' does not exist on jQuery.goodtree' );
      }
  };
}) ( jQuery );
{'fraction_non_alphanumeric': 0.18091833929062415, 'fraction_numerical': 0.0010998075336816058, 'mean_word_length': 2.356088560885609, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5180130', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1055, 'n_words': 198}