<commit_before>var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  const {app_id, app_secret, campaign_name} = req.query

  const voucherifyClient = require('voucherify')({
      applicationId: app_id,
      clientSecretKey: app_secret
  })

  const publishVoucherPromise = voucherifyClient.distributions.publish(campaign_name)

  publishVoucherPromise.then(publishedVoucher => console.log(JSON.stringify(publishedVoucher, null, 2)) || res.render('yourToken', {
    title: `Your ${campaign_name} token`,
    code: publishedVoucher.voucher.code,
    face2: publishedVoucher.voucher.metadata.face2
  }))
})

module.exports = router;<commit_msg>removed console.log<commit_after>var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  const {app_id, app_secret, campaign_name} = req.query

  const voucherifyClient = require('voucherify')({
      applicationId: app_id,
      clientSecretKey: app_secret
  })

  const publishVoucherPromise = voucherifyClient.distributions.publish(campaign_name)

  publishVoucherPromise.then(publishedVoucher => res.render('yourToken', {
    title: `Your ${campaign_name} token`,
    code: publishedVoucher.voucher.code,
    face2: publishedVoucher.voucher.metadata.face2
  }))
})

module.exports = router;
{'fraction_non_alphanumeric': 0.1314655172413793, 'fraction_numerical': 0.0035919540229885057, 'mean_word_length': 5.03030303030303, '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': '1414888', 'n_tokens_mistral': 455, 'n_tokens_neox': 439, 'n_words': 83}