<commit_before>function ContextMenu (uiContextMenu) {
    var self = { className: "ContextMenu" },
        status = {
            targetLabel: null,
            visibility: 'hidden'
        };
    var $menuWindow = uiContextMenu.holder,
        $connector = uiContextMenu.connector,
        $radioButtons = uiContextMenu.radioButtons,
        $temporaryProblemCheckbox = uiContextMenu.temporaryProblemCheckbox,
        $descriptionTextBox = uiContextMenu.textBox,
        windowWidth = $menuWindow.width();
    var $OKButton = $menuWindow.find("#context-menu-ok-button");
    var $radioButtonLabels = $menuWindow.find(".radio-button-labels");


    document.addEventListener("mousedown", hide);
    $menuWindow.on('mousedown', handleMenuWindowMouseDown);
    $radioButtons.on('change', _handleRadioChange);
    $temporaryProblemCheckbox.on('change', handleTemporaryProblemCheckboxChange);
    $descriptionTextBox.on('change', handleDescriptionTextBoxChange);
    $descriptionTextBox.on('focus', handleDescriptionTextBoxFocus);
    $descriptionTextBox.on('blur', handleDescriptionTextBoxBlur);
    uiContextMenu.closeButton.on('click', handleCloseButtonClick);
    $OKButton.on('click', _handleOKButtonClick);
    $radioButtonLabels.on('mouseenter', _handleRadioButtonLabelMouseEnter);
    $radioButtonLabels.on('mouseleave', _handleRadioButtonLabelMouseLeave);

    var map = {};
    onkeydown = onkeyup = function(e){
        e = e || event; // to deal with IE
        map[e.keyCode] = e.type == 'keydown';
        if (map[17] && map[65] && isOpen()){
            //handleDescriptionTextBoxFocus();//focus
            $descriptionTextBox.select();
        }//ctrl+A while context menu open
    }

    function checkRadioButton (value) {
        uiContextMenu.radioButtons.filter(function(){return this.value==value}).prop("checked", true).trigger("click");
    }

    /**
     * Returns a status
     * @param key
     * @returns {null}
     */<commit_msg>Mac Cmd + A Key<commit_after>function ContextMenu (uiContextMenu) {
    var self = { className: "ContextMenu" },
        status = {
            targetLabel: null,
            visibility: 'hidden'
        };
    var $menuWindow = uiContextMenu.holder,
        $connector = uiContextMenu.connector,
        $radioButtons = uiContextMenu.radioButtons,
        $temporaryProblemCheckbox = uiContextMenu.temporaryProblemCheckbox,
        $descriptionTextBox = uiContextMenu.textBox,
        windowWidth = $menuWindow.width();
    var $OKButton = $menuWindow.find("#context-menu-ok-button");
    var $radioButtonLabels = $menuWindow.find(".radio-button-labels");


    document.addEventListener("mousedown", hide);
    $menuWindow.on('mousedown', handleMenuWindowMouseDown);
    $radioButtons.on('change', _handleRadioChange);
    $temporaryProblemCheckbox.on('change', handleTemporaryProblemCheckboxChange);
    $descriptionTextBox.on('change', handleDescriptionTextBoxChange);
    $descriptionTextBox.on('focus', handleDescriptionTextBoxFocus);
    $descriptionTextBox.on('blur', handleDescriptionTextBoxBlur);
    uiContextMenu.closeButton.on('click', handleCloseButtonClick);
    $OKButton.on('click', _handleOKButtonClick);
    $radioButtonLabels.on('mouseenter', _handleRadioButtonLabelMouseEnter);
    $radioButtonLabels.on('mouseleave', _handleRadioButtonLabelMouseLeave);

    var down = {};
    onkeydown = onkeyup = function(e){
        e = e || event; // to deal with IE
        var cmd_held = e.metaKey; //boolean of cmd/window key held
        var isMac = navigator.platform.indexOf('Mac') > -1;
        down[e.keyCode] = e.type == 'keydown';
        if ((down[17] || (cmd_held && isMac))&& down[65] && isOpen()){
            //handleDescriptionTextBoxFocus();//focus
            $descriptionTextBox.select();
        }//ctrl+A while context menu open
        //or command key + Mac OS
    }//handles both key down and key up events

    function checkRadioButton (value) {
        uiContextMenu.radioButtons.filter(function(){return this.value==value}).prop("checked", true).trigger("click");
    }

    /**
     * Returns a status
     * @param key
     * @returns {null}
     */
{'fraction_non_alphanumeric': 0.1297636275928606, 'fraction_numerical': 0.002170767004341534, 'mean_word_length': 3.53224043715847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1691607', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1138, 'n_words': 214}