<commit_before>/* Welcome to Agile Toolkit JS framework. This file provides universal chain. */

// jQuery allows you to manipulate element by doing chaining. Similarly univ provides
// loads of simple functions to perform action chaining.
//

;
$||console.error("jQuery must be loaded");
(function($){


$.each({
	alert: function(a){
		alert(a);
	},
	displayAlert: function(a){
		alert(a);
	},
	redirect: function(url,fn){
		if($.fn.atk4_load){
			$.univ.page(url,fn);
		}else{
			document.location=url;
		}
	},
	redirectURL: function(page,fn){
		if($.atk4){
			$.univ.page(page,fn);
		}else{
			document.location=page;
		}
	},
	location: function(url){
		document.location=url;
	},
	page: function(page,fn){
		$('#Content').atk4_load(page,fn);
	},
	log: function(arg1){
		if(log){
			log.info(arg1);
			var s=$('#header_widgets').children('a:last').children('span');
			var i=parseInt(s.text());
			if(i>0)i++;else i='1';
			s.text(i);
			var s=$('#header_widgets').children('a:last').children('img').stop().effect('bounce');
		}else{
			console.log(arg1);
		}
	},
	confirm: function(msg){
		if(!msg)msg='Are you sure?';
		if(!confirm(msg))this.ignore=true;
	},
	displayFormError: function(form,field,message){
		console.log(form,field,message);<commit_msg>fix to not use loader even if its loaded, if we are not supposed to use it<commit_after>/* Welcome to Agile Toolkit JS framework. This file provides universal chain. */

// jQuery allows you to manipulate element by doing chaining. Similarly univ provides
// loads of simple functions to perform action chaining.
//

;
$||console.error("jQuery must be loaded");
(function($){


$.each({
	alert: function(a){
		alert(a);
	},
	displayAlert: function(a){
		alert(a);
	},
	redirect: function(url,fn){
		if($.fn.atk4_load && $('#Content').hasClass('atk4_loader')){
			$.univ.page(url,fn);
		}else{
			document.location=url;
		}
	},
	redirectURL: function(page,fn){
		if($.fn.atk4_load && $('#Content').hasClass('atk4_loader')){
			$.univ.page(page,fn);
		}else{
			document.location=page;
		}
	},
	location: function(url){
		document.location=url;
	},
	page: function(page,fn){
		$('#Content').atk4_load(page,fn);
	},
	log: function(arg1){
		if(log){
			log.info(arg1);
			var s=$('#header_widgets').children('a:last').children('span');
			var i=parseInt(s.text());
			if(i>0)i++;else i='1';
			s.text(i);
			var s=$('#header_widgets').children('a:last').children('img').stop().effect('bounce');
		}else{
			console.log(arg1);
		}
	},
	confirm: function(msg){
		if(!msg)msg='Are you sure?';
		if(!confirm(msg))this.ignore=true;
	},
	displayFormError: function(form,field,message){
		console.log(form,field,message);
{'fraction_non_alphanumeric': 0.20007493443237168, 'fraction_numerical': 0.0067440989134507304, 'mean_word_length': 4.656779661016949, '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': '2101596', 'n_tokens_mistral': 1048, 'n_tokens_neox': 967, 'n_words': 189}