<commit_before>define([
    "underscore",
    "jQuery",
    "hr/hr",
    "core/box",
    "core/commands",
    "views/components/tabs"
], function(_, $, hr, box, commands, TabsView) {

    var BodyView = hr.View.extend({
        className: "layout-body",
        defaults: {},
        events: {},

        // Constructor
        initialize: function() {
            BodyView.__super__.initialize.apply(this, arguments);
            var that = this;

            this.tabs = new TabsView();

            return this;
        },

        // Finish rendering
        render: function() {
            this.tabs.$el.appendTo(this.$el);
            return this.ready();
        },
    });

    // Register as template component
    hr.View.Template.registerComponent("layout.body", BodyView);

    return BodyView;
});<commit_msg>Add root as default tab<commit_after>define([
    "underscore",
    "jQuery",
    "hr/hr",
    "core/box",
    "core/commands",
    "core/files",
    "views/components/tabs"
], function(_, $, hr, box, commands, files, TabsView) {

    var BodyView = hr.View.extend({
        className: "layout-body",
        defaults: {},
        events: {},

        // Constructor
        initialize: function() {
            BodyView.__super__.initialize.apply(this, arguments);
            var that = this;

            this.tabs = new TabsView();
            this.tabs.on("tabs:default", function() {
                files.open("/");
            }, this);

            return this;
        },

        // Finish rendering
        render: function() {
            this.tabs.$el.appendTo(this.$el);
            return this.ready();
        },
    });

    // Register as template component
    hr.View.Template.registerComponent("layout.body", BodyView);

    return BodyView;
});
{'fraction_non_alphanumeric': 0.14748603351955308, 'fraction_numerical': 0.0, 'mean_word_length': 1.8338607594936709, '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': '332486', 'n_tokens_mistral': 510, 'n_tokens_neox': 492, 'n_words': 104}