<commit_before><?php

/*
 * This file is part of the NuCms package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Nugato\Bundle\NuCmsBundle\Controller\Admin;

use Nugato\Bundle\NuCmsBundle\Entity\Navigation\NavigationItemInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class DashboardController extends Controller
{
    /**
     * @return Response
     */
    public function indexAction(): Response
    {
        $itemFactory = $this->get('nucms.factory.navigation_item');
        $localeContext = $this->get('nucms.context.locale.admin_based');

        /** @var NavigationItemInterface $item */
        $item = $itemFactory->createNew();
        $item->setCurrentLocale($localeContext->getLocaleCode());
        $item->setName('Item 1 en');

        $this->getDoctrine()->getManager()->persist($item);
        $this->getDoctrine()->getManager()->flush();

        return $this->render('NugatoNuCmsBundle:Admin/Dashboard:index.html.twig');
    }
}<commit_msg>Remove test code<commit_after><?php

/*
 * This file is part of the NuCms package.
 *
 * (c) <NAME>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

declare(strict_types=1);

namespace Nugato\Bundle\NuCmsBundle\Controller\Admin;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;

class DashboardController extends Controller
{
    /**
     * @return Response
     */
    public function indexAction(): Response
    {
        return $this->render('NugatoNuCmsBundle:Admin/Dashboard:index.html.twig');
    }
}
{'fraction_non_alphanumeric': 0.1242635243706481, 'fraction_numerical': 0.0016068559185859668, 'mean_word_length': 3.9028871391076114, 'pattern_counts': {'":': 0, '<': 7, '<?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': '140232', 'n_tokens_mistral': 544, 'n_tokens_neox': 534, 'n_words': 119}