<commit_before>var _ = require('underscore');

// Load .env for development environments
require('dotenv').load();

exports.initLocals = function(req, res, next) {

  var locals = res.locals;

  locals.user = req.user;
  locals.buy = {
    ticket: req.query.ticket,
    discount: req.query.discount,
  };
  locals.twoco_seller_id = process.env.TWOCO_SELLER_ID;
  locals.twoco_public_key = process.env.TWOCO_PUBLIC_KEY;
  locals.gold = req.query.g == '' ? 'gold' : '';


  next();

};

exports.flashMessages = function(req, res, next) {

  var flashMessages = {<commit_msg>Add random gold or blue<commit_after>var _ = require('underscore');

// Load .env for development environments
require('dotenv').load();

exports.initLocals = function(req, res, next) {

  var locals = res.locals;

  locals.user = req.user;
  locals.buy = {
    ticket: req.query.ticket,
    discount: req.query.discount,
  };
  locals.twoco_seller_id = process.env.TWOCO_SELLER_ID;
  locals.twoco_public_key = process.env.TWOCO_PUBLIC_KEY;
  console.log(Math.random());
  locals.gold = req.query.g == '' ? (Math.random() > 0.5 ? 'gold' : '') : '';


  next();

};

exports.flashMessages = function(req, res, next) {

  var flashMessages = {
{'fraction_non_alphanumeric': 0.15663643858202803, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 3.856, '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': '3058525', 'n_tokens_mistral': 446, 'n_tokens_neox': 438, 'n_words': 79}