<commit_before>= bootstrap_form_for cluster, url: update_cluster_url_path, html: { class: 'gl-show-field-errors' },
  as: :cluster do |field|
  - copy_name_btn = clipboard_button(text: cluster.name, title: s_('ClusterIntegration|Copy Kubernetes cluster name'),
    class: 'input-group-text btn-default') unless !cluster.read_only_kubernetes_platform_fields?
  = field.text_field :name, class: 'js-select-on-focus cluster-name', required: true,
  title: s_('ClusterIntegration|Cluster name is required.'),
  readonly: cluster.read_only_kubernetes_platform_fields?,
  label: s_('ClusterIntegration|Kubernetes cluster name'), label_class: 'label-bold',
  input_group_class: 'gl-field-error-anchor', append: copy_name_btn

  = field.fields_for :platform_kubernetes, platform do |platform_field|
    - copy_api_url = clipboard_button(text: platform.api_url, title: s_('ClusterIntegration|Copy API URL'),
    class: 'input-group-text btn-default') unless !cluster.read_only_kubernetes_platform_fields?
    = platform_field.text_field :api_url, class: 'js-select-on-focus', required: true,
    title: s_('ClusterIntegration|API URL should be a valid http/https url.'),
    readonly: cluster.read_only_kubernetes_platform_fields?,
    label: s_('ClusterIntegration|API URL'), label_class: 'label-bold',
    input_group_class: 'gl-field-error-anchor', append: copy_api_url

    - copy_ca_cert_btn = clipboard_button(text: platform.ca_cert, title: s_('ClusterIntegration|Copy CA Certificate'),
      class: 'input-group-text btn-default') unless !cluster.read_only_kubernetes_platform_fields?
    = platform_field.text_area :ca_cert, class: 'js-select-on-focus', rows: '5',
    readonly: cluster.read_only_kubernetes_platform_fields?,
    placeholder: s_('ClusterIntegration|Certificate Authority bundle (PEM format)'),
    label: s_('ClusterIntegration|CA Certificate'), label_class: 'label-bold',
    input_group_class: 'gl-field-error-anchor', append: copy_ca_cert_btn

    - show_token_btn = (platform_field.button s_('ClusterIntegration|Show'),
      type: 'button', class: 'js-show-cluster-token btn btn-default')
    - copy_token_btn = clipboard_button(text: platform.token, title: s_('ClusterIntegration|Copy Service Token'),
      class: 'input-group-text btn-default') unless !cluster.read_only_kubernetes_platform_fields?

    = platform_field.text_field :token, type: 'password', class: 'js-select-on-focus js-cluster-token',<commit_msg>Fix Style/NegatedUnless offenses in HAML file<commit_after>= bootstrap_form_for cluster, url: update_cluster_url_path, html: { class: 'gl-show-field-errors' },
  as: :cluster do |field|
  - copy_name_btn = clipboard_button(text: cluster.name, title: s_('ClusterIntegration|Copy Kubernetes cluster name'),
    class: 'input-group-text btn-default') if cluster.read_only_kubernetes_platform_fields?
  = field.text_field :name, class: 'js-select-on-focus cluster-name', required: true,
  title: s_('ClusterIntegration|Cluster name is required.'),
  readonly: cluster.read_only_kubernetes_platform_fields?,
  label: s_('ClusterIntegration|Kubernetes cluster name'), label_class: 'label-bold',
  input_group_class: 'gl-field-error-anchor', append: copy_name_btn

  = field.fields_for :platform_kubernetes, platform do |platform_field|
    - copy_api_url = clipboard_button(text: platform.api_url, title: s_('ClusterIntegration|Copy API URL'),
    class: 'input-group-text btn-default') if cluster.read_only_kubernetes_platform_fields?
    = platform_field.text_field :api_url, class: 'js-select-on-focus', required: true,
    title: s_('ClusterIntegration|API URL should be a valid http/https url.'),
    readonly: cluster.read_only_kubernetes_platform_fields?,
    label: s_('ClusterIntegration|API URL'), label_class: 'label-bold',
    input_group_class: 'gl-field-error-anchor', append: copy_api_url

    - copy_ca_cert_btn = clipboard_button(text: platform.ca_cert, title: s_('ClusterIntegration|Copy CA Certificate'),
      class: 'input-group-text btn-default') if cluster.read_only_kubernetes_platform_fields?
    = platform_field.text_area :ca_cert, class: 'js-select-on-focus', rows: '5',
    readonly: cluster.read_only_kubernetes_platform_fields?,
    placeholder: s_('ClusterIntegration|Certificate Authority bundle (PEM format)'),
    label: s_('ClusterIntegration|CA Certificate'), label_class: 'label-bold',
    input_group_class: 'gl-field-error-anchor', append: copy_ca_cert_btn

    - show_token_btn = (platform_field.button s_('ClusterIntegration|Show'),
      type: 'button', class: 'js-show-cluster-token btn btn-default')
    - copy_token_btn = clipboard_button(text: platform.token, title: s_('ClusterIntegration|Copy Service Token'),
      class: 'input-group-text btn-default') if cluster.read_only_kubernetes_platform_fields?

    = platform_field.text_field :token, type: 'password', class: 'js-select-on-focus js-cluster-token',
{'fraction_non_alphanumeric': 0.1212678936605317, 'fraction_numerical': 0.00040899795501022495, 'mean_word_length': 5.957325746799431, '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': '2138214', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1494, 'n_words': 314}