<commit_before><?php

namespace SyllabusBundle\Repository\Subject;

use Doctrine\ORM\EntityRepository;

/**
 * Comment
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class Comment extends EntityRepository
{
    public function findLast($nb = 10)
    {
        $query = $this->_em->createQueryBuilder();
        $resultSet = $query->select('c')
            ->from('SyllabusBundle\Entity\Subject\Comment', 'c')
            ->orderBy('c.date', 'ASC')
            ->setMaxResults($nb)
            ->getQuery()
            ->getResult();

        return $resultSet;
    }
}<commit_msg>Wrong display order...<commit_after><?php

namespace SyllabusBundle\Repository\Subject;

use Doctrine\ORM\EntityRepository;

/**
 * Comment
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */
class Comment extends EntityRepository
{
    public function findLast($nb = 10)
    {
        $query = $this->_em->createQueryBuilder();
        $resultSet = $query->select('c')
            ->from('SyllabusBundle\Entity\Subject\Comment', 'c')
            ->orderBy('c.date', 'DESC')
            ->setMaxResults($nb)
            ->getQuery()
            ->getResult();

        return $resultSet;
    }
}
{'fraction_non_alphanumeric': 0.13763608087091758, 'fraction_numerical': 0.003110419906687403, 'mean_word_length': 2.5357142857142856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '3398687', 'n_tokens_mistral': 373, 'n_tokens_neox': 367, 'n_words': 86}