<commit_before><?php

namespace Caesar\UserBundle\Entity;

use Doctrine\ORM\EntityRepository;
/**
 * Description of UserRepository
 *
 * @author David
 */
class UserRepository extends EntityRepository{
    
}

?><commit_msg>Mise à jour du UserRepository (pas sur que sa marche, le temps que je resolve mon probleme avec la console).<commit_after><?php

namespace Caesar\UserBundle\Entity;

use Doctrine\ORM\EntityRepository;

/**
 * Description of UserRepository
 *
 * @author David
 */
class UserRepository extends EntityRepository {

    public function authentificate($login, $password) {
        $qb = $this->createQueryBuilder('u');
        $qb->where('u.login = :login')
                ->setParameter('login', $login)
                ->andWhere('u.password = :password')
                ->setParameter(':password', $password);
        return $qb->getQuery()->getResult();
    }

    public function identificate($login) {
        $qb = $this->createQueryBuilder('u');
        $qb->where('u.login = :login')
                ->setParameter('login', $login);
        return $qb->getQuery()->getResult();
    }

}

?>
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 3.0615942028985508, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '3218423', 'n_tokens_mistral': 322, 'n_tokens_neox': 316, 'n_words': 74}