<commit_before>/**
 * Generated by Gas3 v2.2.0 (Granite Data Services).
 *
 * NOTE: this file is only generated if it does not exist. You may safely put
 * your custom code here.
 */

package org.openforis.collect.metamodel.proxy {

    [Bindable]
    [RemoteClass(alias="org.openforis.collect.metamodel.proxy.LanguageSpecificTextProxy")]
    public class LanguageSpecificTextProxy extends LanguageSpecificTextProxyBase {
    }
}<commit_msg>Added utility function getLocalizedText<commit_after>/**
 * Generated by Gas3 v2.2.0 (Granite Data Services).
 *
 * NOTE: this file is only generated if it does not exist. You may safely put
 * your custom code here.
 */

package org.openforis.collect.metamodel.proxy {
	import mx.collections.IList;

    [Bindable]
    [RemoteClass(alias="org.openforis.collect.metamodel.proxy.LanguageSpecificTextProxy")]
    public class LanguageSpecificTextProxy extends LanguageSpecificTextProxyBase {
		
		public static function getLocalizedText(list:IList, language = "en"):String {
			for each (var item:LanguageSpecificTextProxy in list) {
				if(item.language == language) {
					return item.text;
				}
			}
			return null;
		}
		
    }
}
{'fraction_non_alphanumeric': 0.09548167092924126, 'fraction_numerical': 0.0068201193520886615, 'mean_word_length': 3.9957446808510637, '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': '7065639', 'n_tokens_mistral': 383, 'n_tokens_neox': 345, 'n_words': 95}