<commit_before>/**
 * Script designed to help with tasts in UserVoice Helpdesk software
 */
//(function() {


// Globals
    var alt = false;
    var UVrootURL = window.location.host + "/admin";

    // end function for catching end of keystroke
    function keyup(e) {
        if (e.keyCode == 18) {
            alt = false;
        }
    }

    // function for catching key stokes
    function keydown(e) {
        var key = e.keyCode;
        if (e.keyCode == 18) {
            alt = true;
        }
        if (alt) {
            switch (key) {
                case 65: // A
                    // hide all
                    $('.ticket-reply-content').hide();
                    // make sure the reply to sticks around
                    $($('.ticket-reply-content')[0]).show();
                    break;
                case 90: //Z
                    // show all
                    $('.ticket-reply-content').show();
                    break;
                case 88: // X
                    // update();
                    break;
                case 89: // Y
                    toggleFlag();
                    break;
                case 67: // C
                    // updateAndClose();
                    break;
                case 86: // V
                    // function here that adds close message
                    getResponse(closed);
                    // updateAndClose();
                    break;
                case 84: // T
                    focusOnTicket();
                    addTargetWrapper();
                    break;
                case 83: // S
                    var elem = document.getElementById(subjectField);
                    var sub = prompt('Subject Text: ', elem.value);
                    elem.value = sub;
                    break;
                case 78: // N
                    focusOnNote();
                    break;
                case 77: // M  - change name of user
                    focusOnMessage();
                    break;
                case 81: // Q
                    // snap to personal tickets
                    window.location = UVrootURL + '/tickets/?q=assignee%3Ame+status%3Aopen';
                    break;
                case 73: // I
                    // snap to inbox
                    window.location = UVrootURL + '/tickets/?q=assignee%3A"none"+status%3Aopen';
                    break;
                case 82: // R
                    // snapps user to the most recent update
                    location = "#request_history_box_wrap_box_body";<commit_msg>Updates to fix endpoints for jump to queue<commit_after>/**
 * Script designed to help with tasts in UserVoice Helpdesk software
 */
//(function() {


// Globals
    var alt = false;
    var UVrootURL = window.location.host + "/admin";

    // end function for catching end of keystroke
    function keyup(e) {
        if (e.keyCode == 18) {
            alt = false;
        }
    }

    // function for catching key stokes
    function keydown(e) {
        var key = e.keyCode;
        if (e.keyCode == 18) {
            alt = true;
        }
        if (alt) {
            switch (key) {
                case 65: // A
                    // hide all
                    $('.ticket-reply-content').hide();
                    // make sure the reply to sticks around
                    $($('.ticket-reply-content')[0]).show();
                    break;
                case 90: //Z
                    // show all
                    $('.ticket-reply-content').show();
                    break;
                case 88: // X
                    // update();
                    break;
                case 89: // Y
                    toggleFlag();
                    break;
                case 67: // C
                    // updateAndClose();
                    break;
                case 86: // V
                    // function here that adds close message
                    getResponse(closed);
                    // updateAndClose();
                    break;
                case 84: // T
                    focusOnTicket();
                    addTargetWrapper();
                    break;
                case 83: // S
                    var elem = document.getElementById(subjectField);
                    var sub = prompt('Subject Text: ', elem.value);
                    elem.value = sub;
                    break;
                case 78: // N
                    focusOnNote();
                    break;
                case 77: // M  - change name of user
                    focusOnMessage();
                    break;
                case 81: // Q
                    // snap to personal tickets
                    window.location.href = '//' + UVrootURL + '/tickets/?q=assignee%3Ame+status%3Aopen';
                    break;
                case 73: // I
                    // snap to inbox
                    window.location = '//' +  UVrootURL + '/tickets/?q=assignee%3A"none"+status%3Aopen';
                    break;
                case 82: // R
                    // snapps user to the most recent update
                    location = "#request_history_box_wrap_box_body";
{'fraction_non_alphanumeric': 0.10028873917228104, 'fraction_numerical': 0.013474494706448507, 'mean_word_length': 0.8785249457700651, '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': '6831184', 'n_tokens_mistral': 1355, 'n_tokens_neox': 1167, 'n_words': 344}