<commit_before>{{#containers-header showGroup=false}}
  <button
    {{action "importYaml"}}
    class="btn btn-sm bg-default mr-10"
    disabled={{rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create"}}
  >
    {{t "nav.containers.importCompose"}}
  </button>
  {{#link-to
    "authenticated.project.hpa.new"
    scope.currentProject.id
    class="btn btn-sm bg-primary"
    disabled=(rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create")
  }}
    {{t "nav.containers.addHpa"}}
  {{/link-to}}
{{/containers-header}}

{{#if rows.length}}
  <section class="pl-0 pr-0">
    {{#sortable-table
      classNames="grid sortable-table"
      body=rows
      searchText=searchText
      sortBy=sortBy
      bulkActions=true
      descending=descending
      subRows=true
      groupByKey="namespaceId"<commit_msg>Disable add HPA button if not supported<commit_after>{{#containers-header showGroup=false}}
  <button
    {{action "importYaml"}}
    class="btn btn-sm bg-default mr-10"
    disabled={{rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create"}}
  >
    {{t "nav.containers.importCompose"}}
  </button>
  {{#link-to
    "authenticated.project.hpa.new"
    scope.currentProject.id
    class="btn btn-sm bg-primary"
    disabled=(or (not model.supported) (rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create"))
  }}
    {{t "nav.containers.addHpa"}}
  {{/link-to}}
{{/containers-header}}

{{#if rows.length}}
  <section class="pl-0 pr-0">
    {{#sortable-table
      classNames="grid sortable-table"
      body=rows
      searchText=searchText
      sortBy=sortBy
      bulkActions=true
      descending=descending
      subRows=true
      groupByKey="namespaceId"
{'fraction_non_alphanumeric': 0.14941242305540012, 'fraction_numerical': 0.004476776720761052, 'mean_word_length': 3.8986301369863012, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6639481', 'n_tokens_mistral': 594, 'n_tokens_neox': 587, 'n_words': 98}