<commit_before>const pSeries = require('p-series')

const io = require('./io')
const fobManager = require('./fob-manager')
const doorManager = require('./door-manager')
const ledManager = require('./led-manager')

module.exports = { run }

function run () {
  const tasks = [
    io.run,
    fobManager.run,
    ledManager.run,
    doorManager.run
  ]

  return pSeries(tasks)
}
<commit_msg>fix: add error handling on board-manager<commit_after>const pSeries = require('p-series')

const io = require('./io')
const fobManager = require('./fob-manager')
const doorManager = require('./door-manager')
const ledManager = require('./led-manager')

module.exports = { run }

function run () {
  ledManager.run()
    .catch(err => console.log('ledManager error', err))

  const tasks = [
    io.run,
    fobManager.run,
    doorManager.run
  ]

  return pSeries(tasks)
    .catch(err => console.log('boardManager error', err))
}

{'fraction_non_alphanumeric': 0.1570964247020585, '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': '1980312', 'n_tokens_mistral': 294, 'n_tokens_neox': 290, 'n_words': 67}