<commit_before>/* Script for pop-up dhtml more tabs implementation 
 * uses jQuery library
 */
function dhtml_more_tabs() {
	if ($('#selectNav').css('display') == 'none' ) {
		// if the selectNav element is not a child of siteNav then we need to init the page
		if ($('#selectNav').parent().attr('id') != 'siteNav') {
			// make the selectNav div a child of the linkNav element for better positioning
			$('div#selectNav').appendTo('#linkNav').addClass('dhtml_more_tabs');
		}
		// show the dropdown
		$('div#selectNav').css('top',$('#linkNav').height() - 3); // adjust the vertical position
		$('div#selectNav').show();
		// highlight the more tab
		$('.more-tab').addClass('more-active');
		// dim the current tab
		$('.selectedTab').addClass('tab-dim');
		// mask the rest of the page
		createDHTMLMask() ;
		$('.more-tab').css('z-index',9800);
		$('#selectNav').css('z-index',9900);
		$('.selectedTab').bind('click',function(){dhtml_more_tabs();return false;});
	} else {
		// unhighlight the more tab
		$('.more-tab').removeClass('more-active');
		// hide the dropdown
		$('div#selectNav').hide(); // hide the box
		//undim the currently selected tab
		$('.selectedTab').removeClass('tab-dim');
		removeDHTMLMask()
		$('.selectedTab').unbind('click');
	}
	return false;
}

function createDHTMLMask() {
	$('#container').append('<div id="portalMask">&nbsp;</div>');
	$('#portalMask').css('height',browserSafeDocHeight()).css('width','100%').css('z-index',1000).bind("click",function(event){
		dhtml_more_tabs();
		return false;
	});
}

function removeDHTMLMask() {
	$('#portalMask').remove();
}<commit_msg>SAK-11891<commit_after>/* Script for pop-up dhtml more tabs implementation 
 * uses jQuery library
 */

var dhtml_more_tabs = function() {
	//initialize the more tabs area then reset the function to just the show/hide behavior
	$('div#selectNav').appendTo('#linkNav').addClass('dhtml_more_tabs');
	$('div#selectNav').css('top',$('#linkNav').height() - 3); // adjust the vertical position
	$('div#selectNav').width($('#linkNav').width()*0.75); // fixes an IE6 bug
	dhtml_more_tabs = function() {
		if ($('#selectNav').css('display') == 'none' ) {
			$('div#selectNav').show();
			// highlight the more tab
			$('.more-tab').addClass('more-active');
			// dim the current tab
			$('.selectedTab').addClass('tab-dim');
			// mask the rest of the page
			createDHTMLMask() ;
			$('.more-tab').css('z-index',9800);
			$('#selectNav').css('z-index',9900);
			$('.selectedTab').bind('click',function(){dhtml_more_tabs();return false;});
		} else {
			// unhighlight the more tab
			$('.more-tab').removeClass('more-active');
			// hide the dropdown
			$('div#selectNav').hide(); // hide the box
			//undim the currently selected tab
			$('.selectedTab').removeClass('tab-dim');
			removeDHTMLMask()
			$('.selectedTab').unbind('click');
		}
	}
	dhtml_more_tabs();
}

function createDHTMLMask() {
	$('body').append('<div id="portalMask">&nbsp;</div>');
	$('#portalMask').css('height',browserSafeDocHeight()).css('width','100%').css('z-index',1000).bind("click",function(event){
		dhtml_more_tabs();
		return false;
	});
}

function removeDHTMLMask() {
	$('#portalMask').remove();
}
{'fraction_non_alphanumeric': 0.21935889377749843, 'fraction_numerical': 0.012884978001257071, 'mean_word_length': 4.704301075268817, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6271432', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1025, 'n_words': 215}