<commit_before>minerva.collections.SourceCollection = minerva.collections.MinervaCollection.extend({

    model: function (attrs, options) {
        if (attrs.meta && ('minerva' in attrs.meta)) {
            if (attrs.meta.minerva.source_type === 'wms') {
                return new minerva.models.WmsSourceModel(attrs, options);
            }
        } else {
            console.error('Source collection includes unknown source type');
            console.error(attrs);
            girder.events.trigger('g:alert', {
                icon: 'cancel',
                text: 'Unknown source type in collection.',
                type: 'error',
                timeout: 4000
            });
        }
    },
    path: 'minerva_source'

});<commit_msg>Specify initData on SourceCollection<commit_after>minerva.collections.SourceCollection = minerva.collections.MinervaCollection.extend({

    model: function (attrs, options) {
        if (attrs.meta && ('minerva' in attrs.meta)) {
            if (attrs.meta.minerva.source_type === 'wms') {
                return new minerva.models.WmsSourceModel(attrs, options);
            }
        } else {
            console.error('Source collection includes unknown source type');
            console.error(attrs);
            girder.events.trigger('g:alert', {
                icon: 'cancel',
                text: 'Unknown source type in collection.',
                type: 'error',
                timeout: 4000
            });
        }
    },

    path: 'minerva_source',
    getInitData: function () {
        var initData = { userId: girder.currentUser.get('_id') };
        return initData;
    }


});
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.0048484848484848485, 'mean_word_length': 1.9066901408450705, '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': '6881042', 'n_tokens_mistral': 464, 'n_tokens_neox': 446, 'n_words': 93}