<commit_before>SidebarMachineList = require './sidebarmachinelist'
MoreVMsModal = require 'app/activity/sidebar/morevmsmodal'
globals = require 'globals'
ComputeHelpers = require '../../providers/computehelpers'


module.exports = class SidebarOwnMachinesList extends SidebarMachineList

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

    options.title       = 'Your VMs'
    options.hasPlusIcon = yes
    options.cssClass    = 'my-machines'

    super options, data

    @on 'ListHeaderClicked', ->
      new MoreVMsModal {}, globals.userMachines

    @on 'ListHeaderPlusIconClicked', ->
      ComputeHelpers.handleNewMachineRequest()
<commit_msg>SidebarOwnMachinesList: Don't show shared vms on more vms modal.<commit_after>SidebarMachineList = require './sidebarmachinelist'
MoreVMsModal = require 'app/activity/sidebar/morevmsmodal'
ComputeHelpers = require '../../providers/computehelpers'
Machine = require 'app/providers/machine'


module.exports = class SidebarOwnMachinesList extends SidebarMachineList

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

    options.title       = 'Your VMs'
    options.hasPlusIcon = yes
    options.cssClass    = 'my-machines'

    super options, data

    @on 'ListHeaderPlusIconClicked', -> ComputeHelpers.handleNewMachineRequest()

    @on 'ListHeaderClicked', =>

      machines = []

      machines.push new Machine machine: obj.machine  for obj in data

      new MoreVMsModal {}, machines

{'fraction_non_alphanumeric': 0.10407876230661041, 'fraction_numerical': 0.0, 'mean_word_length': 3.906896551724138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7390193', 'n_tokens_mistral': 424, 'n_tokens_neox': 410, 'n_words': 94}