<commit_before>class MessageBoxActions {
	constructor() {
		this.actions = {};
	}

	add(group, label, config) {
		if (!group && !label && !config) {
			return;
		}

		if (!this.actions[group]) {
			this.actions[group] = [];
		}

		const actionExists = this.actions[group].find((action) => action.label === label);

		if (actionExists) {
			return;
		}

		this.actions[group].push({ ...config, label });
	}

	remove(group, expression) {
		if (!group || !this.actions[group]) {
			return false;
		}
		return (this.actions[group] = this.actions[group].filter((action) => expression.test(action.id)));
	}

	get(group) {<commit_msg>Regression: wrong expression at messageBox.actions.remove() (#14192)<commit_after>class MessageBoxActions {
	constructor() {
		this.actions = {};
	}

	add(group, label, config) {
		if (!group && !label && !config) {
			return;
		}

		if (!this.actions[group]) {
			this.actions[group] = [];
		}

		const actionExists = this.actions[group].find((action) => action.label === label);

		if (actionExists) {
			return;
		}

		this.actions[group].push({ ...config, label });
	}

	remove(group, expression) {
		if (!group || !this.actions[group]) {
			return false;
		}

		return (this.actions[group] = this.actions[group].filter((action) => !expression.test(action.id)));
	}

	get(group) {
{'fraction_non_alphanumeric': 0.19145690312738367, 'fraction_numerical': 0.0038138825324180014, 'mean_word_length': 3.770909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1993550', 'n_tokens_mistral': 497, 'n_tokens_neox': 436, 'n_words': 81}