<commit_before>/**
 * Base class for all Klasa Events. See {@tutorial CreatingEvents} for more information how to use this class
 * to build custom events.
 * @tutorial CreatingEvents
 */
class Event {

	/**
	 * @typedef {Object} EventOptions
	 * @property {boolean} [enabled=true] Whether the event is enabled or not
	 */

	/**
	 * @param {KlasaClient} client The klasa client
	 * @param {string} dir The path to the core or user event pieces folder
	 * @param {string} file The path from the pieces folder to the event file
	 * @param {string} name The name of the event
	 * @param {EventOptions} [options={}] The Event options
	 */
	constructor(client, dir, file, name, options = {}) {
		/**
		 * @type {KlasaClient}
		 */
		this.client = client;

		/**
		 * The directory to where this event piece is stored
		 * @type {string}
		 */
		this.dir = dir;

		/**
		 * The file location where this event is stored
		 * @type {string}
		 */
		this.file = file;

		/**
		 * The name of the event
		 * @type {string}
		 */
		this.name = name;

		/**
		 * The type of Klasa piece this is
		 * @type {string}
		 */
		this.type = 'event';

		/**
		 * If the event is enabled or not
		 * @type {boolean}
		 */
		this.enabled = options.enabled || true;
	}<commit_msg>fix configured disabled events, not being disabled<commit_after>/**
 * Base class for all Klasa Events. See {@tutorial CreatingEvents} for more information how to use this class
 * to build custom events.
 * @tutorial CreatingEvents
 */
class Event {

	/**
	 * @typedef {Object} EventOptions
	 * @property {boolean} [enabled=true] Whether the event is enabled or not
	 */

	/**
	 * @param {KlasaClient} client The klasa client
	 * @param {string} dir The path to the core or user event pieces folder
	 * @param {string} file The path from the pieces folder to the event file
	 * @param {string} name The name of the event
	 * @param {EventOptions} [options={}] The Event options
	 */
	constructor(client, dir, file, name, options = {}) {
		/**
		 * @type {KlasaClient}
		 */
		this.client = client;

		/**
		 * The directory to where this event piece is stored
		 * @type {string}
		 */
		this.dir = dir;

		/**
		 * The file location where this event is stored
		 * @type {string}
		 */
		this.file = file;

		/**
		 * The name of the event
		 * @type {string}
		 */
		this.name = name;

		/**
		 * The type of Klasa piece this is
		 * @type {string}
		 */
		this.type = 'event';

		/**
		 * If the event is enabled or not
		 * @type {boolean}
		 */
		this.enabled = enabled in options ? options.enabled : true;
	}
{'fraction_non_alphanumeric': 0.12242518460940537, 'fraction_numerical': 0.0, 'mean_word_length': 2.7797356828193833, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3598544', 'n_tokens_mistral': 878, 'n_tokens_neox': 748, 'n_words': 311}