<commit_before>class ReferrerModal extends KDModalViewWithForms
  constructor: (options = {}, data) ->
    options.cssClass       = "referrer-modal"
    options.width          = 570
    options.overlay        = yes
    options.title          = "Get free space up to 16GB"
    options.url          or= "#{location.origin}/?r=#{KD.nick()}"
    options.tabs           =
      navigable            : no
      goToNextFormOnSubmit : no
      hideHandleContainer  : yes
      forms                :
        share              :
          customView       : KDCustomHTMLView
          cssClass         : "clearfix"
          partial          : "<p class='description'>For each person registers with your referral code, \
            you'll get <strong>250 MB</strong> free disk space for your VM, up to <strong>16 GB</strong> total."
        invite             :
          customView       : KDCustomHTMLView

    super options, data

    {@share, @invite} = @modalTabs.forms

    @share.addSubView usageWrapper = new KDCustomHTMLView cssClass: "disk-usage-wrapper"
    vmc = KD.getSingleton "vmController"
    vmc.fetchDefaultVmName (name) ->
      vmc.fetchDiskUsage name, (usage) ->
        usageWrapper.addSubView new KDLabelView title: "You've claimed <strong>#{KD.utils.formatBytesToHumanReadable usage.max}</strong><commit_msg>referral: change URI path pattern<commit_after>class ReferrerModal extends KDModalViewWithForms
  constructor: (options = {}, data) ->
    options.cssClass       = "referrer-modal"
    options.width          = 570
    options.overlay        = yes
    options.title          = "Get free disk space!"
    options.url          or= "#{location.origin}/R/#{KD.nick()}"
    options.tabs           =
      navigable            : no
      goToNextFormOnSubmit : no
      hideHandleContainer  : yes
      forms                :
        share              :
          customView       : KDCustomHTMLView
          cssClass         : "clearfix"
          partial          : "<p class='description'>For each person registers with your referral code, \
            you'll get <strong>250 MB</strong> free disk space for your VM, up to <strong>16 GB</strong> total."
        invite             :
          customView       : KDCustomHTMLView

    super options, data

    {@share, @invite} = @modalTabs.forms

    @share.addSubView usageWrapper = new KDCustomHTMLView cssClass: "disk-usage-wrapper"
    vmc = KD.getSingleton "vmController"
    vmc.fetchDefaultVmName (name) ->
      vmc.fetchDiskUsage name, (usage) ->
        usageWrapper.addSubView new KDLabelView title: "You've claimed <strong>#{KD.utils.formatBytesToHumanReadable usage.max}</strong>
{'fraction_non_alphanumeric': 0.09407796101949026, 'fraction_numerical': 0.006746626686656672, 'mean_word_length': 2.0891203703703702, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, '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': '6650796', 'n_tokens_mistral': 760, 'n_tokens_neox': 733, 'n_words': 185}