<commit_before>class PaymentFormModal extends KDModalView

  constructor: (options = {}, data = {}) ->

    options.title    or= 'Billing information'
    options.width    or= 520
    options.height   or= 'auto'
    options.cssClass or= 'payments-modal'
    options.overlay   ?= yes

    super options, data

  viewAppended:->

    @mainLoader = new KDLoaderView
      showLoader  : yes
      size        : { width: 14 }

    @addSubView @mainLoader

    @useExistingView = new PaymentMethodChoiceView
    @useExistingView.hide()

    @useExistingView.on 'PaymentMethodSelected', (paymentMethodId) =>
      if paymentMethodId
        @emit 'PaymentMethodSelected', paymentMethodId
      else
        @useExistingView.hide()
        @modalTabs.show()

    @addSubView @useExistingView

    @paymentForm = new PaymentForm

    @forwardEvent @paymentForm, 'PaymentInfoSubmitted'
paymentInfo
    @addSubView @paymentForm

    @paymentForm.hide()

    super()

  # showLoader:->
  #   @mainLoader.show()
<commit_msg>payment: fix typo<commit_after>class PaymentFormModal extends KDModalView

  constructor: (options = {}, data = {}) ->

    options.title    or= 'Billing information'
    options.width    or= 520
    options.height   or= 'auto'
    options.cssClass or= 'payments-modal'
    options.overlay   ?= yes

    super options, data

  viewAppended:->

    @mainLoader = new KDLoaderView
      showLoader  : yes
      size        : { width: 14 }

    @addSubView @mainLoader

    @useExistingView = new PaymentMethodChoiceView
    @useExistingView.hide()

    @useExistingView.on 'PaymentMethodSelected', (paymentMethodId) =>
      if paymentMethodId
        @emit 'PaymentMethodSelected', paymentMethodId
      else
        @useExistingView.hide()
        @modalTabs.show()

    @addSubView @useExistingView

    @paymentForm = new PaymentForm

    @forwardEvent @paymentForm, 'PaymentInfoSubmitted'
    @addSubView @paymentForm

    @paymentForm.hide()

    super()

  # showLoader:->
  #   @mainLoader.show()

{'fraction_non_alphanumeric': 0.09880834160873883, 'fraction_numerical': 0.004965243296921549, 'mean_word_length': 2.935546875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '371210', 'n_tokens_mistral': 630, 'n_tokens_neox': 591, 'n_words': 133}