<commit_before>var devMode = (process.env.NODE_ENV !== "production");
if (devMode)
{
    const arg = process.argv[process.argv.length - 1];
    if (arg && arg.trim() === "-p")
    {
        devMode = false;
    }
}

const fs = require("fs");
const path = require("path");

const webpack = require("webpack");


if (!devMode)
{
    plugins.push(function() {
        this.plugin("done", function(stats) {
            const packageJSON = require("./package.json");
            var version = packageJSON.version.split(".");
            version[2] = parseInt(version[2]) + 1;
            packageJSON.version = version.join(".");

            fs.writeFileSync(
                path.join(__dirname, "./package.json"),
                JSON.stringify(packageJSON, null, 2)
            );
        });
    });
}<commit_msg>bug-fix<commit_after>var devMode = (process.env.NODE_ENV !== "production");
if (devMode)
{
    const arg = process.argv[process.argv.length - 1];
    if (arg && arg.trim() === "-p")
    {
        devMode = false;
    }
}

const fs = require("fs");
const path = require("path");

const webpack = require("webpack");
const plugins = [];


if (!devMode)
{
    plugins.push(function() {
        this.plugin("done", function(stats) {
            const packageJSON = require("./package.json");
            var version = packageJSON.version.split(".");
            version[2] = parseInt(version[2]) + 1;
            packageJSON.version = version.join(".");

            fs.writeFileSync(
                path.join(__dirname, "./package.json"),
                JSON.stringify(packageJSON, null, 2)
            );
        });
    });
}
{'fraction_non_alphanumeric': 0.17399267399267399, 'fraction_numerical': 0.006105006105006105, 'mean_word_length': 2.188715953307393, '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': '6155256', 'n_tokens_mistral': 492, 'n_tokens_neox': 478, 'n_words': 96}