<commit_before>" Enable ruler for better debugging purposes
set ruler

" Nvim can't yet send any VimL events through its msgpack-rpc protocol.
" But it is possible to send arbitrary events through the rpcnotiy function.
" Therefore we receive any VimL events here and forward them to the client
" through with help of rpcnotify.
function! SendWinEnter(fname)
  call rpcnotify(0, "_WinEnter", a:fname)
endfunction

autocmd WinEnter * :call SendWinEnter(expand("<afile>"))<commit_msg>Add WinLeave event<commit_after>" Enable ruler for better debugging purposes
set ruler

" Nvim can't yet send any VimL events through its msgpack-rpc protocol.
" But it is possible to send arbitrary events through the rpcnotiy function.
" Therefore we receive any VimL events here and forward them to the client
" through with help of rpcnotify.
function! SendWinEnter()
  let a:fname = expand("<afile>")
  let a:winId = winnr()
  call rpcnotify(0, "_WinEnter", a:winId, a:fname)
endfunction

function! SendWinLeave()
  let a:fname = expand("<afile>")
  let a:winId = winnr()
  call rpcnotify(0, "_WinLeave", a:winId, a:fname)
endfunction

autocmd WinEnter * :call SendWinEnter()
autocmd WinLeave * :call SendWinLeave()
{'fraction_non_alphanumeric': 0.08492922564529559, 'fraction_numerical': 0.002497918401332223, 'mean_word_length': 5.326315789473684, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6561410', 'n_tokens_mistral': 377, 'n_tokens_neox': 368, 'n_words': 148}