<commit_before>class IDEFilesTabView extends WorkspaceTabView

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

    options.cssClass      = 'ide-files-tab'
    options.addPlusHandle = no

    super options, data

    ideAppController = KD.getSingleton('appManager').getFrontApp()

    filesPane  = new KDTabPaneView
      name     : 'Files'
      closable : no

    filesPane.addSubView new FinderPane
    @tabView.addPane filesPane

    vmsPane    = new KDTabPaneView
      name     : 'VMs'
      closable : no

    vmsPane.addSubView new VMListPane
    @tabView.addPane  vmsPane

    settingsPane = new KDTabPaneView
      name       : 'Settings'
      closable   : no

    settingsPane.addSubView new SettingsPane
    @tabView.addPane settingsPane


    ################################
    actionsPane  = new KDTabPaneView
      name     : 'Actions'
      closable : no

    actionsPane.addSubView new KDButtonView
      title      : 'Vertical'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.splitTabView 'vertical'

    actionsPane.addSubView new KDButtonView
      title      : 'Horizontal'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.splitTabView 'horizontal'

    actionsPane.addSubView new KDButtonView
      title      : 'Merge'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.mergeSplitView()

    actionsPane.addSubView new KDButtonView
      title      : 'New file'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.openFile()

    actionsPane.addSubView new KDButtonView
      title      : 'Collapse sidebar'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.collapseSidebar()

    actionsPane.addSubView new KDButtonView
      title      : 'Expand sidebar'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.expandSidebar()

    @tabView.addPane actionsPane
<commit_msg>Minor code refactor.<commit_after>class IDEFilesTabView extends WorkspaceTabView

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

    options.cssClass      = 'ide-files-tab'
    options.addPlusHandle = no

    super options, data

    filesPane  = new KDTabPaneView
      name     : 'Files'
      closable : no

    filesPane.addSubView new FinderPane
    @tabView.addPane filesPane

    vmsPane    = new KDTabPaneView
      name     : 'VMs'
      closable : no

    vmsPane.addSubView new VMListPane
    @tabView.addPane  vmsPane

    settingsPane = new KDTabPaneView
      name       : 'Settings'
      closable   : no

    settingsPane.addSubView new SettingsPane
    @tabView.addPane settingsPane


    # actionsPane and these buttons are required for development
    # they will be removed when global shortcuts are implemented

    ideAppController = KD.getSingleton('appManager').getFrontApp()

    actionsPane  = new KDTabPaneView
      name     : 'Actions'
      closable : no

    actionsPane.addSubView new KDButtonView
      title      : 'Vertical'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.splitTabView 'vertical'

    actionsPane.addSubView new KDButtonView
      title      : 'Horizontal'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.splitTabView 'horizontal'

    actionsPane.addSubView new KDButtonView
      title      : 'Merge'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.mergeSplitView()

    actionsPane.addSubView new KDButtonView
      title      : 'New file'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.openFile()

    actionsPane.addSubView new KDButtonView
      title      : 'Collapse sidebar'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.collapseSidebar()

    actionsPane.addSubView new KDButtonView
      title      : 'Expand sidebar'
      cssClass   : 'compact solid green'
      attributes :
        style    : 'display: block; margin: 20px; width: 200px; '
      callback   : -> ideAppController.expandSidebar()

    @tabView.addPane actionsPane

{'fraction_non_alphanumeric': 0.08569166831585197, 'fraction_numerical': 0.011874134177716208, 'mean_word_length': 2.4218009478672986, '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': '5443148', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1406, 'n_words': 379}