<commit_before>(function(){

	var mi2 = mi2JS;

	mi2.GroupHandler = mi2.GroupHandler || function(group){
		if(!(this instanceof mi2JS.GroupHandler)) return new mi2JS.GroupHandler(group);

		this.group = group;
	}

	var proto = mi2.comp.GroupHandler.prototype;

	function makeMap(arr, val){
		var obj = {};
		for(var i=0; i<arr.length; i++){
			obj[arr[i]] = val;
		}
		return obj;
	}

	/* this is usefull to add a group of elements, os they can be changed together */
	proto.setVisible  = function(v){ this.callFunc('setVisible', [v]); };
	proto.setSelected = function(v){ this.callFunc('setSelected',[v]); };
	proto.setEnabled  = function(v){ this.callFunc('setEnabled', [v]); };
	proto.classIf     = function(){ this.callFunc('classIf', arguments); };
	proto.addClass    = function(){ this.callFunc('addClass', arguments); };
	proto.removeClass = function(){ this.callFunc('removeClass', arguments); };

	proto.visibleIs  = function(){ this.toggle('setVisible', arguments, true, false); }
	proto.selectedIs = function(){ this.toggle('setSelected', arguments, true, false);	}
	proto.enabledIs  = function(){ this.toggle('setEnabled', arguments, true, false); }

	proto.hiddenIs     = function(){ this.toggle('setVisible', arguments, false, true); }
	proto.deselectedIs = function(){ this.toggle('setSelected', arguments, false, true);	}
	proto.disabledIs   = function(){ this.toggle('setEnabled', arguments, false, true); }

	/* what - what to set visible
	          supports either string code for single item , or object with multiple keys (and different values),
	   def - default value if not specified     <commit_msg>typo fix<commit_after>(function(){

	var mi2 = mi2JS;

	mi2.GroupHandler = mi2.GroupHandler || function(group){
		if(!(this instanceof mi2JS.GroupHandler)) return new mi2JS.GroupHandler(group);

		this.group = group;
	}

	var proto = mi2.GroupHandler.prototype;

	function makeMap(arr, val){
		var obj = {};
		for(var i=0; i<arr.length; i++){
			obj[arr[i]] = val;
		}
		return obj;
	}

	/* this is usefull to add a group of elements, os they can be changed together */
	proto.setVisible  = function(v){ this.callFunc('setVisible', [v]); };
	proto.setSelected = function(v){ this.callFunc('setSelected',[v]); };
	proto.setEnabled  = function(v){ this.callFunc('setEnabled', [v]); };
	proto.classIf     = function(){ this.callFunc('classIf', arguments); };
	proto.addClass    = function(){ this.callFunc('addClass', arguments); };
	proto.removeClass = function(){ this.callFunc('removeClass', arguments); };

	proto.visibleIs  = function(){ this.toggle('setVisible', arguments, true, false); }
	proto.selectedIs = function(){ this.toggle('setSelected', arguments, true, false);	}
	proto.enabledIs  = function(){ this.toggle('setEnabled', arguments, true, false); }

	proto.hiddenIs     = function(){ this.toggle('setVisible', arguments, false, true); }
	proto.deselectedIs = function(){ this.toggle('setSelected', arguments, false, true);	}
	proto.disabledIs   = function(){ this.toggle('setEnabled', arguments, false, true); }

	/* what - what to set visible
	          supports either string code for single item , or object with multiple keys (and different values),
	   def - default value if not specified     
{'fraction_non_alphanumeric': 0.15781346510191477, 'fraction_numerical': 0.004941321803582459, 'mean_word_length': 4.57487091222031, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4592423', 'n_tokens_mistral': 997, 'n_tokens_neox': 964, 'n_words': 263}