<commit_before>class VmPlanView extends JView
  constructor: (options = {}, data = {} ) ->
    options.cssClass     = KD.utils.curry "vm-plan-view", options.cssClass
    options.hiddenPrice ?= no
    super options, data

  pistachio: ->
    {planOptions, hiddenPrice} = @getOptions()
    total = if planOptions?.total then planOptions.total else @getData().feeAmount
    total = KD.utils.formatMoney total / 100
    """
    {h4{#(title) or #(plan.title)}}
    <span class="price#{if hiddenPrice then ' hidden' else ''}">#{total}</span>
    """
<commit_msg>plansubscription : add plan detail view to cofirm view<commit_after>class VmPlanView extends JView
  constructor: (options = {}, data = {} ) ->
    options.cssClass     = KD.utils.curry "vm-plan-view", options.cssClass
    options.hiddenPrice ?= no
    super options, data

  pistachio: ->
    {planOptions, hiddenPrice} = @getOptions()
    total = if planOptions?.total then planOptions.total else @getData().feeAmount
    total = KD.utils.formatMoney total / 100
    @planDetail = new PlanProductListView plan : @getData()
    """
    {h4{#(title) or #(plan.title)}}
    {{> @planDetail}}
    <span class="price#{if hiddenPrice then ' hidden' else ''}">#{total}</span>
    """

{'fraction_non_alphanumeric': 0.14979757085020243, 'fraction_numerical': 0.006477732793522267, 'mean_word_length': 3.5441176470588234, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, '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': '2551110', 'n_tokens_mistral': 394, 'n_tokens_neox': 386, 'n_words': 95}