<commit_before>enyo.kind({
	name: "moon.sample.CalendarPickerSample",
	classes: "moon enyo-unselectable enyo-fit",
	components: [
		{kind: "enyo.Spotlight"},
		{kind: "FittableColumns", components: [
			{kind: "moon.CalendarPicker", name: "calendar", onChange: "changed", classes: "moon-date-picker-wrapper"},
			{kind: "FittableRows", fit: true, components: [
				{kind: "moon.DatePicker", name: "picker", noneText: "Pick a Date", content: "Pick a Date", onChange: "pickDate"},
				{kind: "moon.Divider"},
				{kind: "moon.InputDecorator", components: [
					{kind: "moon.Input", name: "yearInput", content: "Year"}
				]},
				{kind: "moon.Button", small: true, content: "Set", ontap: "setYear"},
				{kind: "moon.InputDecorator", components: [
					{kind: "moon.Input", name: "monthInput", content: "Month"}
				]},
				{kind: "moon.Button", small: true, content: "Set", ontap: "setMonth"},
				{kind: "moon.InputDecorator", components: [
					{kind: "moon.Input", name: "dateInput", content: "Date"}
				]},
				{kind: "moon.Button", small: true, content: "Set", ontap: "setDate"}
			]}
		]},
		{kind: "moon.Divider", content: "Result"},
		{name: "result", content: "No change yet"}
	],
	setYear: function(inSender, inEvent) {
		if(this.$.yearInput.getValue()) {
			this.$.calendar.setYear(this.$.yearInput.getValue());	
		}		
	},
	setMonth: function(inSender, inEvent) {
		if(this.$.monthInput.getValue() > 0 && this.$.monthInput.getValue() < 13) {
			this.$.calendar.setMonth(parseInt(this.$.monthInput.getValue(), 10));
		} else {
			this.$.result.setContent("Please input value between 1 to 12");
		}
	},
	setDate: function(inSender, inEvent) {
		if(this.$.dateInput.getValue()) {
			this.$.calendar.setDate(this.$.dateInput.getValue());
		}		
	},
	pickDate: function(inSender, inEvent) {
		if (inEvent.value){
			this.$.calendar.setValue(inEvent.value);
		}
	},
	changed: function(inSender, inEvent) {
		if (this.$.result && inEvent.value){
			this.$.result.setContent("Current Date" + " changed to " + inEvent.value.toDateString());
		}
	}<commit_msg>GF-8804: In case of small screen, Use scroller.<commit_after>enyo.kind({
	name: "moon.sample.CalendarPickerSample",
	classes: "moon enyo-unselectable enyo-fit",
	kind: "FittableRows",
	components: [
		{kind: "enyo.Spotlight"},
		{kind: "moon.Scroller", fit:true, components: [
			{kind: "FittableColumns", components: [
				{kind: "moon.CalendarPicker", name: "calendar", onChange: "changed", classes: "moon-date-picker-wrapper"},
				{kind: "FittableRows", fit: true, components: [
					{kind: "moon.DatePicker", name: "picker", noneText: "Pick a Date", content: "Pick a Date", onChange: "pickDate"},
					{kind: "moon.Divider"},
					{kind: "moon.InputDecorator", components: [
						{kind: "moon.Input", name: "yearInput", content: "Year"}
					]},
					{kind: "moon.Button", small: true, content: "Set", ontap: "setYear"},
					{kind: "moon.InputDecorator", components: [
						{kind: "moon.Input", name: "monthInput", content: "Month"}
					]},
					{kind: "moon.Button", small: true, content: "Set", ontap: "setMonth"},
					{kind: "moon.InputDecorator", components: [
						{kind: "moon.Input", name: "dateInput", content: "Date"}
					]},
					{kind: "moon.Button", small: true, content: "Set", ontap: "setDate"}
				]}
			]}
		]},
		{kind: "moon.Divider", content: "Result"},
		{name: "result", content: "No change yet"}
	],
	setYear: function(inSender, inEvent) {
		if(this.$.yearInput.getValue()) {
			this.$.calendar.setYear(this.$.yearInput.getValue());
		}
	},
	setMonth: function(inSender, inEvent) {
		if(this.$.monthInput.getValue() > 0 && this.$.monthInput.getValue() < 13) {
			this.$.calendar.setMonth(parseInt(this.$.monthInput.getValue(), 10));
		} else {
			this.$.result.setContent("Please input value between 1 to 12");
		}
	},
	setDate: function(inSender, inEvent) {
		if(this.$.dateInput.getValue()) {
			this.$.calendar.setDate(this.$.dateInput.getValue());
		}		
	},
	pickDate: function(inSender, inEvent) {
		if (inEvent.value){
			this.$.calendar.setValue(inEvent.value);
		}
	},
	changed: function(inSender, inEvent) {
		if (this.$.result && inEvent.value){
			this.$.result.setContent("Current Date" + " changed to " + inEvent.value.toDateString());
		}
	}
{'fraction_non_alphanumeric': 0.19952941176470587, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 4.171532846715328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3928616', 'n_tokens_mistral': 1712, 'n_tokens_neox': 1512, 'n_words': 307}