<commit_before>/**
 * 
 */
function MenuAgent() {
    this.sourceDir = location.href.slice(0, location.href.lastIndexOf("/"));
    this.parent = document.body;
    
    this.checkMobile();
    this.getElements();
    this.setButtonEffects();
    
    this.toggleMenuClasses("menu-contracted", "menu-expanded");
}

/**
 * 
 */
MenuAgent.prototype.hide = function () {
    this.container.className += " hidden";
};

/**
 * 
 */
MenuAgent.prototype.show = function () {<commit_msg>Added resize event listener<commit_after>/**
 * 
 */
function MenuAgent() {
    this.sourceDir = location.href.slice(0, location.href.lastIndexOf("/"));
    this.parent = document.body;
    
    this.checkMobile();
    this.getElements();
    this.setButtonEffects();
    
    this.toggleMenuClasses("menu-contracted", "menu-expanded");
    
    window.addEventListener("resize", this.checkMobile.bind(this));
}

/**
 * 
 */
MenuAgent.prototype.hide = function () {
    this.container.className += " hidden";
};

/**
 * 
 */
MenuAgent.prototype.show = function () {
{'fraction_non_alphanumeric': 0.17929050814956854, 'fraction_numerical': 0.0019175455417066154, 'mean_word_length': 3.2439024390243905, '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': '7342146', 'n_tokens_mistral': 328, 'n_tokens_neox': 320, 'n_words': 43}