<commit_before>/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */

const express = require('express');
const webpack = require('webpack');
const webpackMW = require('webpack-dev-middleware');
const config = require('./webpack/webpack.config');

const app = express();
const compiler = webpack(config);

app.use(webpackMW(compiler, {
  publicPath: config.output.publicPath,
}));

app.use(require('webpack-hot-middleware')(compiler));

app.use(express.static('mock'));<commit_msg>static mock files can now be fetched, still WIP<commit_after>/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */

const express = require('express');
const webpack = require('webpack');
const webpackMW = require('webpack-dev-middleware');
const path = require('path');

const config = require('./webpack/webpack.config');

const app = express();
const compiler = webpack(config);

app.use(webpackMW(compiler, {
  publicPath: config.output.publicPath,
}));

app.use(require('webpack-hot-middleware')(compiler));

// __dirname returns /config, the location of this js file.
// TODO: /mock folder must be config to BUILD folder.
//       Better to maintain a list of static folders and use
//       copy plugin
app.use('/mock', express.static(path.join(__dirname, '../mock')));
{'fraction_non_alphanumeric': 0.15873015873015872, 'fraction_numerical': 0.0, 'mean_word_length': 5.1013824884792625, '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': '1975791', 'n_tokens_mistral': 386, 'n_tokens_neox': 380, 'n_words': 98}