<commit_before>;var conpigurator = {
	active:false,
	handleChange:function(event){
		if($(event.target).hasClass('conpiguratorInput')){
			if(event.target.value && event.target.value !== '' && typeof event.target.value === 'string'){
				if(event.target.dataset){
					var pigment = event.target.value;
					if(pigment.substring(0,1) !== '#') pigment = '#'+pigment;
					pigment = (pigment.length > 7)? pigment.substring(0,7) : pigment;
					conpigurator.conpigurateElements(event.target.dataset.conpigbg,'backgroundColor',pigment);
					conpigurator.conpigurateElements(event.target.dataset.conpigborder,'borderColor',pigment);
					conpigurator.conpigurateElements(event.target.dataset.conpigtext,'color',pigment);
				}
			}
		}
	},
	conpigurateElements:function(selector,colorProperty,pigment){
		if(selector){
			colorProperty = colorProperty || 'backgroundColor';
			$(selector).css(colorProperty,pigment);
		}
	},
	init:function(){
		if(!conpigurator.active){
			$(body).on('change',function(event){conpigurator.handleChange(event);});
			conpigurator.active = true;
		}
	}
};
<commit_msg>Fix 'body' selector in init function<commit_after>;var conpigurator = {
	active:false,
	handleChange:function(event){
		if($(event.target).hasClass('conpiguratorInput')){
			if(event.target.value && event.target.value !== '' && typeof event.target.value === 'string'){
				if(event.target.dataset){
					var pigment = event.target.value;
					if(pigment.substring(0,1) !== '#') pigment = '#'+pigment;
					pigment = (pigment.length > 7)? pigment.substring(0,7) : pigment;
					conpigurator.conpigurateElements(event.target.dataset.conpigbg,'backgroundColor',pigment);
					conpigurator.conpigurateElements(event.target.dataset.conpigborder,'borderColor',pigment);
					conpigurator.conpigurateElements(event.target.dataset.conpigtext,'color',pigment);
				}
			}
		}
	},
	conpigurateElements:function(selector,colorProperty,pigment){
		if(selector){
			colorProperty = colorProperty || 'backgroundColor';
			$(selector).css(colorProperty,pigment);
		}
	},
	init:function(){
		if(!conpigurator.active){
			$('body').on('change',function(event){conpigurator.handleChange(event);});
			conpigurator.active = true;
		}
	}
};

{'fraction_non_alphanumeric': 0.16779431664411368, 'fraction_numerical': 0.0045105999097880016, 'mean_word_length': 5.4476744186046515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7353691', 'n_tokens_mistral': 883, 'n_tokens_neox': 768, 'n_words': 77}