<commit_before>(function () {
    var nw      = require("nw.gui"),
        guiWin  = nw.Window.get();

    window.onkeydown = function (e) {
        if ((e.ctrlKey || e.metaKey) && e.keyCode === 87) {
            guiWin.hide();
            guiWin.emit("hide");
            e.preventDefault();
        }
    };
}());<commit_msg>Add window maximize shortcut key (Return key) in External window.<commit_after>(function () {
    var nw      = require("nw.gui"),
        guiWin  = nw.Window.get();

    var ma

    window.onkeydown = function (e) {
        if (e.keyCode === 27 || ((e.ctrlKey || e.metaKey) && e.keyCode === 87)) {
            // (Control | Command) + W
            guiWin.hide();
            guiWin.emit("hide");
            e.preventDefault();
        }

        if (e.keyCode === 13) {
            // Enter
            guiWin.maximize();
        }
    };
}());
{'fraction_non_alphanumeric': 0.17734553775743708, 'fraction_numerical': 0.009153318077803204, 'mean_word_length': 1.6276276276276276, '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': '1587764', 'n_tokens_mistral': 294, 'n_tokens_neox': 271, 'n_words': 55}