<commit_before>/** @license

 ----------------------------------------------

 Copyright (c) 2012, <NAME>. All rights reserved.
 Code provided under the BSD License:

 */
var ReleaseListItemView = Backbone.View.extend({
    tagName: "tr",
    initialize: function () {
        $(this.el).addClass("rowlink");
        $(this.el).data("id", this.model.get("id"));
        this.render();
    },
    render:function () {
        $(this.el).html(this.template({"item":this.model.toJSON()}));
        return this;
    }
});
var ReleaseListView = Backbone.View.extend({
    events:{
        "click tr":"showDetails"
    },
    initialize: function () {
        this.render();
    },
    render: function () {
        $(this.el).html(this.template());
        var el = this.el;
        this.collection.each(function (item) {
            $('#release-list-container', el).append(new ReleaseListItemView({model:item}).render().el);
        });
        $("#release-table", this.el).tablesorter({
            sortList:[
                [1, 1],
                [0, 0]
            ],
            headers:{
                1:{
                    sorter:'humanDates'
                }
            }
        });

        $('tr.rowlink', this.el).rowlink();
        $('#tablesorter-fix', this.el).hide();
        return this;
    },
    showDetails:function (row) {
        Backbone.history.navigate('/release/' + $(row.currentTarget).data("id"), {trigger:true});
    }
});
var ReleaseItemView = Backbone.View.extend({
    tagName:"li",
    initialize:function () {
        this.render();
    },
    render:function () {
        $(this.el).html(this.template({"item":this.model.toJSON()}));
        if (com.podnoms.utils.isEmpty(this.model.get('release_image'))){
            $('#release-image-div', this.el).remove();
        }
        $('#release_date', this.el).
        return this;
    }
});
var ReleaseView = Backbone.View.extend({
    initialize:function () {
        this.render();
    },
    render:function () {
        $(this.el).html(this.template());
        var item = new ReleaseItemView({model:this.model}).render();
        $('.release-listing', this.el).append(item.el);
        $('#release-description', this.el).html(this.model.get("description"));
        return this;
    }
});
var ReleaseCreateView = DSSEditableView.extend({
    events:{
        "click #save-changes":"saveChanges",
        "change input":"changed",
        "change textarea":"changed",
        "change select":"changeSelect"
    },
    initialize:function () {
        this.render();
    },<commit_msg>Fixed typo<commit_after>/** @license

 ----------------------------------------------

 Copyright (c) 2012, <NAME>. All rights reserved.
 Code provided under the BSD License:

 */
var ReleaseListItemView = Backbone.View.extend({
    tagName: "tr",
    initialize: function () {
        $(this.el).addClass("rowlink");
        $(this.el).data("id", this.model.get("id"));
        this.render();
    },
    render:function () {
        $(this.el).html(this.template({"item":this.model.toJSON()}));
        return this;
    }
});
var ReleaseListView = Backbone.View.extend({
    events:{
        "click tr":"showDetails"
    },
    initialize: function () {
        this.render();
    },
    render: function () {
        $(this.el).html(this.template());
        var el = this.el;
        this.collection.each(function (item) {
            $('#release-list-container', el).append(new ReleaseListItemView({model:item}).render().el);
        });
        $("#release-table", this.el).tablesorter({
            sortList:[
                [1, 1],
                [0, 0]
            ],
            headers:{
                1:{
                    sorter:'humanDates'
                }
            }
        });

        $('tr.rowlink', this.el).rowlink();
        $('#tablesorter-fix', this.el).hide();
        return this;
    },
    showDetails:function (row) {
        Backbone.history.navigate('/release/' + $(row.currentTarget).data("id"), {trigger:true});
    }
});
var ReleaseItemView = Backbone.View.extend({
    tagName:"li",
    initialize:function () {
        this.render();
    },
    render:function () {
        $(this.el).html(this.template({"item":this.model.toJSON()}));
        if (com.podnoms.utils.isEmpty(this.model.get('release_image'))){
            $('#release-image-div', this.el).remove();
        }
        //$('#release_date', this.el).
        return this;
    }
});
var ReleaseView = Backbone.View.extend({
    initialize:function () {
        this.render();
    },
    render:function () {
        $(this.el).html(this.template());
        var item = new ReleaseItemView({model:this.model}).render();
        $('.release-listing', this.el).append(item.el);
        $('#release-description', this.el).html(this.model.get("description"));
        return this;
    }
});
var ReleaseCreateView = DSSEditableView.extend({
    events:{
        "click #save-changes":"saveChanges",
        "change input":"changed",
        "change textarea":"changed",
        "change select":"changeSelect"
    },
    initialize:function () {
        this.render();
    },
{'fraction_non_alphanumeric': 0.19957289846631723, 'fraction_numerical': 0.0034944670937682005, 'mean_word_length': 2.052132701421801, 'pattern_counts': {'":': 14, '<': 5, '<?xml version=': 0, '>': 5, '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': '6320495', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1473, 'n_words': 237}