<commit_before>var show_dropdown = {};
function toggle_drop_down(button_id, menu_id) {
    show_dropdown[menu_id] = !show_dropdown[menu_id];
    var dropdown = document.getElementById(menu_id);
    if (show_dropdown[menu_id]) {

        var bodyRect = document.body.getBoundingClientRect();
        var buttonRect = document.getElementById(button_id).getBoundingClientRect();
        var offset = bodyRect.right - buttonRect.right;

        console.log(offset);
        dropdown.style.right = offset;
        dropdown.style.display = 'block';
    } else {
        dropdown.style.display = '';
    }
}
<commit_msg>frontend: remove leftover console.log call<commit_after>var show_dropdown = {};
function toggle_drop_down(button_id, menu_id) {
    show_dropdown[menu_id] = !show_dropdown[menu_id];
    var dropdown = document.getElementById(menu_id);
    if (show_dropdown[menu_id]) {

        var bodyRect = document.body.getBoundingClientRect();
        var buttonRect = document.getElementById(button_id).getBoundingClientRect();
        var offset = bodyRect.right - buttonRect.right;

        dropdown.style.right = offset;
        dropdown.style.display = 'block';
    } else {
        dropdown.style.display = '';
    }
}

{'fraction_non_alphanumeric': 0.11419249592169657, 'fraction_numerical': 0.0, 'mean_word_length': 3.4456521739130435, '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': '5423758', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 61}