<commit_before>//User Routes
Router.route('/user/profile/', {
    name: 'userProfile',
    action: function () {
        if (Meteor.user()) {
            this.render('profile');
        } else {
            this.redirect('/');
        }
        SEO.set({title: Meteor.user().username});
    }
});

Router.route('/user/:_id/history', {
    name: 'userHistory',
    action: function () {
        this.render('history', {
            data: function () {
                return Meteor.users.findOne(this.params._id);
            }
        });
        SEO.set({title: Meteor.user().username});
    }
});

Router.route('/user/:_id/groups', {
    name: 'userGroups',
    action: function () {
        this.render('groups', {
            data: function () {
                return Meteor.users.findOne(this.params._id);
            }
        });
        SEO.set({title: 'Home - ' + Meteor.App.NAME});
    }
});

Router.route('/user/admin', {
    name: 'userGroups',
    action: function(){
        if(Meteor.user().profile.globalAdmin){
            this.render('admin', {
            });
        SEO.set({title: 'Global Settings'});            
        } else {
            this.redirect('/user/profile/');
        }
    }
});<commit_msg>route conflict<commit_after>//User Routes
Router.route('/user/profile/', {
    name: 'userProfile',
    action: function () {
        if (Meteor.user()) {
            this.render('profile');
        } else {
            this.redirect('/');
        }
        SEO.set({title: Meteor.user().username});
    }
});

Router.route('/user/:_id/history', {
    name: 'userHistory',
    action: function () {
        this.render('history', {
            data: function () {
                return Meteor.users.findOne(this.params._id);
            }
        });
        SEO.set({title: Meteor.user().username});
    }
});

Router.route('/user/:_id/groups', {
    name: 'userGroups',
    action: function () {
        this.render('groups', {
            data: function () {
                return Meteor.users.findOne(this.params._id);
            }
        });
        SEO.set({title: 'Home - ' + Meteor.App.NAME});
    }
});

Router.route('/user/admin', {
    name: 'userAdminGroups',
    action: function(){
        if(Meteor.user().profile.globalAdmin){
            this.render('admin', {
            });
        SEO.set({title: 'Global Settings'});            
        } else {
            this.redirect('/user/profile/');
        }
    }
});
{'fraction_non_alphanumeric': 0.1841038118410381, 'fraction_numerical': 0.0, 'mean_word_length': 1.7050438596491229, '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': '3177791', 'n_tokens_mistral': 743, 'n_tokens_neox': 732, 'n_words': 103}