<commit_before># To avoid loading underscore-plus and depending underscore on startup
__plus = null
_plus = ->
  __plus ?= require 'underscore-plus'

Delegato = require 'delegato'
settings = require './settings'

[
  CSON
  path
  Input
  selectList
  getEditorState  # set by Base.init()
] = [] # set null

VMP_LOADING_FILE = null
VMP_LOADED_FILES = []

loadVmpOperationFile = (filename) ->
  VMP_LOADING_FILE = filename
  loaded = require(filename)
  VMP_LOADING_FILE = null
  VMP_LOADED_FILES.push(filename)
  loaded

OperationAbortedError = null

vimStateMethods = [
  "onDidChangeSearch"<commit_msg>:bug: for dev-use write-command-table throw exception on first use after startup<commit_after># To avoid loading underscore-plus and depending underscore on startup
__plus = null
_plus = ->
  __plus ?= require 'underscore-plus'

Delegato = require 'delegato'
settings = require './settings'

[
  CSON
  path
  Input
  selectList
  getEditorState  # set by Base.init()
] = [] # set null

VMP_LOADING_FILE = null
VMP_LOADED_FILES = []

loadVmpOperationFile = (filename) ->
  # Call to loadVmpOperationFile can be nested.
  # 1. require("./operator-transform-string")
  # 2. in operator-transform-string.coffee call Base.getClass("Operator") cause operator.coffee required.
  # So we have to save original VMP_LOADING_FILE and restore it after require finished.
  vmpLoadingFileOriginal = VMP_LOADING_FILE
  VMP_LOADING_FILE = filename
  require(filename)
  VMP_LOADING_FILE = vmpLoadingFileOriginal

  VMP_LOADED_FILES.push(filename)

OperationAbortedError = null

vimStateMethods = [
  "onDidChangeSearch"
{'fraction_non_alphanumeric': 0.08644278606965174, 'fraction_numerical': 0.0012437810945273632, 'mean_word_length': 4.548275862068966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1724878', 'n_tokens_mistral': 534, 'n_tokens_neox': 519, 'n_words': 136}