<commit_before>/**
 * Entry point for the Zenith ESB
 */
var cluster = require('cluster')
var logger = require('./lib/logger');
var MessageFormatter = require('./lib/message_formatter');
var messageFormatter = new MessageFormatter();
var serverConfig = require('./configuration/server_config');
var TRANSPORT_PATH = './lib/transport/';
/*
 * read the server_config.json file and check for the type of 
 * transport handlers and their configurations. create a loop
 * or some thing and start them. pass the sequenceHandler to them
 */

/*
 * following part is hard coded to recieve http requests
 */


//Code to run if we're in the master process
if (cluster.isMaster) {
  // Count the machine's CPUs
	logger.info('Zenith', 'Starting Zenith ESB .....');
    var cpuCount = require('os').cpus().length;
    logger.info('Zenith', 'Starting process(es) on ' + cpuCount +
    		' core(s)');<commit_msg>added clustering to start esb on all the cpu cores<commit_after>/**
 * Entry point for the Zenith ESB
 */
var cluster = require('cluster')
var logger = require('./lib/logger');
var MessageFormatter = require('./lib/message_formatter');
var messageFormatter = new MessageFormatter();
var serverConfig = require('./configuration/server_config');
var TRANSPORT_PATH = './lib/transport/';
/*
 * read the server_config.json file and check for the type of 
 * transport handlers and their configurations. create a loop
 * or some thing and start them. pass the sequenceHandler to them
 */

/*
 * following part is hard coded to recieve http requests
 */


//Code to run if we're in the master process
if (cluster.isMaster) {
  // Count the machine's CPUs
	logger.info('Zenith', 'Starting Zenith ESB .....');
    var cpuCount = require('os').cpus().length;
    logger.info('Zenith', 'Starting process(es) on ' + cpuCount +
    		' core(s)');
    		
{'fraction_non_alphanumeric': 0.1294885745375408, 'fraction_numerical': 0.0, 'mean_word_length': 3.8779840848806364, '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': '280040', 'n_tokens_mistral': 534, 'n_tokens_neox': 509, 'n_words': 192}