<commit_before>/* This is a first example of micro service business logic */

var service = require( '../service' ) // to use npm package, replace by: require('micro-service-toolkit')
// config contains all definitions of input and output wiring
var config = require('./config.json')

service.init( config, function(){
  // TODO: process things after intialization
})

// ============================================================================
// Receive messages from topic: 
service.inbound['testMessageProcessor'].processMessage = 
  function ( message ) {<commit_msg>test service<commit_after>/* This is a first example of microservice business logic */
var service = require( '../service' ) // to use npm package, replace by: require('micro-service-toolkit')

// config contains all definitions of input and output wiring
var config = require('./config.json')

service.init( config, function(){
  // TODO: process things after intialization
})

// ============================================================================
// Receive messages from topic: 
service.inbound['testMessageProcessor'].processMessage = 
  function ( message ) {
{'fraction_non_alphanumeric': 0.2382608695652174, 'fraction_numerical': 0.0, 'mean_word_length': 5.026178010471204, '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': '2103670', 'n_tokens_mistral': 274, 'n_tokens_neox': 255, 'n_words': 98}