<commit_before><?php

use Corviz\Mvc\View;
use Corviz\Mvc\View\TemplateEngine;

if (!function_exists('view')) {
    /**
     * @param string $template
     * @param array $data
     *
     * @return View
     */
    function view(string $template, array $data = []) : View
    {
        $view = new View($this->container(TemplateEngine::class));
        $view->setData($data);<commit_msg>fix container call<commit_after><?php

use Corviz\Application;
use Corviz\Mvc\View;
use Corviz\Mvc\View\TemplateEngine;

if (!function_exists('view')) {
    /**
     * @param string $template
     * @param array $data
     *
     * @return View
     */
    function view(string $template, array $data = []) : View
    {
        $container = Application::current()->getContainer();
        $view = new View($container->get(TemplateEngine::class));
        $view->setData($data);
{'fraction_non_alphanumeric': 0.1606936416184971, 'fraction_numerical': 0.0, 'mean_word_length': 2.9724770642201834, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5242379', 'n_tokens_mistral': 267, 'n_tokens_neox': 272, 'n_words': 55}