<commit_before><?php
namespace Vivo\UI;

use Vivo\UI\ComponentEventInterface;
use Vivo\UI\ComponentEvent;

use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\View\Model\ModelInterface;
use Zend\View\Model\ViewModel;
use Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerInterface;

/**
 * Base class for UI components.
 *
 */
class Component implements ComponentInterface
{
    /**
     * String used to separate component names in path
     * @var string
     */
    const COMPONENT_SEPARATOR = '->';

    /**
     * Component parent.
     * @var \Vivo\UI\ComponentInterface
     */
    private $parent;

    /**
     * Component name.
     * @var string
     */
    private $name;

    /**
     *
     * @var ModelInterface
     */
    protected $view;

    /**
     * Component Event manager
     * @var EventManagerInterface
     */
    protected $eventManager;

    /**
     * Component Event
     * @var ComponentEventInterface
     */
    protected $event;

    /**
     * Array of attached listeners
     * @var array
     */<commit_msg>Event manager is private<commit_after><?php
namespace Vivo\UI;

use Vivo\UI\ComponentEventInterface;
use Vivo\UI\ComponentEvent;

use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\View\Model\ModelInterface;
use Zend\View\Model\ViewModel;
use Zend\EventManager\EventManager;
use Zend\EventManager\EventManagerInterface;

/**
 * Base class for UI components.
 *
 */
class Component implements ComponentInterface
{
    /**
     * String used to separate component names in path
     * @var string
     */
    const COMPONENT_SEPARATOR = '->';

    /**
     * Component parent.
     * @var \Vivo\UI\ComponentInterface
     */
    private $parent;

    /**
     * Component name.
     * @var string
     */
    private $name;

    /**
     *
     * @var ModelInterface
     */
    protected $view;

    /**
     * Component Event manager
     * @var EventManagerInterface
     */
    private $eventManager;

    /**
     * Component Event
     * @var ComponentEventInterface
     */
    protected $event;

    /**
     * Array of attached listeners
     * @var array
     */
{'fraction_non_alphanumeric': 0.10815850815850817, 'fraction_numerical': 0.0, 'mean_word_length': 2.3742138364779874, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '891626', 'n_tokens_mistral': 630, 'n_tokens_neox': 607, 'n_words': 149}