<commit_before>func! s:init_config()
  if !exists("g:cmake_cxx_compiler")       |  let g:cmake_cxx_compiler      = "clang++"       |  endif
  if !exists("g:cmake_c_compiler")         |  let g:cmake_c_compiler        = "clang"         |  endif
  if !exists("g:cmake_build_dirs")         |  let g:cmake_build_dirs        = [ "build" ]     |  endif
  if !exists("g:cmake_build_type")         |  let g:cmake_build_type        = "Debug"         |  endif
  if !exists("g:cmake_install_prefix")     |  let g:cmake_install_prefix    = "$HOME/.local"  |  endif
  if !exists("g:cmake_build_shared_libs")  |  let g:cmake_build_shared_libs = 1               |  endif
  if !exists("g:cmake_set_makeprg")        |  let g:cmake_set_makeprg       = 1               |  endif
endfunc

func! s:init_commands()
  command! -buffer -nargs=0 CMakeBuild       :call cmake#commands#build()
  command! -buffer -nargs=0 CMakeInstall     :call cmake#commands#install()
  command! -buffer -nargs=0 CMakeClean       :call cmake#commands#install()
  command! -buffer -nargs=0 CMakeTest        :call cmake#commands#test()
  command! -buffer -nargs=0 CMakeCreateBuild :call cmake#commands#create_build()
  command! -buffer -nargs=0 CMakeDeleteBuild :call cmake#commands#delete_build()
endfunc

func! s:tweak_makeprg()
  if g:cmake_set_makeprg == 1 && cmake#util#rootdir() != 0
    set makeprg="make -C " . cmake#util#rootdir()
  endif
endfunc

"" Pre-launch code.
if !exists("b:cmake_loaded_plugin")
  let b:cmake_loaded_plugin=1
  call s:init_config()
  call s:init_commands()
  call s:tweak_makeprg()
endif
<commit_msg>Updated logic to show proper makeprg.<commit_after>func! s:init_config()
  if !exists("g:cmake_cxx_compiler")       |  let g:cmake_cxx_compiler      = "clang++"       |  endif
  if !exists("g:cmake_c_compiler")         |  let g:cmake_c_compiler        = "clang"         |  endif
  if !exists("g:cmake_build_dirs")         |  let g:cmake_build_dirs        = [ "build" ]     |  endif
  if !exists("g:cmake_build_type")         |  let g:cmake_build_type        = "Debug"         |  endif
  if !exists("g:cmake_install_prefix")     |  let g:cmake_install_prefix    = "$HOME/.local"  |  endif
  if !exists("g:cmake_build_shared_libs")  |  let g:cmake_build_shared_libs = 1               |  endif
  if !exists("g:cmake_set_makeprg")        |  let g:cmake_set_makeprg       = 1               |  endif
endfunc

func! s:init_commands()
  command! -buffer -nargs=0 CMakeBuild       :call cmake#commands#build()
  command! -buffer -nargs=0 CMakeInstall     :call cmake#commands#install()
  command! -buffer -nargs=0 CMakeClean       :call cmake#commands#install()
  command! -buffer -nargs=0 CMakeTest        :call cmake#commands#test()
  command! -buffer -nargs=0 CMakeCreateBuild :call cmake#commands#create_build()
  command! -buffer -nargs=0 CMakeDeleteBuild :call cmake#commands#delete_build()
endfunc

func! s:tweak_makeprg()
  if g:cmake_set_makeprg == 1 && cmake#util#rootdir() != 0
    let &mp="make -C " . cmake#util#rootdir()
  endif
endfunc

"" Pre-launch code.
if !exists("b:cmake_loaded_plugin")
  let b:cmake_loaded_plugin=1
  call s:init_config()
  call s:init_commands()
  call s:tweak_makeprg()
endif

{'fraction_non_alphanumeric': 0.12390488110137672, 'fraction_numerical': 0.00688360450563204, 'mean_word_length': 3.2683578104138853, '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': '182109', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1164, 'n_words': 225}