<commit_before>const express = require('express')
const template = require('../source/templates')
const api = require('./api')

// Constants
const app = express()

// Serve static files
app.use('/static', express.static('dist'))

// Index
app.get('/', (req, res) => {
  res.send(template({ title: 'Mon Chat' }))
})

// API
app.use('/api', api)

// Send 404 for any other routes
app.get('*', (req, res) => {
  res.sendStatus(404)
})

app.listen(4000)<commit_msg>Added path to help with aws serving<commit_after>const express = require('express')
const template = require('../source/templates')
const api = require('./api')
const path = require('path')

// Constants
const app = express()

// Serve static files
app.use('/static', express.static(path.join(__dirname, '../dist/')))

// Index
app.get('/', (req, res) => {
  res.send(template({ title: 'Mon Chat' }))
})

// API
app.use('/api', api)

// Send 404 for any other routes
app.get('*', (req, res) => {
  res.sendStatus(404)
})

app.listen(4000)
{'fraction_non_alphanumeric': 0.2132132132132132, 'fraction_numerical': 0.02002002002002002, 'mean_word_length': 3.9751243781094527, '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': '3659044', 'n_tokens_mistral': 349, 'n_tokens_neox': 330, 'n_words': 89}