<commit_before><?php
namespace Wandu\Foundation
{

    use function Wandu\DI\container;

    /**
     * @deprecated use function Wandu\DI\container
     * @return \Wandu\DI\ContainerInterface
     */
    function app()
    {
        return container();
    }

    /**
     * @param string $name
     * @param mixed $default
     * @return mixed
     */
    function config($name, $default = null)
    {
        return container()->get('config')->get($name, $default);
    }

    /**
     * @param string|array $path
     * @return string|array
     */
    function path($path)
    {
        if (is_array($path)) {
            return array_map(function ($path) {
                return path($path);
            }, $path);
        }
        if ($path[0] !== '/' && container()->has('base_path')) {
            return container()->get('base_path') . '/' . $path;
        }
        return $path;
    }
}

namespace Wandu\View<commit_msg>path function is deprecated, @wandu/foundation<commit_after><?php
namespace Wandu\Foundation
{
    use function Wandu\DI\container;

    /**
     * @deprecated use function Wandu\DI\container
     * @return \Wandu\DI\ContainerInterface
     */
    function app()
    {
        return container();
    }

    /**
     * @param string $name
     * @param mixed $default
     * @return mixed
     */
    function config($name, $default = null)
    {
        return container()->get('config')->get($name, $default);
    }

    /**
     * @deprecated
     * @param string|array $path
     * @return string|array
     */
    function path($path)
    {
        if (is_array($path)) {
            return array_map(function ($path) {
                return path($path);
            }, $path);
        }
        if ($path[0] !== '/' && container()->has('base_path')) {
            return container()->get('base_path') . '/' . $path;
        }
        return $path;
    }
}

namespace Wandu\View
{'fraction_non_alphanumeric': 0.15701617110067814, 'fraction_numerical': 0.0010432968179447052, 'mean_word_length': 1.87987987987988, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4313468', 'n_tokens_mistral': 578, 'n_tokens_neox': 573, 'n_words': 116}