<commit_before>class VmOrTemplateDecorator < Draper::Decorator
  delegate_all

  def fonticon
    nil
  end

  def listicon_image
    "svg/vendor-#{vendor.downcase}.svg"
  end

  def supports_console?
    console_supported?('spice') || console_supported?('vnc')
  end
end<commit_msg>Add "supports_cockpit?" to decorators so that it is accessible through the API. (transferred from ManageIQ/manageiq@<PASSWORD>)<commit_after>class VmOrTemplateDecorator < Draper::Decorator
  delegate_all

  def fonticon
    nil
  end

  def listicon_image
    "svg/vendor-#{vendor.downcase}.svg"
  end

  def supports_console?
    console_supported?('spice') || console_supported?('vnc')
  end

  def supports_cockpit?
    supports_launch_cockpit?
  end
end
{'fraction_non_alphanumeric': 0.0918918918918919, 'fraction_numerical': 0.0, 'mean_word_length': 4.529850746268656, 'pattern_counts': {'":': 0, '<': 6, '<?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': '2481973', 'n_tokens_mistral': 257, 'n_tokens_neox': 247, 'n_words': 53}