<commit_before><?php

namespace Podiya;

/**
 * Podiya main class
 *
 * @author		<NAME>
 * @package		Podiya
 * @version		0.1
 */
class Podiya {

	/**
	 * An array that contains registered events
	 *
	 * @access		protected
	 */
	protected $events = array();

	/**
	 * Registers an event handler for an event
	 *
	 * @access		public
	 * @param		string $eventName The registered event's name
	 * @param		callable $callback A callback that will handle the event
	 * @return		\Podiya\Podiya Returns the class
	 */
	public function registerEvent($eventName, callable $callback, $priority = \Podiya\Priority::NORMAL) {
		$this->events[$eventName][$priority][] = $callback;
		return $this;
	}

	/**
	 * Unregister the event handlers for an event
	 *
	 * @access		public
	 * @param		string $eventName The registered event's name
	 * @return		\Podiya\Podiya Returns the class
	 */
	public function unregisterEvent($eventName) {
		if ($this->eventRegistered($eventName) {
			foreach ($this->events[$eventName] as $key => $value) {
				$this->events[$eventName][$key] = array_splice($this->events[$eventName][$key], 0, 1);
			}
		}

		return $this;
	}<commit_msg>Oops, forgot a bracket<commit_after><?php

namespace Podiya;

/**
 * Podiya main class
 *
 * @author		<NAME>
 * @package		Podiya
 * @version		0.1
 */
class Podiya {

	/**
	 * An array that contains registered events
	 *
	 * @access		protected
	 */
	protected $events = array();

	/**
	 * Registers an event handler for an event
	 *
	 * @access		public
	 * @param		string $eventName The registered event's name
	 * @param		callable $callback A callback that will handle the event
	 * @return		\Podiya\Podiya Returns the class
	 */
	public function registerEvent($eventName, callable $callback, $priority = \Podiya\Priority::NORMAL) {
		$this->events[$eventName][$priority][] = $callback;
		return $this;
	}

	/**
	 * Unregister the event handlers for an event
	 *
	 * @access		public
	 * @param		string $eventName The registered event's name
	 * @return		\Podiya\Podiya Returns the class
	 */
	public function unregisterEvent($eventName) {
		if ($this->eventRegistered($eventName)) {
			foreach ($this->events[$eventName] as $key => $value) {
				$this->events[$eventName][$key] = array_splice($this->events[$eventName][$key], 0, 1);
			}
		}

		return $this;
	}
{'fraction_non_alphanumeric': 0.1375432525951557, 'fraction_numerical': 0.0034602076124567475, 'mean_word_length': 3.6075697211155378, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '3703925', 'n_tokens_mistral': 823, 'n_tokens_neox': 730, 'n_words': 211}