<commit_before>var express     = require('express'),
    fs          = require("fs"),
    util        = require("util"),
    _           = require("lodash"),
    moment      = require('moment'),
    tog         = require(appRoot + '/lib/tog.js'),
    router      = express.Router();

router.all('*',function(req,res,next)
{
  res.locals.PATH = 'staff/v4'
  next();
});

router.get('/', function(req,res,next)
{
  res.redirect('your_cases');
});

router.get('/citizen/support', function(req,res,next)
{
  if (res.locals.data.support == "Yes")
  {
    next();
  } else if  (res.locals.data.support == "No") {
    res.redirect('support/rejected');
  } else {
    res.redirect('support/initial');
  }
});

router.post('/citizen/case/eligibility', function(req,res,next)
{
  return (req.body.support == 'No') ? 
    res.redirect('/staff/v3/citizen/support/rejected') : 
    res.redirect('/staff/v3/citizen/timeline');
});

module.exports = router;
<commit_msg>Update routes file for v4<commit_after>var express     = require('express'),
    fs          = require("fs"),
    util        = require("util"),
    _           = require("lodash"),
    moment      = require('moment'),
    tog         = require(appRoot + '/lib/tog.js'),
    router      = express.Router();

router.all('*',function(req,res,next)
{
  res.locals.PATH = 'staff/v4'
  next();
});

router.get('/', function(req,res,next)
{
  res.redirect('your_cases');
});

router.get('/citizen/support', function(req,res,next)
{
  if (res.locals.data.support == "Yes")
  {
    next();
  } else if  (res.locals.data.support == "No") {
    res.redirect('support/rejected');
  } else {
    res.redirect('support/initial');
  }
});

router.post('/citizen/case/eligibility', function(req,res,next)
{
  return (req.body.support == 'No') ? 
    res.redirect('/staff/v4/citizen/support/rejected') : 
    res.redirect('/staff/v4/citizen/timeline');
});

module.exports = router;

{'fraction_non_alphanumeric': 0.20395421436004163, 'fraction_numerical': 0.0036420395421436005, 'mean_word_length': 3.06553911205074, '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': '490719', 'n_tokens_mistral': 674, 'n_tokens_neox': 665, 'n_words': 92}