<commit_before>package mork;

public interface EventListener {

	void onEvent(Event event);

}<commit_msg>Documentation JavaDoc for the Event Listener interface<commit_after>package mork;

/**
 * The Event Listener Interfaces is notified of Parser Events when the Mork
 * Parser parses Mork elements like Dictionaries, Tables, Rows etc.
 * 
 * @author mhaller
 */
public interface EventListener {

	/**
	 * Is being called for all toplevel elements when parsing a Mork database.
	 * 
	 * The event has a type (one of {@link EventType} and an optional content.
	 * The content is a String value and usually contains the whole Mork content
	 * of the parses element.
	 * 
	 * In cases where it does not make sense to have content, the value is
	 * simply <code>null</code>
	 * 
	 * Note: the Mork Parser will reuse a single Event object for all events,
	 * resetting its values to new values. If you need to reuse the Event
	 * object, you need to make sure to clone it yourself.
	 * 
	 * @param event
	 *            the Event, which is of type {@link EventType} and an optional
	 *            String value which might be <code>null</code>. The event
	 *            object itself is never <code>null</code>.
	 */
	void onEvent(Event event);

}
{'fraction_non_alphanumeric': 0.07091055600322321, 'fraction_numerical': 0.0, 'mean_word_length': 3.195945945945946, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1351350', 'n_tokens_mistral': 359, 'n_tokens_neox': 326, 'n_words': 165}