<commit_before>module.exports = {
  on,
  one,
  off,
  trigger
}

/**
 * add a listener to an event
 *
 * @param  {String} eventName   Name of event
 * @param  {Function} handler   callback for event
 */
function on (state, eventName, handler) {
  state.emitter.on(eventName, handler)

  return this
}

/**
 * adds a one time listener to an event
 *
 * @param  {String} eventName   Name of event
 * @param  {Function} handler   callback for event
 */<commit_msg>fix(events): remove es2015 object shorthand notation<commit_after>module.exports = {
  on: on,
  one: one,
  off: off,
  trigger: trigger
}

/**
 * add a listener to an event
 *
 * @param  {String} eventName   Name of event
 * @param  {Function} handler   callback for event
 */
function on (state, eventName, handler) {
  state.emitter.on(eventName, handler)

  return this
}

/**
 * adds a one time listener to an event
 *
 * @param  {String} eventName   Name of event
 * @param  {Function} handler   callback for event
 */
{'fraction_non_alphanumeric': 0.11032388663967611, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 3.2264957264957266, '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': '2916307', 'n_tokens_mistral': 321, 'n_tokens_neox': 312, 'n_words': 113}