<commit_before><?php

	/**
	 * Retrieve a copy of the LogComponent instance so that we can attach
	 * our listener callback to it.
	 */
	$logComponent = ClassRegistry::getObject('Referee.Log');
	
	/**
	 * The attach() method accepts two parameters. The event type to attach
	 * to and the callback to fire when the event occurs.
	 * 
	 * Here we attach the exampleListener() function and listen for an
	 * E_NOTICE event to be dispatched.
	 */
	//$logComponent->attach(E_NOTICE, 'exampleListener');
	
	/**
	 * This is our example listener that we attached above. It will be
	 * called when an E_NOTICE occurs.
	 */
	function exampleListener($level, $string, $file, $line, $context) {
		?>
			<div style="-moz-border-radius: 5px; background: #D1BE2E; padding: 5px;">
				<strong>RefereePlugin: exampleListener() caught an E_NOTICE</strong><br/>
				<em><?php echo $string; ?></em><br/>
				<code><?php echo $file.':'.$line; ?></code>
			</div>
		<?php
	}<commit_msg>vendors/listeners/example.php  - Added a documentation message<commit_after><?php

	/**
	 * Retrieve a copy of the LogComponent instance so that we can attach
	 * our listener callback to it.
	 */
	$logComponent = ClassRegistry::getObject('Referee.Log');
	
	/**
	 * The attach() method accepts two parameters. The event type to attach
	 * to and the callback to fire when the event occurs.
	 * 
	 * Here we attach the exampleListener() function and listen for an
	 * E_NOTICE event to be dispatched.
	 */
	//$logComponent->attach(E_NOTICE, 'exampleListener');
	
	/**
	 * If we feel so inclined we could attach a listener to "*" (without the quotes)
	 * to have us listen to every single event.
	 */
	
	/**
	 * This is our example listener that we attached above. It will be
	 * called when an E_NOTICE occurs.
	 */
	function exampleListener($level, $string, $file, $line, $context) {
		?>
			<div style="-moz-border-radius: 5px; background: #D1BE2E; padding: 5px;">
				<strong>RefereePlugin: exampleListener() caught an E_NOTICE</strong><br/>
				<em><?php echo $string; ?></em><br/>
				<code><?php echo $file.':'.$line; ?></code>
			</div>
		<?php
	}
{'fraction_non_alphanumeric': 0.13739376770538245, 'fraction_numerical': 0.003777148253068933, 'mean_word_length': 3.5668103448275863, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '3196247', 'n_tokens_mistral': 702, 'n_tokens_neox': 634, 'n_words': 232}