<commit_before>hs.hotkey.bind({"ctrl"}, 102, function()
end)
hs.hotkey.bind({"shift"}, 102, function()
end)<commit_msg>[hammerspoon]<commit_after>function pressKey(modifier, key)
  hs.eventtap.event.newKeyEvent(modifier, key, true):post()
  hs.timer.usleep(100)
  hs.eventtap.event.newKeyEvent(modifier, key, false):post()
end
function launchOrHide(launchAppName, activeAppName)
  app = hs.application.frontmostApplication()
  if app:name() == activeAppName then
    app:hide()
  else
    hs.application.launchOrFocus(launchAppName)
  end
end

hs.hotkey.bind({"ctrl"}, 102, function() end)
hs.hotkey.bind({"shift"}, 102, function() end)

hs.hotkey.bind({"cmd", "alt", "shift"}, "J", function()
  pressKey({"cmd", "shift"}, "[")
end)
hs.hotkey.bind({"cmd", "alt", "shift"}, "L", function()
  pressKey({"cmd", "shift"}, "]")
end)

hs.hotkey.bind({"cmd"}, "1", function()
  launchOrHide("iTerm 2", "iTerm2")
end)
hs.hotkey.bind({"cmd"}, "2", function()
  launchOrHide("Atom", "Atom")
end)
hs.hotkey.bind({"cmd"}, "3", function()
  launchOrHide("Google Chrome", "Google Chrome")
end)
hs.hotkey.bind({"cmd"}, "4", function()
  launchOrHide("IntelliJ IDEA CE", "IntelliJ IDEA")
end)
{'fraction_non_alphanumeric': 0.2151360544217687, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 6.40251572327044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2236030', 'n_tokens_mistral': 465, 'n_tokens_neox': 435, 'n_words': 86}