<commit_before>func! cmake#commands#build()
  " Build the KRAKEN!
  call cmake#util#run_make("all")
endfunc

func! cmake#commands#clean()
  " Clean your room.
  call cmake#util#run_make("clean")
endfunc

func! cmake#commands#test()
  call cmake#util#run_make("test")
endfunc

func! cmake#commands#install()
  call cmake#utils#run_make("install")
endfunc

func! cmake#commands#create_build()
  if !filereadable(getcwd() . "/CMakeLists.txt")
    echoerr "[cmake] No `CMakeLists.txt` found at " . getcwd()
    return
  endif

  " TODO: Create a buildir
  " TODO: Go into said dir
  " TODO: Run inital CMake config.

  if cmake#util#cmake_build_exists(getcwd())
    echoerr "[cmake] CMake project already exists here."
    return
  else
    let buildir = getcwd() . "/" . g:cmake_build_dirs[0]
    call system("mkdir " . buildir)
    echomsg "[cmake] Configuring project..."
    exec "!cd " . buildir ."; cmake .. -DCMAKE_INSTALL_PREFIX=" . g:cmake_install_prefix
    echomsg "[cmake] Project configured at '" . buildir . "'"
  endif
endfunc<commit_msg>Updated command logic for `CMakeCreateBuild`.<commit_after>func! cmake#commands#build()
  " Build the KRAKEN!
  call cmake#util#run_make("all")
endfunc

func! cmake#commands#clean()
  " Clean your room.
  call cmake#util#run_make("clean")
endfunc

func! cmake#commands#test()
  call cmake#util#run_make("test")
endfunc

func! cmake#commands#install()
  call cmake#utils#run_make("install")
endfunc

func! cmake#commands#create_build()
  if !filereadable(getcwd() . "/CMakeLists.txt")
    echoerr "[cmake] No `CMakeLists.txt` found at " . getcwd()
    return
  endif
  
  if cmake#util#cmake_build_exists(getcwd())
    echoerr "[cmake] CMake project already exists here."
    return
  else
    let buildir = getcwd() . "/" . g:cmake_build_dirs[0]
    let cmakecachefile = buildir . "/CMakeCache.txt"
    exec "!mkdir" buildir "; touch" cmakecachefile
    echomsg "[cmake] Configuring project..."
    call cmake#util#run_cmake(" ")
    echomsg "[cmake] Project configured at '" . buildir . "'"
  endif
endfunc
{'fraction_non_alphanumeric': 0.13472762645914396, 'fraction_numerical': 0.0009727626459143969, 'mean_word_length': 4.247448979591836, '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': '1650265', 'n_tokens_mistral': 755, 'n_tokens_neox': 732, 'n_words': 171}