<commit_before>'use strict';

module.exports = function (logger) {
  var env = require('common-env')(logger);

  var config = env.getOrElseAll({
    amqp: {
      login: 'guest',
      password: '<PASSWORD>',
      host: 'localhost',
      port: 5672,
      vhost: '',

      alerting: {
        trigger: {
          queue: 'monitoring.new'
        }
      },
    },

    statwarn: {
      alerting: {
        api: {
          endpoint: 'http://127.0.0.1:9000/'
        },

        trigger: {},
        action: {}
      },
    }
  });

  // export env
  config.env = env;

  return config;
};<commit_msg>fix(config): add schema and monitoring config<commit_after>'use strict';

module.exports = function (logger) {
  var env = require('common-env')(logger);

  var config = env.getOrElseAll({
    amqp: {
      login: 'guest',
      password: '<PASSWORD>',
      host: 'localhost',
      port: 5672,
      vhost: '',

      alerting: {
        trigger: {
          queue: 'monitoring.new'
        }
      },
    },

    statwarn: {
      schema: {
        monitoring: {
          create: 'application/vnd.com.statwarn.monitoring.create.v1+json'
        }
      },

      alerting: {
        api: {
          endpoint: 'http://127.0.0.1:9000/'
        },

        trigger: {},
        action: {}
      },

      monitoring: {
        api: {
          port: 9002,
          endpoint: 'http://127.0.0.1:9002'
        }
      }
    }
  });

  // export env
  config.env = env;

  return config;
};
{'fraction_non_alphanumeric': 0.1580709979906229, 'fraction_numerical': 0.028801071667782986, 'mean_word_length': 1.5626072041166381, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '3537393', 'n_tokens_mistral': 522, 'n_tokens_neox': 487, 'n_words': 91}