<commit_before>class FooterMenuItem extends KDListItemView

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

    options.tooltip = switch data.title.toLowerCase()
      when "chat"
        title   : "Chat"
        gravity : "se"
        offset  : -3
      when "about"
        title : "About Koding"
        offset  : -3
      when "help"
        title   : "Instructions Book"
        gravity : "sw"
        offset  : -3

    super options, data

    @setClass "#{@utils.slugify @getData().title.toLowerCase()}"

  mouseDown:(event)->

    cb = @getData().callback
    cb.call @ if cb

  partial:->
    "<span></span>"

  showAboutDisplay:->

    if not @aboutIsOpen
      @aboutIsOpen             = yes
      contentDisplayController = @getSingleton "contentDisplayController"
      contentDisplayController.emit "ContentDisplayWantsToBeShown", view = new AboutView
      view.on "KDObjectWillBeDestroyed", => @aboutIsOpen = no<commit_msg>changed FootterMenuItem to use pistachios and have views for the icons, which then received a KDTooltip wight he correct parameters<commit_after>class FooterMenuItem extends KDListItemView

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

    super options, data

    @icon = new KDCustomHTMLView
      tagName : 'span'
      tooltip : switch data.title.toLowerCase()
        when "chat"
          title   : "Chat"
          placement : 'top'
          direction : 'left'
          offset  :
            top   : 3
            left : -5
        when "about"
          title : "About Koding"
          placement : 'top'
          direction : 'center'
          offset  :
            top   : 3
            left  : -8
        when "help"
          title   : "Instructions Book"
          placement : 'top'
          direction : 'right'
          offset  :
            top   : 3

    @setClass "#{@utils.slugify @getData().title.toLowerCase()}"

  mouseDown:(event)->

    cb = @getData().callback
    cb.call @ if cb

  viewAppended:->
    super()
    @setTemplate @pistachio()
    @template.update()

  pistachio:->
    """
     {{> @icon}}
    """

  showAboutDisplay:->

    if not @aboutIsOpen
      @aboutIsOpen             = yes
      contentDisplayController = @getSingleton "contentDisplayController"
      contentDisplayController.emit "ContentDisplayWantsToBeShown", view = new AboutView
      view.on "KDObjectWillBeDestroyed", => @aboutIsOpen = no
{'fraction_non_alphanumeric': 0.10577328276443321, 'fraction_numerical': 0.00337126000842815, 'mean_word_length': 2.111402359108781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5321998', 'n_tokens_mistral': 689, 'n_tokens_neox': 672, 'n_words': 173}