<commit_before>fs = require('fs')
#
# * Set users locale
#
exports.index = (req, res) ->
  if req.params.locale?
    res.cookie('nrt_locale', req.params.locale)<commit_msg>Prevent caching the locale page, causing Safari to reload the page with the previous locale<commit_after>fs = require('fs')
#
# * Set users locale
#
exports.index = (req, res) ->
  res.header('Cache-Control', 'no-store')

  if req.params.locale?
    res.cookie('nrt_locale', req.params.locale)
{'fraction_non_alphanumeric': 0.15268817204301074, 'fraction_numerical': 0.0, 'mean_word_length': 4.482352941176471, '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': '93263', 'n_tokens_mistral': 158, 'n_tokens_neox': 152, 'n_words': 39}