<commit_before>'use babel';
'use strict';

/** A server-specific setting */
export default class Setting {
	/**
	 * @param {?Server|string} server - The server or server ID ('global' if empty)
	 * @param {string} key - The key of the setting
	 * @param {*} [value] - The value of the setting
	 */
	constructor(server, key, value) {
		if(!key) throw new Error('Setting key must be specified.');

		/** @type {string} */
		this.server = server ? server.id ? server.id : server : 'global';
		/** @type {string} */
		this.key = key;
		/** @type {*} */
		this.value = value || null;
	}
}<commit_msg>Fixed setting empty strings<commit_after>'use babel';
'use strict';

/** A server-specific setting */
export default class Setting {
	/**
	 * @param {?Server|string} server - The server or server ID ('global' if empty)
	 * @param {string} key - The key of the setting
	 * @param {*} [value] - The value of the setting
	 */
	constructor(server, key, value) {
		if(!key) throw new Error('Setting key must be specified.');

		/** @type {string} */
		this.server = server ? server.id ? server.id : server : 'global';
		/** @type {string} */
		this.key = key;
		/** @type {*} */
		this.value = value;
	}
}
{'fraction_non_alphanumeric': 0.17420435510887772, 'fraction_numerical': 0.0, 'mean_word_length': 3.2375886524822697, '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': '3365780', 'n_tokens_mistral': 398, 'n_tokens_neox': 374, 'n_words': 130}