<commit_before><?php

namespace SofaChamps\Bundle\CoreBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

class HomepageController extends CoreController
{
    /**
     * @Route("/", name="core_home")
     */
    public function homepageAction()
    {
        // This is temporary
        return $this->redirect($this->generateUrl('bp_home', array(
            'season' => $this->getCurrentBowlPickemSeason(),
        )));
        $user = $this->getUser();

        $template = $this->get('security.context')->isGranted('ROLE_USER')
            ? 'SofaChampsCoreBundle::homepage.auth.html.twig'
            : 'SofaChampsCoreBundle::homepage.unauth.html.twig';

        return $this->render($template , array(
            'user' => $user,
            'year' => $this->get('config.curyear'),
        ));
    }

    private function getCurrentBowlPickemSeason()
    {
        return $this->get('sofachamps.bp.season_manager')->getCurrentSeason();
    }
}<commit_msg>Update homepage redirect<commit_after><?php

namespace SofaChamps\Bundle\CoreBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

class HomepageController extends CoreController
{
    /**
     * @Route("/", name="core_home")
     */
    public function homepageAction()
    {
        // This is temporary
        return $this->redirect($this->generateUrl('sbc_home', array(
            'year' => 2014,
        )));
        $user = $this->getUser();

        $template = $this->get('security.context')->isGranted('ROLE_USER')
            ? 'SofaChampsCoreBundle::homepage.auth.html.twig'
            : 'SofaChampsCoreBundle::homepage.unauth.html.twig';

        return $this->render($template , array(
            'user' => $user,
            'year' => $this->get('config.curyear'),
        ));
    }

    private function getCurrentBowlPickemSeason()
    {
        return $this->get('sofachamps.bp.season_manager')->getCurrentSeason();
    }
}
{'fraction_non_alphanumeric': 0.152317880794702, 'fraction_numerical': 0.0020376974019358125, 'mean_word_length': 2.776923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '1218826', 'n_tokens_mistral': 600, 'n_tokens_neox': 580, 'n_words': 82}