<commit_before># - try to find Waffle include dirs and library

if (ANDROID)
    set (Android_root_path "$ENV{OUT}")
	if (Android_root_path)
		set (Waffle_INC_SEARCH_PATH "$ENV{OUT}/obj/include/waffle-1"
			"$ENV{OUT}/obj/lib"
			"$ENV{ANDROID_BUILD_TOP}/external/waffle"
		)

		set (Waffle_LIB_SEARCH_PATH "$ENV{OUT}/obj/lib")
	endif ()

	find_path (Waffle_INCLUDE_DIRS waffle.h
		PATHS ${Waffle_INC_SEARCH_PATH}
		DOC "The directory where waffle.h resides"
		NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH
		)

	find_library (Waffle_LIBRARIES waffle-1
		PATHS ${Waffle_LIB_SEARCH_PATH}
		DOC "The directory where libwaffle-1 resides"
		NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH
		)

	if (Waffle_INCLUDE_DIRS AND Waffle_LIBRARIES)
		set (Waffle_FOUND 1)
	endif (Waffle_INCLUDE_DIRS AND Waffle_LIBRARIES)
else ()
	find_package (PkgConfig)
	if (PKG_CONFIG_FOUND)
		pkg_search_module (Waffle waffle-1)
	endif ()
endif ()

mark_as_advanced (
	Waffle_INCLUDE_DIRS
	Waffle_LIBRARIES
)

mark_as_advanced (
	Waffle_FOUND
)
<commit_msg>cmake: Simplify FindWaffle.cmake.<commit_after># - try to find Waffle include dirs and library

if (ANDROID)
    set (Android_root_path "$ENV{OUT}")
	if (Android_root_path)
		set (Waffle_INC_SEARCH_PATH "$ENV{OUT}/obj/include/waffle-1"
			"$ENV{OUT}/obj/lib"
			"$ENV{ANDROID_BUILD_TOP}/external/waffle"
		)

		set (Waffle_LIB_SEARCH_PATH "$ENV{OUT}/obj/lib")
	endif ()

	find_path (Waffle_INCLUDE_DIRS waffle.h
		PATHS ${Waffle_INC_SEARCH_PATH}
		DOC "The directory where waffle.h resides"
		NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH
		)

	find_library (Waffle_LIBRARIES waffle-1
		PATHS ${Waffle_LIB_SEARCH_PATH}
		DOC "The directory where libwaffle-1 resides"
		NO_CMAKE_FIND_ROOT_PATH NO_DEFAULT_PATH
		)
else ()
	find_package (PkgConfig)
	if (PKG_CONFIG_FOUND)
		pkg_search_module (Waffle waffle-1)
	endif ()
endif ()

include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (Waffle DEFAULT_MSG Waffle_LIBRARIES Waffle_INCLUDE_DIRS)

{'fraction_non_alphanumeric': 0.0927521540800811, 'fraction_numerical': 0.00456158134820071, 'mean_word_length': 5.514851485148514, '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': '1964637', 'n_tokens_mistral': 902, 'n_tokens_neox': 825, 'n_words': 147}