<commit_before>var feedback = function(game) {
    return {
        create: function() {
            //console.log("Create called in ", game.state.current);
            if (gameState.votedScore == gameState.objectiveScore ||
                gameState.votedScore == gameState.objectiveScore+1 ||
                gameState.votedScore == gameState.objectiveScore-1) {
                music.stop();
                music = game.add.audio('cheer');
                music.play();

                audience = game.add.sprite(0, 0, "audience");
                audience.scale.setTo(3,3);

                fbGood = game.add.sprite(0, 0, 'feedbackResultGood');
                fbGood.scale.setTo(3,3);
                fbGood.x = 200;
            } else {
                music.stop();
                music = game.add.audio('boo');
                music.play();

                audience = game.add.sprite(0, 0, "audience");
                audience.scale.setTo(3,3);
                
                fbBad = game.add.sprite(0, 0, 'feedbackResultBad');
                fbBad.scale.setTo(3,3);
                fbBad.x = 200;
            }
            //game.time.events.add(Phaser.Timer.SECOND * 4, endGame, this);
        },

        update: function() {

            if (game.input.keyboard.isDown(Phaser.Keyboard.ENTER)) {
                music.stop();
                game.state.start("dancing");
            }
        }
    };
};<commit_msg>Added button on feedback screen to try again<commit_after>var feedback = function(game) {
    return {
        create: function() {
            //console.log("Create called in ", game.state.current);
            if (gameState.votedScore == gameState.objectiveScore ||
                gameState.votedScore == gameState.objectiveScore+1 ||
                gameState.votedScore == gameState.objectiveScore-1) {
                music.stop();
                music = game.add.audio('cheer');
                music.play();

                audience = game.add.sprite(0, 0, "audience");
                audience.scale.setTo(3,3);

                fbGood = game.add.sprite(0, 0, 'feedbackResultGood');
                fbGood.scale.setTo(3,3);
                fbGood.x = 200;
            } else {
                music.stop();
                music = game.add.audio('boo');
                music.play();

                audience = game.add.sprite(0, 0, "audience");
                audience.scale.setTo(3,3);

                fbBad = game.add.sprite(0, 0, 'feedbackResultBad');
                fbBad.scale.setTo(3,3);
                fbBad.x = 200;
            }
            //game.time.events.add(Phaser.Timer.SECOND * 4, endGame, this);
            var startButton = this.centeredText("Try again?", 500);

            startButton.inputEnabled = true;
            startButton.events.onInputDown.add(
                function() {
                  music.stop();
                  game.state.start("dancing");
                });

        },        centeredText: function(ctext, y) {
                    ctext = game.add.text(game.world.centerX-25, y, ctext);
                    ctext.anchor.setTo(0.5, 0.5);
                    return ctext;
                },

        update: function() {

            if (game.input.keyboard.isDown(Phaser.Keyboard.ENTER)) {
                music.stop();
                game.state.start("dancing");
            }
        }
    };
};
{'fraction_non_alphanumeric': 0.13246982631733883, 'fraction_numerical': 0.0173682661171622, 'mean_word_length': 1.3548163548163548, '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': '4408705', 'n_tokens_mistral': 1034, 'n_tokens_neox': 939, 'n_words': 149}