<commit_before>define([
    'fossil/core',
    'fossil/mixins/events',
    'fossil/mixins/layout',
    'fossil/mixins/fragmentable'
], function (Fossil) {

    var Fragment = Fossil.Fragment = function (container, options) {
        this.options = options || {};
        this.path = container.path || '';
        this.registerEvents();
        this.initFragmentable();
        this.container = container.createPubSub(this, 'parentEvents');
        this.initialize.apply(this, arguments);
    };
    _.extend(Fragment.prototype, Fossil.Mixins.Events, Fossil.Mixins.Layout, Fossil.Mixins.Fragmentable, {
        initialize: function () {},
        fagments: {},
        render: function ($el) {
            this.$el = $el;
            this.renderLayout($el);
            this.renderFragments($el);
            return this;
        },
        remove: function () {
            this.$el.empty();
        }
    });

    Fragment.extend = Backbone.Model.extend;

    return Fragment;
});
<commit_msg>Fragment is fully fragmentable.<commit_after>define([
    'fossil/core',
    'fossil/mixins/events',
    'fossil/mixins/layout',
    'fossil/mixins/fragmentable'
], function (Fossil) {

    var Fragment = Fossil.Fragment = function (container, options) {
        this.options = options || {};
        this.path = container.path || '';
        this.registerEvents();
        this.initFragmentable();
        this.container = container.createPubSub(this, 'parentEvents');
        this.initialize.apply(this, arguments);
    };
    _.extend(Fragment.prototype, Fossil.Mixins.Events, Fossil.Mixins.Layout, Fossil.Mixins.Fragmentable, {
        initialize: function () {},
        fagments: {},
        render: function ($el) {
            this.renderLayout($el);
            this.$el = this.layout.$el;
            this.renderFragments(this.$el);
            return this;
        },
        remove: function () {
            this.removeFragments();
            this.removeLayout();
        }
    });

    Fragment.extend = Backbone.Model.extend;

    return Fragment;
});

{'fraction_non_alphanumeric': 0.14354995150339475, 'fraction_numerical': 0.0, 'mean_word_length': 2.2694136291600633, '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': '7100916', 'n_tokens_mistral': 612, 'n_tokens_neox': 599, 'n_words': 98}