<commit_before># -*- coding: utf-8 -*-

require 'logger'

module Agharta
  class MultiLogger
    def initialize(*devices)
      @loggers = devices.map { |d| ::Logger.new(d) }
    end

    def method_missing(method_name, *args, &block)
      return super unless respond_to?(method_name)
      @loggers.each { |l| l.send(method_name, *args, &block) }
    end

    def respond_to?(method_name, include_private = false)
      @loggers.all? { |l| l.respond_to?(method_name, include_private) } || super
    end
  end
end<commit_msg>Remove kernel warn method at multi logger.<commit_after># -*- coding: utf-8 -*-

require 'logger'

module Agharta
  class MultiLogger
    def initialize(*devices)
      @loggers = devices.map { |d| ::Logger.new(d) }
    end

    def method_missing(method_name, *args, &block)
      return super unless respond_to?(method_name)
      @loggers.each { |l| l.send(method_name, *args, &block) }
    end

    def respond_to?(method_name, include_private = false)
      @loggers.all? { |l| l.respond_to?(method_name, include_private) } || super
    end

    undef :warn
  end
end
{'fraction_non_alphanumeric': 0.12932604735883424, 'fraction_numerical': 0.0018214936247723133, 'mean_word_length': 3.343873517786561, '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': '2945130', 'n_tokens_mistral': 372, 'n_tokens_neox': 371, 'n_words': 91}