<commit_before>do ->

  KD.registerRoutes 'IDE',

    '/:name?/IDE' : ({params:{name}, query})->
      router = KD.getSingleton 'router'
      router.openSection 'IDE', name, query

    '/:name?/IDE/VM' : ({params:{name}, query})->
      KD.singletons.router.handleRoute 'IDE'

    '/:name?/IDE/VM/:slug' : ({params:{name, slug}, query})->
      {appManager} = KD.singletons
      callback = (app) ->
        log '@acet handle this VM please', slug
      appManager.open 'IDE', callback<commit_msg>Finder: Handle route to mount VM specific filetree.<commit_after>do ->

  KD.registerRoutes 'IDE',

    '/:name?/IDE' : ({params:{name}, query})->

      router = KD.getSingleton 'router'
      router.openSection 'IDE', name, query

    '/:name?/IDE/VM/:slug' : ({params:{name, slug}, query})->

      appManager  = KD.getSingleton 'appManager'
      ideApps     = appManager.appControllers.IDE
      fallback    = ->
        appManager.open 'IDE', { forceNew: yes }, (app) ->
          app.mountedMachineUId = slug

      return fallback()  unless ideApps?.instances

      for instance in ideApps.instances when instance.mountedMachineUId is slug
          ideInstance = instance

      if ideInstance then appManager.showInstance ideInstance else fallback()
{'fraction_non_alphanumeric': 0.1494435612082671, 'fraction_numerical': 0.0, 'mean_word_length': 2.873846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4086399', 'n_tokens_mistral': 408, 'n_tokens_neox': 384, 'n_words': 93}