<commit_before><?php

namespace Morfeu\Controller;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;

class BankController
{

    private $bankService;

    private function getBankService($app)
    {
        if(!$this->bankService){
            $this->bankService = $app['bank.service'];
        }

        return $this->bankService;
    }

    public function indexAction(Request $request, Application $app)
    {
        $result = $this->getBankService($app)->getAll();

        return $app['twig']->render('Bank/index.html.twig', array(
            'entities' => $result
        ));
    }

}<commit_msg>Corrected the service bank<commit_after><?php

namespace Morfeu\Controller;

use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\JsonResponse;

class BankController
{

    private $bankUserService;

    private function getBankUserService($app)
    {
        if(!$this->bankUserService){
            $this->bankUserService = $app['bankUser.service'];
        }

        return $this->bankUserService;
    }

    public function indexAction(Request $request, Application $app)
    {
        $result = $this->getBankUserService($app)->getAll();
        var_dump($app);
        exit;
        return $app['twig']->render('Bank/index.html.twig', array(
            'entities' => $result
        ));
    }

}
{'fraction_non_alphanumeric': 0.13179916317991633, 'fraction_numerical': 0.0, 'mean_word_length': 2.953168044077135, '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': '6706779', 'n_tokens_mistral': 422, 'n_tokens_neox': 414, 'n_words': 73}