<commit_before><?php
namespace MOC\V\Component\Template\Component\Bridge\Repository;

use MOC\V\Component\Template\Component\Bridge\Bridge;
use MOC\V\Component\Template\Component\IBridgeInterface;
use MOC\V\Component\Template\Component\Parameter\Repository\FileParameter;

/**
 * Class TwigTemplate
 *
 * @package MOC\V\Component\Template\Component\Bridge
 */
class TwigTemplate extends Bridge implements IBridgeInterface
{

    /** @var null|\Twig_Environment $Instance */
    private $Instance = null;
    /** @var null|\Twig_Template $Template */
    private $Template = null;

    /**
     *
     */
    function __construct()
    {

        require_once( __DIR__.'/../../../Vendor/Twig/lib/Twig/Autoloader.php' );
        \Twig_Autoloader::register();
    }

    /**
     * @param FileParameter $Location
     *
     * @return IBridgeInterface
     */
    public function loadFile( FileParameter $Location )
    {

        $this->Instance = new \Twig_Environment( new \Twig_Loader_Filesystem( array( dirname( $Location->getFile() ) ) ) );
        $this->Template = $this->Instance->loadTemplate( basename( $Location->getFile() ) );
        return $this;
    }

    /**
     * @return string
     */
    public function getContent()
    {

        return $this->Template->render( $this->VariableList );
    }

}<commit_msg>Update: Component Template (Twig: Disable AutoEscape)<commit_after><?php
namespace MOC\V\Component\Template\Component\Bridge\Repository;

use MOC\V\Component\Template\Component\Bridge\Bridge;
use MOC\V\Component\Template\Component\IBridgeInterface;
use MOC\V\Component\Template\Component\Parameter\Repository\FileParameter;

/**
 * Class TwigTemplate
 *
 * @package MOC\V\Component\Template\Component\Bridge
 */
class TwigTemplate extends Bridge implements IBridgeInterface
{

    /** @var null|\Twig_Environment $Instance */
    private $Instance = null;
    /** @var null|\Twig_Template $Template */
    private $Template = null;

    /**
     *
     */
    function __construct()
    {

        require_once( __DIR__.'/../../../Vendor/Twig/lib/Twig/Autoloader.php' );
        \Twig_Autoloader::register();
    }

    /**
     * @param FileParameter $Location
     *
     * @return IBridgeInterface
     */
    public function loadFile( FileParameter $Location )
    {

        $this->Instance = new \Twig_Environment(
            new \Twig_Loader_Filesystem( array( dirname( $Location->getFile() ) ) ),
            array( 'autoescape' => false )
        );
        $this->Template = $this->Instance->loadTemplate( basename( $Location->getFile() ) );
        return $this;
    }

    /**
     * @return string
     */
    public function getContent()
    {

        return $this->Template->render( $this->VariableList );
    }

}
{'fraction_non_alphanumeric': 0.1410442349528644, 'fraction_numerical': 0.0, 'mean_word_length': 2.7639836289222375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '4370442', 'n_tokens_mistral': 839, 'n_tokens_neox': 814, 'n_words': 144}