<commit_before>'use strict';

var models = require('./../models/');
var StoreCommands = require('./../commands/store');
var FormCommands = require('./../commands/form');
var ConfigCommands = require('./../commands/config');

module.exports = (mqttClient,dispatcher) => {
  mqttClient.listenOnTopic('/config')
    .subscribe(
      (d) => {
        ConfigCommands.full().take(1).subscribe(
          cfg => {
            mqttClient.publishObj(d.replyTo,{payload:JSON.stringify(cfg)});
          }
        );<commit_msg>Adding correlationId to ping response<commit_after>'use strict';

var models = require('./../models/');
var StoreCommands = require('./../commands/store');
var FormCommands = require('./../commands/form');
var ConfigCommands = require('./../commands/config');

module.exports = (mqttClient,dispatcher) => {
  mqttClient.listenOnTopic('/config')
    .subscribe(
      (d) => {
        ConfigCommands.full().take(1).subscribe(
          cfg => {
            mqttClient.publishObj(d.replyTo,{
              correlationId:d.correlationId,
              payload:JSON.stringify(cfg)
            });
          }
        );
{'fraction_non_alphanumeric': 0.18093556928508384, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 2.6699029126213594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2983870', 'n_tokens_mistral': 319, 'n_tokens_neox': 317, 'n_words': 50}