<commit_before><?php

    namespace PhalconDez\Auth;

    use Phalcon\Mvc\User\Component;
    use PhalconDez\Auth\Model\Session as SessionModel;
    use PhalconDez\Auth\Model\Credentials as CredentialsModel;
    use PhalconDez\Auth\Util\UUID;

    abstract class Adapter extends Component {

        const SALT  = 'phalcon-auth_RrXKb26DfSsrIwX4MCie';

        protected $auth;

        protected $email;

        protected $password;

        protected $credentialsModel;

        protected $sessionModel;

        public function __construct()
        {

        }

        /**
         * @return string
         */
        protected function uniqueToken()
        {
            return UUID::v5($this->request->getClientAddress(true).$this->request->getUserAgent());
        }

        /**
         * @return string
         */
        protected function cookieKey()
        {
            return 'phalcon-auth-'.UUID::v5(self::SALT);
        }

        /**
         * @param $password
         * @return bool
         */
        public function verifyPassword($password)
        {
            return ( $this->makeHash($password) === $this->getPasswordHash() );
        }

        /**
         * @param string $string
         * @return string
         */
        public function makeHash($string)
        {
            return UUID::v5($this->uniqueToken().self::SALT.$string.self::SALT);
        }<commit_msg>fix hash<commit_after><?php

    namespace PhalconDez\Auth;

    use Phalcon\Mvc\User\Component;
    use PhalconDez\Auth\Model\Session as SessionModel;
    use PhalconDez\Auth\Model\Credentials as CredentialsModel;
    use PhalconDez\Auth\Util\UUID;

    abstract class Adapter extends Component {

        const SALT  = 'phalcon-auth_RrXKb26DfSsrIwX4MCie';

        protected $auth;

        protected $email;

        protected $password;

        protected $credentialsModel;

        protected $sessionModel;

        public function __construct()
        {

        }

        /**
         * @return string
         */
        protected function uniqueToken()
        {
            return UUID::v5($this->request->getClientAddress(true).$this->request->getUserAgent());
        }

        /**
         * @return string
         */
        protected function cookieKey()
        {
            return 'phalcon-auth-'.UUID::v5(self::SALT);
        }

        /**
         * @param $password
         * @return bool
         */
        public function verifyPassword($password)
        {
            return ( $this->makeHash($password) === $this->getPasswordHash() );
        }

        /**
         * @param string $string
         * @return string
         */
        public function makeHash($string)
        {
            return UUID::v5(self::SALT.$string.self::SALT);
        }
{'fraction_non_alphanumeric': 0.11381531853972798, 'fraction_numerical': 0.004294917680744453, 'mean_word_length': 1.7294921875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '6397280', 'n_tokens_mistral': 811, 'n_tokens_neox': 771, 'n_words': 141}