<commit_before>var pkg = require("./package.json");

/* istanbul ignore next */
var wildcatConfig = {
    generalSettings: {
        // Grab the config file from package.json
        jspmConfigFile: pkg.configFile || (pkg.jspm || {}).configFile || "config.js",

        // Project name
        name: pkg.name,

        // Project version
        version: pkg.version
    },

    clientSettings: {
        // Path to the entry config file relative to the project root
        entry: "public/main.js",

        // Path to the client renderer. This can be a jspm package or a relative path
        renderHandler: "react-wildcat-handoff/client",

        // The target element id where React will be injected
        reactRootElementID: "content"
    },

    serverSettings: {
        // Path to the entry config file relative to the project root
        entry: "public/main.js",

        // Path to the server renderer. This can be a jspm package or a relative path
        renderHandler: "react-wildcat-handoff/server",

        // Directory to save raw binaries (jpg, gif, fonts, etc)
        binDir: "bin",

        // BYO-HTML template
        // htmlTemplate: require("./customHTMLTemplate.js"),

        // Graylog config options for the node server
        // https://www.npmjs.com/package/gelf-pro#configuration
        // graylog: {},

        // Directory to output compiled JavaScript modules
        publicDir: "public",

        // Path to your source JavaScript files
        sourceDir: "src",

        // config options for the app server
        appServer: {
            // One of http2 | https | http
            protocol: "http2",

            hostname: "localhost",

            // App server port
            port: process.env.PORT || 3000,

            // A key/value of urls to proxy
            // e.g. /static -> http://example.com/static
            proxies: {
                "/static": "http://example.com/static"
            }

            // Only applicable when one of http2/https is true
            // https://github.com/indutny/node-spdy#options
            // secureSettings: {
                // Provide your own key / cert / ca
                // key: fs.readFileSync("./ssl/appServer.key"),
                // cert: fs.readFileSync("./ssl/appServer.crt"),
                // ca: fs.readFileSync("./ssl/appServer.csr"),

                // If using http2, use the following protocols
                // protocols: [
                //     "h2",
                //     "spdy/3.1",
                //     "spdy/3",
                //     "spdy/2",
                //     "http/1.1",
                //     "http/1.0"
                // ]
            // }
        },

        // config options for the static server
        staticServer: {
            // An array of domains to allow for cross-origin requests
            corsOrigins: [
                "localhost",
                "example.com"
            ],

            // One of http2 | https | http
            protocol: "http2",

            hostname: "localhost",

            // Static server port
            port: process.env.STATIC_PORT || 4000

            // Only applicable when one of http2/https is true
            // https://github.com/indutny/node-spdy#options
            // secureSettings: {
                // Provide your own key / cert / ca
                // key: fs.readFileSync("./ssl/appServer.key"),
                // cert: fs.readFileSync("./ssl/appServer.crt"),
                // ca: fs.readFileSync("./ssl/appServer.csr"),

                // If using http2, use the following protocols
                // protocols: [
                //     "h2",
                //     "spdy/3.1",
                //     "spdy/3",
                //     "spdy/2",
                //     "http/1.1",
                //     "http/1.0"
                // ]
            // }<commit_msg>fix(example): allow port values to be falsy in production environments<commit_after>var pkg = require("./package.json");

function getPort(port, defaultPort) {
    if ((typeof port !== "undefined") && !(Number(port))) {
        return false;
    }

    return Number(port) || defaultPort;
}

/* istanbul ignore next */
var wildcatConfig = {
    generalSettings: {
        // Grab the config file from package.json
        jspmConfigFile: pkg.configFile || (pkg.jspm || {}).configFile || "config.js",

        // Project name
        name: pkg.name,

        // Project version
        version: pkg.version
    },

    clientSettings: {
        // Path to the entry config file relative to the project root
        entry: "public/main.js",

        // Path to the client renderer. This can be a jspm package or a relative path
        renderHandler: "react-wildcat-handoff/client",

        // The target element id where React will be injected
        reactRootElementID: "content"
    },

    serverSettings: {
        // Path to the entry config file relative to the project root
        entry: "public/main.js",

        // Path to the server renderer. This can be a jspm package or a relative path
        renderHandler: "react-wildcat-handoff/server",

        // Directory to save raw binaries (jpg, gif, fonts, etc)
        binDir: "bin",

        // BYO-HTML template
        // htmlTemplate: require("./customHTMLTemplate.js"),

        // Graylog config options for the node server
        // https://www.npmjs.com/package/gelf-pro#configuration
        // graylog: {},

        // Directory to output compiled JavaScript modules
        publicDir: "public",

        // Path to your source JavaScript files
        sourceDir: "src",

        // config options for the app server
        appServer: {
            // One of http2 | https | http
            protocol: "http2",

            hostname: "localhost",

            // App server port
            port: getPort(process.env.PORT, 3000),

            // A key/value of urls to proxy
            // e.g. /static -> http://example.com/static
            proxies: {
                "/static": "http://example.com/static"
            }

            // Only applicable when one of http2/https is true
            // https://github.com/indutny/node-spdy#options
            // secureSettings: {
                // Provide your own key / cert / ca
                // key: fs.readFileSync("./ssl/appServer.key"),
                // cert: fs.readFileSync("./ssl/appServer.crt"),
                // ca: fs.readFileSync("./ssl/appServer.csr"),

                // If using http2, use the following protocols
                // protocols: [
                //     "h2",
                //     "spdy/3.1",
                //     "spdy/3",
                //     "spdy/2",
                //     "http/1.1",
                //     "http/1.0"
                // ]
            // }
        },

        // config options for the static server
        staticServer: {
            // An array of domains to allow for cross-origin requests
            corsOrigins: [
                "localhost",
                "example.com"
            ],

            // One of http2 | https | http
            protocol: "http2",

            hostname: "localhost",

            // Static server port
            port: getPort(process.env.STATIC_PORT, 4000)

            // Only applicable when one of http2/https is true
            // https://github.com/indutny/node-spdy#options
            // secureSettings: {
                // Provide your own key / cert / ca
                // key: fs.readFileSync("./ssl/appServer.key"),
                // cert: fs.readFileSync("./ssl/appServer.crt"),
                // ca: fs.readFileSync("./ssl/appServer.csr"),

                // If using http2, use the following protocols
                // protocols: [
                //     "h2",
                //     "spdy/3.1",
                //     "spdy/3",
                //     "spdy/2",
                //     "http/1.1",
                //     "http/1.0"
                // ]
            // }
{'fraction_non_alphanumeric': 0.12067457838850719, 'fraction_numerical': 0.008494690818238601, 'mean_word_length': 1.282212086659065, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '2940921', 'n_tokens_mistral': 2240, 'n_tokens_neox': 2077, 'n_words': 584}