<commit_before>class PaymentWorkflow extends KDController

  @interval:
    MONTH  : 'month'
    YEAR   : 'year'

  @subscription  :
    FREE         : 'free'
    HOBBYIST     : 'hobbyist'
    DEVELOPER    : 'developer'
    PROFESSIONAL : 'professional'

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

    KodingAppsController.appendHeadElements
      identifier : "stripe"
      items      : [
        {
          type   : 'script'
          url    : "https://js.stripe.com/v2/"
        }
      ]

    super options, data

    @start()


  start: ->

    { name, price } = @getOptions()

    modal = new PaymentModal
      state          :
        subscription : name
        interval     : PaymentWorkflow.MONTH_INTERVAL
        price        : price

<commit_msg>payment: fix interval constant<commit_after>class PaymentWorkflow extends KDController

  @interval:
    MONTH  : 'month'
    YEAR   : 'year'

  @subscription  :
    FREE         : 'free'
    HOBBYIST     : 'hobbyist'
    DEVELOPER    : 'developer'
    PROFESSIONAL : 'professional'

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

    KodingAppsController.appendHeadElements
      identifier : "stripe"
      items      : [
        {
          type   : 'script'
          url    : "https://js.stripe.com/v2/"
        }
      ]

    super options, data

    @start()


  start: ->

    { name, price } = @getOptions()

    modal = new PaymentModal
      state          :
        subscription : name
        interval     : PaymentWorkflow.interval.MONTH
        price        : price


{'fraction_non_alphanumeric': 0.1004566210045662, 'fraction_numerical': 0.001304631441617743, 'mean_word_length': 1.7150442477876107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5306311', 'n_tokens_mistral': 480, 'n_tokens_neox': 452, 'n_words': 97}