<commit_before>import Webpack from 'webpack';
import ServerManager from '../ServerManager';
import HapiWebpackPlugin from 'hapi-webpack-plugin';
import notifier from 'node-notifier';

class HapiWebpackHotPlugin {

    constructor(server) {
        const compiler = new Webpack(require('../../../webpack.config.js')); // eslint-disable-line global-require

        compiler.plugin('done', (stats) => this._onDone(stats));

        const options = {
            assets: {
                // webpack-dev-middleware options - https://github.com/webpack/webpack-dev-middleware
                index: '/public/index.html',
            },
            hot: {
                // webpack-hot-middleware options - https://github.com/glenjamin/webpack-hot-middleware
            },
            compiler,
        };

        server.register({<commit_msg>remove new from Webpack<commit_after>import Webpack from 'webpack';
import ServerManager from '../ServerManager';
import HapiWebpackPlugin from 'hapi-webpack-plugin';
import notifier from 'node-notifier';

class HapiWebpackHotPlugin {

    constructor(server) {
        const config = require('../../../webpack.config.js'); // eslint-disable-line global-require
        const compiler = Webpack(config);

        compiler.plugin('done', (stats) => this._onDone(stats));

        const options = {
            assets: {
                // webpack-dev-middleware options - https://github.com/webpack/webpack-dev-middleware
                index: '/public/index.html',
            },
            hot: {
                // webpack-hot-middleware options - https://github.com/glenjamin/webpack-hot-middleware
            },
            compiler,
        };

        server.register({
{'fraction_non_alphanumeric': 0.1314717859220477, 'fraction_numerical': 0.0, 'mean_word_length': 2.1444241316270567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1447236', 'n_tokens_mistral': 459, 'n_tokens_neox': 442, 'n_words': 88}