<commit_before>class HomeAppView extends JView

  constructor:->

    super

    @setClass "screenshots"

    account = KD.whoami()

    @header = new WelcomeHeader
      type      : "big"
      title     : if KD.isLoggedIn() then\
        "Hi #{account.profile.firstName}! Welcome to the Koding Public Beta." else\
        "Welcome to the Koding Public Beta!<br>"
      subtitle  : "Warning! when we say beta - <a href='#'>we mean it</a> :)"

    @slideShow = new HomeSlideShow
      tagName : "section"

    @leftArrow = new KDCustomHTMLView
      tagName  : "a"
      cssClass : "arrow left"
      partial  : "<span></span>"
      click    : (event)=>
        @utils.stopDOMEvent event
        @slideShow.slideTo "prev"

    @rightArrow = new KDCustomHTMLView
      tagName  : "a"
      cssClass : "arrow right"
      partial  : "<span></span>"
      click    : (event)=>
        @utils.stopDOMEvent event
        @slideShow.slideTo "next"

    @homeLoginBar = new HomeLoginBar

    @slideShow.on "FirstSlideShown", =>
      @rightArrow.$().css right : 0
      @leftArrow.$().css  left  : -40

    @slideShow.on "LastSlideShown", =>
      @leftArrow.$().css  left  : 0
      @rightArrow.$().css right : -40

    @slideShow.on "OtherSlideShown", =>
      @leftArrow.$().css  left  : ""
      @rightArrow.$().css right : ""

  pistachio:->

    """
    {{> @header}}
    {{> @leftArrow}}
    {{> @rightArrow}}
    {{> @slideShow}}
    {{> @homeLoginBar}}
    """

  # OLD HOME PISTACHIO
  # left here for reference - SY

  # pistachio:->

  #   """
  #   <div class="kdview video-wrapper">
  #     <iframe src="https://player.vimeo.com/video/45156018?color=ffb500" width="89.13%"<commit_msg>added HomeLinkBar to non-logged in users when browsing to profile view<commit_after>class HomeAppView extends JView

  constructor:->

    super

    @setClass "screenshots"

    account = KD.whoami()

    @header = new WelcomeHeader
      type      : "big"
      title     : if KD.isLoggedIn() then\
        "Hi #{account.profile.firstName}! Welcome to the Koding Public Beta." else\
        "Welcome to the Koding Public Beta!<br>"
      subtitle  : "Warning! when we say beta - <a href='#'>we mean it</a> :)"

    @slideShow = new HomeSlideShow
      tagName : "section"

    @leftArrow = new KDCustomHTMLView
      tagName  : "a"
      cssClass : "arrow left"
      partial  : "<span></span>"
      click    : (event)=>
        @utils.stopDOMEvent event
        @slideShow.slideTo "prev"

    @rightArrow = new KDCustomHTMLView
      tagName  : "a"
      cssClass : "arrow right"
      partial  : "<span></span>"
      click    : (event)=>
        @utils.stopDOMEvent event
        @slideShow.slideTo "next"

    @homeLoginBar = new HomeLoginBar
      domId       : 'home-links'

    @slideShow.on "FirstSlideShown", =>
      @rightArrow.$().css right : 0
      @leftArrow.$().css  left  : -40

    @slideShow.on "LastSlideShown", =>
      @leftArrow.$().css  left  : 0
      @rightArrow.$().css right : -40

    @slideShow.on "OtherSlideShown", =>
      @leftArrow.$().css  left  : ""
      @rightArrow.$().css right : ""

  pistachio:->

    """
    {{> @header}}
    {{> @leftArrow}}
    {{> @rightArrow}}
    {{> @slideShow}}
    {{> @homeLoginBar}}
    """

  # OLD HOME PISTACHIO
  # left here for reference - SY

  # pistachio:->

  #   """
  #   <div class="kdview video-wrapper">
  #     <iframe src="https://player.vimeo.com/video/45156018?color=ffb500" width="89.13%"
{'fraction_non_alphanumeric': 0.15112262521588946, 'fraction_numerical': 0.012089810017271158, 'mean_word_length': 2.3095238095238093, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 45, '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': '3109055', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1170, 'n_words': 265}