<commit_before>FIND_PATH(ZOPFLI_INCLUDE_DIR
		NAMES
		zopfli/zopfli.h
		zopfli.h
)

FIND_LIBRARY(ZOPFLI_LIBRARY
		NAMES
		zopfli
)

SET(ZOPFLI_INCLUDE_DIRS ${ZOPFLI_INCLUDE_DIR})
SET(ZOPFLI_LIBRARIES ${ZOPFLI_LIBRARY})

IF(NOT ZOPFLI_INCLUDE_DIRS)
  MESSAGE(FATAL "Zopfli include dirs cannot be found")
ENDIF(NOT ZOPFLI_INCLUDE_DIRS)

IF(NOT ZOPFLI_LIBRARIES)
  MESSAGE(FATAL "Zopfli library cannot be found")
ENDIF(NOT ZOPFLI_LIBRARIES)

#Functions
INCLUDE(CheckFunctionExists)
SET(CMAKE_REQUIRED_INCLUDES ${ZOPFLI_INCLUDE_DIRS})
SET(CMAKE_REQUIRED_LIBRARIES ${ZOPFLI_LIBRARIES})


#Is zopfli found ?
IF(ZOPFLI_INCLUDE_DIRS AND ZOPFLI_LIBRARIES)
  SET(ZOPFLI_FOUND "YES" )
ENDIF(ZOPFLI_INCLUDE_DIRS AND ZOPFLI_LIBRARIES)


MARK_AS_ADVANCED(
  ZOPFLI_LIBRARIES
  ZOPFLI_INCLUDE_DIRS
)<commit_msg>StaticCompressed plugin: use FATAL_ERROR in FindZopfli.cmake<commit_after>FIND_PATH(ZOPFLI_INCLUDE_DIR
		NAMES
		zopfli/zopfli.h
		zopfli.h
)

FIND_LIBRARY(ZOPFLI_LIBRARY
		NAMES
		zopfli
)

SET(ZOPFLI_INCLUDE_DIRS ${ZOPFLI_INCLUDE_DIR})
SET(ZOPFLI_LIBRARIES ${ZOPFLI_LIBRARY})

IF(NOT ZOPFLI_INCLUDE_DIRS)
  MESSAGE(FATAL_ERROR "Zopfli include dirs cannot be found")
ENDIF(NOT ZOPFLI_INCLUDE_DIRS)

IF(NOT ZOPFLI_LIBRARIES)
  MESSAGE(FATAL_ERROR "Zopfli library cannot be found")
ENDIF(NOT ZOPFLI_LIBRARIES)

#Functions
INCLUDE(CheckFunctionExists)
SET(CMAKE_REQUIRED_INCLUDES ${ZOPFLI_INCLUDE_DIRS})
SET(CMAKE_REQUIRED_LIBRARIES ${ZOPFLI_LIBRARIES})


#Is zopfli found ?
IF(ZOPFLI_INCLUDE_DIRS AND ZOPFLI_LIBRARIES)
  SET(ZOPFLI_FOUND "YES" )
ENDIF(ZOPFLI_INCLUDE_DIRS AND ZOPFLI_LIBRARIES)


MARK_AS_ADVANCED(
  ZOPFLI_LIBRARIES
  ZOPFLI_INCLUDE_DIRS
)
{'fraction_non_alphanumeric': 0.07510599636583888, 'fraction_numerical': 0.0, 'mean_word_length': 8.027322404371585, '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': '2243573', 'n_tokens_mistral': 868, 'n_tokens_neox': 754, 'n_words': 113}