<commit_before>module Logcast::Broadcast
  def self.extended(obj)
    current_log = obj.instance_variable_get(:@log)
    obj.instance_variable_set(:@log, Logcast::Broadcaster.new(current_log))
  end

  def broadcast(*args)
    if @log.respond_to?(:broadcast)
      @log.broadcast(*args)
    end
  end
end<commit_msg>no need to check @log can broadcast; if it can't something is wrong<commit_after>module Logcast::Broadcast
  def self.extended(obj)
    current_log = obj.instance_variable_get(:@log)
    obj.instance_variable_set(:@log, Logcast::Broadcaster.new(current_log))
  end

  def broadcast(*args)
    @log.broadcast(*args)
  end
end
{'fraction_non_alphanumeric': 0.1171875, 'fraction_numerical': 0.0, 'mean_word_length': 4.990654205607477, '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': '1426896', 'n_tokens_mistral': 220, 'n_tokens_neox': 212, 'n_words': 42}