<commit_before><?php

namespace AppBundle\Controller\Admin;

use AppBundle\Entity\Courrier;
use AppBundle\Entity\Reaction;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Yaml\Parser;

class IndexController extends Controller
{
    const ACTIVITE_COURRIER = '%s# | Le courrier "<em>%s</em>" a été créé.';
    const ACTIVITE_REACTION = '%s# | <strong>%s</strong> a commenté sur "<em>%s</em>".';
    /**
     * @Route("/admin", name="admin_index_index")
     *
     * @return Response
     */
    public function indexAction()
    {
        $blocksHeader = [
            'courriers' => count($this
                ->getDoctrine()
                ->getRepository('AppBundle:Courrier')
                ->findAll([
                    'published' => 1,
                ])),
            'reactions' => count($this<commit_msg>changed last word in lastactivity widget on dashboard<commit_after><?php

namespace AppBundle\Controller\Admin;

use AppBundle\Entity\Courrier;
use AppBundle\Entity\Reaction;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Yaml\Parser;

class IndexController extends Controller
{
    const ACTIVITE_COURRIER = '%s# | Le courrier "<em>%s</em>" a été publié.';
    const ACTIVITE_REACTION = '%s# | <strong>%s</strong> a commenté sur "<em>%s</em>".';
    /**
     * @Route("/admin", name="admin_index_index")
     *
     * @return Response
     */
    public function indexAction()
    {
        $blocksHeader = [
            'courriers' => count($this
                ->getDoctrine()
                ->getRepository('AppBundle:Courrier')
                ->findAll([
                    'published' => 1,
                ])),
            'reactions' => count($this
{'fraction_non_alphanumeric': 0.13011152416356878, 'fraction_numerical': 0.0009293680297397769, 'mean_word_length': 2.9432234432234434, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, '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': '3132717', 'n_tokens_mistral': 622, 'n_tokens_neox': 620, 'n_words': 120}