<commit_before>'use strict'

/*
 * adonis-sink
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
*/

const util = require('util')
const _ = require('lodash')

class Logger {
  constructor () {
    this._lines = {
      emergency: [],
      alert: [],
      critical: [],
      error: [],
      warn: [],
      notice: [],
      info: [],
      debug: []
    }
  }

  /**
   * Log emergency message.
   *
   * @method emergency
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  emergency (message, ...args) {
    this._lines.emergency.push(util.format(message, ...args))
  }

  /**
   * Log alert message.
   *
   * @method alert
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  alert (message, ...args) {
    this._lines.alert.push(util.format(message, ...args))
  }

  /**
   * Log critical message.
   *
   * @method critical
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  critical (message, ...args) {
    this._lines.critical.push(util.format(message, ...args))
  }

  /**
   * Log error message.
   *
   * @method error
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  error (message, ...args) {
    this._lines.error.push(util.format(message, ...args))
  }

  /**
   * Log warning message.
   *
   * @method warn
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  warn (message, ...args) {
    this._lines.warn.push(util.format(message, ...args))<commit_msg>fix(logger): rename warn to warning<commit_after>'use strict'

/*
 * adonis-sink
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
*/

const util = require('util')
const _ = require('lodash')

class Logger {
  constructor () {
    this._lines = {
      emergency: [],
      alert: [],
      critical: [],
      error: [],
      warn: [],
      notice: [],
      info: [],
      debug: []
    }
  }

  /**
   * Log emergency message.
   *
   * @method emergency
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  emergency (message, ...args) {
    this._lines.emergency.push(util.format(message, ...args))
  }

  /**
   * Log alert message.
   *
   * @method alert
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  alert (message, ...args) {
    this._lines.alert.push(util.format(message, ...args))
  }

  /**
   * Log critical message.
   *
   * @method critical
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  critical (message, ...args) {
    this._lines.critical.push(util.format(message, ...args))
  }

  /**
   * Log error message.
   *
   * @method error
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  error (message, ...args) {
    this._lines.error.push(util.format(message, ...args))
  }

  /**
   * Log warning message.
   *
   * @method warning
   *
   * @param  {String}    message
   * @param  {...Spread} args
   *
   * @return {void}
   */
  warning (message, ...args) {
    this._lines.warn.push(util.format(message, ...args))
{'fraction_non_alphanumeric': 0.1786123853211009, 'fraction_numerical': 0.0, 'mean_word_length': 1.9795046968403074, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2928860', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1209, 'n_words': 267}