<commit_before>var o = require('../../webpack.config.js');

module.exports = {
    options: {
        webpack: {
            cache: o.cache,
            entry: o.entry,
            output: {
                path: o.output.path,
                publicPath: 'dist',
                filename: o.output.filename,
                chunkFilename: o.output.chunkFilename
            },
            plugins: o.plugins,
            resolve: o.resolve,
            module: o.module
        },
        publicPath: '/dist',
        port: 9000,
        headers: {
            'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
        }
    },
    start: {
        keepAlive: true,
        webpack: {
            devtool: 'eval',
            debug: true
        }
    }
};<commit_msg>build/fix: fixes server task on main repo<commit_after>var o = require('../../webpack.config.js');

var config = {
    options: {
        webpack: {
            cache: o.cache,
            entry: o.entry,
            output: {
                path: o.output.path,
                publicPath: 'dist',
                filename: o.output.filename,
                chunkFilename: o.output.chunkFilename
            },
            plugins: o.plugins,
            resolve: o.resolve,
            module: o.module
        },
        publicPath: '/dist',
        port: 9000,
        headers: {
            'Cache-Control': 'no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0'
        }
    },
    start: {
        keepAlive: true,
        webpack: {
            devtool: 'eval',
            debug: true
        }
    }
};

// if the client-core is a node module, then we are in the main repo
// and we need to rewrite some request URLs such as 'scripts/' and
// 'images/' to 'node_modules/scripts/' and 'node_modules/images/'.
var isModule = require('fs').existsSync('./node_modules/superdesk-core');
if (isModule) {
    var rewrite = {
        target: 'http://localhost:9000',
        rewrite: function(req) {
            'use strict';
            req.url = 'node_modules/superdesk-core' + req.url;
        }
    };
    config.start.proxy = {
        '/scripts/*': rewrite,
        '/images/*': rewrite
    };
}

module.exports = config;
{'fraction_non_alphanumeric': 0.13467424573677306, 'fraction_numerical': 0.007870572802798426, 'mean_word_length': 1.495092693565976, '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': '5919178', 'n_tokens_mistral': 687, 'n_tokens_neox': 660, 'n_words': 153}