<commit_before>var path = require('path'),
webpack = require('webpack');

module.exports = {
    debug: true,
    devtool: 'sourcemap',
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin()
    ],
    entry: [
        'webpack-dev-server/client?http://localhost:3001',
        'webpack/hot/only-dev-server',
        './src/app.js'
    ],
    output: {
        path: path.join(__dirname, './dist'),
        filename: 'bundle.js'
    },
    module: {
        loaders: [{
            test: /\.jsx$|\.js$/,
            loader: 'babel',
            query: {
                presets: ['react', 'es2015']
            },
            include: path.join(__dirname, './src')
        }]
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    }
};<commit_msg>hot reload fix<commit_after>var path = require('path'),
webpack = require('webpack');

module.exports = {
    debug: true,
    devtool: 'sourcemap',
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin()
    ],
    entry: [
        'webpack-dev-server/client?http://localhost:3001',
        'webpack/hot/only-dev-server',
        './src/index'
    ],
    output: {
        path: path.join(__dirname, './dist'),
        filename: 'bundle.js',
        publicPath: '/static/'
    },
    module: {
        loaders: [{
            test: /\.jsx$|\.js$/,            
            loaders: ['react-hot', 'babel'],
            include: path.join(__dirname, './src')
        }]
    },
    resolve: {
        extensions: ['', '.js', '.jsx']
    }
};
{'fraction_non_alphanumeric': 0.18061674008810572, 'fraction_numerical': 0.007551919446192574, 'mean_word_length': 1.7604166666666667, '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': '6372024', 'n_tokens_mistral': 503, 'n_tokens_neox': 489, 'n_words': 85}