<commit_before>/* eslint no-console: 0 */

import { Logger, LogLevelType, LogLevel } from '@algolia/logger-types';

export class ConsoleLogger implements Logger {
  private readonly logLevel: LogLevelType;

  public constructor(logLevel: LogLevelType) {
    this.logLevel = logLevel;
  }

  public debug(message: string, args: any): void {
    if (LogLevel.Debug >= this.logLevel) {
      console.debug(message, args);
    }
  }

  public info(message: string, args: any): void {
    if (LogLevel.Info >= this.logLevel) {
      console.info(message, args);
    }
  }

  public error(message: string, args: any): void {
    if (LogLevel.Error >= this.logLevel) {
      console.error(message, args);
    }
  }
}
<commit_msg>refacto: removes non used condition<commit_after>/* eslint no-console: 0 */

import { Logger, LogLevelType, LogLevel } from '@algolia/logger-types';

export class ConsoleLogger implements Logger {
  private readonly logLevel: LogLevelType;

  public constructor(logLevel: LogLevelType) {
    this.logLevel = logLevel;
  }

  public debug(message: string, args: any): void {
    if (LogLevel.Debug >= this.logLevel) {
      console.debug(message, args);
    }
  }

  public info(message: string, args: any): void {
    if (LogLevel.Info >= this.logLevel) {
      console.info(message, args);
    }
  }

  public error(message: string, args: any): void {
    console.error(message, args);
  }
}

{'fraction_non_alphanumeric': 0.12791519434628976, 'fraction_numerical': 0.0014134275618374558, 'mean_word_length': 3.466876971608833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '967800', 'n_tokens_mistral': 453, 'n_tokens_neox': 441, 'n_words': 115}