<commit_before>$(window).ready(function(){
	
	//main menu flyouts or mbmenu releacment
	//$( '#MenuView .parent, #HeaderLinksView .parent, #ShortcutsMenu .parent' ).hover(
	$( '.nav > .parent' ).hover(
		function(){
			if ( $(this).find('ul') ){
				$(this).find('ul').stop(true, true).delay(0).fadeIn(250);
			}
		}, 
		function(){
			if ( $(this).find('ul') ){
				$(this).find('ul').stop(true, true).fadeOut(250);
			}
		}
	);
	
	/*Resizes the app to fill the browser's window case smaller'*/
	var viewportHeight = $(window).height();
	var wrapperDivHeight = $('body > div').outerHeight(true)
	var appChromeHeight = 0;
	var bufferHeight = 0;
	var recentlyViewedHeight = 0;
	
	if ( $('#LoginPageView').length > 0 ) {
		appChromeHeight = 38 + $('#FooterView').outerHeight(true);
		if ( wrapperDivHeight < viewportHeight  ){
			bufferHeight = viewportHeight - appChromeHeight;
			$('#LoginView').height(  bufferHeight   );
		}
	} else {
		recentlyViewedHeight = $('#RecentlyViewedView').outerHeight(true);
		appChromeHeight = recentlyViewedHeight + $('#MenuView').outerHeight(true) + $('#HeaderView').outerHeight(true) + $('#FooterView').outerHeight(true);
		if ( wrapperDivHeight < viewportHeight  ){
			bufferHeight = viewportHeight - appChromeHeight;
			$('#RecentlyViewedView').height( $('#RecentlyViewedView').height() + bufferHeight   );
		}
	}
	
	
	
	
	
	/*Dropdowns - Dropkick*/
	 
	$('#edit-form select, .search-view-1 select, #inline-edit-form select').dropkick();

	$('html').click(function(e) {
		$.each($('td > select'), function(index, value) {
			$(value).dropkick('close');
		});
	});
	
	
	/*Checkboxes
	 from: http://webdesign.maratz.com/lab/fancy-checkboxes-and-radio-buttons/jquery.html
	 * */


	function setupCheckboxes( $context ) {
		
		if ( $('input:checkbox', $context ).length ) {	
			$('input:checkbox', $context ).each(function(){ 
				$(this).parent().removeClass('c_on');
			});
			$('label input:checked', $context ).each(function(){ 
				$(this).parent('label').addClass('c_on');
		    });
		}
		
		$('label', $context[0] ).
		    live( 'click', { $inputContext:$(this).content  },
				function( event ){
			        if ( $('input:checkbox', event.data.$inputContext ).length ) {	
						$('input:checkbox', event.data.$inputContext ).each(function(){ 
							$(this).parent().removeClass('c_on');
						});
						$('label input:checked', event.data.$inputContext ).each(function(){ 
							$(this).parent('label').addClass('c_on');
					    });
					}
			});
	}
    
    
    //we're doing that because the multiselect widget isn't generated yet..
    window.setTimeout(
    	function setCheckboxes(){
    		setupCheckboxes( $('#search-form') );
    		setupCheckboxes( $('#app-search') );
    	},
    1000 );
	
	$(".overlay-label-field > input").live('focus', function(){
		$(this).prev().fadeOut(100);
	});
	
	$(".overlay-label-field > input").live('blur', function(){
		if($(this).val() == "") {
			$(this).prev().fadeIn(250);
		}
	});


});


// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};

// make it safe to use console.log always
(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());<commit_msg>query cleaning<commit_after>$(window).ready(function(){
	
	//main menu flyouts or mbmenu releacment
	//$( '#MenuView .parent, #HeaderLinksView .parent, #ShortcutsMenu .parent' ).hover(
	$( '.nav > .parent' ).hover(
		function(){
			if ( $(this).find('ul') ){
				$(this).find('ul').stop(true, true).delay(0).fadeIn(250);
			}
		}, 
		function(){
			if ( $(this).find('ul') ){
				$(this).find('ul').stop(true, true).fadeOut(250);
			}
		}
	);
	
	/*Resizes the app to fill the browser's window case smaller'*/
	var viewportHeight = $(window).height();
	var wrapperDivHeight = $('body > div').outerHeight(true)
	var appChromeHeight = 0;
	var bufferHeight = 0;
	var recentlyViewedHeight = 0;
	
	if ( $('#LoginPageView').length > 0 ) {
		appChromeHeight = 38 + $('#FooterView').outerHeight(true);
		if ( wrapperDivHeight < viewportHeight  ){
			bufferHeight = viewportHeight - appChromeHeight;
			$('#LoginView').height(  bufferHeight   );
		}
	} else {
		recentlyViewedHeight = $('#RecentlyViewedView').outerHeight(true);
		appChromeHeight = recentlyViewedHeight + $('#MenuView').outerHeight(true) + $('#HeaderView').outerHeight(true) + $('#FooterView').outerHeight(true);
		if ( wrapperDivHeight < viewportHeight  ){
			bufferHeight = viewportHeight - appChromeHeight;
			$('#RecentlyViewedView').height( $('#RecentlyViewedView').height() + bufferHeight   );
		}
	}
	
	
	
	
	
	/*Dropdowns - Dropkick*/
	 
	$('#edit-form select, .search-view-1 select, #inline-edit-form select').dropkick();

	$('html').click(function(e) {
		$.each($('td > select'), function(index, value) {
			$(value).dropkick('close');
		});
	});
	
	
	/*Checkboxes
	 from: http://webdesign.maratz.com/lab/fancy-checkboxes-and-radio-buttons/jquery.html
	 * */


	function setupCheckboxes( $context ) {
		
		if ( $('input:checkbox', $context ).length ) {	
			$('input:checkbox', $context ).each(function(){ 
				$(this).parent().removeClass('c_on');
			});
			$('label input:checked', $context ).each(function(){ 
				$(this).parent('label').addClass('c_on');
		    });
		}
		
		$('label', $context[0] ).
		    live( 'click', { $inputContext:$(this).content  },
				function( event ){
			        if ( $('input:checkbox', event.data.$inputContext ).length ) {	
						$('input:checkbox', event.data.$inputContext ).each(function(){ 
							$(this).parent().removeClass('c_on');
						});
						$('label input:checked', event.data.$inputContext ).each(function(){ 
							$(this).parent('label').addClass('c_on');
					    });
					}
			});
	}
    
    
    //we're doing that because the multiselect widget isn't generated yet..
    window.setTimeout(
    	function setCheckboxes(){
    		setupCheckboxes( $('#search-form') );
    		setupCheckboxes( $('#app-search') );
    		setupCheckboxes( $('label.hasCheckBox') );
    	},
    1000 );
	
	$(".overlay-label-field > input").live('focus', function(){
		$(this).prev().fadeOut(100);
	});
	
	$(".overlay-label-field > input").live('blur', function(){
		if($(this).val() == "") {
			$(this).prev().fadeIn(250);
		}
	});


});


// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if (typeof console.log === 'object') log.apply.call(console.log, console, newarr); else console.log.apply(console, newarr);}};

// make it safe to use console.log always
(function(a){function b(){}for(var c="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),d;!!(d=c.pop());){a[d]=a[d]||b;}})
(function(){try{console.log();return window.console;}catch(a){return (window.console={});}}());
{'fraction_non_alphanumeric': 0.21206174777603348, 'fraction_numerical': 0.007587650444793302, 'mean_word_length': 4.076361221779549, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7232681', 'n_tokens_mistral': 2821, 'n_tokens_neox': 2471, 'n_words': 418}