<commit_before><?php

namespace Easy\ChatBundle\Entity;

use Doctrine\ORM\EntityRepository;

class MessageRepository extends EntityRepository
{
    public function findAllFiltered($is_admin = false)
    {
        $q = $this->createQueryBuilder('m');
        
        if (!$is_admin) {
            $q->where('m.isDeleted = :is_deleted')->setParameter('is_deleted', false);
        }

        $q->setMaxResults(30);
        $q->orderBy('m.timestamp', 'ASC');
        
        return $q->getQuery()->getResult();
    }
}<commit_msg>Correction des derniers messages qui s'affichent pas<commit_after><?php

namespace Easy\ChatBundle\Entity;

use Doctrine\ORM\EntityRepository;

class MessageRepository extends EntityRepository
{
    public function findAllFiltered($is_admin = false)
    {
        $q = $this->createQueryBuilder('m');
        
        if (!$is_admin) {
            $q->where('m.isDeleted = :is_deleted')->setParameter('is_deleted', false);
        }

        $q->setMaxResults(30);
        $q->orderBy('m.timestamp', 'DESC');
        
        return array_reverse($q->getQuery()->getResult(), true);
    }
}
{'fraction_non_alphanumeric': 0.1483467381590706, 'fraction_numerical': 0.0035746201966041107, 'mean_word_length': 2.888888888888889, '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': '4816517', 'n_tokens_mistral': 336, 'n_tokens_neox': 342, 'n_words': 57}