<commit_before>var _file_get,
	_file_getScript,
	_file_getStyle,
	_file_getJson;

(function(){

	_file_get = createTransport(function(){
		return __cfg.getFile || file_get;
	});
	_file_getScript = createTransport(function(){
		return __cfg.getScript || file_getScript;
	});
	_file_getStyle = createTransport(function(){
		return __cfg.getStyle || file_getStyle;
	});
	_file_getJson = createTransport(function(){
		return __cfg.getData || file_getJson;
	});


	listeners_on('config', function (config) {
		var modules = config.modules;
		if (modules == null) {
			return;
		}
		var fn = Loaders[modules];
		if (is_Function(fn) === false) {
			log_warn('Module system is not supported: ' + modules);
			return;
		}
		fn();
	});

	function createTransport(loaderFactoryFn) {
		return function(path_){
			var fn = loaderFactoryFn(),
				path = path_,
				v = _opts.version;
			if (v != null) {
				path = path_appendQuery(path, 'v', v);
			}
			return fn(path);
		};
	}

	var Loaders = {
		'default': function () {
			__cfg.getScript = __cfg.getFile = null;
		},
		'include': function () {
			__cfg.getScript = getter('js');
			__cfg.getFile   = getter('load');

			var lib = include;
			function getter(name) {
				return function(path){
					return class_Dfr.run(function(resolve, reject){
						lib.instance('/')[name](path + '::Module').done(function(resp){
							var exports = name === 'js'
								? resp.Module
								: resp[name].Module;

							resolve(exports);
						});
					});
				}
			}
		}
	};

	if (typeof include !== 'undefined' && is_Function(include && include.js)) {
		mask_config('modules', 'include');
	}
}());<commit_msg>add (Modules) use also css loaders when `includejs` is selected<commit_after>var _file_get,
	_file_getScript,
	_file_getStyle,
	_file_getJson;

(function(){

	_file_get = createTransport(function(){
		return __cfg.getFile || file_get;
	});
	_file_getScript = createTransport(function(){
		return __cfg.getScript || file_getScript;
	});
	_file_getStyle = createTransport(function(){
		return __cfg.getStyle || file_getStyle;
	});
	_file_getJson = createTransport(function(){
		return __cfg.getData || file_getJson;
	});


	listeners_on('config', function (config) {
		var modules = config.modules;
		if (modules == null) {
			return;
		}
		var fn = Loaders[modules];
		if (is_Function(fn) === false) {
			log_warn('Module system is not supported: ' + modules);
			return;
		}
		fn();
	});

	function createTransport(loaderFactoryFn) {
		return function(path_){
			var fn = loaderFactoryFn(),
				path = path_,
				v = _opts.version;
			if (v != null) {
				path = path_appendQuery(path, 'v', v);
			}
			return fn(path);
		};
	}

	var Loaders = {
		'default': function () {
			__cfg.getScript = __cfg.getFile = null;
		},
		'include': function () {
			__cfg.getScript = getter('js');
			__cfg.getStyle  = getter('css');
			__cfg.getFile   = getter('load');

			var lib = include;
			function getter(name) {
				return function(path){
					return class_Dfr.run(function(resolve, reject){
						lib.instance('/')[name](path + '::Module').done(function(resp){
							if ('css' === name) {
								return resolve();
							}
							if ('js' === name) {
								return resolve(resp.Module);
							}
							resolve(resp[name].Module);
						});
					});
				}
			}
		}
	};

	if (typeof include !== 'undefined' && is_Function(include && include.js)) {
		mask_config('modules', 'include');
	}
}());
{'fraction_non_alphanumeric': 0.1607923099330032, 'fraction_numerical': 0.0, 'mean_word_length': 3.4138817480719794, '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': '902732', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1164, 'n_words': 235}