<commit_before>'use strict'

const displayRoutes = require('../lib/routes/display.js')
const scope = require('../lib/scope.js')

module.exports = function (input, flags, logger, options) {
  const tasks = [
    () => scope.display(logger, options.cwd),
    () => displayRoutes(logger, options.cwd)
  ]
  // Catch all errors and let all tasks run before
  // transforming into a single error
  const errors = []
  return tasks.reduce((prev, task) => {
    return prev.then(() => task())
      .catch(error => errors.push(error))
  }, Promise.resolve())
    .then(() => {
      if (errors && errors.length) {<commit_msg>SC-18 # Added cors config to info cmd<commit_after>'use strict'

const displayCors = require('../lib/cors/display.js')
const displayRoutes = require('../lib/routes/display.js')
const scope = require('../lib/scope.js')

module.exports = function (input, flags, logger, options) {
  const tasks = [
    () => scope.display(logger, options.cwd),
    () => displayCors(logger, options.cwd),
    () => displayRoutes(logger, options.cwd)
  ]
  // Catch all errors and let all tasks run before
  // transforming into a single error
  const errors = []
  return tasks.reduce((prev, task) => {
    return prev.then(() => task())
      .catch(error => errors.push(error))
  }, Promise.resolve())
    .then(() => {
      if (errors && errors.length) {
{'fraction_non_alphanumeric': 0.1723122238586156, 'fraction_numerical': 0.0014727540500736377, 'mean_word_length': 3.355769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '4285437', 'n_tokens_mistral': 420, 'n_tokens_neox': 417, 'n_words': 109}