<commit_before>"use strict";

exports.index = function (req, res) {
    res.render('index');
};

exports.about = function (req, res) {
  res.render('about', {
    menu: 'about'
  });
};

exports.blog = function (req, res) {
  res.render('blog', {
    menu: 'blog'
  });
};

exports.notFound = function(req, res) {
  res.status(404);
  res.render('404');
};<commit_msg>Redirect developers to the dashboard<commit_after>"use strict";

exports.index = function (req, res) {
  if (req.user && req.user.isDeveloper) {
    res.redirect('/dashboard/');
  } else {
    res.render('index');
  }
};

exports.about = function (req, res) {
  res.render('about', {
    menu: 'about'
  });
};

exports.blog = function (req, res) {
  res.render('blog', {
    menu: 'blog'
  });
};

exports.notFound = function(req, res) {
  res.status(404);
  res.render('404');
};

{'fraction_non_alphanumeric': 0.20588235294117646, 'fraction_numerical': 0.01411764705882353, 'mean_word_length': 3.526595744680851, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1425697', 'n_tokens_mistral': 318, 'n_tokens_neox': 307, 'n_words': 61}