<commit_before>(function () {
    'use strict';
    angular.module('Tombola.Games.Bingo90.Core')
        .service('GameApi',  ['$state', 'GameProxy','BingoTicket','BingoCall','SessionDetails', function ($state, gameProxy, bingoTicket, bingoCall, sessionDetails) {
            var me = this,

            callApi = function(apiName, action, data){
                gameProxy.callApi(apiName, action, data)
                    .then(function (data) {
                        me.returnedMessage = data;
                        console.log(sessionDetails.login);
                        $state.go(data.message);
                        if(data.message == "TicketBought"){
                            bingoTicket.pushArray(data.payload.card);
                            bingoCall.getCall();
                        }
                    }).catch(function (data) {
                        /* Error stub */
                        console.log(data);
                    });
            };

            me.nextButton = function () {
                //Todo: expose getNextGame on game proxy
                callApi("game/next", "GET", "");
            };

            me.buyIn = function () {
                //Todo: expose butTicket on game proxy
                var buyInData = {
                    gameId: 1,
                    userId: sessionDetails.login.username,
                    balance: sessionDetails.login.balance
                    };
                console.log(buyInData);
                console.log(sessionDetails.login.username);
                console.log(sessionDetails.login.balance);
                    callApi("game/buyticket", "POST", buyInData);
            };
        }]);
})();<commit_msg>Formatted the file<commit_after>(function () {
    'use strict';
    angular.module('Tombola.Games.Bingo90.Core')
        .service('GameApi',
        ['$state', 'GameProxy', 'BingoTicket', 'BingoCall', 'SessionDetails', function ($state, gameProxy, bingoTicket,
                                                                                        bingoCall, sessionDetails) {
            var me = this,
                callApi = function (apiName, action, data) {
                    gameProxy.callApi(apiName, action, data)
                        .then(function (data) {
                            me.returnedMessage = data;
                            console.log(sessionDetails.login);
                            $state.go(data.message);
                            if (data.message == "TicketBought") {
                                bingoTicket.pushArray(data.payload.card);
                                bingoCall.getCall();
                            }
                        }).catch(function (data) {
                            /* Error stub */
                            console.log(data);
                        });
                };

            me.nextButton = function () {
                //Todo: expose getNextGame on game proxy
                callApi("game/next", "GET", "");
            };

            me.buyIn = function () {
                //Todo: expose butTicket on game proxy
                var buyInData = {
                    gameId: 1,
                    userId: sessionDetails.login.username,
                    balance: sessionDetails.login.balance
                };
                console.log(buyInData);
                console.log(sessionDetails.login.username);
                console.log(sessionDetails.login.balance);
                callApi("game/buyticket", "POST", buyInData);
            };
        }]);
})();
{'fraction_non_alphanumeric': 0.11098717233686559, 'fraction_numerical': 0.0016731734523145567, 'mean_word_length': 1.1376638855780692, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2265472', 'n_tokens_mistral': 879, 'n_tokens_neox': 825, 'n_words': 147}