<commit_before><?php

/*
 * This file is part of the Yosymfony\Spress.
 *
 * (c) YoSymfony <http://github.com/yosymfony>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Yosymfony\Spress\Core\Plugin;

class EventSubscriber
{
    private $listener = [];

    /**
     * Add a listener for one event
     *
     * @param string   $eventName
     * @param callable $listener
     */
    public function addEventListener($eventName, $listener)
    {
        $this->listener[$eventName] = $listener;
    }

    /**
     * Get event listeners
     *
     * @return array
     */
    public function getEventListeners()
    {
        return $this->listener;
    }
}<commit_msg>Argument 'listener' from addEventListener is a type closure<commit_after><?php

/*
 * This file is part of the Yosymfony\Spress.
 *
 * (c) YoSymfony <http://github.com/yosymfony>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Yosymfony\Spress\Core\Plugin;

/**
 * Event subscriber.
 *
 * @author <NAME> <<EMAIL>>
 */
class EventSubscriber
{
    private $listener = [];

    /**
     * Add a listener for one event.
     *
     * @param string   $eventName
     * @param \closure $listener
     */
    public function addEventListener($eventName, \closure $listener)
    {
        $this->listener[$eventName] = $listener;
    }

    /**
     * Get event listeners.
     *
     * @return array
     */
    public function getEventListeners()
    {
        return $this->listener;
    }
}
{'fraction_non_alphanumeric': 0.11643420254699818, 'fraction_numerical': 0.0, 'mean_word_length': 2.5106382978723403, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 12, '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': '3712568', 'n_tokens_mistral': 492, 'n_tokens_neox': 487, 'n_words': 141}