<commit_before>'use strict';

var omni = require('omni-di');

var createDependencies = function (mongoose, di) {
	di.assemble([
		[
			{
				name: 'gravatar',
				obj: require('gravatar')
			},
			{
				name : 'User',
				factory : function() {
					var userSchema = require('../domain/models/user').createSchema();
					return mongoose.model('User', userSchema);
				}
			}
		]
	]);
};

module.exports.setup = function (mongoose) {
	// Attaches a convenience helper .inject(di) to Function.prototype
	omni.addInjectToFunctionPrototype(); 
	var di = omni();

	createDependencies(di, mongoose);

	return di;
};<commit_msg>fix parameter order error<commit_after>'use strict';

var omni = require('omni-di');

var createDependencies = function (mongoose, di) {
	di.assemble([
		[
			{
				name: 'gravatar',
				obj: require('gravatar')
			},
			{
				name : 'User',
				factory : function() {
					var userSchema = require('../domain/models/user').createSchema();
					return mongoose.model('User', userSchema);
				}
			}
		]
	]);
};

module.exports.setup = function (mongoose) {
	// Attaches a convenience helper .inject(di) to Function.prototype
	omni.addInjectToFunctionPrototype(); 
	var di = omni();

	createDependencies(mongoose, di);

	return di;
};
{'fraction_non_alphanumeric': 0.15789473684210525, 'fraction_numerical': 0.0, 'mean_word_length': 3.482142857142857, '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': '803077', 'n_tokens_mistral': 480, 'n_tokens_neox': 415, 'n_words': 89}