<commit_before><?php namespace core\base;

final class Helper
{
    public static function strings() {
        return String::values();
    }

    public static function old($name) {
        return Request::old($name);
    }

    public static function csrf_token() {
        return Session::token();
    }

    public static function is_auth() {
        return (Auth::user()) ? true : false;
    }

    public static function view($view) {
        return View::load($view);
    }

    public function base_url($url = null)
    {
        if ($url and is_string($url)) {
            return BASE_URL . $url;
        }
        return BASE_URL;
    }

    public function route($name, $params = null)
    {<commit_msg>Modificado para estática as funções base_url e route.<commit_after><?php namespace core\base;

final class Helper
{
    public static function strings() {
        return String::values();
    }

    public static function old($name) {
        return Request::old($name);
    }

    public static function csrf_token() {
        return Session::token();
    }

    public static function is_auth() {
        return (Auth::user()) ? true : false;
    }

    public static function view($view) {
        return View::load($view);
    }

    public static function base_url($url = null)
    {
        if ($url and is_string($url)) {
            return BASE_URL . $url;
        }
        return BASE_URL;
    }

    public static function route($name, $params = null)
    {
{'fraction_non_alphanumeric': 0.11673414304993253, 'fraction_numerical': 0.0, 'mean_word_length': 2.273730684326711, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1331332', 'n_tokens_mistral': 428, 'n_tokens_neox': 419, 'n_words': 121}