<commit_before>/*
 * Copyright (C) 2013 Vanderbilt University, All rights reserved.
 * 
 * Author: <NAME>
 */

"use strict";

define(['./ToolbarItemBase'], function (ToolbarItemBase) {

    var ToolbarLabel;

    ToolbarLabel = function (params) {
        this.el = $('<div class="toolbar-label"></div>');
    };

    _.extend(ToolbarLabel.prototype, ToolbarItemBase.prototype);

    ToolbarLabel.prototype.text = function (text) {
        if (this.el) {
            this.el.text(text);
        }
    };

    return ToolbarLabel;
});<commit_msg>autoinclude toolbar refresh unless stated otherwise<commit_after>/*
 * Copyright (C) 2013 Vanderbilt University, All rights reserved.
 * 
 * Author: <NAME>
 */

"use strict";

define(['./ToolbarItemBase'], function (ToolbarItemBase) {

    var ToolbarLabel;

    ToolbarLabel = function (params) {
        this.el = $('<div class="toolbar-label"></div>');
    };

    _.extend(ToolbarLabel.prototype, ToolbarItemBase.prototype);

    ToolbarLabel.prototype.text = function (text, noToolbarRefresh) {
        if (this.el) {
            this.el.text(text);
            if (noToolbarRefresh !== true) {
                this._toolbar.refresh();
            }
        }
    };

    return ToolbarLabel;
});
{'fraction_non_alphanumeric': 0.14526484751203853, 'fraction_numerical': 0.006420545746388443, 'mean_word_length': 2.7113095238095237, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6253945', 'n_tokens_mistral': 383, 'n_tokens_neox': 364, 'n_words': 78}