<commit_before>if (phoenix.core.checkComp()) {
	if (phoenix.core.checkDeps(['variables','jquery'])) {
		phoenix.core.log("start_module_loading","events")
		phoenix.data.events= new Object();
		var data=phoenix.data.events;
		phoenix.events= new Object();
		var module=phoenix.events;

		data.eventsList= new Array();
		data.eventsActions= new Array();


		module.eventRegister=function(id,func) {
			data.eventsActions[id]=new Array();
			data.eventsList.push(id);
			if (!(typeof func === 'undefined')) { 
				module.eventActionRegister(id,func);
			}
		};
		module.eventActionRegister=function(id,func) {
			data.eventsActions[id].push(func);
		};
		module.eventReport=function(id,parms) {
			console.log("[phoenix][events] "+id+" execution started");
			for (var i = 0; i < data.eventsActions[id].length; i++) {
				phoenix_globalTemp=data.eventsActions[id][i];
				if (!(typeof parms === 'undefined')) { phoenix_globalTemp(parms); }
				else phoenix_globalTemp();
			};
		};

		data.appAlreadyLoaded=false;

		module.eventRegister("windowResize");
		module.eventRegister("appLoaded",function() {phoenix.data.appAlreadyLoaded=true;});
		module.eventRegister("documentReady");
		module.eventRegister("action");

		$( document ).ready(function() {
			if (!data.appAlreadyLoaded) {
				module.eventReport("appLoaded");
			}
			else{
				module.eventReport("documentReady");
			}
		});
		$(window).resize(function() {
			module.eventReport("windowResize");
		});


		
		phoenix.core.addModule("events");
	}
	else{
		phoenix.core.log("could_not_load_module",{id:"events",reason:"deps"})
	};
}
else{<commit_msg>bug fix - events module now logs on console when finish loading<commit_after>if (phoenix.core.checkComp()) {
	if (phoenix.core.checkDeps(['variables','jquery'])) {
		phoenix.core.log("start_module_loading","events")
		phoenix.data.events= new Object();
		var data=phoenix.data.events;
		phoenix.events= new Object();
		var module=phoenix.events;

		data.eventsList= new Array();
		data.eventsActions= new Array();


		module.eventRegister=function(id,func) {
			data.eventsActions[id]=new Array();
			data.eventsList.push(id);
			if (!(typeof func === 'undefined')) { 
				module.eventActionRegister(id,func);
			}
		};
		module.eventActionRegister=function(id,func) {
			data.eventsActions[id].push(func);
		};
		module.eventReport=function(id,parms) {
			console.log("[phoenix][events] "+id+" execution started");
			for (var i = 0; i < data.eventsActions[id].length; i++) {
				phoenix_globalTemp=data.eventsActions[id][i];
				if (!(typeof parms === 'undefined')) { phoenix_globalTemp(parms); }
				else phoenix_globalTemp();
			};
		};

		data.appAlreadyLoaded=false;

		module.eventRegister("windowResize");
		module.eventRegister("appLoaded",function() {phoenix.data.appAlreadyLoaded=true;});
		module.eventRegister("documentReady");
		module.eventRegister("action");

		$( document ).ready(function() {
			if (!data.appAlreadyLoaded) {
				module.eventReport("appLoaded");
			}
			else{
				module.eventReport("documentReady");
			}
		});
		$(window).resize(function() {
			module.eventReport("windowResize");
		});


		
		phoenix.core.addModule("events");
		phoenix.core.log("finish_module_loading","events")
	}
	else{
		phoenix.core.log("could_not_load_module",{id:"events",reason:"deps"})
	};
}
else{
{'fraction_non_alphanumeric': 0.17655920457969268, 'fraction_numerical': 0.0006025911419102139, 'mean_word_length': 4.949820788530466, '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': '648267', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1107, 'n_words': 152}