<commit_before>// JavaScript Document

// Scripts written by YOURNAME @ YOURCOMPANY

// open on button click
jQuery(".menu-list_toggle").click(function (e) {
    e.preventDefault();

    var target_menu = jQuery(this).next(".menu-list[aria-hidden]");
    var parent_item = jQuery(this).closest(".menu-list_item.-parent");

    if (target_menu.attr("aria-hidden") === "true") {
        parent_item.siblings(".menu-list_item.-parent").removeClass("is-active");
        parent_item.siblings(".menu-list_item.-parent").find(".menu-list_item.-parent.is-active").removeClass("is-active");
        parent_item.siblings(".menu-list_item.-parent").find(".menu-list[aria-hidden]").attr("aria-hidden", "true");
        parent_item.addClass("is-active");
        target_menu.attr("aria-hidden", "false");
    } else {
        parent_item.find(".menu-list_item.-parent.is-active").removeClass("is-active");<commit_msg>Fixes a bug, adds comments to the menu script<commit_after>// JavaScript Document

// Scripts written by YOURNAME @ YOURCOMPANY

// open on button click
jQuery(".menu-list_toggle").click(function (e) {
    e.preventDefault();

    var target_menu = jQuery(this).next(".menu-list[aria-hidden]");
    var parent_item = jQuery(this).closest(".menu-list_item.-parent");

    if (target_menu.attr("aria-hidden") === "true") {
        // mark siblings as inactive
        parent_item.siblings(".menu-list_item.-parent").removeClass("is-active");
        parent_item.siblings(".menu-list_item.-parent").find(".menu-list_item.-parent.is-active").removeClass("is-active");
        parent_item.siblings(".menu-list_item.-parent").find(".menu-list[aria-hidden]").attr("aria-hidden", "true");
        parent_item.addClass("is-active");
        // mark target as active
        target_menu.attr("aria-hidden", "false");
        target_menu.find(".menu-list_link").first().focus(); // easy hack for "close on click away"
    } else {
        // mark all as inactive
        parent_item.find(".menu-list_item.-parent.is-active").removeClass("is-active");
{'fraction_non_alphanumeric': 0.1834637964774951, 'fraction_numerical': 0.0, 'mean_word_length': 3.6689497716894977, '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': '3001563', 'n_tokens_mistral': 614, 'n_tokens_neox': 617, 'n_words': 93}