<commit_before>const fs = require(`fs`);
const path = require(`path`);
const util = require(`util`);
const express = require(`express`);

const app = express();

app.set('view engine', 'ejs')

app.use(express.static(`dist`));

app.get(`/`, async (req, res) => {
  const templates = await util.promisify(fs.readdir)(path.join(__dirname, `dist`));
  res.render(`index`, { templates })
});

app.listen(3000, () => console.log(`Listening of 3000`));<commit_msg>updated to listen on $PORT<commit_after>const fs = require(`fs`);
const path = require(`path`);
const util = require(`util`);
const express = require(`express`);

const app = express();

const port = process.env.PORT || 3000;

app.set('view engine', 'ejs')

app.use(express.static(`dist`));

app.get(`/`, async (req, res) => {
  const templates = await util.promisify(fs.readdir)(path.join(__dirname, `dist`));
  res.render(`index`, { templates })
});

app.listen(port, () => console.log(`Listening on ${port}`));
{'fraction_non_alphanumeric': 0.21443298969072164, 'fraction_numerical': 0.012371134020618556, 'mean_word_length': 5.6506849315068495, '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': '2513240', 'n_tokens_mistral': 327, 'n_tokens_neox': 324, 'n_words': 75}