<commit_before><?php

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

namespace Tadcka\Component\Tree\Event;

use Symfony\Component\EventDispatcher\Event;
use Tadcka\Component\Tree\Model\NodeInterface;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @since 9/6/14 2:12 PM
 */
class TreeNodeEvent extends Event
{
    /**
     * @var NodeInterface
     */
    private $node;

    /**
     * Constructor.
     *
     * @param NodeInterface $node
     */
    public function __construct(NodeInterface $node)
    {
        $this->node = $node;
    }

    /**
     * Get node.
     *
     * @return NodeInterface
     */
    public function getNode()
    {
        return $this->node;
    }
}<commit_msg>Add locale to tree node event.<commit_after><?php

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

namespace Tadcka\Component\Tree\Event;

use Symfony\Component\EventDispatcher\Event;
use Tadcka\Component\Tree\Model\NodeInterface;

/**
 * @author <NAME> <<EMAIL>>
 *
 * @since 9/6/14 2:12 PM
 */
class TreeNodeEvent extends Event
{
    /**
     * @var NodeInterface
     */
    private $node;

    /**
     * @var string
     */
    private $locale;

    /**
     * Constructor.
     *
     * @param string $locale
     * @param NodeInterface $node
     */
    public function __construct($locale, NodeInterface $node)
    {
        $this->locale = $locale;
        $this->node = $node;
    }

    /**
     * Get locale.
     *
     * @return string
     */
    public function getLocale()
    {
        return $this->locale;
    }

    /**
     * Get node.
     *
     * @return NodeInterface
     */
    public function getNode()
    {
        return $this->node;
    }
}
{'fraction_non_alphanumeric': 0.12953629032258066, 'fraction_numerical': 0.007056451612903226, 'mean_word_length': 2.1507936507936507, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '5073845', 'n_tokens_mistral': 638, 'n_tokens_neox': 622, 'n_words': 166}