<commit_before>$(document).ready(function () {

    var _poll_nbr = 0;

    function payment_transaction_poll_status() {
        var order_node = $('div.oe_faircoin_tx_status');
        if (! order_node || order_node.data('orderId') === undefined) {
            return;
        }
        var order_id = order_node.data('orderId');
        return openerp.jsonRpc('/shop/payment/get_status/' + order_id, 'call', {
        }).then(function (result) {
            var tx_node = $('div.oe_faircoin_tx_status');
            var txt ="Empty message"; 
            if (result.state == 'pending' || result.state == 'draft'){
                var txt = result.mesage;
                setTimeout(function () {
                    payment_transaction_poll_status();
                }, 10000);
            }
            else {
                txt = result.message;
                txt = result.state + "<h2>Thank you, your transaction has been confirmed.</h2><p>Your partner will contact with you as soon as posible</p>";
            }
            window.location.replace("http://rcc.punto0.org:8069/shop/payment/validate");
            tx_node.html(txt);
        });
    }

    payment_transaction_poll_status();
});<commit_msg>Bugfix last commit<commit_after>$(document).ready(function () {

    var _poll_nbr = 0;

    function payment_transaction_poll_status() {
        var order_node = $('div.oe_faircoin_tx_status');
        if (! order_node || order_node.data('orderId') === undefined) {
            return;
        }
        var order_id = order_node.data('orderId');
        return openerp.jsonRpc('/shop/payment/get_status/' + order_id, 'call', {
        }).then(function (result) {
            var tx_node = $('div.oe_faircoin_tx_status');
            var txt ="Empty message"; 
            if (result.state == 'pending' || result.state == 'draft'){
                var txt = result.mesage;
                setTimeout(function () {
                    payment_transaction_poll_status();
                }, 10000);
            }
            else {
                txt = result.message;
                txt = result.state + "<h2>Thank you, your transaction has been confirmed.</h2><p>Your partner will contact with you as soon as posible</p>";
                window.location.replace("http://rcc.punto0.org:8069/shop/payment/validate");
            }
            tx_node.html(txt);
        });
    }

    payment_transaction_poll_status();
});
{'fraction_non_alphanumeric': 0.13366133661336613, 'fraction_numerical': 0.01066010660106601, 'mean_word_length': 1.9647630619684082, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2885598', 'n_tokens_mistral': 718, 'n_tokens_neox': 671, 'n_words': 132}