<commit_before>"use strict"; // run code in ES5 strict mode

var fs = require("fs"),
    toSrc = require("toSrc"),
    path = require("path"),
    _ = require("underscore"),
    clientConfig = require("../../client/config.client.js"),
    template = _.template(fs.readFileSync(__dirname + "/templates/bootstrap.client.ejs", "utf8"));

function generateClientConfig(config) {

    // Copies only the values of clientConfig so we don't expose confidential data
    _(clientConfig).each(function copyConfigValue(value, key){
        clientConfig[key] = config[key];
    });

    return clientConfig;
}

function renderBootstrapClient(config) {
    var clientConfig = generateClientConfig(config);

    return template({
        clientConfig: clientConfig,
        toSrc: toSrc
    });
}

module.exports = renderBootstrapClient;<commit_msg>removed unused require to path<commit_after>"use strict"; // run code in ES5 strict mode

var fs = require("fs"),
    toSrc = require("toSrc"),
    _ = require("underscore"),
    clientConfig = require("../../client/config.client.js"),
    template = _.template(fs.readFileSync(__dirname + "/templates/bootstrap.client.ejs", "utf8"));

function generateClientConfig(config) {

    // Copies only the values of clientConfig so we don't expose confidential data
    _(clientConfig).each(function copyConfigValue(value, key){
        clientConfig[key] = config[key];
    });

    return clientConfig;
}

function renderBootstrapClient(config) {
    var clientConfig = generateClientConfig(config);

    return template({
        clientConfig: clientConfig,
        toSrc: toSrc
    });
}

module.exports = renderBootstrapClient;
{'fraction_non_alphanumeric': 0.127633955448525, 'fraction_numerical': 0.002408187838651415, 'mean_word_length': 3.8034682080924855, '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': '3856602', 'n_tokens_mistral': 461, 'n_tokens_neox': 450, 'n_words': 113}