<commit_before>"use strict";

var webpack = require("webpack");
var path = require("path");
var extend = require("node.extend");
var util = require("util");
var fs = require("fs");
var BundleResourcesPlugin = require("./BundleResourcesPlugin");
var resolveCoreModules = require("./resolveCore");

var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');

var CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;

var defaults = {
    minimize: false,
    noUglify: false,
    debug: true,
    linkCore: false,
    devServer: true,
    port: 8080,
    host: "http://localhost",
    publicPath: "/target/",
    devtool: "eval",
    verbose: false,
    showConfig: true,
    mainEntry: "./Main",
    trace: true,
    errors: true
};

function getEntry(settings) {
    var entry = {
        index: [
            //"babel-polyfill",
            settings.mainEntry
        ]
    };
    if (settings.devServer) {
        entry.index.unshift('webpack-dev-server/client?' + settings.authority);
        entry.index.unshift('webpack/hot/only-dev-server');
    }
    return entry;
}
function getOutput(settings) {
    var output = {
        publicPath: settings.fullPublicPath
    };

    output.filename = "[name].js";
    output.chunkFilename = "[name]-[id].js";
    output.path = fullPath("../target/");

    return output;
}
function getResolve(settings) {
    var root = [];
    root.push(fullPath("../mylibs"));

    var resolves = {
        root: root,
        alias: {
            "antiscroll": fullPath("../libs/antiscroll"),
            "bem": fullPath("../mylibs/utils/commonUtils"),
            'react/lib/ReactMount': 'react-dom/lib/ReactMount'
        },
        extensions: ["", ".ts", ".tsx", ".js", ".jsx", ".less", ".html"]
    };

    return resolves;
}

function getDebugOrCdnPath(settings, file) {
    var path;
    if (settings.minimize) {
        path = settings.fullPublicPath + path.basename(file);
    }
    else{
        path = "/" + file;
    }
    return path.replace(/\\/g, '/');
}<commit_msg>build fix<commit_after>"use strict";

var webpack = require("webpack");
var path = require("path");
var extend = require("node.extend");
var util = require("util");
var fs = require("fs");
var BundleResourcesPlugin = require("./BundleResourcesPlugin");
var resolveCoreModules = require("./resolveCore");

var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');

var CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;

var defaults = {
    minimize: false,
    noUglify: false,
    debug: true,
    linkCore: false,
    devServer: true,
    port: 8080,
    host: "http://localhost",
    publicPath: "/target/",
    devtool: "eval",
    verbose: false,
    showConfig: true,
    mainEntry: "./Main",
    trace: true,
    errors: true
};

function getEntry(settings) {
    var entry = {
        index: [
            //"babel-polyfill",
            settings.mainEntry
        ]
    };
    if (settings.devServer) {
        entry.index.unshift('webpack-dev-server/client?' + settings.authority);
        entry.index.unshift('webpack/hot/only-dev-server');
    }
    return entry;
}
function getOutput(settings) {
    var output = {
        publicPath: settings.fullPublicPath
    };

    output.filename = "[name].js";
    output.chunkFilename = "[name]-[id].js";
    output.path = fullPath("../target/");

    return output;
}
function getResolve(settings) {
    var root = [];
    root.push(fullPath("../mylibs"));

    var resolves = {
        root: root,
        alias: {
            "antiscroll": fullPath("../libs/antiscroll"),
            "bem": fullPath("../mylibs/utils/commonUtils"),
            'react/lib/ReactMount': 'react-dom/lib/ReactMount'
        },
        extensions: ["", ".ts", ".tsx", ".js", ".jsx", ".less", ".html"]
    };

    return resolves;
}

function getDebugOrCdnPath(settings, file) {
    var filePath;
    if (settings.minimize) {
        filePath = settings.fullPublicPath + path.basename(file);
    }
    else{
        filePath = "/" + file;
    }
    return filePath.replace(/\\/g, '/');
}
{'fraction_non_alphanumeric': 0.1650763358778626, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 2.7106194690265486, 'pattern_counts': {'":': 4, '<': 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': '2728267', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1300, 'n_words': 261}