<commit_before><?php

class PhastUser extends BaseObject{

    public function createSign($key, $password){
        $user = sfContext::getInstance()->getUser();

        $sign = new UserSign();
        $sign->setUser($this);
        $sign->setSalt($user->generateHash());
        $sign->setKey($key);
        $sign->setPassword($user->generatePassword($password, $sign->getSalt()));
        $sign->save();
        return $sign;
    }

    public function getCredentials(){
        return ['cp_access'];
    }

}<commit_msg>Update PhastUser.php<commit_after><?php

class PhastUser extends BaseObject{

    public function createSign($key, $password){
        $user = sfContext::getInstance()->getUser();

        $sign = new UserSign();
        $sign->setUser($this);
        $sign->setSalt($user->generateHash());
        $sign->setKey($key);
        $sign->setPassword($user->generatePassword($password, $sign->getSalt()));
        $sign->save();
        return $sign;
    }

    public function getCredentials(){
        return UserCredentialQuery::create()
                ->useUserCredentialRelQuery()
                ->useUserGroupQuery()
                ->useUserGroupRelQuery()
                ->filterByUserId($this->id)
                ->endUse()
                ->endUse()
                ->endUse()
                ->select('Name')
                ->find()
                ->toArray();
    }

}
{'fraction_non_alphanumeric': 0.1608540925266904, 'fraction_numerical': 0.0, 'mean_word_length': 2.1244444444444444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '6054945', 'n_tokens_mistral': 390, 'n_tokens_neox': 373, 'n_words': 65}