<commit_before>/**
 * @name hidden
 * @description Change Notification color and frequency
 * @param isDeactivated
 */
function hidden(isDeactivated) {
    options.style.color = isDeactivated ? 'graytext' : 'black';

    options.frequency.disabled = isDeactivated;
}
// Listener
window.addEventListener('load', function() {

    options.isActivated.checked = JSON.parse(localStorage.isActivated);

    options.frequency.value = localStorage.frequency;


    if (!options.isActivated.checked) { hidden(true); }

    options.isActivated.onchange = function() {
        localStorage.isActivated = options.isActivated.checked;
        hidden(!options.isActivated.checked);
    };

    options.frequency.onchange = function() {
        localStorage.frequency = options.frequency.value;
    };
});

<commit_msg>Renombrado...<commit_after>/**
 * @name ghost
 * @description Change Notification color and frequency
 * @param isDeactivated
 */
function ghost(isDeactivated) {
    options.style.color = isDeactivated ? 'graytext' : 'black';

    options.frequency.disabled = isDeactivated;
}

window.addEventListener('load', function() {

    options.isActivated.checked = JSON.parse(localStorage.isActivated);

    options.frequency.value = localStorage.frequency;


    if (!options.isActivated.checked) { ghost(true); }


    options.isActivated.onchange = function() {
        localStorage.isActivated = options.isActivated.checked;
        ghost(!options.isActivated.checked);
    };

    options.frequency.onchange = function() {
        localStorage.frequency = options.frequency.value;
    };
});


{'fraction_non_alphanumeric': 0.12593984962406016, 'fraction_numerical': 0.0, 'mean_word_length': 3.8102409638554215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7434820', 'n_tokens_mistral': 466, 'n_tokens_neox': 439, 'n_words': 75}