<commit_before>require('./lib/boot/logger');

var defaultConfig = {
  amqpUrl: process.env.AMQP_URL,
  prefetch: process.env.AMQP_PREFETCH || 1,
  isRequeueEnabled: true
};

if (typeof defaultConfig.prefetch !== 'number') {
  console.log(defaultConfig);
  defaultConfig.prefetch = parseInt(defaultConfig.prefetch);
}

module.exports = function(config) {
  return {
    producer: require('./lib/producer')(config || defaultConfig),
    consumer: require('./lib/consumer')(config || defaultConfig)
  };
};<commit_msg>Refactor index and fix bad prefetch property parsing Fix #14<commit_after>require('./lib/boot/logger');

var defaultConfig = {
  amqpUrl: 'amqp://admin:dialonce@rabbitmq-master.dialonce-europe-dev.dialonce.svc.tutum.io',
  prefetch: process.env.AMQP_PREFETCH || 1,
  isRequeueEnabled: true
};

if (typeof defaultConfig.prefetch !== 'number') {
  console.log(defaultConfig);
  defaultConfig.prefetch = parseInt(defaultConfig.prefetch);
}

module.exports = function(config) {
  return {
    producer: require('./lib/producer')(config || defaultConfig),
    consumer: require('./lib/consumer')(config || defaultConfig)
  };
};
{'fraction_non_alphanumeric': 0.15641476274165203, 'fraction_numerical': 0.0035149384885764497, 'mean_word_length': 5.123655913978495, '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': '4271709', 'n_tokens_mistral': 377, 'n_tokens_neox': 362, 'n_words': 61}