<commit_before><?php
namespace Kir\Services\Cmd\Dispatcher;

use Exception;

interface Dispatcher {
	const ONE_DAY = 86400;
	const ONE_HOUR = 3600;
	const ONE_MINUTE = 60;

	/**
	 * @param string $key
	 * @param int $interval
	 * @param $callable
	 * @return $this
	 */
	public function register($key, $interval, $callable);

	/**
	 * @throws Exception
	 * @return int Count of services successfully started
	 */
	public function run();
} <commit_msg>Added event-handler<commit_after><?php
namespace Kir\Services\Cmd\Dispatcher;

use Exception;

interface Dispatcher {
	const ONE_DAY = 86400;
	const ONE_HOUR = 3600;
	const ONE_MINUTE = 60;

	/**
	 * @param string $key
	 * @param int $interval
	 * @param $callable
	 * @return $this
	 */
	public function register($key, $interval, $callable);

	/**
	 * @param string $event
	 * @param callable $fn
	 * @return $this
	 */
	public function on($event, $fn);

	/**
	 * @throws Exception
	 * @return int Count of services successfully started
	 */
	public function run();
} 
{'fraction_non_alphanumeric': 0.1284313725490196, 'fraction_numerical': 0.021568627450980392, 'mean_word_length': 3.705069124423963, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4762942', 'n_tokens_mistral': 361, 'n_tokens_neox': 317, 'n_words': 99}