<commit_before>import Ember from 'ember';

export default Ember.Route.extend({
});<commit_msg>Pass in temporary hardcoded node to model and load contributors in setUpController.<commit_after>import Ember from 'ember';
import loadAll from 'ember-osf/utils/load-relationship';

export default Ember.Route.extend({
    currentUser: Ember.inject.service(),
    model() {
        // Temporary.  This needs to be the preprint created in this step.
        return this.store.findRecord('node', 'bgz3m');
    },

    setupController(controller, model) {
        this.get('currentUser').load()
            .then((user) => controller.set('user', user))
            .catch(() => controller.set('user', null));
        controller.set('user', this.modelFor('application'));

        let dest = Ember.A();
        loadAll(model, 'contributors', dest).then(()=>
            controller.set('contributors', dest));
        return this._super(...arguments);
    }
});
{'fraction_non_alphanumeric': 0.1506849315068493, 'fraction_numerical': 0.001053740779768177, 'mean_word_length': 3.2222222222222223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '327343', 'n_tokens_mistral': 267, 'n_tokens_neox': 260, 'n_words': 67}