<commit_before>const argv = require('yargs').argv;

module.exports = function() {
    return {
        /**
         * Determine if webpack should be triggered in a production environment.
         *
         * @type {Boolean}
         */
        production:
            process.env.NODE_ENV === 'production' ||
            process.argv.includes('-p'),

        /**
         * Determine if we should enable hot reloading.
         *
         * @type {Boolean}
         */
        hmr: process.argv.includes('--hot'),

        /**
         * Hostname and port used for the hot reload module
         *
         * @type {Object}
         */
        hmrOptions: {
            host: 'localhost',
            port: !!argv.hmrPort ? argv.hmrPort : '8080'
        },

        /**
         * PostCSS plugins to be applied to compiled CSS.
         *
         * See: https://github.com/postcss/postcss/blob/master/docs/plugins.md
         *
         * @type {Array}
         */
        postCss: [],

        /**
         * Determine if we should enable autoprefixer by default.
         *
         * @type {Boolean}
         */
        autoprefixer: {
            enabled: true,
            options: {}
        },

        /**
         * The public path for the build.
         *
         * @type {String}
         */
        publicPath: '',

        /**
         * Determine if error notifications should be displayed for each build.
         *
         * @type {Boolean}
         */
        notifications: {
            onSuccess: true,
            onFailure: true
        },

        /**
         * Determine if sourcemaps should be created for the build.
         *
         * @type {Boolean}
         */
        sourcemaps: false,

        /**
         * The resource root for the build.
         *
         * @type {String}
         */
        resourceRoot: '/',

        /**
         * Image Loader defaults.
         * See: https://github.com/thetalecrafter/img-loader#options
         *
         * @type {Object}
         */
        imgLoaderOptions: {
            enabled: true,
            gifsicle: {},
            mozjpeg: {},
            optipng: {},
            svgo: {}
        },

        /**
         * File Loader directory defaults.
         *
         * @type {Object}
         */
        fileLoaderDirs: {
            images: 'images',
            fonts: 'fonts'
        },

        /**
         * The default Babel configuration.
         *
         * @type {String} babelRcPath
         */
        babel: function(babelRcPath) {
            babelRcPath = babelRcPath || Mix.paths.root('.babelrc');

            return require('./BabelConfig').generate(
                this.babelConfig,
                babelRcPath
            );
        },

        /**
         * Determine if CSS relative url()s should be calculated by Sass Webpack,
         * using resolve-url-loader. Disabling this can improve performance
         * greatly.
         *
         * @type {Boolean}
         */
        processCssUrls: true,

        /**
         * Should we extract .vue component styles into a dedicated file?
         * You may provide a boolean, or a dedicated path to extract to.
         *
         * Ex: extractVueStyles: '/css/vue.css'
         *
         * @type {Boolean|string}
         */
        extractVueStyles: false,

        /**
         * A file path with global styles that should be imported into every Vue component.
         *
         * This works with Sass, Less, CSS, etc…
         * Giving a string or an array works only with sass.
         * Specify the file type as the key if you want to import for different files. For example:
         *
         * ```js
         * {<commit_msg>Add deprecation notice<commit_after>const argv = require('yargs').argv;

module.exports = function() {
    return {
        /**
         * Determine if webpack should be triggered in a production environment.
         *
         * @type {Boolean}
         */
        production:
            process.env.NODE_ENV === 'production' ||
            process.argv.includes('-p'),

        /**
         * Determine if we should enable hot reloading.
         *
         * @type {Boolean}
         */
        hmr: process.argv.includes('--hot'),

        /**
         * Hostname and port used for the hot reload module
         *
         * @type {Object}
         */
        hmrOptions: {
            host: 'localhost',
            port: !!argv.hmrPort ? argv.hmrPort : '8080'
        },

        /**
         * PostCSS plugins to be applied to compiled CSS.
         *
         * See: https://github.com/postcss/postcss/blob/master/docs/plugins.md
         *
         * @type {Array}
         */
        postCss: [],

        /**
         * Determine if we should enable autoprefixer by default.
         *
         * @type {Boolean}
         */
        autoprefixer: {
            enabled: true,
            options: {}
        },

        /**
         * The public path for the build.
         *
         * @type {String}
         */
        publicPath: '',

        /**
         * Determine if error notifications should be displayed for each build.
         *
         * @type {Boolean}
         */
        notifications: {
            onSuccess: true,
            onFailure: true
        },

        /**
         * Determine if sourcemaps should be created for the build.
         *
         * @type {Boolean}
         */
        sourcemaps: false,

        /**
         * The resource root for the build.
         *
         * @type {String}
         */
        resourceRoot: '/',

        /**
         * Image Loader defaults.
         * See: https://github.com/thetalecrafter/img-loader#options
         *
         * @type {Object}
         */
        imgLoaderOptions: {
            enabled: true,
            gifsicle: {},
            mozjpeg: {},
            optipng: {},
            svgo: {}
        },

        /**
         * File Loader directory defaults.
         *
         * @type {Object}
         */
        fileLoaderDirs: {
            images: 'images',
            fonts: 'fonts'
        },

        /**
         * The default Babel configuration.
         *
         * @type {String} babelRcPath
         */
        babel: function(babelRcPath) {
            babelRcPath = babelRcPath || Mix.paths.root('.babelrc');

            return require('./BabelConfig').generate(
                this.babelConfig,
                babelRcPath
            );
        },

        /**
         * Determine if CSS relative url()s should be calculated by Sass Webpack,
         * using resolve-url-loader. Disabling this can improve performance
         * greatly.
         *
         * @type {Boolean}
         */
        processCssUrls: true,

        /**
         * Deprecated. Use mix.vue({ extractStyles: boolean|string })
         * 
         * Should we extract .vue component styles into a dedicated file?
         * You may provide a boolean, or a dedicated path to extract to.
         *
         * Ex: extractVueStyles: '/css/vue.css'
         *
         * @type {Boolean|string}
         */
        extractVueStyles: false,

        /**
         * Deprecated. Use mix.vue({ globalStyles: string|string[]|{[key: string]: string|string[]} })
         * 
         * A file path with global styles that should be imported into every Vue component.
         *
         * This works with Sass, Less, CSS, etc…
         * Giving a string or an array works only with sass.
         * Specify the file type as the key if you want to import for different files. For example:
         *
         * ```js
         * {
{'fraction_non_alphanumeric': 0.10718029350104821, 'fraction_numerical': 0.0010482180293501049, 'mean_word_length': 1.2417033773861967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1944934', 'n_tokens_mistral': 2044, 'n_tokens_neox': 1975, 'n_words': 550}