<commit_before>pp.views.EventBox = Backbone.View.extend({
    template: _.template($('#template-event-any').text()),

    initialize: function () {
        this.subview = new pp.views.Event({ model: this.model });
    },

    render: function () {
        this.$el.html(this.template(this.model.toJSON()));
        this.subview.setElement(this.$('.subview'));
        this.subview.render();

        this.$el.find("time.timeago").timeago();
    }
});<commit_msg>refactor views/event/box to use View.Common<commit_after>pp.views.EventBox = pp.View.Common.extend({
    t: 'event-any',
    subviews: {
        '.subview': function () {
            return new pp.views.Event({ model: this.model });
        },
    },

    serialize: function () {
        return this.model.toJSON();
    },

    features: ['timeago'],
});
{'fraction_non_alphanumeric': 0.18849449204406366, 'fraction_numerical': 0.0, 'mean_word_length': 2.6194690265486726, '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': '3674296', 'n_tokens_mistral': 257, 'n_tokens_neox': 250, 'n_words': 39}