<commit_before>/*
Script: meso.js
	General importer for Meso.

License and Copyright:
	Copyright 2010, <NAME> <keetology.com>
	Released under an MIT-Style License
*/

(function(){

var adapter = require('./lib/adapters');

exports.setup = function(global, engine){
	if (typeof global != 'object'){
		throw new TypeError('meso: Argument `global` to meso.setup() must be an object.');
	}

	require('./vendor/mootools/mootools').into(global);
	require('./vendor/mootools/extensions').into(global);
	
	engine = engine.toString().split('#');
	var name = engine[0], version = engine[1];
	if (name === '' || version === ''){
		throw new TypeError('meso: Argument `engine` to meso.setup must be a string <engineName>#<engineVersion>');
	} else {
		var Engine;
		try {
			Engine = require('./engines/' + name + '/' + adapter.find(version, require('./engines/'+ name + '/versions').versions) + '/engine.js').engine;
			if (!Engine.global) Engine.global = global;
		} catch(e){
			Engine = null;
			throw new Error('meso: No adapter found for "' + name + '" version ' + version + '.');
		}
		if (Engine) global.Engine = Engine;
	}

	return Engine;
};

})();<commit_msg>* [importer] Removed dangling .js.<commit_after>/*
Script: meso.js
	General importer for Meso.

License and Copyright:
	Copyright 2010, <NAME> <keetology.com>
	Released under an MIT-Style License
*/

(function(){

var adapter = require('./lib/adapters');

exports.setup = function(global, engine){
	if (typeof global != 'object'){
		throw new TypeError('meso: Argument `global` to meso.setup() must be an object.');
	}

	require('./vendor/mootools/mootools').into(global);
	require('./vendor/mootools/extensions').into(global);

	engine = engine.toString().split('#');
	var name = engine[0], version = engine[1];
	if (name === '' || version === ''){
		throw new TypeError('meso: Argument `engine` to meso.setup must be a string <engineName>#<engineVersion>');
	} else {
		var Engine;
		try {
			Engine = require('./engines/' + name + '/' + adapter.find(version, require('./engines/'+ name + '/versions').versions) + '/engine').engine;
			if (!Engine.global) Engine.global = global;
		} catch(e){
			Engine = null;
			throw new Error('meso: No adapter found for "' + name + '" version ' + version + '.');
		}
		if (Engine) global.Engine = Engine;
	}

	return Engine;
};

})();
{'fraction_non_alphanumeric': 0.18688384054864982, 'fraction_numerical': 0.005143591941705958, 'mean_word_length': 4.06290672451193, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1917775', 'n_tokens_mistral': 793, 'n_tokens_neox': 748, 'n_words': 204}