<commit_before>'use strict';

var LiveReloadPlugin = require('webpack-livereload-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackShellPlugin = require('webpack-shell-plugin');
var autoprefixer = require('autoprefixer');

var PORT = 3000;

module.exports = {
    entry: "./js/main.js",
    output: {
        path: __dirname + "/dist",
        filename: "bundle.js"
    },
    resolve: {
        alias: {
            'jquery': __dirname + '/bower_components/jquery/dist/jquery.js'
        }
    },
    devServer: {
        port: PORT
    },
    watch: true,
    debug: true,
    devtool: 'source-map',
    jshint: {
        emitErrors: true,
        failOnHint: true
    },
    postcss: [autoprefixer({ browsers: ['last 2 versions'] })],
    module: {
        preLoaders: [{
            test: /\.js$/, // include .js files
            exclude: [/node_modules/, /bower_components/], // exclude any and all files in the node_modules folder
            loader: "jshint-loader"
        }],
        loaders: [{
            test: /\.css$/,
            loader: ExtractTextPlugin.extract({
                fallbackLoader: "style-loader",
                loader: "css-loader?sourceMap!postcss-loader"
            })
        }, {
            test: /\.png$/,
            loader: "file-loader"
        }]
    },
    plugins: [
        function() {
            this.plugin("done", function(stats) {
                if (stats.compilation.errors && stats.compilation.errors.length) {
                    console.log("---------------------------------------------------");
                    console.log("ERRORS");
                    console.log("---------------------------------------------------");
                    stats.compilation.errors.map(function(item) {
                        console.log(item.message);
                    });
                    console.log("---------------------------------------------------");
                    process.exit(1);
                }
            });
        },
        new HtmlWebpackPlugin({
            favicon: 'favicon.ico',
            template: 'index.html'
        }),
        new ExtractTextPlugin({
            filename: "style.css",
            allChunks: true
        }),
        new WebpackShellPlugin({
            onBuildStart: ['echo "Bundling Started"'],
            onBuildEnd: ['node launch_app']
        }),
        new LiveReloadPlugin({ appendScriptTag: true })
    ]
};
<commit_msg>configuring the port parameter<commit_after>'use strict';

var LiveReloadPlugin = require('webpack-livereload-plugin');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var HtmlWebpackPlugin = require('html-webpack-plugin');
var WebpackShellPlugin = require('webpack-shell-plugin');
var autoprefixer = require('autoprefixer');

var PORT = 9000;

module.exports = {
    entry: "./js/main.js",
    output: {
        path: __dirname + "/dist",
        filename: "bundle.js"
    },
    resolve: {
        alias: {
            'jquery': __dirname + '/bower_components/jquery/dist/jquery.js'
        }
    },
    devServer: {
        port: PORT
    },
    watch: true,
    debug: true,
    devtool: 'source-map',
    jshint: {
        emitErrors: true,
        failOnHint: true
    },
    postcss: [autoprefixer({ browsers: ['last 2 versions'] })],
    module: {
        preLoaders: [{
            test: /\.js$/, // include .js files
            exclude: [/node_modules/, /bower_components/], // exclude any and all files in the node_modules folder
            loader: "jshint-loader"
        }],
        loaders: [{
            test: /\.css$/,
            loader: ExtractTextPlugin.extract({
                fallbackLoader: "style-loader",
                loader: "css-loader?sourceMap!postcss-loader"
            })
        }, {
            test: /\.png$/,
            loader: "file-loader"
        }]
    },
    plugins: [
        function() {
            this.plugin("done", function(stats) {
                if (stats.compilation.errors && stats.compilation.errors.length) {
                    console.log("---------------------------------------------------");
                    console.log("ERRORS");
                    console.log("---------------------------------------------------");
                    stats.compilation.errors.map(function(item) {
                        console.log(item.message);
                    });
                    console.log("---------------------------------------------------");
                    process.exit(1);
                }
            });
        },
        new HtmlWebpackPlugin({
            favicon: 'favicon.ico',
            template: 'index.html'
        }),
        new ExtractTextPlugin({
            filename: "style.css",
            allChunks: true
        }),
        new WebpackShellPlugin({
            onBuildStart: ['echo "Bundling Started"'],
            onBuildEnd: ['node launch_app ' + PORT]
        }),
        new LiveReloadPlugin({ appendScriptTag: true })
    ]
};

{'fraction_non_alphanumeric': 0.18837163622078176, 'fraction_numerical': 0.002357100766057749, 'mean_word_length': 1.3783278841662774, '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': '304510', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1320, 'n_words': 258}