<commit_before>var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack-development.config');
var port = process.env.PORT || 8080;
var app = express();
var compiler = webpack(config);

app.use('/', express.static(path.join(__dirname, 'assets')));

app.use(require('webpack-dev-middleware')(compiler, {
    quiet: true,
    noInfo: true,
    publicPath: config.output.publicPath
}));

app.use(require("webpack-hot-middleware")(compiler, {
    log: console.log,
    path: '/__webpack_hmr',
    heartbeat: 10 * 1000
}));

app.get('*', function (req, res) {
    res.sendFile(path.join(__dirname, 'index.html'));
});

app.listen(port, 'localhost', function (err) {
    if (err) {
        console.log(err);
        return;
    }
    console.log('Listening at http://localhost:' + port);
});<commit_msg>code: update webpack config<commit_after>var path = require('path');
var express = require('express');
var webpack = require('webpack');
var config = require('./webpack.dev');
var port = process.env.PORT || 8080;
var app = express();
var compiler = webpack(config);

app.use('/', express.static(path.join(__dirname, 'assets')));

app.use(require('webpack-dev-middleware')(compiler, {
    quiet: true,
    noInfo: true,
    publicPath: config.output.publicPath
}));

app.use(require("webpack-hot-middleware")(compiler, {
    log: console.log,
    path: '/__webpack_hmr',
    heartbeat: 10 * 1000
}));

app.get('*', function (req, res) {
    res.sendFile(path.join(__dirname, 'index.html'));
});

app.listen(port, 'localhost', function (err) {
    if (err) {
        console.log(err);
        return;
    }
    console.log('Listening at http://localhost:' + port);
});
{'fraction_non_alphanumeric': 0.1904212348528563, 'fraction_numerical': 0.01154068090017311, 'mean_word_length': 4.14540059347181, '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': '5964583', 'n_tokens_mistral': 581, 'n_tokens_neox': 561, 'n_words': 119}