<commit_before><?php
/*
    Tatoeba Project, free collaborativ creation of languages corpuses project
    Copyright (C) 2009  <NAME> (<EMAIL>)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
class LanguagesHelper extends AppHelper{
	function languagesArray(){
		$languages = array(
            // can't use 'any' as it's the code for anyin language
            // only und is used for "undefined" 
              'und' => __('All languages',true)
			, 'ara' => __('Arabic', true)
			, 'eng' => __('English', true)
			, 'jpn' => __('Japanese', true)
			, 'fra' => __('French', true)
			, 'deu' => __('German', true)
			, 'spa' => __('Spanish', true)
			, 'ita' => __('Italian', true)
			, 'vie' => __('Vietnamese', true)
			, 'rus' => __('Russian', true)
			, 'cmn' => __('Chinese', true)
			, 'kor' => __('Korean', true)
			, 'nld' => __('Dutch', true)
			, 'heb' => __('Hebrew', true)
			, 'ind' => __('Indonesian', true)
			, 'por' => __('Portuguese', true)
			, 'fin' => __('Finnish', true)
			, 'bul' => __('Bulgarian', true)
			, 'ukr' => __('Ukrainian', true)
            , 'ces' => __('Czech',true)
            , 'epo' => __('Esperanto',true)
            , 'ell' => __('Modern Greek',true)
            , 'tur' => __('Turkish',true)
            , 'swe' => __('Swedish',true)
            , 'nob' => __('Norwegian (Bokmål',true)
            , 'zsm' => __('Malay',true)
            , 'est' => __('Estonian',true)
            , 'wuu' => __('Shanghainese',true)// TODO to change when shanghainese will not be the only wu dialect
		);<commit_msg>oups forgotten a closing ) in norwegian ( )<commit_after><?php
/*
    Tatoeba Project, free collaborativ creation of languages corpuses project
    Copyright (C) 2009  <NAME> (<EMAIL>)

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
class LanguagesHelper extends AppHelper{
	function languagesArray(){
		$languages = array(
            // can't use 'any' as it's the code for anyin language
            // only und is used for "undefined" 
              'und' => __('All languages',true)
			, 'ara' => __('Arabic', true)
			, 'eng' => __('English', true)
			, 'jpn' => __('Japanese', true)
			, 'fra' => __('French', true)
			, 'deu' => __('German', true)
			, 'spa' => __('Spanish', true)
			, 'ita' => __('Italian', true)
			, 'vie' => __('Vietnamese', true)
			, 'rus' => __('Russian', true)
			, 'cmn' => __('Chinese', true)
			, 'kor' => __('Korean', true)
			, 'nld' => __('Dutch', true)
			, 'heb' => __('Hebrew', true)
			, 'ind' => __('Indonesian', true)
			, 'por' => __('Portuguese', true)
			, 'fin' => __('Finnish', true)
			, 'bul' => __('Bulgarian', true)
			, 'ukr' => __('Ukrainian', true)
            , 'ces' => __('Czech',true)
            , 'epo' => __('Esperanto',true)
            , 'ell' => __('Modern Greek',true)
            , 'tur' => __('Turkish',true)
            , 'swe' => __('Swedish',true)
            , 'nob' => __('Norwegian (Bokmål)',true)
            , 'zsm' => __('Malay',true)
            , 'est' => __('Estonian',true)
            , 'wuu' => __('Shanghainese',true)// TODO to change when shanghainese will not be the only wu dialect
		);
{'fraction_non_alphanumeric': 0.15711349623201645, 'fraction_numerical': 0.0022836263987211693, 'mean_word_length': 2.8120104438642297, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6062624', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1361, 'n_words': 466}