<commit_before>module HostHelper::TextualSummary
  # TODO: Determine if DoNav + url_for + :title is the right way to do links, or should it be link_to with :title

  #
  # Groups
  #

  def textual_group_properties
    %i(hostname ipaddress ipmi_ipaddress custom_1 vmm_vendor_display model asset_tag service_tag osinfo
       power_state lockdown_mode maintenance_mode devices network storage_adapters num_cpu num_cpu_cores
       cpu_cores_per_socket memory guid)
  end

  def textual_group_relationships
    %i(ems cluster availability_zone used_tenants storages resource_pools vms templates drift_history)
  end

  def textual_group_storage_relationships
    %i(storage_systems storage_volumes logical_disks file_shares)
  end

  def textual_group_security
    return nil if @record.is_vmware_esxi?
    %i(users groups patches firewall_rules ssh_root)
  end

  def textual_group_configuration
    %i(guest_applications host_services filesystems advanced_settings)
  end

  def textual_group_diagnostics
    return nil unless get_vmdb_config[:product][:proto]
    %i(esx_logs)
  end

  def textual_group_smart_management
    %i(tags)
  end

  def textual_group_miq_custom_attributes
    textual_miq_custom_attributes
  end

  def textual_group_ems_custom_attributes
    textual_ems_custom_attributes
  end
<commit_msg>use ::Settings in textual_summary.rb (transferred from ManageIQ/manageiq@<PASSWORD>)<commit_after>module HostHelper::TextualSummary
  # TODO: Determine if DoNav + url_for + :title is the right way to do links, or should it be link_to with :title

  #
  # Groups
  #

  def textual_group_properties
    %i(hostname ipaddress ipmi_ipaddress custom_1 vmm_vendor_display model asset_tag service_tag osinfo
       power_state lockdown_mode maintenance_mode devices network storage_adapters num_cpu num_cpu_cores
       cpu_cores_per_socket memory guid)
  end

  def textual_group_relationships
    %i(ems cluster availability_zone used_tenants storages resource_pools vms templates drift_history)
  end

  def textual_group_storage_relationships
    %i(storage_systems storage_volumes logical_disks file_shares)
  end

  def textual_group_security
    return nil if @record.is_vmware_esxi?
    %i(users groups patches firewall_rules ssh_root)
  end

  def textual_group_configuration
    %i(guest_applications host_services filesystems advanced_settings)
  end

  def textual_group_diagnostics
    return nil unless ::Settings.product.proto
    %i(esx_logs)
  end

  def textual_group_smart_management
    %i(tags)
  end

  def textual_group_miq_custom_attributes
    textual_miq_custom_attributes
  end

  def textual_group_ems_custom_attributes
    textual_ems_custom_attributes
  end

{'fraction_non_alphanumeric': 0.035899333826794964, 'fraction_numerical': 0.0007401924500370096, 'mean_word_length': 4.914660831509847, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '662061', 'n_tokens_mistral': 876, 'n_tokens_neox': 813, 'n_words': 214}