<commit_before>// Type definitions for EventEmitter2 v0.14.4
// Project: https://github.com/asyncly/EventEmitter2
// Definitions by: ryiwamoto <https://github.com/ryiwamoto/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

interface EventEmitter2Configuration {
    /**
     * use wildcards
     */
    wildcard?: boolean;

    /**
     * the delimiter used to segment namespaces, defaults to `.`.
     */
    delimiter?: string;

    /**
     * if you want to emit the newListener event set to true.
     */
    newListener?: boolean;

    /**
     * max listeners that can be assigned to an event, default 10.
     */
    maxListeners?: number;
}

declare class EventEmitter2 {
    /**
     * @param conf
     */
    constructor(conf?: EventEmitter2Configuration);

    /**
     * Adds a listener to the end of the listeners array for the specified event.
     * @param event
     * @param listener
     */
    addListener(event: string, listener: Function): EventEmitter2;

    /**
     * Adds a listener to the end of the listeners array for the specified event.
     * @param event
     * @param listener
     */
    on(event: string, listener: Function): EventEmitter2;

    /**
     * Adds a listener that will be fired when any event is emitted.
     * @param listener
     */
    onAny(listener: Function): EventEmitter2;

    /**
     * Removes the listener that will be fired when any event is emitted.
     * @param listener
     */
    offAny(listener: Function): EventEmitter2;

    /**
     * Adds a one time listener for the event.
     * The listener is invoked only the first time the event is fired, after which it is removed.
     * @param event<commit_msg>eventemitter2: listener arg to offAny is optional<commit_after>// Type definitions for EventEmitter2 v0.14.4
// Project: https://github.com/asyncly/EventEmitter2
// Definitions by: ryiwamoto <https://github.com/ryiwamoto/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

interface EventEmitter2Configuration {
    /**
     * use wildcards
     */
    wildcard?: boolean;

    /**
     * the delimiter used to segment namespaces, defaults to `.`.
     */
    delimiter?: string;

    /**
     * if you want to emit the newListener event set to true.
     */
    newListener?: boolean;

    /**
     * max listeners that can be assigned to an event, default 10.
     */
    maxListeners?: number;
}

declare class EventEmitter2 {
    /**
     * @param conf
     */
    constructor(conf?: EventEmitter2Configuration);

    /**
     * Adds a listener to the end of the listeners array for the specified event.
     * @param event
     * @param listener
     */
    addListener(event: string, listener: Function): EventEmitter2;

    /**
     * Adds a listener to the end of the listeners array for the specified event.
     * @param event
     * @param listener
     */
    on(event: string, listener: Function): EventEmitter2;

    /**
     * Adds a listener that will be fired when any event is emitted.
     * @param listener
     */
    onAny(listener: Function): EventEmitter2;

    /**
     * Removes the listener that will be fired when any event is emitted.
     * @param listener
     */
    offAny(listener?: Function): EventEmitter2;

    /**
     * Adds a one time listener for the event.
     * The listener is invoked only the first time the event is fired, after which it is removed.
     * @param event
{'fraction_non_alphanumeric': 0.09932807478819748, 'fraction_numerical': 0.009056383289512124, 'mean_word_length': 2.4832146490335707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '6416333', 'n_tokens_mistral': 962, 'n_tokens_neox': 950, 'n_words': 345}