<commit_before><?php
/**
 * Created: <NAME>
 * Date: 2015.04.30.
 * Time: 8:41
 */
namespace app\models;

use Yii;
use yii\base\Model;

class Language extends Model {

    public static $languages= [
      'hu'=> [
          'code'=>'hu-HU',
          'name'=>'Magyar',
      ],
      'gb'=> [
          'code'=>'en-US',
          'name'=>'Angol',
      ],
      'de'=> [
          'code'=>'de-DE',
          'name'=>'Német',
      ],
      'fr'=> [
          'code'=>'fr-FR',
          'name'=>'Francia',
      ],
      'it'=> [
          'code'=>'it-IT',
          'name'=>'Olasz',
      ],
    ];

    public static function getAsDropdownData()
    {
        $data=[];
        foreach(self::$languages as $key=>$value) {
            $data[$value['code']]=$value['name'];
        }
        return $data;
    }
}<commit_msg>resolved #81 Kínai nyelv legyen az olasz helyett<commit_after><?php
/**
 * Created: <NAME>
 * Date: 2015.04.30.
 * Time: 8:41
 */
namespace app\models;

use Yii;
use yii\base\Model;

class Language extends Model {

    public static $languages= [
      'hu'=> [
          'code'=>'hu-HU',
          'name'=>'Magyar',
      ],
      'gb'=> [
          'code'=>'en-US',
          'name'=>'Angol',
      ],
      'de'=> [
          'code'=>'de-DE',
          'name'=>'Német',
      ],
      'fr'=> [
          'code'=>'fr-FR',
          'name'=>'Francia',
      ],
      'cn'=> [
          'code'=>'zh-CN',
          'name'=>'Kínai',
      ],
    ];

    public static function getAsDropdownData()
    {
        $data=[];
        foreach(self::$languages as $key=>$value) {
            $data[$value['code']]=$value['name'];
        }
        return $data;
    }
}
{'fraction_non_alphanumeric': 0.2166172106824926, 'fraction_numerical': 0.014243323442136498, 'mean_word_length': 1.6593059936908516, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 37, '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': '1505535', 'n_tokens_mistral': 592, 'n_tokens_neox': 591, 'n_words': 99}