<commit_before>module Wheaties
  module Responses
    module Welcome
      # RPL_ENDOFMOTD
      def on_376
        log(:debug, "Connection established")
        
        performs = Wheaties.config["auto"]
        performs.each do |command|
          if command =~ /^(.*?)\s+(.*)$/
            broadcast($~[1], $~[2])
          end
        end
        
        channels = Wheaties.config["channels"]
        channels.each do |channel|
          broadcast(:join, channel)
        end
      end
      
      # ERR_NOMOTD
      alias :on_422 :on_376
    end
  end
end<commit_msg>Only iterate over performs if there are performs to iterate over<commit_after>module Wheaties
  module Responses
    module Welcome
      # RPL_ENDOFMOTD
      def on_376
        log(:debug, "Connection established")
        
        performs = Wheaties.config["auto"]
        performs.each do |command|
          if command =~ /^(.*?)\s+(.*)$/
            broadcast($~[1], $~[2])
          end
        end if performs
        
        channels = Wheaties.config["channels"]
        channels.each do |channel|
          broadcast(:join, channel)
        end
      end
      
      # ERR_NOMOTD
      alias :on_422 :on_376
    end
  end
end
{'fraction_non_alphanumeric': 0.1037037037037037, 'fraction_numerical': 0.01810699588477366, 'mean_word_length': 1.7082405345211582, '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': '3083278', 'n_tokens_mistral': 377, 'n_tokens_neox': 360, 'n_words': 91}