<commit_before>
MP 'rdnetto/YCM-Generator',  { 'on': ['YcmGenerateConfig', 'CCGenerateConfig'], 'branch': 'stable' }

function! BuildYCM(info)
    " info is a dictionary with 3 fields
    " - name:   name of the plugin
    " - status: 'installed', 'updated', or 'unchanged'
    " - force:  set on PlugInstall! or PlugUpdate!
    if a:info.status ==# 'installed' || a:info.force
        if !g:WINDOWS
            !./install.py --clang-completer
        else
            !python ./install.py --clang-completer
    endif
endfunction

MP 'Valloric/YouCompleteMe', { 'do': function('BuildYCM'), 'for': ['c', 'cpp', 'python', 'vim', 'js', 'go', 'sh'] }

" " Load YCM for specific filetypes
" function! s:invoke_ycm()
"     let l:supported = ['c', 'cpp', 'python', 'vim', 'js', 'go', 'sh']
"     let l:cur_ft = &filetype
"     if index(l:supported, l:cur_ft) > -1
"         call plug#load('YouCompleteMe')
"     endif
" endfunction
" 
" augroup LOAD_YCM
"     autocmd!
"     if !g:WINDOWS
"         autocmd InsertEnter * call s:invoke_ycm() | autocmd! LOAD_YCM
"     endif
" augroup END<commit_msg>Auto compile ycmd with python3.<commit_after>
MP 'rdnetto/YCM-Generator',  { 'on': ['YcmGenerateConfig', 'CCGenerateConfig'], 'branch': 'stable' }

function! BuildYCM(info)
    " info is a dictionary with 3 fields
    " - name:   name of the plugin
    " - status: 'installed', 'updated', or 'unchanged'
    " - force:  set on PlugInstall! or PlugUpdate!
    if a:info.status ==# 'installed' || a:info.force
        if !g:WINDOWS
            !python3 ./install.py --clang-completer
        else
            !python3 ./install.py --clang-completer
    endif
endfunction

MP 'Valloric/YouCompleteMe', { 'do': function('BuildYCM'), 'for': ['c', 'cpp', 'python', 'vim', 'js', 'go', 'sh'] }

" " Load YCM for specific filetypes
" function! s:invoke_ycm()
"     let l:supported = ['c', 'cpp', 'python', 'vim', 'js', 'go', 'sh']
"     let l:cur_ft = &filetype
"     if index(l:supported, l:cur_ft) > -1
"         call plug#load('YouCompleteMe')
"     endif
" endfunction
" 
" augroup LOAD_YCM
"     autocmd!
"     if !g:WINDOWS
"         autocmd InsertEnter * call s:invoke_ycm() | autocmd! LOAD_YCM
"     endif
" augroup END
{'fraction_non_alphanumeric': 0.16613852421910366, 'fraction_numerical': 0.003168854685377999, 'mean_word_length': 3.0402193784277878, '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': '7565574', 'n_tokens_mistral': 802, 'n_tokens_neox': 775, 'n_words': 204}