<commit_before>/*
 * BS3 + AdminLTE JS
 *
 */
/* Specific script for back office */
$( function(){
	var nCounter = "";

	// Count effect
	$('.small-box .inner h3 span').each( function () {
		nCounter = $(this).text();
		var sVal = "";
		var thisTXT = $(this).text().split(" ");
		if ( thisTXT.length > 1 ){
			nCounter = thisTXT[0];
			sVal = " / " + thisTXT[1];
		}
		if ( $.isNumeric( nCounter ) ) {
			$(this).prop('Counter',0).animate({
				Counter: nCounter
			}, {
				duration: 1000,
				easing: 'swing',
				step: function (now) {
					$(this).text( Math.ceil(now) + sVal );
				}
			});
		}
	});

	// Disable Double Click on submit Buttons -> * NOT WORKING WITH IE *
	let numForms = document.forms.length;
	if( numForms > 0 ){
		let aForms = Array.from(document.forms);
		aForms.forEach( function(form){
			form.addEventListener( 'submit', function(e) {
				e.submitter.setAttribute('disabled', 'disabled');
			}, false);
		});
	}

	//Make the dashboard widgets sortable Using jquery UI
	$(".lutece-dashboard").sortable({
	    placeholder: "sort-highlight",
	    connectWith: ".lutece-dashboard",
	    handle: ".box-header, .info-box-icon",
	    forcePlaceholderSize: true,
	    zIndex: 999999
	  });
	  $(".lutece-dashboard .box-header, .lutece-dashboard .info-box-icon").css("cursor", "move");


	// File Input Style<commit_msg>LUTECE-2434 : find a better way<commit_after>/*
 * BS3 + AdminLTE JS
 *
 */
/* Specific script for back office */
$( function(){
	var nCounter = "";

	// Count effect
	$('.small-box .inner h3 span').each( function () {
		nCounter = $(this).text();
		var sVal = "";
		var thisTXT = $(this).text().split(" ");
		if ( thisTXT.length > 1 ){
			nCounter = thisTXT[0];
			sVal = " / " + thisTXT[1];
		}
		if ( $.isNumeric( nCounter ) ) {
			$(this).prop('Counter',0).animate({
				Counter: nCounter
			}, {
				duration: 1000,
				easing: 'swing',
				step: function (now) {
					$(this).text( Math.ceil(now) + sVal );
				}
			});
		}
	});

	// Disable Double Click on submit Buttons -> * NOT WORKING WITH IE *
	// let numForms = document.forms.length;
	// if( numForms > 0 ){
	// 	let aForms = Array.from(document.forms);
	// 	aForms.forEach( function(form){
	// 		form.addEventListener( 'submit', function(e) {
	// 			e.submitter.setAttribute('visibi', 'disabled');
	// 		}, false);
	// 	});
	// }

	//Make the dashboard widgets sortable Using jquery UI
	$(".lutece-dashboard").sortable({
	    placeholder: "sort-highlight",
	    connectWith: ".lutece-dashboard",
	    handle: ".box-header, .info-box-icon",
	    forcePlaceholderSize: true,
	    zIndex: 999999
	  });
	  $(".lutece-dashboard .box-header, .lutece-dashboard .info-box-icon").css("cursor", "move");


	// File Input Style
{'fraction_non_alphanumeric': 0.19037118706357956, 'fraction_numerical': 0.01396545387725101, 'mean_word_length': 2.888571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4978091', 'n_tokens_mistral': 1082, 'n_tokens_neox': 949, 'n_words': 211}