<commit_before>'use strict';

import pkg from './package';
import express from 'express';
import useWebpackMiddlewareWithWatch from './webpack.config.dev.watch.babel';

const app = express();

const { config: { port, dirs: { dest }, env: { prod } } } = pkg;

if (process.env.NODE_ENV === prod) {
  app.use(express.static(`${__dirname}/${dest}`));
} else {
  useWebpackMiddlewareWithWatch(app);
}

app.get('*', function(req, res) {
  res.sendFile(`${__dirname}/${dest}/index.html`);
});

app.listen(port);

console.log(`\nMagic happens on http://localhost:${port}....\n`);<commit_msg>Fixed file not found error (index.html)<commit_after>'use strict';

import pkg from './package';
import express from 'express';
import useWebpackMiddlewareWithWatch from './webpack.config.dev.watch.babel';

const app = express();

const { config: { port, dirs: { dest }, env: { prod } } } = pkg;

if (process.env.NODE_ENV === prod) {
  app.use(express.static(`${__dirname}/${dest}`));

  app.get('*', function(req, res) {
    res.sendFile(`${__dirname}/${dest}/index.html`);
  });
} else {
  useWebpackMiddlewareWithWatch(app);
}

app.listen(port);

console.log(`\nMagic happens on http://localhost:${port}....\n`);
{'fraction_non_alphanumeric': 0.20784641068447413, 'fraction_numerical': 0.0, 'mean_word_length': 4.792270531400966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3047839', 'n_tokens_mistral': 406, 'n_tokens_neox': 405, 'n_words': 84}