<commit_before>require 'logger'

module ReVIEW
  class Logger < ::Logger
    def initialize(*logdev)
      if logdev.empty?
        super(STDERR, formatter: ->(severity, _datetime, _progname, msg) { "#{severity}: #{msg}\n" })
      else
        super
      end
    end
  end

  def self.logger
    return @logger if @logger

    @logger = ReVIEW::Logger.new
    @logger.formatter = ->(severity, _datetime, _progname, msg) {
      "#{severity}: #{msg}\n"
    }
    @logger
  end<commit_msg>Apply rubocop rule<commit_after>require 'logger'

module ReVIEW
  class Logger < ::Logger
    def initialize(*logdev)
      if logdev.empty?
        super(STDERR, formatter: ->(severity, _datetime, _progname, msg) { "#{severity}: #{msg}\n" })
      else
        super
      end
    end
  end

  def self.logger
    return @logger if @logger

    @logger = ReVIEW::Logger.new
    @logger.formatter = ->(severity, _datetime, _progname, msg) { "#{severity}: #{msg}\n" }
    @logger
  end
{'fraction_non_alphanumeric': 0.13771839671120248, 'fraction_numerical': 0.0, 'mean_word_length': 2.731800766283525, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7017405', 'n_tokens_mistral': 341, 'n_tokens_neox': 321, 'n_words': 83}