<commit_before>function isEnabled(mod, options) {
	if(!options.enabled && !options.disabled) return true;
	else if(options.disabled && !~options.disabled.indexOf(mod)) return true;
	else if(options.enabled && ~options.enabled.indexOf(mod)) return true;
	else return false;
}

function addAddition(addition, Eris, options = {}) {
	console.log("adding", addition);
	if(!isEnabled(addition, options)) return;
	console.log("enabled");
	console.log(addition.replace(".", "/"));

	let mod = require(`./lib/${addition.replace(".", "/")}`);
	mod(Eris);
	mod.deps.forEach(dep => addAddition(dep, Eris));
}

const fs = require("fs");
const libdir = require("path").resolve("lib");<commit_msg>more debug<commit_after>function isEnabled(mod, options) {
	if(!options.enabled && !options.disabled) return true;
	else if(options.disabled && !~options.disabled.indexOf(mod)) return true;
	else if(options.enabled && ~options.enabled.indexOf(mod)) return true;
	else return false;
}

function addAddition(addition, Eris, options = {}) {
	console.log("adding", addition);
	if(!isEnabled(addition, options)) return;
	console.log("enabled");
	console.log(addition.replace(".", "/"));

	let mod = require(`./lib/${addition.replace(".", "/")}`);
	mod(Eris);
	mod.deps.forEach(dep => addAddition(dep, Eris));
}

const fs = require("fs");
const libdir = require("path").resolve("./lib");
{'fraction_non_alphanumeric': 0.20102714600146734, 'fraction_numerical': 0.0, 'mean_word_length': 6.030927835051546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '429527', 'n_tokens_mistral': 441, 'n_tokens_neox': 432, 'n_words': 88}