<commit_before>define(['text!./awesome.hbs'], function (tpl) {
    var template = _.template(tpl);
    return {
        type: 'Backbone',
        events: {
            'click button': 'update'
        },
        initialize: function () {
            this.sandbox.on('posts.updated', this.render, this);
            this.sandbox.emit('pipes.update');
        },
        update: function () {
            this.sandbox.emit('pipes.update');
        },
        render:function(collection) {
            this.html(template());
            collection.forEach(this.addOne, this);
        },
        addOne:function(post){
            var container = $("<li></li>");
            this.$find('ul').append(container);
            this.sandbox.start([{ name: 'model', options: { el: container, model: post }}]);
        }
    };
});<commit_msg>Update main.js<commit_after>define(['text!./awesome.hbs'], function (tpl) {
    var template = _.template(tpl);
    return {
        type: 'Backbone',
        events: {
            'click button': 'update'
        },
        initialize: function () {
            this.sandbox.on('posts.updated', this.render, this);
            this.sandbox.emit('pipes.update');
        },
        update: function () {
            this.sandbox.emit('pipes.update');
        },
        render:function(collection) {
            this.html(template());
            collection.forEach(this.addOne, this);
        },
        addOne:function(post){
            var container = $("<li></li>");
            this.$find('div.list-group').append(container);
            this.sandbox.start([{ name: 'model', options: { el: container, model: post }}]);
        }
    };
});
{'fraction_non_alphanumeric': 0.1723315444245677, 'fraction_numerical': 0.0, 'mean_word_length': 1.8981001727115716, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2537273', 'n_tokens_mistral': 478, 'n_tokens_neox': 473, 'n_words': 79}