<commit_before>func! cmake#commands#build()
	echomsg "[cmake] Building all targets..."
	let l:output = cmake#util#run_make("all",getcwd())
	echo l:output
endfunc

func! cmake#commands#clean()
	echomsg "[cmake] Cleaning..."
	let l:output = cmake#util#run_make("clean",getcwd())
	echo l:output
endfunc

func! cmake#commands#test()
	echomsg "[cmake] Testing project..."
	let l:output = cmake#util#run_make("test",getcwd())
	echo l:output
endfunc

func! cmake#commands#install()
	echomsg "[cmake] Installing project..."
	let l:output = cmake#util#run_make("install",getcwd())
	echo l:output
endfunc

" TODO: Allow choosing of build directory name?
func! cmake#commands#create_build()
	let srcdir = cmake#util#find_source_dir(getcwd())
	if !isdirectory(srcdir)
		echom "[cmake] Can't find sources for CMake."
	endif

	let bindir = cmake#util#find_binary_dir(srcdir)
	if !isdirectory(bindir)
		echo "[cmake] Making build directory '" . bindir . "'..."
		echo system("mkdir -p " . bindir)
	endif

	echomsg "[cmake] Configuring project..."
	echo cmake#util#init_cmake(bindir)
	echomsg "[cmake] Created build."
endfunc

func! cmake#commands#delete_build()
	let bindir = cmake#util#find_binary_dir(getcwd())

	if !isdirectory(bindir)
		echom "[cmake] No CMake build system found."
		return 0
	else
		echom "[cmake] Deleting files under " . bindir . "...")
		return system("rm -rv" . bindir)
	endif
endfunc<commit_msg>Swapped use of system in favor of conditional Vimux.<commit_after>func! cmake#commands#build()
	echomsg "[cmake] Building all targets..."
	let l:output = cmake#util#run_make("all",getcwd())
	echo l:output
endfunc

func! cmake#commands#clean()
	echomsg "[cmake] Cleaning..."
	let l:output = cmake#util#run_make("clean",getcwd())
	echo l:output
endfunc

func! cmake#commands#test()
	echomsg "[cmake] Testing project..."
	let l:output = cmake#util#run_make("test",getcwd())
	echo l:output
endfunc

func! cmake#commands#install()
	echomsg "[cmake] Installing project..."
	let l:output = cmake#util#run_make("install",getcwd())
	echo l:output
endfunc

" TODO: Allow choosing of build directory name?
func! cmake#commands#create_build()
	let srcdir = cmake#util#find_source_dir(getcwd())
	if !isdirectory(srcdir)
		echom "[cmake] Can't find sources for CMake."
	endif

	let bindir = cmake#util#find_binary_dir(srcdir)
	if !isdirectory(bindir)
		echo "[cmake] Making build directory '" . bindir . "'..."
		echo system("mkdir -p " . bindir)
	endif

	echomsg "[cmake] Configuring project..."
	echo cmake#util#init_cmake(bindir)
	echomsg "[cmake] Created build."
endfunc

func! cmake#commands#delete_build()
	let bindir = cmake#util#find_binary_dir(getcwd())

	if !isdirectory(bindir)
		echom "[cmake] No CMake build system found."
		return 0
	else
		echom "[cmake] Deleting files under " . bindir . "...")
		cmake#util#shell_exec("rm -rv" . bindir)
	endif
endfunc
{'fraction_non_alphanumeric': 0.1436560643131772, 'fraction_numerical': 0.0006990562740300594, 'mean_word_length': 5.29010989010989, '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': '1177923', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1045, 'n_words': 258}