<commit_before># Build recipe for building programs in the programs/ directory.
function (lsf_build_program prog_name extra_libs)
	add_executable (programs/${prog_name}
		programs/common.c
		programs/${prog_name}.c
		)
	target_link_libraries (programs/${prog_name} sndfile ${extra_libs})
	endfunction ()


# Build recipe for building C tests in the src/ directory.
function (lsf_build_src_test_c test_name extra_files)
	add_executable (src/${test_name}
		src/${test_name}.c
		${extra_files}
		)
	target_link_libraries (src/${test_name} m)
	set_target_properties (src/${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		)
	add_dependencies (check src/${test_name})
	endfunction ()

# Build recipe for building C tests in the tests/ directory.
function (lsf_build_test_c test_name extra_files)
	add_executable (tests/${test_name}
		tests/utils.c
		tests/${test_name}.c
		${extra_files}
		)
	target_link_libraries (tests/${test_name} sndfile)
	set_target_properties (tests/${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		)
	add_dependencies (check tests/${test_name})
	endfunction ()

# Build recipe for building C++ tests in the tests/ directory.
function (lsf_build_test_cc test_name)
	add_executable (tests/${test_name}
		tests/utils.c
		tests/${test_name}.cc
		)
	target_link_libraries (tests/${test_name} sndfile)
	set_target_properties (tests/${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		)
	add_dependencies (check tests/${test_name})
	endfunction ()
<commit_msg>CMake/build.cmake : Fix for CMake 3.0.2.<commit_after># Build recipe for building programs in the programs/ directory.
function (lsf_build_program prog_name extra_libs)
	add_executable (${prog_name}
		programs/common.c
		programs/${prog_name}.c
		)
	target_link_libraries (${prog_name} sndfile ${extra_libs})
	set_target_properties (${prog_name}
		PROPERTIES
		RUNTIME_OUTPUT_DIRECTORY programs
		)
	endfunction ()


# Build recipe for building C tests in the src/ directory.
function (lsf_build_src_test_c test_name extra_files)
	add_executable (${test_name}
		src/${test_name}.c
		${extra_files}
		)
	target_link_libraries (${test_name} m)
	set_target_properties (${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		RUNTIME_OUTPUT_DIRECTORY src
		)
	add_dependencies (check ${test_name})
	endfunction ()

# Build recipe for building C tests in the tests/ directory.
function (lsf_build_test_c test_name extra_files)
	add_executable (${test_name}
		tests/${test_name}.c
		tests/utils.c
		${extra_files}
		)
	target_link_libraries (${test_name} sndfile)
	set_target_properties (${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		RUNTIME_OUTPUT_DIRECTORY tests
		)
	add_dependencies (check ${test_name})
	endfunction ()

# Build recipe for building C++ tests in the tests/ directory.
function (lsf_build_test_cc test_name)
	add_executable (${test_name}
		tests/utils.c
		tests/${test_name}.cc
		)
	target_link_libraries (${test_name} sndfile)
	set_target_properties (${test_name}
		PROPERTIES
		EXCLUDE_FROM_DEFAULT_BUILD TRUE
		EXCLUDE_FROM_ALL TRUE
		RUNTIME_OUTPUT_DIRECTORY tests
		)
	add_dependencies (check ${test_name})
	endfunction ()

{'fraction_non_alphanumeric': 0.09148936170212765, 'fraction_numerical': 0.000911854103343465, 'mean_word_length': 5.529761904761905, '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': '4777171', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1153, 'n_words': 253}