<commit_before>var ranker = require("./ranker");
module.exports = {

    VERSION: "Objects in mirror are closer than they appear",

    bet_request: function (game_state, bet) {
        //max and min for random bet
        var max = 1000;
        var min = 300;
        try {
            var sb = game_state.small_blind;
            var orbits = game_state.orbits;
            var cc = game_state.community_cards;
            var cb = game_state.current_buy_in;
            var pot = game_state.pot;
            var we;

            //Assign variable for our player
            game_state.players.forEach(function (player) {
                if (player.name == '<NAME>') {
                    we = player;
                    //console.log(we);
                }
            });

            var hc = we.hole_cards;
            var call = cb - we.bet; //buyin - our bet

            //Print community cards in loop
            /*
            cc.forEach(function (card) {
                console.log("Cards");
                console.log(card);
            });
*/
            var rank = ranker.rank_hand(hc);
            if (rank <= 3) {
                //if we are forced to all-in, then
                if (call >= we.stack) {
                    switch (rank) {
                    case 1:
                        bet(call);
                        break;
                    case 2:
                        if (Math.random() < 0.75 ? 1 : 0) {
                            bet(call);
                        }
                        break;
                    case 3:
                        if (Math.random() < 0.6 ? 1 : 0) {
                            bet(call);
                        }
                        break;
                    }
                    bet(0);
                } else {
                    //raise 200
                    bet(call + 200);
                }
            } else if (rank >= 4 && rank <= 6) {
                bet(call);
            } else if (rank >= 7) {
                bet(0);
            } else {
                // Bet min call to cb + 200
                bet(Math.floor(Math.random() * (call + 200 - call + 1) + call));
            }

            //bet(Math.floor(Math.random() * (max - min + 1) + min));
        } catch (e) {
            bet(4000);
            console.log(e);
        }

    },

    showdown: function (game_state) {
        console.log(game_state);
    }
};<commit_msg>remove log<commit_after>var ranker = require("./ranker");
module.exports = {

    VERSION: "Objects in mirror are closer than they appear",

    bet_request: function (game_state, bet) {
        //max and min for random bet
        var max = 1000;
        var min = 300;
        try {
            var sb = game_state.small_blind;
            var orbits = game_state.orbits;
            var cc = game_state.community_cards;
            var cb = game_state.current_buy_in;
            var pot = game_state.pot;
            var we;

            //Assign variable for our player
            game_state.players.forEach(function (player) {
                if (player.name == '<NAME>') {
                    we = player;
                    //console.log(we);
                }
            });

            var hc = we.hole_cards;
            var call = cb - we.bet; //buyin - our bet

            //Print community cards in loop
            /*
            cc.forEach(function (card) {
                console.log("Cards");
                console.log(card);
            });
*/
            var rank = ranker.rank_hand(hc);
            if (rank <= 3) {
                //if we are forced to all-in, then
                if (call >= we.stack) {
                    switch (rank) {
                    case 1:
                        bet(call);
                        break;
                    case 2:
                        if (Math.random() < 0.75 ? 1 : 0) {
                            bet(call);
                        }
                        break;
                    case 3:
                        if (Math.random() < 0.6 ? 1 : 0) {
                            bet(call);
                        }
                        break;
                    }
                    bet(0);
                } else {
                    //raise 200
                    bet(call + 200);
                }
            } else if (rank >= 4 && rank <= 6) {
                bet(call);
            } else if (rank >= 7) {
                bet(0);
            } else {
                // Bet min call to cb + 200
                bet(Math.floor(Math.random() * (call + 200 - call + 1) + call));
            }

            //bet(Math.floor(Math.random() * (max - min + 1) + min));
        } catch (e) {
            bet(4000);
            //console.log(e);
        }

    },

    showdown: function (game_state) {
        console.log(game_state);
    }
};
{'fraction_non_alphanumeric': 0.11086019297885444, 'fraction_numerical': 0.017655512215150892, 'mean_word_length': 0.8652373660030628, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5055098', 'n_tokens_mistral': 1393, 'n_tokens_neox': 1228, 'n_words': 327}