<commit_before>Router.configure({
    layoutTemplate: 'applicationLayout'
});

Router.route('/home', function() {
    this.render('dashboard', {to: 'content'});
});

Router.route('/', function() {
	this.layout('landingLayout');
	this.render('register', {to: 'registration'});
    this.render('login', {to: 'login'});
});<commit_msg>Redirect to home if the user is authenticated and tries to login<commit_after>Router.configure({
	layoutTemplate: 'applicationLayout'
});

Router.route('/home', function() {
	this.render('dashboard', {to: 'content'});
});

Router.route('/', function() {
	if (!Meteor.userId()) {
		this.layout('landingLayout');
		this.render('register', {to: 'registration'});
		this.render('login', {to: 'login'});
	} else {
		this.redirect('/home');
	}
});
{'fraction_non_alphanumeric': 0.2238033635187581, 'fraction_numerical': 0.0, 'mean_word_length': 5.7894736842105265, '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': '5488484', 'n_tokens_mistral': 253, 'n_tokens_neox': 247, 'n_words': 49}