<commit_before>Player = (function () {

    // VARIABLES PRIVADAS ACCESIBLES DESDE LOS PROTOTYPES
    var box, dice, waitingTurns, lastBox;

    function Player(name, totalBox) {
        //VARIABLE NO ACCESIBLE DESDE LOS PROTOTYPES
        var piticli = 'ooooo';

        box = 0;
        waitingTurns = 0;
        lastBox = totalBox;
        dice = new Dice();

        //VARIABLE ACCESIBLE DESDE EL OBJETO
        this.name = name;

    }

    Player.prototype.test = function () {
        console.log(box);
        console.log(waitingTurns);
        console.log(lastBox);
        console.log(dice);
        return true;

    };
    Player.prototype.jumpTo = function (newBox) {
        return box = newBox;
    };

    Player.prototype.currentBox = function () {
        return box;
    };

    Player.prototype.setWaitingTurns = function (turn) {
        return waitingTurns = turn;
    };


    Player.prototype.turn = function () {
        var returned=  {};
        if (waitingTurns === 0) {
            box += dice["throw"]();
            if (box > lastBox) {
                box -= box - lastBox;
            }
            returned = {
                'next': false,
                'box': box
            };
        } else {
            waitingTurns--;
            returned = {
                'next': true
            };
        }
        return returned;
    };

    return Player;

})();<commit_msg>Issue #8 - Player repeat turn<commit_after>Player = (function () {

    // VARIABLES PRIVADAS ACCESIBLES DESDE LOS PROTOTYPES
    var box, dice, waitingTurns, lastBox;

    function Player(name, totalBox) {
        //VARIABLE NO ACCESIBLE DESDE LOS PROTOTYPES
        var piticli = 'ooooo';

        box = 0;
        waitingTurns = 0;
        lastBox = totalBox;
        dice = new Dice();

        //VARIABLE ACCESIBLE DESDE EL OBJETO
        this.name = name;

    }

    Player.prototype.test = function () {
        console.log(box);
        console.log(waitingTurns);
        console.log(lastBox);
        console.log(dice);
        return true;

    };
    Player.prototype.jumpTo = function (newBox) {
        return box = newBox;
    };

    Player.prototype.currentBox = function () {
        return box;
    };

    Player.prototype.setWaitingTurns = function (turn) {
        return waitingTurns = turn;
    };


    Player.prototype.turn = function () {
        var returned=  {};
        if (waitingTurns === 0) {
            box += dice["throw"]();
            if (box > lastBox) {
                box -= box - lastBox;
            }
            returned = {
                'next': false,
                'box': box
            };
        } else {
            waitingTurns--;
            returned = {
                'next': true
            };
        }
        return returned;
    };

    Player.prototype.repeatTurn = function () {
      this.turn();
    }

    return Player;

})();
{'fraction_non_alphanumeric': 0.11496225120109815, 'fraction_numerical': 0.0024021962937542897, 'mean_word_length': 1.4829642248722317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6044814', 'n_tokens_mistral': 896, 'n_tokens_neox': 851, 'n_words': 195}