<commit_before><?php

namespace Application\Bundle\DefaultBundle\Menu;

use Knp\Menu\FactoryInterface;
use Symfony\Component\HttpFoundation\Request;

/**
 * Main menu builder.
 * For render menu you can use this code:
 * {{ knp_menu_render('main') }}
 */
class MenuBuilder
{

    private $factory;

    /**
     * Constructor injection
     *
     * @param FactoryInterface $factory
     */
    public function __construct(FactoryInterface $factory)
    {
        $this->factory = $factory;
    }

    /**
     * Main menu
     *
     * @param Request $request
     *
     * @return mixed
     */
    public function createMainMenu(Request $request)
    {
        $menu = $this->factory->createItem('root');

        $menu->setUri($request->getRequestUri());

        $menu->addChild('Наши работы', array('route' => 'homepage'));
        $menu->addChild('Услуги', array('route' => 'portfolio_categories_list'));
        $menu->addChild('Команда', array('route' => 'team'));
        $menu->addChild('Блог', array('route' => 'blog'));
        $menu->addChild('Контакты', array('route' => 'contacts'));

        return $menu;
    }

    /**
     * Breadcrumbs
     *
     * @param Request $request
     *
     * @return mixed
     */
    public function createBreadcrumbsMenu(Request $request)
    {
        $menu = $this->factory->createItem('root');

        $menu->setUri($request->getRequestUri());

        $menu->addChild('Главная', array('route' => 'homepage'));<commit_msg>fix main menu<commit_after><?php

namespace Application\Bundle\DefaultBundle\Menu;

use Knp\Menu\FactoryInterface;
use Symfony\Component\HttpFoundation\Request;

/**
 * Main menu builder.
 * For render menu you can use this code:
 * {{ knp_menu_render('main') }}
 */
class MenuBuilder
{

    private $factory;

    /**
     * Constructor injection
     *
     * @param FactoryInterface $factory
     */
    public function __construct(FactoryInterface $factory)
    {
        $this->factory = $factory;
    }

    /**
     * Main menu
     *
     * @param Request $request
     *
     * @return mixed
     */
    public function createMainMenu(Request $request)
    {
        $menu = $this->factory->createItem('root');

        $menu->setUri($request->getRequestUri());

        $menu->addChild('Проекты', array('route' => 'portfolio_all_projects'));
        $menu->addChild('Услуги', array('route' => 'portfolio_categories_list'));
        $menu->addChild('Команда', array('route' => 'team'));
        $menu->addChild('Блог', array('route' => 'blog'));
        $menu->addChild('Контакты', array('route' => 'contacts'));

        return $menu;
    }

    /**
     * Breadcrumbs
     *
     * @param Request $request
     *
     * @return mixed
     */
    public function createBreadcrumbsMenu(Request $request)
    {
        $menu = $this->factory->createItem('root');

        $menu->setUri($request->getRequestUri());

        $menu->addChild('Главная', array('route' => 'homepage'));
{'fraction_non_alphanumeric': 0.1638570465273095, 'fraction_numerical': 0.0, 'mean_word_length': 2.7556962025316456, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '4040972', 'n_tokens_mistral': 901, 'n_tokens_neox': 901, 'n_words': 164}