<commit_before>class DashboardAppController extends AppController

  handler = (group, callback)->
    KD.getSingleton('groupsController').changeGroup group, (err)=>
      KD.singleton('appManager').open 'Dashboard', callback

  KD.registerAppClass this,
    name         : "Dashboard"
    routes                         :
      "/:name?/Dashboard"          : null
      "/:name?/Dashboard/:section" : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : section
    hiddenHandle : yes

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

    options.view = new DashboardAppView
      testPath   : "groups-dashboard"

    data or= (KD.getSingleton "groupsController").getCurrentGroup()

    super options, data

    @tabData = [
        name         : 'Settings'
        viewOptions  :
          viewClass  : GroupGeneralSettingsView
          lazy       : yes
      ,
        name         : 'Members'
        viewOptions  :
          viewClass  : GroupsMemberPermissionsView
          lazy       : yes
          callback   : @bound 'membersViewAdded'
      ,
        name         : 'Invitations'<commit_msg>Dashboard: Wait groupsController's ready state for instantiating the dashboard.<commit_after>class DashboardAppController extends AppController

  handler = (group, callback)->
    KD.getSingleton('groupsController').ready =>
      KD.getSingleton('groupsController').changeGroup group, (err)=>
        KD.singleton('appManager').open 'Dashboard', callback

  KD.registerAppClass this,
    name         : "Dashboard"
    routes                         :
      "/:name?/Dashboard"          : null
      "/:name?/Dashboard/:section" : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : section
    hiddenHandle : yes

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

    options.view = new DashboardAppView
      testPath   : "groups-dashboard"

    data or= (KD.getSingleton "groupsController").getCurrentGroup()

    super options, data

    @tabData = [
        name         : 'Settings'
        viewOptions  :
          viewClass  : GroupGeneralSettingsView
          lazy       : yes
      ,
        name         : 'Members'
        viewOptions  :
          viewClass  : GroupsMemberPermissionsView
          lazy       : yes
          callback   : @bound 'membersViewAdded'
      ,
        name         : 'Invitations'
{'fraction_non_alphanumeric': 0.10408765276021913, 'fraction_numerical': 0.0, 'mean_word_length': 2.0751295336787563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '2476035', 'n_tokens_mistral': 637, 'n_tokens_neox': 629, 'n_words': 140}