<commit_before>module MiddlewareServerHelper::TextualSummary
  #
  # Groups
  #

  def textual_group_properties
    %i(name hostname feed bind_addr server_state product version)
  end

  def textual_group_relationships
    # Order of items should be from parent to child
    %i(ems middleware_deployments middleware_datasources lives_on middleware_messagings)
  end

  #
  # Items
  #
  def textual_hostname
    if not_yet_started?(@record) && @record.hostname.nil?
      _('not yet available')
    else
      @record.hostname
    end
  end

  def textual_feed<commit_msg>Adding link to Server Group in the summary page of a server<commit_after>module MiddlewareServerHelper::TextualSummary
  #
  # Groups
  #

  def textual_group_properties
    %i(name hostname feed bind_addr server_state product version)
  end

  def textual_group_relationships
    # Order of items should be from parent to child
    %i(ems middleware_server_group middleware_deployments middleware_datasources lives_on middleware_messagings)
  end

  #
  # Items
  #
  def textual_hostname
    if not_yet_started?(@record) && @record.hostname.nil?
      _('not yet available')
    else
      @record.hostname
    end
  end

  def textual_feed
{'fraction_non_alphanumeric': 0.05601317957166392, 'fraction_numerical': 0.0, 'mean_word_length': 3.764705882352941, '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': '2138203', 'n_tokens_mistral': 393, 'n_tokens_neox': 365, 'n_words': 101}