<commit_before>'use strict'

const fastify = require('fastify')()

fastify.register(require('./index'), {
  engine: {
    ejs: require('ejs')
  }
})

fastify.get('/', (req, reply) => {
  reply.view('/templates/index.ejs', { text: 'text' })
})

fastify.listen(3000, err => {
  if (err) throw err<commit_msg>Updated example file to exclude view extension<commit_after>'use strict'

const fastify = require('fastify')()

fastify.register(require('./index'), {
  engine: {
    ejs: require('ejs')
  }
})

fastify.get('/', (req, reply) => {
  reply.view('/templates/index', { text: 'text' })
})

fastify.listen(3000, err => {
  if (err) throw err
{'fraction_non_alphanumeric': 0.21060842433697347, 'fraction_numerical': 0.0124804992199688, 'mean_word_length': 4.262295081967213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6379580', 'n_tokens_mistral': 234, 'n_tokens_neox': 227, 'n_words': 47}