<commit_before>const defaultHotkeys = require('./defaultHotkeys')

const keyDictionary = loadHotkeys()
let keymap = generateKeymap(keyDictionary)

const hotkeyStore = module.exports = {}

hotkeyStore.getKeymap = () => {
  return keymap
}

hotkeyStore.getAll = () => {
  return keyDictionary
}

hotkeyStore.findKeyByKeycode = findKeyByKeycode
<commit_msg>Added comments.<commit_after>const defaultHotkeys = require('./defaultHotkeys')

// module level  variables
// this is where we keeps the important stuff in memory...
const keyDictionary = loadHotkeys()
let keymap = generateKeymap(keyDictionary)

// export the hotkeyStore object
const hotkeyStore = module.exports = {}

hotkeyStore.getKeymap = () => {
  return keymap
}

hotkeyStore.getAll = () => {
  return keyDictionary
}

hotkeyStore.findKeyByKeycode = findKeyByKeycode

{'fraction_non_alphanumeric': 0.10615199034981906, 'fraction_numerical': 0.0, 'mean_word_length': 5.0583941605839415, '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': '5059574', 'n_tokens_mistral': 257, 'n_tokens_neox': 256, 'n_words': 58}