<commit_before>const Hapi = require('hapi')
const Inert = require('inert')
const Vision = require('vision')

let server = module.exports = new Hapi.Server()

server.connection({
  port: Number(process.env.PORT || 3000)
})

server.register([Vision, Inert], (err) => {
  if (err) throw err
})

server.views({
  engines: { hbs: require('handlebars') },
  path: require('path').join(__dirname, 'templates'),<commit_msg>Updates port options to no longer coerce to Number.<commit_after>const Hapi = require('hapi')
const Inert = require('inert')
const Vision = require('vision')

let server = module.exports = new Hapi.Server()

server.connection({
  port: process.env.port || 3000
})

server.register([Vision, Inert], (err) => {
  if (err) throw err
})

server.views({
  engines: { hbs: require('handlebars') },
  path: require('path').join(__dirname, 'templates'),
{'fraction_non_alphanumeric': 0.17325581395348838, 'fraction_numerical': 0.009302325581395349, 'mean_word_length': 5.330882352941177, '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': '1098879', 'n_tokens_mistral': 285, 'n_tokens_neox': 277, 'n_words': 71}