<commit_before>var path = require('path'),
	fs = require('fs'),
	getModulePath = require('../utils/moduleloader').getModulePath;

module.exports = function(){
	// console.log('BUILD MODULE PATHS', this.moduleIds);
	var modulepath, success = true;

	Object.keys(this.moduleIds).forEach(function(moduleId){
		modulepath = getModulePath(this.path, this.moduleIds[moduleId]);
		if(!modulepath && this.requiredModules.indexOf(moduleId) !== -1) success = false;
		this.paths[moduleId] = modulepath;
	}, this);

	//static path
	var staticPath = path.join(this.path, this.staticDir);
	this.paths.static = fs.existsSync(staticPath) ? staticPath : false;

	return success;
};<commit_msg>CORE: vanity touch<commit_after>var path = require('path'),
    fs = require('fs'),
    getModulePath = require('../utils/moduleloader').getModulePath;

module.exports = function(){
    // console.log('BUILD MODULE PATHS', this.moduleIds);
    var modulepath, success = true;
        this.missingModules = [];

    Object.keys(this.moduleIds).forEach(function(moduleId) {
        modulepath = getModulePath(this.path, this.moduleIds[moduleId]);

        if (!modulepath && this.requiredModules.indexOf(moduleId) !== -1) {
            //TODO: Consider collecting errors so we can check on flight!
            this.missingModules.push(moduleId);
            success = false;
        }

        this.paths[moduleId] = modulepath;
    }, this);

    //static path
    var staticPath = path.join(this.path, this.staticDir);
    this.paths.static = fs.existsSync(staticPath) ? staticPath : false;

    return success;
};
{'fraction_non_alphanumeric': 0.1464487743557511, 'fraction_numerical': 0.001257071024512885, 'mean_word_length': 3.738095238095238, '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': '3684828', 'n_tokens_mistral': 483, 'n_tokens_neox': 474, 'n_words': 97}