<commit_before>dojo.provide("dijit.base.Showable");

dojo.declare("dijit.base.Showable", null,
{
	// Summary
	//		Mixin for widgets that show/hide themselves in a fancy way

	// toggle: String
	//	Controls animation effect for when show() and hide() (or toggle()) are called.
	//	Possible values: "plain", "wipe", "fade", "explode"
	toggle: "plain",

	// toggleDuration: Integer
	//	Number of milliseconds for toggle animation effect to complete
	toggleDuration: 150,

	postMixInProperties: function(args, frag){
		// now that we know the setting for toggler, get toggler object
		// (default to plain toggler if user specified toggler not present)
//		this.toggleObj = new (dojo.lfx.toggler[this.toggle.toLowerCase()] || dojo.lfx.toggler.plain); //PORT me
	},

	isShowing: function(){
		// summary
		//	Tests whether widget is set to show-mode or hide-mode (see show() and 
		//	hide() methods)
		//
		//	This function is poorly named.  Even if widget is in show-mode,
		//	if it's inside a container that's hidden
		//	(either a container widget, or just a domnode with display:none),
		//	then it won't be displayed
		return dojo.style(this.domNode, "display") != 'none';	// Boolean
	},

	toggleShowing: function(){
		// summary: show or hide the widget, to switch it's state
		if(this.isShowing()){
			this.hide();
		}else{
			this.show();
		}
	},

	show: function(){
		// summary: show the widget
		if(this.isShowing()){ return; }
		this.animationInProgress=true;
		this.domNode.style.display = "";
		this.onShow();
//		this.toggleObj.show(this.domNode, this.toggleDuration, null,
//			dojo.hitch(this, this.onShow), this.explodeSrc);
	},

	_onShow: function(){
		// summary: called after the show() animation has completed
		this.animationInProgress=false;
	},

	onShow: function(){
		// summary: callback for when widget is shown
	},

	hide: function(){
		// summary: hide the widget (ending up with display:none)
		if(!this.isShowing()){ return; }
		this.animationInProgress = true;
		this.domNode.style.display = "none";
		this.onHide();
//		this.toggleObj.hide(this.domNode, this.toggleDuration, null,
//			dojo.hitch(this, this.onHide), this.explodeSrc);
	},

	_onHide: function(){
		// summary: called after the hide() animation has completed
		this.animationInProgress=false;
	},
	
	onHide: function(){<commit_msg>remove toggler functionality (porting issue) Refs #2727<commit_after>dojo.provide("dijit.base.Showable");

//TODO: do we need this class at all?
dojo.declare("dijit.base.Showable", null,
{
	// Summary
	//		Mixin for widgets that show/hide themselves in a fancy way

	isShowing: function(){
		// summary
		//	Tests whether widget is set to show-mode or hide-mode (see show() and 
		//	hide() methods)
		//
		//	This function is poorly named.  Even if widget is in show-mode,
		//	if it's inside a container that's hidden
		//	(either a container widget, or just a domnode with display:none),
		//	then it won't be displayed
		return dojo.style(this.domNode, "display") != 'none';	// Boolean
	},

	toggleShowing: function(){
		// summary: show or hide the widget, to switch it's state
		if(this.isShowing()){
			this.hide();
		}else{
			this.show();
		}
	},

	show: function(){
		// summary: show the widget
		if(this.isShowing()){ return; }
		this.domNode.style.display = "";
		this.onShow();
	},

	onShow: function(){
		// summary: callback for when widget is shown
	},

	hide: function(){
		// summary: hide the widget (ending up with display:none)
		if(!this.isShowing()){ return; }
		this.domNode.style.display = "none";
		this.onHide();
	},
	
	onHide: function(){
{'fraction_non_alphanumeric': 0.14468558708959378, 'fraction_numerical': 0.0019476905954368391, 'mean_word_length': 3.5334174022698615, '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': '4577472', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1179, 'n_words': 357}