<commit_before>var dialogutil = dialogutil || {};

(function(jQuery, dialogutil) {

	dialogutil.openDialog = function(divId, frameId, yPos) {
		var vHeight = 300;
		
		

		$('body').css('padding-bottom','300px')
		$("#" + divId).dialog({
			resizable: false,
			autoOpen:false,
			draggable:false,
			modal: true,
			width: 600,
			height: vHeight,
			close: function(event, ui) {
				dialogutil.closeDialog(divId, frameId);
			},
			open: function() {
				$("#" + divId).delay(500, function(){dialogutil.turnOnPortalOverlay();});
				dialogutil.updateMainFrameHeight(window.name, frameId, vHeight);
				
			}
		});

		$("#" + divId).dialog( "option", "position", ['center', yPos - vHeight/2]);
		$("#" + divId).dialog("open");
	};

	/**
	 * Turns on the 2.x portals background overlay
	 */
	dialogutil.turnOnPortalOverlay = function() {
		$("body", parent.document).append('<div id="portalMask" style="position:fixed;width:100%;height:100%;"></div>');
		$("#" + iframeId, parent.document).parent().css("z-index", "9001").css("position", "relative").css("background", "#fff");
	};

	/**
	 * Turns off the 2.x portal background overlay
	 */
	dialogutil.turnOffPortalOverlay = function() {
		$("#portalMask", parent.document).trigger("unload").unbind().remove();
		$("#" + iframeId, parent.document).parent().css("z-index", "0");
	};

	dialogutil.closeDialog = function(divId, frameId) {
		$("#" + frameId).removeAttr("src");
		$("#" + divId).dialog('destroy');
		$("#" + divId).hide();
		dialogutil.turnOffPortalOverlay();
	};

	dialogutil.showDiv = function(divId) {
		$("#" + divId).show();
		$("#" + divId).delay(5000, function(){$("#" + divId).fadeOut(1000)});
	};

	$.fn.delay = function(time, func) {
		return this.each(function(){
			setTimeout(func,time);<commit_msg>SAK-24961 In IE10, grading a forum post grays out entire screen <commit_after>var dialogutil = dialogutil || {};

(function(jQuery, dialogutil) {

	dialogutil.openDialog = function(divId, frameId, yPos) {
		var vHeight = 300;
		
		

		$('body').css('padding-bottom','300px')
		$("#" + divId).dialog({
			resizable: false,
			autoOpen:false,
			draggable:false,
			modal: true,
			width: 600,
			height: vHeight,
			close: function(event, ui) {
				dialogutil.closeDialog(divId, frameId);
			},
			open: function() {
				$("#" + divId).delay(500, function(){dialogutil.turnOnPortalOverlay();});
				dialogutil.updateMainFrameHeight(window.name, frameId, vHeight);
				
			}
		});

		$("#" + divId).dialog( "option", "position", ['center', yPos - vHeight/2]);
		$("#" + divId).dialog("open");
	};

	/**
	 * Turns on the 2.x portals background overlay
	 */
	dialogutil.turnOnPortalOverlay = function() {
		$("body", parent.document).append('<div id="portalMask" style="position:fixed;width:100%;height:100%;"></div>');
		$("#" + iframeId, parent.document).css("z-index", "9001").css("position", "relative").css("background", "#fff");
	};

	/**
	 * Turns off the 2.x portal background overlay
	 */
	dialogutil.turnOffPortalOverlay = function() {
		$("#portalMask", parent.document).trigger("unload").unbind().remove();
		$("#" + iframeId, parent.document).parent().css("z-index", "0");
	};

	dialogutil.closeDialog = function(divId, frameId) {
		$("#" + frameId).removeAttr("src");
		$("#" + divId).dialog('destroy');
		$("#" + divId).hide();
		dialogutil.turnOffPortalOverlay();
	};

	dialogutil.showDiv = function(divId) {
		$("#" + divId).show();
		$("#" + divId).delay(5000, function(){$("#" + divId).fadeOut(1000)});
	};

	$.fn.delay = function(time, func) {
		return this.each(function(){
			setTimeout(func,time);
{'fraction_non_alphanumeric': 0.2203342618384401, 'fraction_numerical': 0.020891364902506964, 'mean_word_length': 4.507668711656442, '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': '5929703', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1233, 'n_words': 198}