<commit_before>export default function(ngapp, fileHelpers) {
    ngapp.service('layoutService', function(viewFactory) {
        let service = this;
        let defaultLayout = fileHelpers.loadJsonFile('layouts/default.json');

        this.buildPane = function(pane) {
            if (pane.panes) pane.panes.forEach(service.buildPane);
            if (pane.tabs) pane.tabs = pane.tabs.map(viewFactory.newView);
        };

        this.getDefaultLayout = function() {<commit_msg>now setting first tab as active when building a pane<commit_after>export default function(ngapp, fileHelpers) {
    ngapp.service('layoutService', function(viewFactory) {
        let service = this;
        let defaultLayout = fileHelpers.loadJsonFile('layouts/default.json');

        this.buildPane = function(pane) {
            if (pane.panes) pane.panes.forEach(service.buildPane);
            if (pane.tabs) {
                pane.tabs = pane.tabs.map(viewFactory.newView);
                pane.tabs[0].active = true;
            }
        };

        this.getDefaultLayout = function() {
{'fraction_non_alphanumeric': 0.11556383970177074, 'fraction_numerical': 0.0009319664492078285, 'mean_word_length': 2.640677966101695, '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': '7195154', 'n_tokens_mistral': 312, 'n_tokens_neox': 305, 'n_words': 57}