<commit_before><?php

namespace Terranet\Navigation;

class Manager
{
    public function providers()
    {
        return array_map(function ($provider) {
            return new $provider;
        }, config('navigation.providers', []));
    }
}<commit_msg>Add a make navigation method<commit_after><?php

namespace Terranet\Navigation;

use App\Menu;

class Manager
{
    public function providers()
    {
        return array_map(function ($provider) {
            return new $provider;
        }, config('navigation.providers', []));
    }

    public function make($id)
    {
        return Menu::whereName($id)
            ->first()
            ->items
            ->map(function ($item) {
                return $item->assemble();
            });
    }
}
{'fraction_non_alphanumeric': 0.12894736842105264, 'fraction_numerical': 0.0, 'mean_word_length': 2.1316872427983538, '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': '456990', 'n_tokens_mistral': 207, 'n_tokens_neox': 205, 'n_words': 47}