<commit_before>var express = require('express');
var router = express.Router();
var get_countries = require('../views/sprint8v2/scripts/countries.js');

// Secure page with invite code
router.get('/secure', function(req, res) {
  res.render('sprint8v2/secure');
});

router.post('/secure', function(req, res) {
  res.locals.error = true;

  if ( req.cookies.sp3_fail_attempts ) {
    res.cookie('sp3_fail_attempts', 0);
  }

  if ((req.body.reference.replace(/\s/g, "") === "WOOD435HN3" || req.body.reference.replace(/\s/g, "").toLowerCase() === "qwx5ychpnrjv")) {
    req.session.view = null;
    res.redirect("have-you-lived-abroad");
  } else {
    req.session.view++;

    if (req.session.view > 2) {
      res.redirect("unhappy-ending");
    } else {
      res.render('sprint8v2/secure');<commit_msg>Added the state pension age screen into the sprint8v2 prototype<commit_after>var express = require('express');
var router = express.Router();
var get_countries = require('../views/sprint8v2/scripts/countries.js');

// Secure page with invite code
router.get('/secure', function(req, res) {
  res.render('sprint8v2/secure');
});

router.post('/secure', function(req, res) {
  res.locals.error = true;

  if ( req.cookies.sp3_fail_attempts ) {
    res.cookie('sp3_fail_attempts', 0);
  }

  if ((req.body.reference.replace(/\s/g, "") === "WOOD435HN3" || req.body.reference.replace(/\s/g, "").toLowerCase() === "qwx5ychpnrjv")) {
    req.session.view = null;
    res.redirect("pension-age");
  } else {
    req.session.view++;

    if (req.session.view > 2) {
      res.redirect("unhappy-ending");
    } else {
      res.render('sprint8v2/secure');
{'fraction_non_alphanumeric': 0.19272727272727272, 'fraction_numerical': 0.019393939393939394, 'mean_word_length': 3.7994186046511627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7283938', 'n_tokens_mistral': 606, 'n_tokens_neox': 584, 'n_words': 96}