<commit_before>module MiqAeToolsHelper
  def git_import_button_enabled?
    MiqRegion.my_region.role_active?("git_owner")
  end

  def git_import_submit_help
    unless MiqRegion.my_region.role_active?("git_owner")
      content_tag(
        :i,
        "",
        :class => ["fa", "fa-lg", "fa-question-circle"],
        :title => _("Please enable the git owner role in order to import git repositories")
      )
    end<commit_msg>Refactor: Use existing method to query git appliance<commit_after>module MiqAeToolsHelper
  def git_import_button_enabled?
    MiqRegion.my_region.role_active?("git_owner")
  end

  def git_import_submit_help
    unless git_import_button_enabled?
      content_tag(
        :i,
        "",
        :class => ["fa", "fa-lg", "fa-question-circle"],
        :title => _("Please enable the git owner role in order to import git repositories")
      )
    end
{'fraction_non_alphanumeric': 0.10472972972972973, 'fraction_numerical': 0.0, 'mean_word_length': 3.193396226415094, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2250519', 'n_tokens_mistral': 284, 'n_tokens_neox': 278, 'n_words': 66}