<commit_before><?php
/**
 * Base controller class for WizinSimpleCmsBundle
 */
namespace Wizin\Bundle\SimpleCmsBundle\Controller;

use Symfony\Component\HttpFoundation\Response;
use Wizin\Bundle\BaseBundle\Controller\Controller as BaseController;
use Wizin\Bundle\SimpleCmsBundle\Entity\Content;

/**
 * Class Controller
 * @package Wizin\Bundle\SimpleCmsBundle\Controller
 * @author <NAME> <<EMAIL>>
 */
class Controller extends BaseController
{
    /**
     * @param Content $content
     * @return Response
     */
    protected function sendContent(Content $content)
    {
        $cache = $this->getTemplateHandler()->getTemplateCache($content);
        $this->container->get('twig.loader')->addPath(dirname($cache));

        return $this->render(
            basename($cache),
            [
                'title' => $content->getTitle(),
            ]
        );
    }

    /**
     * @return \Wizin\Bundle\SimpleCmsBundle\Service\TemplateHandler
     */
    protected function getTemplateHandler()
    {
        return $this->get('wizin_simple_cms.template_handler');
    }

    /**
     * @return \Wizin\Bundle\SimpleCmsBundle\Service\ClassLoader
     */
    protected function getClassLoader()
    {
        return $this->get('wizin_simple_cms.class_loader');
    }
}
<commit_msg>Add Controller::getContentManager()<commit_after><?php
/**
 * Base controller class for WizinSimpleCmsBundle
 */
namespace Wizin\Bundle\SimpleCmsBundle\Controller;

use Symfony\Component\HttpFoundation\Response;
use Wizin\Bundle\BaseBundle\Controller\Controller as BaseController;
use Wizin\Bundle\SimpleCmsBundle\Entity\Content;

/**
 * Class Controller
 * @package Wizin\Bundle\SimpleCmsBundle\Controller
 * @author <NAME> <<EMAIL>>
 */
class Controller extends BaseController
{
    /**
     * @param Content $content
     * @return Response
     */
    protected function sendContent(Content $content)
    {
        $cache = $this->getTemplateHandler()->getTemplateCache($content);
        $this->container->get('twig.loader')->addPath(dirname($cache));

        return $this->render(
            basename($cache),
            [
                'title' => $content->getTitle(),
            ]
        );
    }

    /**
     * @return \Wizin\Bundle\SimpleCmsBundle\Service\TemplateHandler
     */
    protected function getTemplateHandler()
    {
        return $this->get('wizin_simple_cms.template_handler');
    }

    /**
     * @return \Wizin\Bundle\SimpleCmsBundle\Service\ClassLoader
     */
    protected function getClassLoader()
    {
        return $this->get('wizin_simple_cms.class_loader');
    }

    /**
     * @return \Wizin\Bundle\SimpleCmsBundle\Service\ContentManager
     */
    protected function getContentManager()
    {
        return $this->get('wizin_simple_cms.content_manager');
    }
}

{'fraction_non_alphanumeric': 0.12993948024207902, 'fraction_numerical': 0.0, 'mean_word_length': 2.89196675900277, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 30, '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': '1275538', 'n_tokens_mistral': 822, 'n_tokens_neox': 809, 'n_words': 124}