<commit_before>class IDE.StatusBar extends KDView

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

    options.cssClass = 'status-bar'

    super options, data

    @addSubView @status = new KDCustomHTMLView
      cssClass: 'status'<commit_msg>Added context menu to status bar.<commit_after>class IDE.StatusBar extends KDView

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

    options.cssClass = 'status-bar'

    super options, data

    @status     = new KDCustomHTMLView
      cssClass  : 'status'

    @menuButton = new KDCustomHTMLView
      tagName   : 'span'
      cssClass  : 'actions-button'
      click     : =>
        KD.getSingleton('appManager').tell 'IDE', 'showActionsMenu', @menuButton

    @addSubView @status
    @addSubView @menuButton


class IDE.StatusBarMenu extends KDContextMenu

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

    options.cssClass = 'status-bar-menu'
    data = @getMenuItems options.paneType

    super options, data

    @on 'ContextMenuItemReceivedClick', @bound 'destroy'

  getMenuItems: (paneType) ->
    appManager = KD.getSingleton 'appManager'
    items      = {}

    items.Shortcuts  = callback: -> appManager.tell 'IDE', 'showShortcutsView'
    items.Feedback   = callback: -> appManager.tell 'IDE', 'showFeedbackView'
    items.Contribute = callback: -> appManager.tell 'IDE', 'showContributeView'
    items.Quit       = callback: ->
      appManager.quitByName 'IDE'
      KD.getSingleton('router').handleRoute '/Activity'

    return items
{'fraction_non_alphanumeric': 0.11389830508474576, 'fraction_numerical': 0.0, 'mean_word_length': 3.169491525423729, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1190145', 'n_tokens_mistral': 466, 'n_tokens_neox': 432, 'n_words': 103}