<commit_before>"use strict"

/**
 * Manage backend websocket connection
 */
define(['jquery'],
function($) {

    var close_btn,
        toolbar__status;

    function toolbar__status() {

        close_btn = $('<div>x</div>');
        close_btn.addClass('toolbar__close_btn');

        toolbar__status = $('#status-bar');
        toolbar__status.append(close_btn);
    }

    /**
     * display given HTML fragment as status line body
     */
    function display_html_frag(toolbar__status_body) {
        toolbar__status.children().remove();

        toolbar__status.append(close_btn);
        toolbar__status.append(toolbar__status_body);
        toolbar__status_body.addClass('status-bar__body');

        close_btn.click(function() {
            toolbar__status.hide();
        });

        toolbar__status.show();
    }

    toolbar__status();

    return {
        display_html_frag : display_html_frag,
        hide: toolbar__status.hide
    };
<commit_msg>client/view/toolbar__status: hide: fix this value for hide call<commit_after>"use strict"

/**
 * Manage backend websocket connection
 */
define(['jquery'],
function($) {

    var close_btn,
        toolbar__status;

    function toolbar__status() {

        close_btn = $('<div>x</div>');
        close_btn.addClass('toolbar__close_btn');

        toolbar__status = $('#status-bar');
        toolbar__status.append(close_btn);
    }

    /**
     * display given HTML fragment as status line body
     */
    function display_html_frag(toolbar__status_body) {
        toolbar__status.children().remove();

        toolbar__status.append(close_btn);
        toolbar__status.append(toolbar__status_body);
        toolbar__status_body.addClass('status-bar__body');

        close_btn.click(function() {
            toolbar__status.hide();
        });

        toolbar__status.show();
    }

    toolbar__status();

    return {
        display_html_frag : display_html_frag,
        hide: function () {
            toolbar__status.hide();
        }
    };

{'fraction_non_alphanumeric': 0.12035661218424963, 'fraction_numerical': 0.0, 'mean_word_length': 2.633093525179856, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6594069', 'n_tokens_mistral': 599, 'n_tokens_neox': 554, 'n_words': 92}