<commit_before>const path = require('path');
const validate = require('webpack-validator');
const webpack = require('webpack');

const isDebug = process.env.NODE_ENV !== 'production';

module.exports = validate({
    entry: {
        app: [
            'webpack-dev-server/client?http://0.0.0.0:8080', // WebpackDevServer host and port
            'webpack/hot/only-dev-server', // "only" prevents reload on syntax errors
            './src/entry',
        ],
    },
    devtool: isDebug ? 'cheap-module-eval-source-map' : undefined,
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'build'),
        publicPath: '/build/',
    },
    module: {<commit_msg>will now use port specified in environment<commit_after>const path = require('path');
const validate = require('webpack-validator');
const webpack = require('webpack');

const isDebug = process.env.NODE_ENV !== 'production';
const port = process.env.PORT || 8080;

module.exports = validate({
    devServer: {
        port,
    },
    entry: {
        app: [
            `webpack-dev-server/client?http://0.0.0.0:${port}`, // WebpackDevServer host and port
            'webpack/hot/only-dev-server', // "only" prevents reload on syntax errors
            './src/entry',
        ],
    },
    devtool: isDebug ? 'cheap-module-eval-source-map' : undefined,
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'build'),
        publicPath: '/build/',
    },
    module: {
{'fraction_non_alphanumeric': 0.1584956346541303, 'fraction_numerical': 0.010745466756212223, 'mean_word_length': 2.556085918854415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5586138', 'n_tokens_mistral': 447, 'n_tokens_neox': 442, 'n_words': 98}