<commit_before><?php

namespace VideoGamesRecords\CoreBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use VideoGamesRecords\CoreBundle\Entity\Game;

/**
 * Class GameController
 * @Route("/game")
 */
class GameController extends Controller
{
    /**
     * @Route("/list", defaults={"letter": 1}, name="vgr_game_list")
     * @Route("/list/letter/{letter}", requirements={"letter": "[0|A-Z]"}, name="vgr_game_list_letter")
     * @Method("GET")
     * @Cache(smaxage="10")
     *
     * @param string $letter
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function listAction($letter)
    {
        $games = $this->getDoctrine()->getRepository('VideoGamesRecordsCoreBundle:Game')->findWithLetter($letter);

        $alphabet = array_merge(['0'], range('A', 'Z'));


        /*$paginator = $this->get('knp_paginator');<commit_msg>Use correct default letter for Game list<commit_after><?php

namespace VideoGamesRecords\CoreBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use VideoGamesRecords\CoreBundle\Entity\Game;

/**
 * Class GameController
 * @Route("/game")
 */
class GameController extends Controller
{
    /**
     * @Route("/list", defaults={"letter": 0}, name="vgr_game_list")
     * @Route("/list/letter/{letter}", requirements={"letter": "[0|A-Z]"}, name="vgr_game_list_letter")
     * @Method("GET")
     * @Cache(smaxage="10")
     *
     * @param string $letter
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function listAction($letter)
    {
        $games = $this->getDoctrine()->getRepository('VideoGamesRecordsCoreBundle:Game')->findWithLetter($letter);

        $alphabet = array_merge(['0'], range('A', 'Z'));


        /*$paginator = $this->get('knp_paginator');
{'fraction_non_alphanumeric': 0.1596677434240886, 'fraction_numerical': 0.0046146746654360865, 'mean_word_length': 4.660574412532637, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 11, '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': '7031796', 'n_tokens_mistral': 651, 'n_tokens_neox': 638, 'n_words': 97}