<commit_before>$(document.body).bind 'keyup', (event) ->
  return unless event.srcElement.localName is 'body'
  switch event.keyCode
    when 81 then $('.movebutton[data-direction=nw]').trigger 'click'
    when 87 then $('.movebutton[data-direction=n]').trigger 'click'
    when 69 then $('.movebutton[data-direction=ne]').trigger 'click'
    when 65 then $('.movebutton[data-direction=w]').trigger 'click'
    when 68 then $('.movebutton[data-direction=e]').trigger 'click'
    when 90 then $('.movebutton[data-direction=sw]').trigger 'click'
    when 83 then $('.movebutton[data-direction=s]').trigger 'click'
    when 88 then $('.movebutton[data-direction=s]').trigger 'click'
    when 67 then $('.movebutton[data-direction=se]').trigger 'click'
    when 80 #P
      if event.shiftKey
        $('[data-action-focus=paint]').focus()
      else
        $('input[data-action=paint]').trigger 'click'
    when 85 #U
      if event.shiftKey
        $('[data-action-focus=use]').focus()
      else
        $('input[data-action=use]').trigger 'click'
    when 75 #K
      if event.shiftKey
        $('[data-action-focus=attack]').focus()
      else
        $('input[data-action=attack]').trigger 'click'
    when 76 #L
      $('input[data-action=search]').trigger 'click'<commit_msg>keyboard shortcut for enter/exit (F)<commit_after>$(document.body).bind 'keyup', (event) ->
  return unless event.srcElement.localName is 'body'
  switch event.keyCode
    when 81 then $('.movebutton[data-direction=nw]').trigger 'click'
    when 87 then $('.movebutton[data-direction=n]').trigger 'click'
    when 69 then $('.movebutton[data-direction=ne]').trigger 'click'
    when 65 then $('.movebutton[data-direction=w]').trigger 'click'
    when 68 then $('.movebutton[data-direction=e]').trigger 'click'
    when 90 then $('.movebutton[data-direction=sw]').trigger 'click'
    when 83 then $('.movebutton[data-direction=s]').trigger 'click'
    when 88 then $('.movebutton[data-direction=s]').trigger 'click'
    when 67 then $('.movebutton[data-direction=se]').trigger 'click'
    when 70 then $('.movebutton[data-direction=enterexit]').trigger 'click'
    when 80 #P
      if event.shiftKey
        $('[data-action-focus=paint]').focus()
      else
        $('input[data-action=paint]').trigger 'click'
    when 85 #U
      if event.shiftKey
        $('[data-action-focus=use]').focus()
      else
        $('input[data-action=use]').trigger 'click'
    when 75 #K
      if event.shiftKey
        $('[data-action-focus=attack]').focus()
      else
        $('input[data-action=attack]').trigger 'click'
    when 76 #L
      $('input[data-action=search]').trigger 'click'
{'fraction_non_alphanumeric': 0.1799021452766278, 'fraction_numerical': 0.020323673315769664, 'mean_word_length': 3.5050847457627117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4643061', 'n_tokens_mistral': 904, 'n_tokens_neox': 822, 'n_words': 182}