<commit_before>var Constants = require('./constants');
var Actions = require('./actions');
var Store = require('./store');
var Dispatcher = require('./dispatcher');

var  dispatcher = new Dispatcher();

module.exports = {
	
	/**
	* createActions
	* @param {object} actions
	*/
	createActions: function(actions){
		return new Actions(dispatcher, actions);
	},
	
	/**
	* createStore
	* @param {object} storeMixin
	* @param {array} handlers
	*/
	createStore: function(storeMixin, handlers){
		return new Store(dispatcher, storeMixin, handlers);
	},

	/**
	* createConstants
	* @param {array} constants
	*
	*/
	createConstants: function(constants, prefix){
		return new Constants(constants, prefix);
	},

	/**
	* dispatch a message
	* @param {string} constant
	* @param {object} payload
	*/
	dispatch: function(constant, payload){
		dispatcher.dispatch(constant, payload);
	}
	
};
<commit_msg>Update index.js<commit_after>var Constants = require('./constants');
var Actions = require('./actions');
var Store = require('./store');
var Mixin = require('./mixin');
var Dispatcher = require('./dispatcher');

var  dispatcher = new Dispatcher();

module.exports = {
	
	/**
	* createActions
	* @param {object} actions
	*/
	createActions: function(actions){
		return new Actions(dispatcher, actions);
	},
	
	/**
	* createStore
	* @param {object} storeMixin
	* @param {array} handlers
	*/
	createStore: function(storeMixin, handlers){
		return new Store(dispatcher, storeMixin, handlers);
	},

	/**
	* createConstants
	* @param {array} constants
	*
	*/
	createConstants: function(constants, prefix){
		return new Constants(constants, prefix);
	},

	/**
	* dispatch a message
	* @param {string} constant
	* @param {object} payload
	*/
	dispatch: function(constant, payload){
		dispatcher.dispatch(constant, payload);
	},

	mixin: Mixin
	
};

{'fraction_non_alphanumeric': 0.15590809628008753, 'fraction_numerical': 0.0, 'mean_word_length': 4.427299703264095, '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': '5469413', 'n_tokens_mistral': 600, 'n_tokens_neox': 568, 'n_words': 140}