<commit_before>/**
 * @module deep
 * @author <NAME> <<EMAIL>>
 * TODO : adding events on : 
 * 		modes : changed
 * 		
 */
if (typeof define !== 'function') {
	var define = require('amdefine')(module);
}
define([
	"require",
	"./lib/utils",
	"./lib/nodes/query",
	"./lib/nodes/dq-protocol",
	"./lib/compose",
	"./lib/collider",
	"./lib/compiler",
	"./lib/classes",
	"./lib/utils/interpret",
	"./lib/emitter",
	"./lib/errors",
	"./lib/nodes/rql",
	"./lib/promise",
	"./lib/context",
	"./lib/nodes/nodes",
	"./lib/utils/logs",
	"./lib/nodes/deep-load",
	"./lib/utils/deep-equal",
	"./lib/ocm",
	"./lib/nodes/traversal",
	"./lib/flatten",
	"./lib/protocol",
	"./lib/sheet",
	"./lib/nodes/nodes-composer",
	"./lib/nodes/nodes-chain",
	"./lib/restrictions",
	"./lib/validator"
	//"./lib/schema"
], function(require, utils,  query, dq, composer, collider, compiler, classes, interpret, emitter, errors, rql,promise, context, nodes, logs,  deepLoader, deepEqual, ocm, traversal, flattener, protocol, sheets, NodesComposer, NodesChain, restrictions, Validator) {

	/*if (typeof deep !== 'undefined') {
		console.log("***********************************************************************************");
		console.warn("You trying to load deepjs modules two times (maybe from two differents node_modules (or bower) module)");
		console.warn("It could be voluntary. If not : you should think it twice. Protocols and context are local to deep instances (by examples).");
		console.log("***********************************************************************************");
	}*/

	var deep = {};

	deep.utils = utils;

	deep.transformers = {};

	deep.log = logs.log;
	deep.warn = logs.warn;
	deep.error = logs.error;
	deep.setLogger = logs.setMain;

	deep.nodes = NodesChain.start;
	deep.utils.nodes = nodes;

	/**
	 * are you on nodejs or not
	 * @static
	 * @property isNode
	 * @type {Boolean}
	 */
	deep.isNode = (typeof process !== 'undefined' && process.versions && process.versions.node);<commit_msg>link deep.debug<commit_after>/**
 * @module deep
 * @author <NAME> <<EMAIL>>
 * TODO : adding events on : 
 * 		modes : changed
 * 		
 */
if (typeof define !== 'function') {
	var define = require('amdefine')(module);
}
define([
	"require",
	"./lib/utils",
	"./lib/nodes/query",
	"./lib/nodes/dq-protocol",
	"./lib/compose",
	"./lib/collider",
	"./lib/compiler",
	"./lib/classes",
	"./lib/utils/interpret",
	"./lib/emitter",
	"./lib/errors",
	"./lib/nodes/rql",
	"./lib/promise",
	"./lib/context",
	"./lib/nodes/nodes",
	"./lib/utils/logs",
	"./lib/nodes/deep-load",
	"./lib/utils/deep-equal",
	"./lib/ocm",
	"./lib/nodes/traversal",
	"./lib/flatten",
	"./lib/protocol",
	"./lib/sheet",
	"./lib/nodes/nodes-composer",
	"./lib/nodes/nodes-chain",
	"./lib/restrictions",
	"./lib/validator"
	//"./lib/schema"
], function(require, utils,  query, dq, composer, collider, compiler, classes, interpret, emitter, errors, rql,promise, context, nodes, logs,  deepLoader, deepEqual, ocm, traversal, flattener, protocol, sheets, NodesComposer, NodesChain, restrictions, Validator) {

	/*if (typeof deep !== 'undefined') {
		console.log("***********************************************************************************");
		console.warn("You trying to load deepjs modules two times (maybe from two differents node_modules (or bower) module)");
		console.warn("It could be voluntary. If not : you should think it twice. Protocols and context are local to deep instances (by examples).");
		console.log("***********************************************************************************");
	}*/

	var deep = {};

	deep.utils = utils;

	deep.transformers = {};

	deep.log = logs.log;
	deep.debug = logs.debug;
	deep.warn = logs.warn;
	deep.error = logs.error;
	deep.setLogger = logs.setMain;

	deep.nodes = NodesChain.start;
	deep.utils.nodes = nodes;

	/**
	 * are you on nodejs or not
	 * @static
	 * @property isNode
	 * @type {Boolean}
	 */
	deep.isNode = (typeof process !== 'undefined' && process.versions && process.versions.node);
{'fraction_non_alphanumeric': 0.26727996021879663, 'fraction_numerical': 0.0, 'mean_word_length': 3.9605425400739827, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1227031', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1335, 'n_words': 304}