<commit_before># - Try to find the OpenH264 library
# Once done this will define
#
#  OPENH264_ROOT - A list of search hints
#
#  OPENH264_FOUND - system has OpenH264
#  OPENH264_INCLUDE_DIR - the OpenH264 include directory
#  OPENH264_LIBRARIES - libopenh264 library

if (OPENH264_INCLUDE_DIR AND OPENH264_LIBRARY)
	set(OPENH264_FIND_QUIETLY TRUE)
endif (OPENH264_INCLUDE_DIR AND OPENH264_LIBRARY)

find_path(OPENH264_INCLUDE_DIR NAMES wels/codec_api.h wels/codec_app_def.h wels/codec_def.h 
	PATH_SUFFIXES include
	HINTS ${OPENH264_ROOT})
find_library(OPENH264_LIBRARY
	 NAMES openh264_dll openh264 welsdec
	 PATH_SUFFIXES lib
	 HINTS ${OPENH264_ROOT})

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenH264 DEFAULT_MSG OPENH264_LIBRARY OPENH264_INCLUDE_DIR)
<commit_msg>Added pkg-config to cmake OpenH264 detection.<commit_after># - Try to find the OpenH264 library
# Once done this will define
#
#  OPENH264_ROOT - A list of search hints
#
#  OPENH264_FOUND - system has OpenH264
#  OPENH264_INCLUDE_DIR - the OpenH264 include directory
#  OPENH264_LIBRARIES - libopenh264 library

if (UNIX AND NOT ANDROID)
  find_package(PkgConfig QUIET)
  pkg_check_modules(PC_OPENH264 QUIET openh264)
endif (UNIX AND NOT ANDROID)

if (OPENH264_INCLUDE_DIR AND OPENH264_LIBRARY)
	set(OPENH264_FIND_QUIETLY TRUE)
endif (OPENH264_INCLUDE_DIR AND OPENH264_LIBRARY)

find_path(OPENH264_INCLUDE_DIR NAMES wels/codec_api.h wels/codec_app_def.h wels/codec_def.h 
	PATH_SUFFIXES include
	HINTS ${OPENH264_ROOT} ${PC_OPENH264_INCLUDE_DIRS})
find_library(OPENH264_LIBRARY
	 NAMES openh264_dll openh264 welsdec
	 PATH_SUFFIXES lib
	 HINTS ${OPENH264_ROOT} ${PC_OPENH264_LIBRARY_DIRS})

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenH264 DEFAULT_MSG OPENH264_LIBRARY OPENH264_INCLUDE_DIR)

{'fraction_non_alphanumeric': 0.054764512595837894, 'fraction_numerical': 0.08050383351588171, 'mean_word_length': 6.741525423728813, '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': '6166523', 'n_tokens_mistral': 853, 'n_tokens_neox': 681, 'n_words': 148}