<commit_before><?php

namespace Oro\Bundle\EntityBundle\EventListener;

use Doctrine\ORM\EntityManager;

use Symfony\Component\Translation\Translator;

use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider;
use Oro\Bundle\EntityExtendBundle\Extend\ExtendManager;
use Oro\Bundle\NavigationBundle\Event\ConfigureMenuEvent;
use Oro\Bundle\SecurityBundle\SecurityFacade;

class NavigationListener
{
    /**
     * @var SecurityFacade
     */
    protected $securityFacade;

    /**
     * @var EntityManager|null
     */
    protected $em = null;

    /** @var ConfigProvider $entityConfigProvider */
    protected $entityConfigProvider = null;

    /** @var ConfigProvider $entityExtendProvider */
    protected $entityExtendProvider = null;

    /** @var  Translator */
    protected $translator;

    /**
     * @param SecurityFacade $securityFacade
     * @param EntityManager $entityManager
     * @param ConfigProvider $entityConfigProvider
     * @param ConfigProvider $entityExtendProvider
     * @param Translator $translator
     */
    public function __construct(
        SecurityFacade $securityFacade,
        EntityManager $entityManager,
        ConfigProvider $entityConfigProvider,
        ConfigProvider $entityExtendProvider,
        Translator $translator
    ) {
        $this->securityFacade       = $securityFacade;
        $this->em                   = $entityManager;
        $this->entityConfigProvider = $entityConfigProvider;
        $this->entityExtendProvider = $entityExtendProvider;
        $this->translator           = $translator;
    }

    /**
     * @param ConfigureMenuEvent $event
     */
    public function onNavigationConfigure(ConfigureMenuEvent $event)<commit_msg>CS fixes<commit_after><?php

namespace Oro\Bundle\EntityBundle\EventListener;

use Doctrine\ORM\EntityManager;

use Symfony\Component\Translation\Translator;

use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider;
use Oro\Bundle\EntityExtendBundle\Extend\ExtendManager;
use Oro\Bundle\NavigationBundle\Event\ConfigureMenuEvent;
use Oro\Bundle\SecurityBundle\SecurityFacade;

class NavigationListener
{
    /**
     * @var SecurityFacade
     */
    protected $securityFacade;

    /**
     * @var EntityManager|null
     */
    protected $em = null;

    /** @var ConfigProvider $entityConfigProvider */
    protected $entityConfigProvider = null;

    /** @var ConfigProvider $entityExtendProvider */
    protected $entityExtendProvider = null;

    /** @var  Translator */
    protected $translator;

    /**
     * @param SecurityFacade $securityFacade
     * @param EntityManager  $entityManager
     * @param ConfigProvider $entityConfigProvider
     * @param ConfigProvider $entityExtendProvider
     * @param Translator     $translator
     */
    public function __construct(
        SecurityFacade $securityFacade,
        EntityManager $entityManager,
        ConfigProvider $entityConfigProvider,
        ConfigProvider $entityExtendProvider,
        Translator $translator
    ) {
        $this->securityFacade       = $securityFacade;
        $this->em                   = $entityManager;
        $this->entityConfigProvider = $entityConfigProvider;
        $this->entityExtendProvider = $entityExtendProvider;
        $this->translator           = $translator;
    }

    /**
     * @param ConfigureMenuEvent $event
     */
    public function onNavigationConfigure(ConfigureMenuEvent $event)
{'fraction_non_alphanumeric': 0.09239766081871345, 'fraction_numerical': 0.0, 'mean_word_length': 3.1167268351383877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6743282', 'n_tokens_mistral': 927, 'n_tokens_neox': 908, 'n_words': 174}