<commit_before><?php

namespace Morfeu\Bundle\DashboardBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DashboardController extends Controller
{
    public function indexAction()
    {

        return $this->render('DashboardBundle:Dashboard:index.html.twig');
    }
}
<commit_msg>Created the counters and render that<commit_after><?php

namespace Morfeu\Bundle\DashboardBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DashboardController extends Controller
{

    private $dashboardService;

    private function getDashboardService()
    {
        if(!$this->dashboardService){
            $this->dashboardService = $this->get('dashboard.service');
        }

        return $this->dashboardService;
    }

    public function indexAction()
    {
        $user = $this->getUser();
        $buzz = $this->container->get('buzz');
        $actualPeriod = new \DateTime;

        $totalBank = $this->getDashboardService()->getTotalBankByUser($user);
        $totalCard = $this->getDashboardService()->getTotalCardByUser($user);
        $dollar = $this->getDashboardService()->getCotationDollar($buzz);
        $totalAccomplishedPayment = $this->getDashboardService()->getTotalAccomplishedByUserAndPeriod($user, null);
        $totalAccomplishedPendingPayment = $this->getDashboardService()->getTotalAccomplishedPendingByUserAndPeriod($user, null);

        return $this->render('DashboardBundle:Dashboard:index.html.twig', array(
            'totalBank' => $totalBank,
            'totalCard' => $totalCard,
            'dollar' => $dollar,
            'paymentAccomplishedTotal' => $totalAccomplishedPayment,
            'paymentAccomplishedPendingTotal' => $totalAccomplishedPendingPayment,
        ));
    }
}

{'fraction_non_alphanumeric': 0.12275784753363228, 'fraction_numerical': 0.0, 'mean_word_length': 3.747340425531915, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4154615', 'n_tokens_mistral': 499, 'n_tokens_neox': 511, 'n_words': 73}