<commit_before>﻿enyo.kind({
	name: "menuList",
	kind: enyo.VFlexBox,
	components: [
		{kind: "SpinnerLarge", showing: true},
		{kind: "Scroller", flex: 1, components: [
			{kind: "Repeater", onSetupRow: "listSetupRow"}
		]}
	],
	data : [],
	create: function() {
		this.inherited(arguments);
		this.load();
	},
	displayStudentPrices : conf.displayStudentPrices(),
	load : function(){
		var that = this;
		this.$.spinnerLarge.hide();
		storage.getSortedSegmented(function(json){
			that.$.spinnerLarge.hide();
			that.data = json;
			that.$.repeater.render();
		});
	},
	listSetupRow: function(inSender, inIndex) {
		var row = this.data[inIndex];
		if (row) {
			if(row.type === "header"){
				return {kind: "Divider", caption: row.headerType === "date" ? dateToString(row.header) : row.header}
			} else if( row.dish ) {
				return {kind: "Item", className: "enyo-item" + (row.first ? " enyo-first" : "") + (row.last ? " enyo-last" : ""), components: [
					{content: row.dish },
					{layoutKind: "HFlexLayout", style: "font-size: 0.8em", 
						components: [
							{content: row.name, flex: 1},
							{content: (this.displayStudentPrices ? row.studPrice : row.normalPrice) + "€"},
						]
					}<commit_msg>Enyo1/Tablet: Warteindikator beim Menu zeigen<commit_after>﻿enyo.kind({
	name: "menuList",
	kind: enyo.VFlexBox,
	components: [
		{kind: "SpinnerLarge", showing: true},
		{kind: "Scroller", flex: 1, components: [
			{kind: "Repeater", onSetupRow: "listSetupRow"}
		]}
	],
	data : [],
	create: function() {
		this.inherited(arguments);
		this.load();
	},
	displayStudentPrices : conf.displayStudentPrices(),
	load : function(){
		var that = this;
		this.$.spinnerLarge.show();
		storage.getSortedSegmented(function(json){
			that.$.spinnerLarge.hide();
			that.data = json;
			that.$.repeater.render();
		});
	},
	listSetupRow: function(inSender, inIndex) {
		var row = this.data[inIndex];
		if (row) {
			if(row.type === "header"){
				return {kind: "Divider", caption: row.headerType === "date" ? dateToString(row.header) : row.header}
			} else if( row.dish ) {
				return {kind: "Item", className: "enyo-item" + (row.first ? " enyo-first" : "") + (row.last ? " enyo-last" : ""), components: [
					{content: row.dish },
					{layoutKind: "HFlexLayout", style: "font-size: 0.8em", 
						components: [
							{content: row.name, flex: 1},
							{content: (this.displayStudentPrices ? row.studPrice : row.normalPrice) + "€"},
						]
					}
{'fraction_non_alphanumeric': 0.1900489396411093, 'fraction_numerical': 0.00367047308319739, 'mean_word_length': 3.6458333333333335, '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': '7360337', 'n_tokens_mistral': 1024, 'n_tokens_neox': 885, 'n_words': 174}