<commit_before>- content_for :page_specific_javascripts do
  = webpack_bundle_tag('integrations')

.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = @service.title
      = boolean_to_icon @service.activated?

    %p= @service.description
  .col-lg-9
    = form_for(@service, as: :service, url: namespace_project_service_path(@project.namespace, @project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal js-integration-settings-from' }) do |form|
      = render 'shared/service_settings', form: form, subject: @service
      .footer-block.row-content-block
        %button.btn.btn-save{ type: 'submit' }
          %i.fa.fa-spinner.fa-spin.hidden.js-btn-spinner{ "aria-hidden" => true }
          %span.js-btn-label
            Save changes
        &nbsp;
        - if @service.valid? && @service.activated?
          - unless @service.can_test?
            - disabled_class = 'disabled'
            - disabled_title = @service.disabled_title

        = link_to "Cancel", namespace_project_settings_integrations_path(@project.namespace, @project), class: "btn btn-cancel"<commit_msg>Use `@service.can_test?` to enable test before save<commit_after>- content_for :page_specific_javascripts do
  = webpack_bundle_tag('integrations')

.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = @service.title
      = boolean_to_icon @service.activated?

    %p= @service.description
  .col-lg-9
    = form_for(@service, as: :service, url: namespace_project_service_path(@project.namespace, @project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal js-integration-settings-from', data: { "can-test" => "#{@service.can_test?}" } }) do |form|
      = render 'shared/service_settings', form: form, subject: @service
      .footer-block.row-content-block
        %button.btn.btn-save{ type: 'submit' }
          %i.fa.fa-spinner.fa-spin.hidden.js-btn-spinner{ "aria-hidden" => true }
          %span.js-btn-label
            Save changes
        &nbsp;
        - if @service.valid? && @service.activated?
          - unless @service.can_test?
            - disabled_class = 'disabled'
            - disabled_title = @service.disabled_title

        = link_to "Cancel", namespace_project_settings_integrations_path(@project.namespace, @project), class: "btn btn-cancel"
{'fraction_non_alphanumeric': 0.13970893970893972, 'fraction_numerical': 0.0033264033264033266, 'mean_word_length': 3.1198630136986303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5145803', 'n_tokens_mistral': 771, 'n_tokens_neox': 758, 'n_words': 134}