<commit_before>"use strict";

var fs = require('fs');
var path = require('path');
var extend = require('extend');
var template = require('lodash/template');

var _fileNumber = 1;
var _config = {
    onEachFile: function() {},
    onCompleted: function() {}
};

module.exports = function() {

    return {
        run: run,
        setConfig: setConfig
    }

    function setConfig(config) {
        _config = extend(_config, config);
    }

    function run(callback) {
        _config.files.forEach(function(element, index, array) {
            templateFile(element);
        });
    }

    function templateFile(filePaths) {
        var compiled;
        var output;
console.log(filePaths);
console.log(path.resolve(filePaths.src));
        fs.readFile(filePaths.src, 'utf8', function(err, fileContents) {
            if (err) return console.error(err)

            compiled = template(fileContents);<commit_msg>Strip console logs<commit_after>"use strict";

var fs = require('fs');
var path = require('path');
var extend = require('extend');
var template = require('lodash/template');

var _fileNumber = 1;
var _config = {
    onEachFile: function() {},
    onCompleted: function() {}
};

module.exports = function() {

    return {
        run: run,
        setConfig: setConfig
    }

    function setConfig(config) {
        _config = extend(_config, config);
    }

    function run(callback) {
        _config.files.forEach(function(element, index, array) {
            templateFile(element);
        });
    }

    function templateFile(filePaths) {
        var compiled;
        var output;

        fs.readFile(filePaths.src, 'utf8', function(err, fileContents) {
            if (err) return console.error(err)

            compiled = template(fileContents);
{'fraction_non_alphanumeric': 0.1310734463276836, 'fraction_numerical': 0.0022598870056497176, 'mean_word_length': 2.7521186440677967, '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': '311057', 'n_tokens_mistral': 516, 'n_tokens_neox': 501, 'n_words': 117}