<commit_before>
var util = require('util');

var seneca = require('seneca')()
      .use('kafka-transport', {
      	kafka: {namespace: 'seneca', group: 'seneca', requestTopic: 'request', responseTopic: 'response'},
        microbial: {zkroot: 'localhost:2181', namespace: 'seneca', start: 'all'}
      })
  		.client({type:'kafka'});

function print(err,result) {
  if(err) return console.error(err);
  console.log(util.inspect(result).replace(/\n/g,' '));
}

seneca.ready(function(){
  var s = this;
  setTimeout(function() {
    s.act({plugin:'salestax', cmd:'salestax', net:100, country:'IE'}, print);
		s.act({plugin:'salestax', cmd:'salestax', net:100, country:'UK'}, print);
  }, 500);
});

setTimeout(function(){process.exit();}, 5000);<commit_msg>reduced timeout for client to be finished by<commit_after>
var util = require('util');

var seneca = require('seneca')()
      .use('kafka-transport', {
      	kafka: {namespace: 'seneca', group: 'seneca', requestTopic: 'request', responseTopic: 'response'},
        microbial: {zkroot: 'localhost:2181', namespace: 'seneca', start: 'all'}
      })
  		.client({type:'kafka'});

function print(err,result) {
  if(err) return console.error(err);
  console.log(util.inspect(result).replace(/\n/g,' '));
}

seneca.ready(function(){
  var s = this;
  setTimeout(function() {
    s.act({plugin:'salestax', cmd:'salestax', net:100, country:'IE'}, print);
		s.act({plugin:'salestax', cmd:'salestax', net:100, country:'UK'}, print);
  }, 500);
});

setTimeout(function(){process.exit();}, 2000);
{'fraction_non_alphanumeric': 0.21386908619572262, 'fraction_numerical': 0.0220349967595593, 'mean_word_length': 5.03125, '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': '1625726', 'n_tokens_mistral': 557, 'n_tokens_neox': 527, 'n_words': 104}