<commit_before>class SpaceshipLandingPage extends LandingView
  constructor: (options = {}, data) ->
    options.cssClass = "spaceship"
    super options, data

    @share = new KDCustomHTMLView cssClass: "share"

    @share.addSubView new KDCustomHTMLView
      tagName: "h3"
      partial: "Other ways to <strong>share:</strong>"

    @share.addSubView @referrerUrlInput = new KDInputView
      cssClass     : "referrer-url"
      attributes   : readonly: "true"
      defaultValue : @getReferralUrl @username if @username
      placeholder  : "Login to see your referrer URL"
      disabled     : !!@username?
      click        :-> @selectAll()

    @share.addSubView @shareLinks

  enable: ->
    super
    url = @getReferralUrl KD.nick()
    @referrerUrlInput.setValue url
    @referrerUrlInput.makeEnabled()

    for shareLink in [@twitter, @facebook, @linkedin]
      shareLink.setOption "url", url
      shareLink.enable()

  decorateEmailAddressError: (emails) ->
    @emailAddressInput.setClass "error"
    lines = ("<li>" + email + "</li>" for email in emails)

    @errorMessage.updatePartial """
    Errors occurred with following email addresses:
    <ul class="email-list">#{lines.join ""}</ul>
    """

    @errorMessage.show()

  pistachio: ->
    """
    <div class="top">
      <img class="logo" src="/images/landing/logo.png" />
      {{> @login}}
      <header class="title">Share the <strong>power</strong> of Koding!</header>
    </div>
    <div class="middle">
      <div class="left">
        <img src="/images/landing/spaceship.png" />
      </div>
      <div class="right">
        <h2>Get up to <strong>16</strong> GB</h2>
        <p>We’ll give you <strong>250 MB free disk space</strong> for every friend that joins Koding (up to a limit of 16 GB)</p>
        {{> @inviteGmailContacts}}
        <div class="invite-by-email">
          {{> @emailAddressInput}}
          {{> @emailAddressSubmit}}
          {{> @invitationSentButton}}
          {{> @errorMessage}}
        </div>
        <hr />
        {{> @share}}
      </div>
    </div>
    """
<commit_msg>landing: concatenate error message lines instead of joining array elements<commit_after>class SpaceshipLandingPage extends LandingView
  constructor: (options = {}, data) ->
    options.cssClass = "spaceship"
    super options, data

    @share = new KDCustomHTMLView cssClass: "share"

    @share.addSubView new KDCustomHTMLView
      tagName: "h3"
      partial: "Other ways to <strong>share:</strong>"

    @share.addSubView @referrerUrlInput = new KDInputView
      cssClass     : "referrer-url"
      attributes   : readonly: "true"
      defaultValue : @getReferralUrl @username if @username
      placeholder  : "Login to see your referrer URL"
      disabled     : !!@username?
      click        :-> @selectAll()

    @share.addSubView @shareLinks

  enable: ->
    super
    url = @getReferralUrl KD.nick()
    @referrerUrlInput.setValue url
    @referrerUrlInput.makeEnabled()

    for shareLink in [@twitter, @facebook, @linkedin]
      shareLink.setOption "url", url
      shareLink.enable()

  decorateEmailAddressError: (emails) ->
    @emailAddressInput.setClass "error"
    lines = '<ul class="email-list">Errors occurred with following email addresses:'
    lines += "<li>" + email + "</li>" for email in emails
    lines += "</ul>"
    @errorMessage.updatePartial lines
    @errorMessage.show()

  pistachio: ->
    """
    <div class="top">
      <img class="logo" src="/images/landing/logo.png" />
      {{> @login}}
      <header class="title">Share the <strong>power</strong> of Koding!</header>
    </div>
    <div class="middle">
      <div class="left">
        <img src="/images/landing/spaceship.png" />
      </div>
      <div class="right">
        <h2>Get up to <strong>16</strong> GB</h2>
        <p>We’ll give you <strong>250 MB free disk space</strong> for every friend that joins Koding (up to a limit of 16 GB)</p>
        {{> @inviteGmailContacts}}
        <div class="invite-by-email">
          {{> @emailAddressInput}}
          {{> @emailAddressSubmit}}
          {{> @invitationSentButton}}
          {{> @errorMessage}}
        </div>
        <hr />
        {{> @share}}
      </div>
    </div>
    """

{'fraction_non_alphanumeric': 0.1423848878394333, 'fraction_numerical': 0.004722550177095631, 'mean_word_length': 2.6738941890719863, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 89, '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': '101728', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1300, 'n_words': 323}