<commit_before>/* eslint-disable */
const webpack = require('webpack');
// const webpackMiddleware = require('webpack-dev-middleware');
// const webpackHotMiddleware = require('webpack-hot-middleware');
// const config = require('../webpack.config.js');
const isDeveloping = process.env.NODE_ENV !== 'production';
const port = isDeveloping ? 1337 : process.env.PORT;
const path = require('path');
// const compiler = webpack(config);
const express = require('express');

const app = express();

app.use('/build', express.static(__dirname + 'build'));

/* Send the bundle file from the build folder */
app.get('/*', (req, res) => {
  res.sendFile(path.join(__dirname, 'build/index.html'));
});<commit_msg>Feat: prep server for push to heroku<commit_after>/* eslint-disable */
const webpack = require('webpack');
const webpackMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
const config = require('../webpack.config.js');
const isDeveloping = process.env.NODE_ENV !== 'production';
const port = isDeveloping ? 1337 : process.env.PORT;
const path = require('path');
const compiler = webpack(config);
const express = require('express');

const app = express();

app.use('/build', express.static(__dirname + 'build'));

/* Send the bundle file from the build folder */
app.get('*', (req, res) => {
  res.sendFile(path.join(__dirname, 'build/index.html'));
});
{'fraction_non_alphanumeric': 0.1777150916784203, 'fraction_numerical': 0.005641748942172073, 'mean_word_length': 5.391891891891892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6011501', 'n_tokens_mistral': 420, 'n_tokens_neox': 413, 'n_words': 108}