<commit_before>import Ember from 'ember';
import ResetScrollMixin from '../mixins/reset-scroll';

export default Ember.Route.extend(ResetScrollMixin, {
    model(params) {
        return this.store.findRecord('preprint', params.preprint_id);
    },
    setupController(controller, model) {
        controller.set('activeFile', model.get('primaryFile'));
        return this._super(...arguments);
    },
    actions: {
        error: function() {
            this.intermediateTransitionTo('/page-not-found');
        }
    }
});<commit_msg>Don't change URL in bar on error<commit_after>import Ember from 'ember';
import ResetScrollMixin from '../mixins/reset-scroll';

export default Ember.Route.extend(ResetScrollMixin, {
    model(params) {
        return this.store.findRecord('preprint', params.preprint_id);
    },
    setupController(controller, model) {
        controller.set('activeFile', model.get('primaryFile'));
        return this._super(...arguments);
    },
    actions: {
        error: function() {
            this.intermediateTransitionTo('page-not-found');
        }
    }
});
{'fraction_non_alphanumeric': 0.14233576642335766, 'fraction_numerical': 0.0, 'mean_word_length': 3.093283582089552, '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': '5285384', 'n_tokens_mistral': 311, 'n_tokens_neox': 309, 'n_words': 56}