<commit_before>module ApplicationController::Network
  extend ActiveSupport::Concern

  def network_managers
    openstack_network_manager = Rbac::Filterer.filtered(ManageIQ::Providers::Openstack::NetworkManager).select(:id, :name, :parent_ems_id)
    redhat_network_manager = Rbac::Filterer.filtered(ManageIQ::Providers::Redhat::NetworkManager).select(:id, :name, :parent_ems_id)
    openstack_network_manager + redhat_network_manager
  end
end
<commit_msg>remove undercloud from filtered result<commit_after>module ApplicationController::Network
  extend ActiveSupport::Concern

  def network_managers
    ems_clouds = ManageIQ::Providers::Openstack::NetworkManager.joins(:parent_manager).where(:parent_managers_ext_management_systems=>{:type=>'ManageIQ::Providers::Openstack::CloudManager'})
    openstack_network_manager = Rbac::Filterer.filtered(ems_clouds).select(:id, :name, :parent_ems_id)
    redhat_network_manager = Rbac::Filterer.filtered(ManageIQ::Providers::Redhat::NetworkManager).select(:id, :name, :parent_ems_id)
    openstack_network_manager + redhat_network_manager
  end
end

{'fraction_non_alphanumeric': 0.10948905109489052, 'fraction_numerical': 0.0, 'mean_word_length': 9.754901960784315, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1363642', 'n_tokens_mistral': 350, 'n_tokens_neox': 338, 'n_words': 42}