<commit_before>import router from 'girder/router';
import events from 'girder/events';

import JobModel from './models/JobModel';
import JobDetailsWidget from './views/JobDetailsWidget';
router.route('job/:id', 'jobView', function (id) {
    var job = new JobModel({_id: id}).once('g:fetched', function () {
        events.trigger('g:navigateTo', JobDetailsWidget, {
            job: job,
            renderImmediate: true
        });
    }, this).once('g:error', function () {
        router.navigate('collections', {trigger: true});
    }, this).fetch();
});

import JobListWidget from './views/JobListWidget';
router.route('jobs/user/:id', 'jobList', function (id) {
    events.trigger('g:navigateTo', JobListWidget, {
        filter: {userId: id}
    });
});<commit_msg>Fix a breakage of the job details page.<commit_after>import router from 'girder/router';
import events from 'girder/events';

import JobModel from './models/JobModel';
import JobDetailsWidget from './views/JobDetailsWidget';
import JobListWidget from './views/JobListWidget';

router.route('job/:id', 'jobView', function (id) {
    var job = new JobModel({_id: id}).once('g:fetched', function () {
        events.trigger('g:navigateTo', JobDetailsWidget, {
            job: job,
            renderImmediate: true
        });
    }, this).once('g:error', function () {
        router.navigate('collections', {trigger: true});
    }, this);
    job.fetch();
});

router.route('jobs/user/:id', 'jobList', function (id) {
    events.trigger('g:navigateTo', JobListWidget, {
        filter: {userId: id}
    });
});
{'fraction_non_alphanumeric': 0.1717171717171717, 'fraction_numerical': 0.0, 'mean_word_length': 3.5942028985507246, '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': '3810256', 'n_tokens_mistral': 482, 'n_tokens_neox': 483, 'n_words': 110}