<commit_before><?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     */
    public function homepageAction()
    {
        $filmRepo = $this->getDoctrine()->getRepository("AppBundle:Film");
        $lastFilms = $filmRepo->findAll();
        
        $params = array(
            "lastFilms" => $lastFilms
        );
        
        return $this->render('default/index.html.twig', $params);
    }
}<commit_msg>init app via calling paginate method instead of retrieving all films<commit_after><?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     */
    public function homepageAction()
    {
        $filmRepo = $this->getDoctrine()->getRepository("AppBundle:Film");
        $lastFilms = $filmRepo->paginate(0);
        
        $params = array(
            "lastFilms" => $lastFilms
        );
        
        return $this->render('default/index.html.twig', $params);
    }
}
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.000784313725490196, 'mean_word_length': 2.9504643962848296, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2393842', 'n_tokens_mistral': 361, 'n_tokens_neox': 354, 'n_words': 64}