<commit_before>var keyMappings = function () {
    "use strict";
    var codeToKey = {
        65: "a",
        68: "d",
        83: "s",
        87: "w",
        37: "Left",
        39: "Right",
        40: "Down",
        38: "Up",
        32: "Space",
        13: "Enter",
        16: "Shift",
        192: "`"
    };
    var functions = {
        drop: {
            function: "dropFallingPiece",
            english: "Drop Current Piece."
        },
        softDrop: {
            function: "moveFallingDown",
            english: "Soft Drop Current Piece"
        },
        rotateClockWise: {
            function: "rotateFallingClockWise",
            english: "Rotate Piece ClockWise"
        },
        rotateCounterClockWise: {
            function: "rotateFallingCounterClockWise",
            english: "Rotate Piece Counter ClockWise"
        },
        shiftRight: {
            function: "shiftFallingRight",
            english: "Shift Piece Right"
        },
        shiftLeft: {
            function: "shiftFallingLeft",
            english: "Shift Piece Left"
        },
        hold: {
            function: "holdPiece",
            english: "Hold Current Piece For Later"
        },
        restart: {
            function: "restart",
            english: "Restart Game"
        },
        pause: {
            function: "pause",
            english: "Play / Pause Game"
        },
        changeMapping: {
            function: "changeMapping",
            english: "Switch mapping between Arrows and wasd"
        }
    };
    var remapToDefaultKeys = {
        keys: {
            87: functions.drop,
            83: functions.softDrop,
            39: functions.rotateClockWise,
            37: functions.rotateCounterClockWise,
            68: functions.shiftRight,
            65: functions.shiftLeft,
            16: functions.hold,
            13: functions.restart,
            32: functions.pause,
            192: functions.changeMapping,
            readableLine: function (key) {
                var readable;
                if (this[key] !== undefined) {
                    readable = codeToKey[key] + " = " + this[key].english;
                }
                return readable;
            },
            readableLines: function () {
                var lines = [];
                for (var i = 0; i < 200; i++) {
                    if (this.readableLine(i)) {
                        lines.push(this.readableLine(i));
                    }
                }
                return lines;
            }
        },
    };
    var remapToArrowKeys = {
        keys: {
            40: functions.softDrop,
            38: functions.rotateClockWise,
            39: functions.shiftRight,
            37: functions.shiftLeft,
            16: functions.hold,
            13: functions.restart,
            32: functions.pause,
            192: functions.changeMapping,
            readableLine: function (key) {
                var readable;
                if (this[key] !== undefined) {<commit_msg>Added hard drop for arrows.<commit_after>var keyMappings = function () {
    "use strict";
    var codeToKey = {
        65: "a",
        68: "d",
        83: "s",
        87: "w",
        37: "Left",
        39: "Right",
        40: "Down",
        38: "Up",
        32: "Space",
        13: "Enter",
        16: "Shift",
        192: "`"
    };
    var functions = {
        drop: {
            function: "dropFallingPiece",
            english: "Drop Current Piece."
        },
        softDrop: {
            function: "moveFallingDown",
            english: "Soft Drop Current Piece"
        },
        rotateClockWise: {
            function: "rotateFallingClockWise",
            english: "Rotate Piece ClockWise"
        },
        rotateCounterClockWise: {
            function: "rotateFallingCounterClockWise",
            english: "Rotate Piece Counter ClockWise"
        },
        shiftRight: {
            function: "shiftFallingRight",
            english: "Shift Piece Right"
        },
        shiftLeft: {
            function: "shiftFallingLeft",
            english: "Shift Piece Left"
        },
        hold: {
            function: "holdPiece",
            english: "Hold Current Piece For Later"
        },
        restart: {
            function: "restart",
            english: "Restart Game"
        },
        pause: {
            function: "pause",
            english: "Play / Pause Game"
        },
        changeMapping: {
            function: "changeMapping",
            english: "Switch mapping between Arrows and wasd"
        }
    };
    var remapToDefaultKeys = {
        keys: {
            87: functions.drop,
            83: functions.softDrop,
            39: functions.rotateClockWise,
            37: functions.rotateCounterClockWise,
            68: functions.shiftRight,
            65: functions.shiftLeft,
            16: functions.hold,
            13: functions.restart,
            32: functions.pause,
            192: functions.changeMapping,
            readableLine: function (key) {
                var readable;
                if (this[key] !== undefined) {
                    readable = codeToKey[key] + " = " + this[key].english;
                }
                return readable;
            },
            readableLines: function () {
                var lines = [];
                for (var i = 0; i < 200; i++) {
                    if (this.readableLine(i)) {
                        lines.push(this.readableLine(i));
                    }
                }
                return lines;
            }
        },
    };
    var remapToArrowKeys = {
        keys: {
            40: functions.softDrop,
            87: functions.drop,
            38: functions.rotateClockWise,
            39: functions.shiftRight,
            37: functions.shiftLeft,
            16: functions.hold,
            13: functions.restart,
            32: functions.pause,
            192: functions.changeMapping,
            readableLine: function (key) {
                var readable;
                if (this[key] !== undefined) {
{'fraction_non_alphanumeric': 0.10500490677134446, 'fraction_numerical': 0.022244030094864246, 'mean_word_length': 1.2539624032436418, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4777958', 'n_tokens_mistral': 1737, 'n_tokens_neox': 1604, 'n_words': 380}