<commit_before>import CONST from '../canvas-const.js';

/**
 * Css class for all buttons of the toolbar.
 */
const BUTTON_CLASS = 'redraw_btn';

/**
 * Adds a class to the array of classes.
 * @private
 */
function addClasses(btnObj, classes) {
    if (!classes) return;
    var allClasses = classes.split(' ');

    allClasses.forEach((clazz) => {btnObj.classList.add(clazz);})
}

/**
 * Main manager for the toolbar.
 */
export default class ControlsDispatcher {
    /**
     * Controls contructor. Is provided with canvas-wrapper and options to initialize to toolbar.
     * @constructor
     * @param {EventAggregator} eventAggregator - Event mediator.<commit_msg>Remove dead code<commit_after>import CONST from '../canvas-const.js';

/**
 * Adds a class to the array of classes.
 * @private
 */
function addClasses(btnObj, classes) {
    if (!classes) return;
    var allClasses = classes.split(' ');

    allClasses.forEach((clazz) => {btnObj.classList.add(clazz);})
}

/**
 * Main manager for the toolbar.
 */
export default class ControlsDispatcher {
    /**
     * Controls contructor. Is provided with canvas-wrapper and options to initialize to toolbar.
     * @constructor
     * @param {EventAggregator} eventAggregator - Event mediator.
{'fraction_non_alphanumeric': 0.1256, 'fraction_numerical': 0.0, 'mean_word_length': 3.467857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2257367', 'n_tokens_mistral': 371, 'n_tokens_neox': 361, 'n_words': 114}