<commit_before>/**
	_moon.Dialog_ is a <a href="#moon.Popup">moon.Popup</a> with a title, a
	message, and an area for additional controls.
*/
enyo.kind({
	name: "moon.Dialog",
	kind: moon.Popup,
	classes: "moon-dialog",
	published: {
		title: "",
		message: ""
	},
	bounds: null,
	tools: [
		{
			name: "dialogwrapper",
			classes: "moon-neutral moon-dialog-wrapper",
			components: [
				{name: "title", classes: "moon-header-font moon-popup-header-text moon-dialog-title"},
				{
					layoutKind: "FittableColumnsLayout",
					components: [
						{name: "message", kind:"moon.BodyText", fit: true},
						{name: "client"}
					]
				}
			]
		},
		{name: "showHideAnimator", kind: "StyleAnimator", onComplete: "animationComplete"}
	],
	create: function() {
		this.inherited(arguments);
		this.titleChanged();
		this.messageChanged();
	},
	titleChanged: function() {
		this.$.title.setContent(this.title);
	},
	messageChanged: function() {
		this.$.message.setContent(this.message);
	},
	show: function () {
		this.inherited(arguments);
		if (!this.bounds) {
			this.bounds = this.getBounds();
		}
		this.$.showHideAnimator.play(this.createShowAnimation().name);
	},
	hide: function () {
		this.showHideScrim(false);
		this.$.showHideAnimator.play(this.createHideAnimation().name);
		this.aniCompleteCallback = function () {
			this.setShowing(false);
		}
	},
	animationComplete: function (inSender, inEvent) {
		if (this.aniCompleteCallback) {
			this.aniCompleteCallback();
		}
		this.aniCompleteCallback = null;
		return true;
	},
	createShowAnimation: function() {
		return this.$.showHideAnimator.newAnimation({
			name: "show",
			duration: 200,
			timingFunction: "cubic-bezier(0.25, 0.1, 0.25, 1)",
			keyframes: {
				0: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(" + this.bounds.height + "px)" }}
				],
				100: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(0)" }}
				]
			}
		});
	},
	createHideAnimation: function() {
		return this.$.showHideAnimator.newAnimation({
			name: "hide",
			duration: 200,
			timingFunction: "cubic-bezier(0.25, 0.1, 0.25, 1)",
			keyframes: {
				0: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "current" }}
				],
				100: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(" + this.bounds.height + "px)" }}
				]
			}
		});
	}
});<commit_msg>GF-41275: Make Travis Happy. Enyo-DCO-1.1-Signed-off-by: <NAME> <<EMAIL>><commit_after>/**
	_moon.Dialog_ is a <a href="#moon.Popup">moon.Popup</a> with a title, a
	message, and an area for additional controls.
*/
enyo.kind({
	name: "moon.Dialog",
	kind: moon.Popup,
	classes: "moon-dialog",
	published: {
		title: "",
		message: ""
	},
	bounds: null,
	tools: [
		{
			name: "dialogwrapper",
			classes: "moon-neutral moon-dialog-wrapper",
			components: [
				{name: "title", classes: "moon-header-font moon-popup-header-text moon-dialog-title"},
				{
					layoutKind: "FittableColumnsLayout",
					components: [
						{name: "message", kind:"moon.BodyText", fit: true},
						{name: "client"}
					]
				}
			]
		},
		{name: "showHideAnimator", kind: "StyleAnimator", onComplete: "animationComplete"}
	],
	create: function() {
		this.inherited(arguments);
		this.titleChanged();
		this.messageChanged();
	},
	titleChanged: function() {
		this.$.title.setContent(this.title);
	},
	messageChanged: function() {
		this.$.message.setContent(this.message);
	},
	show: function () {
		this.inherited(arguments);
		if (!this.bounds) {
			this.bounds = this.getBounds();
		}
		this.$.showHideAnimator.play(this.createShowAnimation().name);
	},
	hide: function () {
		this.showHideScrim(false);
		this.$.showHideAnimator.play(this.createHideAnimation().name);
		this.aniCompleteCallback = function () {
			this.setShowing(false);
		};
	},
	animationComplete: function (inSender, inEvent) {
		if (this.aniCompleteCallback) {
			this.aniCompleteCallback();
		}
		this.aniCompleteCallback = null;
		return true;
	},
	createShowAnimation: function() {
		return this.$.showHideAnimator.newAnimation({
			name: "show",
			duration: 200,
			timingFunction: "cubic-bezier(0.25, 0.1, 0.25, 1)",
			keyframes: {
				0: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(" + this.bounds.height + "px)" }}
				],
				100: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(0)" }}
				]
			}
		});
	},
	createHideAnimation: function() {
		return this.$.showHideAnimator.newAnimation({
			name: "hide",
			duration: 200,
			timingFunction: "cubic-bezier(0.25, 0.1, 0.25, 1)",
			keyframes: {
				0: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "current" }}
				],
				100: [
					{control: this.$.dialogwrapper, properties: { "-webkit-transform": "translateY(" + this.bounds.height + "px)" }}
				]
			}
		});
	}
});
{'fraction_non_alphanumeric': 0.18036112801785353, 'fraction_numerical': 0.014810306350172449, 'mean_word_length': 3.6117867165575306, 'pattern_counts': {'":': 8, '<': 10, '<?xml version=': 0, '>': 10, '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': '182786', 'n_tokens_mistral': 2025, 'n_tokens_neox': 1714, 'n_words': 308}