<commit_before>'use strict';

var Joi = require('joi');

exports.server = Joi.object().keys({
  amqpUrl : Joi.string(),
  socketOptions : Joi.object().optional().keys({
    clientProperties : Joi.object().optional().unknown().keys({
      Application : Joi.string().optional()
    })
  }).unknown()
});

exports.route = Joi.object().keys({
  method : Joi.string().min(1).required(),
  concurrency : Joi.number().min(1).optional(),
  config : Joi.object().keys({
    handler : Joi.func().required(),
    validate : Joi.object().optional()
  }).required()
});

exports.request = Joi.object().keys({
  method : Joi.string().min(1),
  params : Joi.object().unknown().optional()
});

exports.message = Joi.object().keys({
  headers : Joi.object().required().unknown(),

  properties : Joi.object().required().keys({
    expiration : Joi.string(),
    userId : Joi.string(),
    CC : Joi.string(),
    BCC : Joi.string(),
    mandatory : Joi.boolean(),
    persistent : Joi.boolean(),<commit_msg>allow response bool in route config<commit_after>'use strict';

var Joi = require('joi');

exports.server = Joi.object().keys({
  amqpUrl : Joi.string(),
  socketOptions : Joi.object().optional().keys({
    clientProperties : Joi.object().optional().unknown().keys({
      Application : Joi.string().optional()
    })
  }).unknown()
});

exports.route = Joi.object().keys({
  method : Joi.string().min(1).required(),
  concurrency : Joi.number().min(1).optional(),
  response : Joi.boolean().default(false).optional(),
  config : Joi.object().keys({
    handler : Joi.func().required(),
    validate : Joi.object().optional()
  }).required()
});

exports.request = Joi.object().keys({
  method : Joi.string().min(1),
  params : Joi.object().unknown().optional()
});

exports.message = Joi.object().keys({
  headers : Joi.object().required().unknown(),

  properties : Joi.object().required().keys({
    expiration : Joi.string(),
    userId : Joi.string(),
    CC : Joi.string(),
    BCC : Joi.string(),
    mandatory : Joi.boolean(),
    persistent : Joi.boolean(),
{'fraction_non_alphanumeric': 0.21254863813229571, 'fraction_numerical': 0.0029182879377431907, 'mean_word_length': 3.80607476635514, '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': '7339520', 'n_tokens_mistral': 657, 'n_tokens_neox': 660, 'n_words': 112}