<commit_before><?php

namespace Bacon\Bundle\MenuBundle\Twig\Extension;

use Knp\Menu\Twig\Helper;
use \Twig_Extension;
use \AppKernel;

class MenuExtension extends Twig_Extension
{
    /**
     * @var Helper
     */
    private $helper;

    /**
     * @var AppKernel
     */
    private $kernel;

    /**
     * @var string
     */
    private $className;

    /**
     * @var string
     */
    private $methodName;

    /**
     * @param Helper $helper
     * @param AppKernel $container
     */
    public function __construct(Helper $helper, AppKernel $kernel,$className,$methodName)
    {
        $this->helper       = $helper;
        $this->kernel       = $kernel;
        $this->className    = $className;
        $this->methodName   = $methodName;
    }

    /**
     * @return array
     */
    public function getFunctions()
    {
        return array(
            new \Twig_SimpleFunction('bacon_menu_full_render',array($this,'renderFull'), array('is_safe' => array('html'))),
        );
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'bacon_menu';
    }

    public function renderFull()
    {

        $bundles = $this->kernel->getBundles();

        $return  = '';<commit_msg>Ajuste na versão do Twig<commit_after><?php

namespace Bacon\Bundle\MenuBundle\Twig\Extension;

use Knp\Menu\Twig\Helper;
use \Twig_Extension;
use \AppKernel;

class MenuExtension extends Twig_Extension
{
    /**
     * @var Helper
     */
    private $helper;

    /**
     * @var AppKernel
     */
    private $kernel;

    /**
     * @var string
     */
    private $className;

    /**
     * @var string
     */
    private $methodName;

    /**
     * @param Helper $helper
     * @param AppKernel $container
     */
    public function __construct(Helper $helper, AppKernel $kernel,$className,$methodName)
    {
        $this->helper       = $helper;
        $this->kernel       = $kernel;
        $this->className    = $className;
        $this->methodName   = $methodName;
    }

    public function initRuntime(\Twig_Environment $environment)
    {
        // TODO: Implement initRuntime() method.
    }

    public function getGlobals()
    {
        return [];
    }

    /**
     * @return array
     */
    public function getFunctions()
    {
        return array(
            new \Twig_SimpleFunction('bacon_menu_full_render',array($this,'renderFull'), array('is_safe' => array('html'))),
        );
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'bacon_menu';
    }

    public function renderFull()
    {

        $bundles = $this->kernel->getBundles();

        $return  = '';
{'fraction_non_alphanumeric': 0.1344005956813105, 'fraction_numerical': 0.0, 'mean_word_length': 1.9690607734806629, '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': '5302204', 'n_tokens_mistral': 827, 'n_tokens_neox': 807, 'n_words': 162}