<commit_before>dojo.provide("dijit._base.popup");

dojo.require("dijit._base.focus");
dojo.require("dijit._base.place");
dojo.require("dijit._base.window");

dijit.popup = new function(){
	// summary:
	//		This class is used to show/hide widgets as popups.

	var stack = [],
		beginZIndex=1000,
		idGen = 1;

	this.prepare = function(/*DomNode*/ node){
		// summary:
		//		Prepares a node to be used as a popup
		//
		// description:
		//		Attaches node to dojo.doc.body, and
		//		positions it off screen, but not display:none, so that
		//		the widget doesn't appear in the page flow and/or cause a blank
		//		area at the bottom of the viewport (making scrollbar longer), but
		//		initialization of contained widgets works correctly
	
		dojo.body().appendChild(node);
		var s = node.style;
		if(s.display == "none"){
			s.display="";
		}
		s.visibility = "hidden";	// so TAB key doesn't navigate to hidden popup
		s.position = "absolute";
		s.top = "-9999px";
	};

/*=====
dijit.popup.__OpenArgs = function(){
	//		popup: Widget
	//			widget to display
	//		parent: Widget
	//			the button etc. that is displaying this popup
	//		around: DomNode
	//			DOM node (typically a button); place popup relative to this node.  (Specify this *or* "x" and "y" parameters.)
	//		x: Integer
	//			Absolute horizontal position (in pixels) to place node at.  (Specify this *or* "around" parameter.)
	//		y: Integer
	//			Absolute vertical position (in pixels) to place node at.  (Specity this *or* "around" parameter.)
	//		orient: Object || String<commit_msg>Fixes #8538: flicker when initially hiding a popup widget. !strict<commit_after>dojo.provide("dijit._base.popup");

dojo.require("dijit._base.focus");
dojo.require("dijit._base.place");
dojo.require("dijit._base.window");

dijit.popup = new function(){
	// summary:
	//		This class is used to show/hide widgets as popups.

	var stack = [],
		beginZIndex=1000,
		idGen = 1;

	this.prepare = function(/*DomNode*/ node){
		// summary:
		//		Prepares a node to be used as a popup
		//
		// description:
		//		Attaches node to dojo.doc.body, and
		//		positions it off screen, but not display:none, so that
		//		the widget doesn't appear in the page flow and/or cause a blank
		//		area at the bottom of the viewport (making scrollbar longer), but
		//		initialization of contained widgets works correctly

		var s = node.style;
		s.visibility = "hidden";	// so TAB key doesn't navigate to hidden popup
		s.position = "absolute";
		s.top = "-9999px";
		if(s.display == "none"){
			s.display="";
		}
		dojo.body().appendChild(node);
	};

/*=====
dijit.popup.__OpenArgs = function(){
	//		popup: Widget
	//			widget to display
	//		parent: Widget
	//			the button etc. that is displaying this popup
	//		around: DomNode
	//			DOM node (typically a button); place popup relative to this node.  (Specify this *or* "x" and "y" parameters.)
	//		x: Integer
	//			Absolute horizontal position (in pixels) to place node at.  (Specify this *or* "around" parameter.)
	//		y: Integer
	//			Absolute vertical position (in pixels) to place node at.  (Specity this *or* "around" parameter.)
	//		orient: Object || String
{'fraction_non_alphanumeric': 0.13895939086294415, 'fraction_numerical': 0.006979695431472081, 'mean_word_length': 3.0631443298969074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2075109', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1057, 'n_words': 352}