<commit_before>YUI.add("trick", function(Y) {

    Y.namespace("Bridge");

    function Trick() {
        Trick.superclass.constructor.apply(this, arguments);
    }

    Y.extend(Trick, Y.Widget, {

        renderUI: function() {
            this._renderTrick();
        },

        bindUI: function() {
            this.after("cardsChange", this._afterCardsChange);
            this.after("playerChange", this._afterPlayerChange);
        },

        syncUI: function() {<commit_msg>after uisync after leadChange in trick widget<commit_after>YUI.add("trick", function(Y) {

    Y.namespace("Bridge");

    function Trick() {
        Trick.superclass.constructor.apply(this, arguments);
    }

    Y.extend(Trick, Y.Widget, {

        renderUI: function() {
            this._renderTrick();
        },

        bindUI: function() {
            this.after("cardsChange", this._afterCardsChange);
            this.after("leadChange", this._afterLeadChange);
            this.after("playerChange", this._afterPlayerChange);
        },

        syncUI: function() {
            this._uiSetCards(this.get("cards"));
        },

        _afterLeadChange: function(event) {
{'fraction_non_alphanumeric': 0.13979416809605488, 'fraction_numerical': 0.0, 'mean_word_length': 2.324786324786325, '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': '2221113', 'n_tokens_mistral': 347, 'n_tokens_neox': 330, 'n_words': 51}