<commit_before><?php
namespace Fminor\Core\Controller;

use Symfony\Component\Templating\PhpEngine;
use Symfony\Component\Templating\Helper\SlotsHelper;
use Symfony\Component\Templating\TemplateNameParser;
use Symfony\Component\Templating\Loader\FilesystemLoader;
use Symfony\Component\HttpFoundation\Response;

abstract class BaseController
{
    protected function render($name, array $args = array(), $status = '200')
    {
        $loader = new FilesystemLoader(__DIR__.'/../../../src/Resources/views/%name%');

        $templating = new PhpEngine(new TemplateNameParser(), $loader);
        $templating->set(new SlotsHelper());

        return new Response($templating->render($name, $args), $status);
    }
}
<commit_msg>fixed path level<commit_after><?php
namespace Fminor\Core\Controller;

use Symfony\Component\Templating\PhpEngine;
use Symfony\Component\Templating\Helper\SlotsHelper;
use Symfony\Component\Templating\TemplateNameParser;
use Symfony\Component\Templating\Loader\FilesystemLoader;
use Symfony\Component\HttpFoundation\Response;

abstract class BaseController
{
    protected function render($name, array $args = array(), $status = '200')
    {
        $loader = new FilesystemLoader(__DIR__.'/../../../../src/Resources/views/%name%');

        $templating = new PhpEngine(new TemplateNameParser(), $loader);
        $templating->set(new SlotsHelper());

        return new Response($templating->render($name, $args), $status);
    }
}

{'fraction_non_alphanumeric': 0.13904109589041097, 'fraction_numerical': 0.00410958904109589, 'mean_word_length': 4.492481203007519, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5602848', 'n_tokens_mistral': 435, 'n_tokens_neox': 426, 'n_words': 80}