<commit_before>(function(namespace, $, undefined) {

    namespace.OfferTableRow = Backbone.View.extend({

          tagName: 'tr'

        , className: 'offer-row'

        , events: {
            "click .offerToggle" : "toggleState"
        }

        , render: function(){
            console.log('rendering row');
            this.$el.empty().append(

                $('<td></td>', {
                    html: '<a href="#" class="webStatsLink">' + this.model.get('quantity') + '</a>',
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: '<a href="#">' + this.model.get('name') + '</a>',

                })

                , $('<td></td>', {
                    html: '$' + this.model.get('listPrice'),
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: '$' + this.model.get('whisperPrice'),
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: this.model.get('matches'),
                    style: 'text-align: center'
                })
            )

            if(this.model.get('active') > 0) {
                this.$el.append('<td style="text-align: center"><a href="#" class="offerToggle"><img src="/bundles/j2exchange/images/icons/color/tick.png" alt="enabled"></a></td>');
            } else {
                this.$el.append('<td style="text-align: center"><a href="#" class="offerToggle"><img src="/bundles/j2exchange/images/icons/color/cross.png" alt="enabled"></a></td>');
            }

            return this;
        }

        , toggleState: function()
        {
            if(this.model.get('active') > 0) {
                alert('currently on - need to turn off');
            } else {
                alert('currently off - need to turn on');
            }
        }

    });

    namespace.OffersTable = Backbone.View.extend({
        tagName: 'tbody'
        , className: 'offers-table'

        , initialize: function() {
            this.collection.on('remove', this.render, this);
            this.collection.on('add', this.addRow, this);
            this.collection.on('reset', this.render, this);<commit_msg>fixing errorneous alt attribute on offers table for disabled rows<commit_after>(function(namespace, $, undefined) {

    namespace.OfferTableRow = Backbone.View.extend({

          tagName: 'tr'

        , className: 'offer-row'

        , events: {
            "click .offerToggle" : "toggleState"
        }

        , render: function(){
            console.log('rendering row');
            this.$el.empty().append(

                $('<td></td>', {
                    html: '<a href="#" class="webStatsLink">' + this.model.get('quantity') + '</a>',
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: '<a href="#">' + this.model.get('name') + '</a>',

                })

                , $('<td></td>', {
                    html: '$' + this.model.get('listPrice'),
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: '$' + this.model.get('whisperPrice'),
                    style: 'text-align: center'
                })

                , $('<td></td>', {
                    html: this.model.get('matches'),
                    style: 'text-align: center'
                })
            )

            if(this.model.get('active') > 0) {
                this.$el.append('<td style="text-align: center"><a href="#" class="offerToggle"><img src="/bundles/j2exchange/images/icons/color/tick.png" alt="enabled"></a></td>');
            } else {
                this.$el.append('<td style="text-align: center"><a href="#" class="offerToggle"><img src="/bundles/j2exchange/images/icons/color/cross.png" alt="disabled"></a></td>');
            }

            return this;
        }

        , toggleState: function()
        {
            if(this.model.get('active') > 0) {
                alert('currently on - need to turn off');
            } else {
                alert('currently off - need to turn on');
            }
        }

    });

    namespace.OffersTable = Backbone.View.extend({
        tagName: 'tbody'
        , className: 'offers-table'

        , initialize: function() {
            this.collection.on('remove', this.render, this);
            this.collection.on('add', this.addRow, this);
            this.collection.on('reset', this.render, this);
{'fraction_non_alphanumeric': 0.1785791874864219, 'fraction_numerical': 0.0017379969585053225, 'mean_word_length': 1.467309753483387, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 55, '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': '7060732', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1236, 'n_words': 216}