<commit_before>module.exports = exports = function (app, express, server, dir) {
	var modules = {};
	dir = dir || __dirname
	
	// Walk this directory recrusivly, and make a list of all the module you find
	utils.walk(dir + "/").forEach(function(file) {
		if (file.split(".").last === "js" && file !== 'loader.js') {
			var name = file.replace('.js', '');
			modules[name] = require('./' + file);
		}
	});
	
	// And now we sort them
	modules.sort(function (a, b) {
		return ( a.priority || 0 ) - ( b.priority || 0 );
	});
	
	// For each one
	for (var i = 0; i < modules.length; i++) {
		var route = modules[i];
		
		// If it exports and init function, call it first
		if (typeof modules[route].init === 'function') {
			modules[route].init(app, express, server);
		}
		
		// This is a bit complicated. I wanted to allow the modules to export other things as well,
		// So what I did was to default to using exports[get/put/post/delete] as routes, and everything else as whatever.<commit_msg>Added a ;<commit_after>module.exports = exports = function (app, express, server, dir) {
	var modules = {};
	dir = dir || __dirname;
	
	// Walk this directory recrusivly, and make a list of all the module you find
	utils.walk(dir + "/").forEach(function(file) {
		if (file.split(".").last === "js" && file !== 'loader.js') {
			var name = file.replace('.js', '');
			modules[name] = require('./' + file);
		}
	});
	
	// And now we sort them
	modules.sort(function (a, b) {
		return ( a.priority || 0 ) - ( b.priority || 0 );
	});
	
	// For each one
	for (var i = 0; i < modules.length; i++) {
		var route = modules[i];
		
		// If it exports and init function, call it first
		if (typeof modules[route].init === 'function') {
			modules[route].init(app, express, server);
		}
		
		// This is a bit complicated. I wanted to allow the modules to export other things as well,
		// So what I did was to default to using exports[get/put/post/delete] as routes, and everything else as whatever.
{'fraction_non_alphanumeric': 0.16084977238239756, 'fraction_numerical': 0.0030349013657056147, 'mean_word_length': 3.0952380952380953, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1498403', 'n_tokens_mistral': 675, 'n_tokens_neox': 612, 'n_words': 231}