<commit_before>class DashboardAppController extends AppController

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

  KD.registerAppClass this,
    name                           : "Dashboard"
    routes                         :
      "/:name?/Dashboard"          : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : "Settings"
      "/:name?/Dashboard/:section" : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : decodeURIComponent 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'
        viewOptions  :
          viewClass  : GroupsInvitationView
          lazy       : yes
      ,
        name         : 'Permissions'
        viewOptions  :
          viewClass  : GroupPermissionsView
          lazy       : yes
      ,
        name         : 'Membership policy'
        viewOptions  :
          viewClass  : GroupsMembershipPolicyDetailView
          lazy       : yes
          callback   : @bound 'policyViewAdded'
      # ,
      #   name         : 'Payment'
      #   viewOptions  :
      #     viewClass  : GroupPaymentSettingsView
      #     lazy       : yes
      #     callback   : @bound 'paymentViewAdded'
      ]

      if data.slug is "koding"
        @tabData.push
            name         : 'Products'
            kodingOnly   : yes
            viewOptions  :
              viewClass  : GroupProductSettingsView
              lazy       : yes
              callback   : @bound 'productViewAdded'
          ,
            name         : 'Blocked users'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : GroupsBlockedUserView
              lazy       : yes
          ,
            name         : 'Badges'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : BadgeDashboardView
              lazy       : yes
          ,
            name         : 'Widgets'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : CustomViewsManager
              lazy       : yes
          ,
            name         : 'Onboarding'
            hiddenHandle : @getData().privacy is 'public'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : OnboardingDashboardView
              lazy       : yes
          ,
            name         : 'Administration'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : AdministrationView
              lazy       : yes<commit_msg>Dashboard: Remove unnecessary hiddenHandle attribute for dashboard view.<commit_after>class DashboardAppController extends AppController

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

  KD.registerAppClass this,
    name                           : "Dashboard"
    routes                         :
      "/:name?/Dashboard"          : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : "Settings"
      "/:name?/Dashboard/:section" : ({params : {section,name}})->
        handler name, (app)-> app.loadSection title : decodeURIComponent 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'
        viewOptions  :
          viewClass  : GroupsInvitationView
          lazy       : yes
      ,
        name         : 'Permissions'
        viewOptions  :
          viewClass  : GroupPermissionsView
          lazy       : yes
      ,
        name         : 'Membership policy'
        viewOptions  :
          viewClass  : GroupsMembershipPolicyDetailView
          lazy       : yes
          callback   : @bound 'policyViewAdded'
      # ,
      #   name         : 'Payment'
      #   viewOptions  :
      #     viewClass  : GroupPaymentSettingsView
      #     lazy       : yes
      #     callback   : @bound 'paymentViewAdded'
      ]

      if data.slug is "koding"
        @tabData.push
            name         : 'Products'
            kodingOnly   : yes
            viewOptions  :
              viewClass  : GroupProductSettingsView
              lazy       : yes
              callback   : @bound 'productViewAdded'
          ,
            name         : 'Blocked users'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : GroupsBlockedUserView
              lazy       : yes
          ,
            name         : 'Badges'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : BadgeDashboardView
              lazy       : yes
          ,
            name         : 'Widgets'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : CustomViewsManager
              lazy       : yes
          ,
            name         : 'Onboarding'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : OnboardingDashboardView
              lazy       : yes
          ,
            name         : 'Administration'
            kodingOnly   : yes # this is only intended for koding group, we assume koding group is super-group
            viewOptions  :
              viewClass  : AdministrationView
              lazy       : yes
{'fraction_non_alphanumeric': 0.06963710242398767, 'fraction_numerical': 0.0, 'mean_word_length': 1.4188410708234496, 'pattern_counts': {'":': 0, '<': 3, '<?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': '958579', 'n_tokens_mistral': 1764, 'n_tokens_neox': 1778, 'n_words': 474}