<commit_before>class DashboardAppView extends JView

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

    options.cssClass or= "content-page"
    data or= @getSingleton("groupsController").getCurrentGroup()
    super options, data

    @header = new HeaderViewSection type : "big", title : "Group Dashboard"
    @nav    = new CommonInnerNavigation
    @tabs   = new KDTabView
      cssClass            : 'dashboard-tabs'
      hideHandleContainer : yes
    , data

    @setListeners()
    @once 'viewAppended', =>
      @createTabs()
      @_windowDidResize()

    @searchWrapper = new KDCustomHTMLView
      tagName  : 'section'<commit_msg>[client][app][Dashboard] added edit group permission check<commit_after>class DashboardAppView extends JView

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

    options.cssClass or= "content-page"
    data or= @getSingleton("groupsController").getCurrentGroup()
    super options, data

    @header = new HeaderViewSection type : "big", title : "Group Dashboard"
    @nav    = new CommonInnerNavigation
    @tabs   = new KDTabView
      cssClass            : 'dashboard-tabs'
      hideHandleContainer : yes
    , data

    @setListeners()
    @once 'viewAppended', =>
      group = KD.getSingleton("groupsController").getCurrentGroup()
      group.canEditGroup (err, success)=>
        if err or not success
          console.log err
          @header.hide()
          @nav.hide()
        else
          @header.show()
          @nav.show()
          @createTabs()
          @_windowDidResize()

    @searchWrapper = new KDCustomHTMLView
      tagName  : 'section'
{'fraction_non_alphanumeric': 0.10745891276864729, 'fraction_numerical': 0.0, 'mean_word_length': 2.733490566037736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1891601', 'n_tokens_mistral': 451, 'n_tokens_neox': 444, 'n_words': 109}