<commit_before># require 'java'
# require '../../../src/main/ruby/logger_singleton.rb'
class NewDeviceHandler < com.serotonin.bacnet4j.event.DefaultDeviceEventListener
  # A remote device sends this message in response to broadcast
  # @Override
  def iAmReceived(remote_device)
    puts "received #{remote_device.getName} #{remote_device.getInstanceNumber}"
    begin
      KnownDevice.discovered(remote_device)
    rescue Exception => e
      LoggerSingleton.logger.error "\n\nerror processing iamrecieved: #{e.to_s}: #{e.backtrace.join("\n")}"
    end
  end  
end<commit_msg>Don't process iAms from Yaskawa Node## devices that are flooding the network.<commit_after># require 'java'
# require '../../../src/main/ruby/logger_singleton.rb'
class NewDeviceHandler < com.serotonin.bacnet4j.event.DefaultDeviceEventListener
  # A remote device sends this message in response to broadcast
  # @Override
  def iAmReceived(remote_device)
    name = remote_device.getName
    if name =~ /Yaskawa Node/
      return
    end
    puts "received #{name} #{remote_device.getInstanceNumber}"
    begin
      KnownDevice.discovered(remote_device)
    rescue Exception => e
      LoggerSingleton.logger.error "\n\nerror processing iamrecieved: #{e.to_s}: #{e.backtrace.join("\n")}"
    end
  end  
end
{'fraction_non_alphanumeric': 0.11421911421911422, 'fraction_numerical': 0.001554001554001554, 'mean_word_length': 3.9348659003831417, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '95294', 'n_tokens_mistral': 393, 'n_tokens_neox': 390, 'n_words': 96}