<commit_before>(function() {
    'use strict';

    Game.Utils.HUD = function(game) {
        Phaser.Group.call(this, game);

        this.fixedToCamera = true;

        this.createMuteButton();

        return this;
    };

    Game.Utils.HUD.prototype = Object.create(Phaser.Group.prototype);
    Game.Utils.HUD.prototype.constructor = Game.Utils.HUD;

    Game.Utils.HUD.prototype.createMuteButton = function() {
        var muteButton = this.muteButton = new Phaser.Button(this.game, 0, 0, 'UI');
        
        muteButton.animations.add('mute', [12]);
        muteButton.animations.add('unMute', [14]);

        if (this.game.sound.mute) {
            muteButton.animations.play('unMute');
        } else {
            muteButton.animations.play('mute');
        }

        muteButton.x = this.game.width - muteButton.width;

        muteButton.onInputDown.add(function() {
            if (this.game.sound.toggleMute()) {
                muteButton.animations.play('unMute');
            } else {
                muteButton.animations.play('mute');
            }

            if (self.localStorage) {
                self.localStorage.muted = this.game.sound.mute.toString();
            }

        }, this);

        this.add(muteButton);
    };
})();
<commit_msg>Added fullscreenbutton<commit_after>(function() {
    'use strict';

    Game.Utils.HUD = function(game) {
        Phaser.Group.call(this, game);

        this.fixedToCamera = true;

        this.createMuteButton();
        this.createFullscreenButton();

        return this;
    };

    Game.Utils.HUD.prototype = Object.create(Phaser.Group.prototype);
    Game.Utils.HUD.prototype.constructor = Game.Utils.HUD;

    Game.Utils.HUD.prototype.createMuteButton = function() {
        var muteButton = this.muteButton = new Phaser.Button(this.game, 0, 0, 'UI');
        
        muteButton.animations.add('mute', [12]);
        muteButton.animations.add('unMute', [14]);

        if (this.game.sound.mute) {
            muteButton.animations.play('unMute');
        } else {
            muteButton.animations.play('mute');
        }

        muteButton.x = this.game.width - muteButton.width;

        muteButton.onInputDown.add(function() {
            if (this.game.sound.toggleMute()) {
                muteButton.animations.play('unMute');
            } else {
                muteButton.animations.play('mute');
            }

            if (self.localStorage) {
                self.localStorage.muted = this.game.sound.mute.toString();
            }

        }, this);

        this.add(muteButton);
    };

    Game.Utils.HUD.prototype.createFullscreenButton = function() {
        var fullscreenButton = this.fullscreenButton = new Phaser.Button(this.game, 0, 0, 'UI');

        fullscreenButton.onInputDown.add(function() {
            this.game.state.states[this.game.state.current].toggleFullScreen();
        }, this);

        fullscreenButton.frame = 29;

        this.add(fullscreenButton);
    };

})();

{'fraction_non_alphanumeric': 0.140327430671567, 'fraction_numerical': 0.0053458068827263614, 'mean_word_length': 2.0644831115660183, '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': '3067535', 'n_tokens_mistral': 960, 'n_tokens_neox': 909, 'n_words': 118}