<commit_before>nnoremap <localleader>rr :ConjureEvalCurrentForm<cr>
nnoremap <localleader>re :ConjureEvalRootForm<cr>
vnoremap <localleader>re :ConjureEvalSelection<cr>
nnoremap <localleader>rf :ConjureEvalBuffer<cr>
nnoremap <localleader>rd :ConjureLoadFile <c-r>%<cr>
nnoremap <localleader>rs :ConjureStatus<cr>
nnoremap <localleader>rl :ConjureOpenLog<cr>
nnoremap <localleader>rq :ConjureCloseLog<cr>
nnoremap K :ConjureDoc <c-r><c-w><cr>

function! s:close_log()
  if expand("%:p") !~# "/tmp/conjure-log-\\d\\+.cljc"
    ConjureCloseLog
  endif
endfunction

augroup conjure
  autocmd! InsertEnter *.clj\(c\|s\) :call <sid>close_log()
augroup END<commit_msg>Forgot to clean the autocmds<commit_after>nnoremap <localleader>rr :ConjureEvalCurrentForm<cr>
nnoremap <localleader>re :ConjureEvalRootForm<cr>
vnoremap <localleader>re :ConjureEvalSelection<cr>
nnoremap <localleader>rf :ConjureEvalBuffer<cr>
nnoremap <localleader>rd :ConjureLoadFile <c-r>%<cr>
nnoremap <localleader>rs :ConjureStatus<cr>
nnoremap <localleader>rl :ConjureOpenLog<cr>
nnoremap <localleader>rq :ConjureCloseLog<cr>
nnoremap K :ConjureDoc <c-r><c-w><cr>

function! s:close_log()
  if expand("%:p") !~# "/tmp/conjure-log-\\d\\+.cljc"
    ConjureCloseLog
  endif
endfunction

augroup conjure
  autocmd!
  autocmd! InsertEnter *.clj\(c\|s\) :call <sid>close_log()
augroup END
{'fraction_non_alphanumeric': 0.14148148148148149, 'fraction_numerical': 0.0, 'mean_word_length': 7.660256410256411, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '6639038', 'n_tokens_mistral': 572, 'n_tokens_neox': 541, 'n_words': 96}