<commit_before>/*
 * Notifications manages various notification messages
 *
 */
const CommonFunctions = require('../../../_common/common_functions');
const Login           = require('../../../_common/base/login');

const MBNotifications = (() => {
    /*
     * options: Object {
     *     localized_text: {string}  message text to display
     *     uid           : {string}  unique id to prevent duplicating the same message and also used to hide the message
     *     dismissible   : {boolean} dismissible messages can be hidden by client
     * }
     */
    const showErrorMessage = (options) => {
        const $note_wrapper = getContainer();
        const $this_uid     = $note_wrapper.find(`#${options.uid}`);
        const $login_error_container = CommonFunctions.getElementById('login_error_container');
        $login_error_container.setVisibility(0);

        if (/LOGIN_ERROR/.test(options.uid)) {
            $login_error_container.setVisibility(1);
            const login_error_btn_login = CommonFunctions.getElementById('login_error_btn_login');
            login_error_btn_login.removeEventListener('click', loginOnClick);<commit_msg>fix code style<commit_after>/*
 * Notifications manages various notification messages
 *
 */
const CommonFunctions = require('../../../_common/common_functions');
const Login           = require('../../../_common/base/login');

const MBNotifications = (() => {
    /*
     * options: Object {
     *     localized_text: {string}  message text to display
     *     uid           : {string}  unique id to prevent duplicating the same message and also used to hide the message
     *     dismissible   : {boolean} dismissible messages can be hidden by client
     * }
     */
    const showErrorMessage = (options) => {
        const $note_wrapper          = getContainer();
        const $this_uid              = $note_wrapper.find(`#${options.uid}`);
        const $login_error_container = CommonFunctions.getElementById('login_error_container');
        $login_error_container.setVisibility(0);

        if (/LOGIN_ERROR/.test(options.uid)) {
            $login_error_container.setVisibility(1);
            const login_error_btn_login = CommonFunctions.getElementById('login_error_btn_login');
            login_error_btn_login.removeEventListener('click', loginOnClick);
{'fraction_non_alphanumeric': 0.11688869789428448, 'fraction_numerical': 0.0017189514396218307, 'mean_word_length': 2.8606965174129355, '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': '368355', 'n_tokens_mistral': 608, 'n_tokens_neox': 601, 'n_words': 139}