<commit_before><?php

namespace Rudolf\Framework\View;

use Rudolf\Component\Helpers\Navigation\MenuItemCollection;
use Rudolf\Component\Html\Navigation;

abstract class FrontView extends BaseView
{
    private static $menuItemsCollection;
    protected static $request;

    public static function setFrontData(MenuItemCollection $collection, $request)
    {
        self::$menuItemsCollection = $collection;
        self::$request = $request;
    }

    public function pageNav($type, $classes, $nesting = 0, $before = [], $after = [])
    {
        $nav = new Navigation();
        $nav->setType($type);
        $nav->setItems(self::$menuItemsCollection);
        $nav->setCurrent(self::$request);
        $nav->setClasses($classes);
        $nav->setNesting($nesting);
        $nav->setBefore($before);
        $nav->setAfter($after);

        return $nav->create();
    }
}
<commit_msg>Add default params<commit_after><?php

namespace Rudolf\Framework\View;

use Rudolf\Component\Helpers\Navigation\MenuItemCollection;
use Rudolf\Component\Html\Navigation;

abstract class FrontView extends BaseView
{
    private static $menuItemsCollection;
    protected static $request;

    public static function setFrontData(MenuItemCollection $collection, $request)
    {
        self::$menuItemsCollection = $collection;
        self::$request = $request;
    }

    public function pageNav($type = 'main', $classes = [], $nesting = 0, $before = [], $after = [])
    {
        $nav = new Navigation();
        $nav->setType($type);
        $nav->setItems(self::$menuItemsCollection);
        $nav->setCurrent(self::$request);
        $nav->setClasses($classes);
        $nav->setNesting($nesting);
        $nav->setBefore($before);
        $nav->setAfter($after);

        return $nav->create();
    }
}

{'fraction_non_alphanumeric': 0.14325374791782344, 'fraction_numerical': 0.001110494169905608, 'mean_word_length': 3.321342925659472, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '7637011', 'n_tokens_mistral': 513, 'n_tokens_neox': 508, 'n_words': 99}