<commit_before>#
# Personalize page
#

express = require 'express'
{ ensureLoggedInUser, index } = require './routes.js'

app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'

app.get '/personalize', index
app.get '/personalize/:slug', ensureLoggedInUser, index
<commit_msg>Redirect to user from /personalize to /personalize/interests server-side<commit_after>#
# Personalize page
#

express = require 'express'
{ ensureLoggedInUser, index } = require './routes.js'

app = module.exports = express()
app.set 'views', __dirname
app.set 'view engine', 'jade'

app.get '/personalize', (_, res) => res.redirect('/personalize/interests')
app.get '/personalize/:slug', ensureLoggedInUser, index

{'fraction_non_alphanumeric': 0.1487603305785124, 'fraction_numerical': 0.0, 'mean_word_length': 5.267241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3941944', 'n_tokens_mistral': 231, 'n_tokens_neox': 236, 'n_words': 62}