<commit_before>Router.configure({
    layoutTemplate:'layout',
    loadingTemplate:'preloader',
});

Router.map(function() {
    this.route('index', {path : '/'});
    this.route('signUp', {path : 'sign-up'});
    this.route('logIn', {path : 'log-in'});
    this.route('upload', {path : 'uploader'});
    this.route('notVerified', {path : 'not-verified'});
    this.route('filemanager', {path : 'filemanager'});
});

Router.onBeforeAction('loading');<commit_msg>added verified email filters<commit_after>Router.configure({
    layoutTemplate:'layout',
    loadingTemplate:'preloader',
});

Router.map(function() {
    this.route('index', {path : '/'});
    this.route('signUp', {path : 'sign-up'});
    this.route('logIn', {path : 'log-in'});
    this.route('uploader', {path : 'upload'});
    this.route('notVerified', {path : 'not-verified'});
    this.route('filemanager', {path : 'filemanager'});
});

var validateUser = function(pause) {
    if (Meteor.user()) {
	if (Meteor.user().emails[0].verified) {
	    this.render();
	} else {
	    this.render('notVerified');
        }
    } 
    pause();
}

Router.onBeforeAction(loading);
Router.onBeforeAction(validateUser,{only:['uploader','filemanager']});
{'fraction_non_alphanumeric': 0.2195526097763049, 'fraction_numerical': 0.0008285004142502071, 'mean_word_length': 4.441441441441442, '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': '7083531', 'n_tokens_mistral': 408, 'n_tokens_neox': 403, 'n_words': 58}