<commit_before>'use strict';

// const Producer = require('./Producer');
// const HighLevelProducer = require('./HighLevelProducer');
const Comsumer = require('./Consumer');

module.exports = app => {
  app.addSingleton('kafka', createKafka);
};

function createKafka(config, app) {
  const comsumerConfig = config.consumerOptions;
  function comsumer(op) {
      let copy = Object.assign(comsumerConfig, op);
      console.log(copy)
      return Comsumer(copy);
  }
  const object = {
        // producer,
    comsumer,
  };
  return object;
}
<commit_msg>删除无用console<commit_after>'use strict';

// const Producer = require('./Producer');
// const HighLevelProducer = require('./HighLevelProducer');
const Comsumer = require('./Consumer');

module.exports = app => {
  app.addSingleton('kafka', createKafka);
};

function createKafka(config, app) {
  const comsumerConfig = config.consumerOptions;
  function comsumer(op) {
      let copy = Object.assign(comsumerConfig, op);
      return Comsumer(copy);
  }
  const object = {
        // producer,
    comsumer,
  };
  return object;
}

{'fraction_non_alphanumeric': 0.14613970588235295, 'fraction_numerical': 0.0, 'mean_word_length': 3.7142857142857144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6737290', 'n_tokens_mistral': 345, 'n_tokens_neox': 343, 'n_words': 71}