<commit_before><?php

class m140607_200226_admin_su extends CDbMigration
{
	public function up()
	{
        $this->insert('{{user_role}}',
                      array('ur_name'=>'su',
                            'ur_caption'=>'superuser'
                        )
        );
        $z_user=$this->getDbConnection()->createCommand('SELECT `u_id` FROM `{{user}}` WHERE `u_login`=:login')->query(array(':login'=>'admin'));
        if ($z_user->count()!=0)
        {
            $z_role=$this->getDbConnection()->createCommand('SELECT `ur_id` FROM `{{user_role}}` WHERE `ur_name`=:name')->query(array(':name'=>'su'));
            $user=$z_user->read();
            $role=$z_role->read();
            $this->insert('{{user_role_relation}}',<commit_msg>Update m140607_200226_admin_su.php<commit_after><?php

class m140607_200226_admin_su extends CDbMigration
{
	public function up()
	{
        $this->insert('{{user_role}}',
                      array('ur_name'=>'su',
                            'ur_title'=>'superuser'
                        )
        );
        $z_user=$this->getDbConnection()->createCommand('SELECT `u_id` FROM `{{user}}` WHERE `u_login`=:login')->query(array(':login'=>'admin'));
        if ($z_user->count()!=0)
        {
            $z_role=$this->getDbConnection()->createCommand('SELECT `ur_id` FROM `{{user_role}}` WHERE `ur_name`=:name')->query(array(':name'=>'su'));
            $user=$z_user->read();
            $role=$z_role->read();
            $this->insert('{{user_role_relation}}',
{'fraction_non_alphanumeric': 0.20132013201320131, 'fraction_numerical': 0.025082508250825083, 'mean_word_length': 2.6181384248210025, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '5706391', 'n_tokens_mistral': 493, 'n_tokens_neox': 476, 'n_words': 56}