<commit_before>'use strict'

// Modules
var vertigo = require('vertigo');

// Create server
var client = vertigo.createClient({ port : 21042, host : '192.168.0.100' });

// Listen petitions
module.exports = {

  nodes : require('./cmd/nodes' ).bind( null, client ),
  nodeByName : require('./cmd/nodeByName' ).bind( null, client ),
  nodeByIP : require('./cmd/nodeByIP' ).bind( null, client ),
  addNode : require('./cmd/addNode' ).bind( null, client ),
  addNodeWithName : require('./cmd/addNodeWithName' ).bind( null, client ),
  removeNode : require('./cmd/removeNode' ).bind( null, client ),
  removeNodeByName : require('./cmd/removeNodeByName' ).bind( null, client ),
  addImageToAllNodes : require('./cmd/addImageToAllNodes' ).bind( null, client ),
  removeImageFromAllNodes : require('./cmd/removeImageFromAllNodes' ).bind( null, client ),
  addImageToNodeByIP : require('./cmd/addImageToNodeByIP' ).bind( null, client ),
  addImageToNodeByName : require('./cmd/addImageToNodeByName' ).bind( null, client ),
  removeImageByNodeByIP : require('./cmd/removeImageByNodeByIP' ).bind( null, client ),
  removeImageByNodeByName : require('./cmd/removeImageByNodeByName' ).bind( null, client ),
  updateAllImagesOfAllNodes : require('./cmd/updateAllImagesOfAllNodes' ).bind( null, client ),
  updateImageOfAllNodes : require('./cmd/updateImageOfAllNodes' ).bind( null, client ),
  updateImageOfNode : require('./cmd/updateImageOfNode' ).bind( null, client ),
  scaleImageInAllNode : require('./cmd/scaleImageInAllNode' ).bind( null, client ),
  scaleImageInNodeByIP : require('./cmd/scaleImageInNodeByIP' ).bind( null, client ),
  scaleImageInNodeByName : require('./cmd/scaleImageInNodeByName' ).bind( null, client ),
  registerService : require('./cmd/registerService' ).bind( null, client ),
  monitorUpdate : require('./cmd/monitorUpdate' ).bind( null, client )

};

/*
module.exports.registerService( function(){
  console.log( arguments );
});
*/

setInterval( module.exports.monitorUpdate, 10 * 1000 );<commit_msg>Added server<commit_after>'use strict'

// Modules
var vertigo = require('vertigo');

// Create server and client
var server = vertigo.createServer( 21042 );
var client = vertigo.createClient({ host : 'magallanes-server', port : 21042 });

// Listen petitions
module.exports = {

  nodes : require('./cmd/nodes' ).bind( null, client ),
  nodeByName : require('./cmd/nodeByName' ).bind( null, client ),
  nodeByIP : require('./cmd/nodeByIP' ).bind( null, client ),
  addNode : require('./cmd/addNode' ).bind( null, client ),
  addNodeWithName : require('./cmd/addNodeWithName' ).bind( null, client ),
  removeNode : require('./cmd/removeNode' ).bind( null, client ),
  removeNodeByName : require('./cmd/removeNodeByName' ).bind( null, client ),
  addImageToAllNodes : require('./cmd/addImageToAllNodes' ).bind( null, client ),
  removeImageFromAllNodes : require('./cmd/removeImageFromAllNodes' ).bind( null, client ),
  addImageToNodeByIP : require('./cmd/addImageToNodeByIP' ).bind( null, client ),
  addImageToNodeByName : require('./cmd/addImageToNodeByName' ).bind( null, client ),
  removeImageByNodeByIP : require('./cmd/removeImageByNodeByIP' ).bind( null, client ),
  removeImageByNodeByName : require('./cmd/removeImageByNodeByName' ).bind( null, client ),
  updateAllImagesOfAllNodes : require('./cmd/updateAllImagesOfAllNodes' ).bind( null, client ),
  updateImageOfAllNodes : require('./cmd/updateImageOfAllNodes' ).bind( null, client ),
  updateImageOfNode : require('./cmd/updateImageOfNode' ).bind( null, client ),
  scaleImageInAllNode : require('./cmd/scaleImageInAllNode' ).bind( null, client ),
  scaleImageInNodeByIP : require('./cmd/scaleImageInNodeByIP' ).bind( null, client ),
  scaleImageInNodeByName : require('./cmd/scaleImageInNodeByName' ).bind( null, client ),
  registerService : require('./cmd/registerService' ).bind( null, client ),
  monitorUpdate : require('./cmd/monitorUpdate' ).bind( null, client )

};

setInterval( module.exports.monitorUpdate, 10 * 1000 );
{'fraction_non_alphanumeric': 0.1622294103010699, 'fraction_numerical': 0.00920627021647176, 'mean_word_length': 4.937961595273264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '4051813', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1200, 'n_words': 265}