<commit_before># Find haru pdf header and library.
#

# This module defines the following uncached variables:
#  hpdf_FOUND, if false, do not try to use haru pdf.
#  hpdf_INCLUDE_DIRS, where to find hpdf.h.
#  hpdf_LIBRARIES, the libraries to link against to use haru pdf
#  hpdf_LIBRARY_DIRS, the directory where libhpdf (either shared or static)
#  is found.

find_path(hpdf_INCLUDE_DIR hpdf.h /usr/local/include/hpdf /usr/local/include /usr/include/hpdf /usr/include)

if(hpdf_INCLUDE_DIR)
  find_library(hpdf_LIBRARY
  NAMES hpdf
  PATHS /usr/local/lib /usr/lib
  )
  if(hpdf_LIBRARY)
    set(hpdf_LIBRARY_DIR "")
    get_filename_component(hpdf_LIBRARY_DIRS ${hpdf_LIBRARY} PATH)
    # Set uncached variables as per standard.
    set(hpdf_FOUND ON)
    set(hpdf_INCLUDE_DIRS ${hpdf_INCLUDE_DIR})
    set(hpdf_LIBRARIES ${hpdf_LIBRARY})
  endif(hpdf_LIBRARY)
endif(hpdf_INCLUDE_DIR)
	    
if(hpdf_FOUND)<commit_msg>Search for hpdf headers found in a suffix subdirectory named hpdf before searching for those headers without such a suffix subdirectory.<commit_after># Find haru pdf header and library.
#

# This module defines the following uncached variables:
#  hpdf_FOUND, if false, do not try to use haru pdf.
#  hpdf_INCLUDE_DIRS, where to find hpdf.h.
#  hpdf_LIBRARIES, the libraries to link against to use haru pdf
#  hpdf_LIBRARY_DIRS, the directory where libhpdf (either shared or static)
#  is found.

# Give preference to header found in hpdf subdirectory (which is the
# result of a build and install of upstream libharu), then if not
# found look for the case of no such subdirectory (which is how the
# Debian system version of libharu headers is installed).
find_path(hpdf_INCLUDE_DIR hpdf.h PATHS /usr/local/include /usr/include PATH_SUFFIXES hpdf)
find_path(hpdf_INCLUDE_DIR hpdf.h PATHS /usr/local/include /usr/include)

if(hpdf_INCLUDE_DIR)
  find_library(hpdf_LIBRARY
  NAMES hpdf
  PATHS /usr/local/lib /usr/lib
  )
  if(hpdf_LIBRARY)
    set(hpdf_LIBRARY_DIR "")
    get_filename_component(hpdf_LIBRARY_DIRS ${hpdf_LIBRARY} PATH)
    # Set uncached variables as per standard.
    set(hpdf_FOUND ON)
    set(hpdf_INCLUDE_DIRS ${hpdf_INCLUDE_DIR})
    set(hpdf_LIBRARIES ${hpdf_LIBRARY})
  endif(hpdf_LIBRARY)
endif(hpdf_INCLUDE_DIR)
	    
if(hpdf_FOUND)
{'fraction_non_alphanumeric': 0.07462686567164178, 'fraction_numerical': 0.0, 'mean_word_length': 4.58578431372549, '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': '4983391', 'n_tokens_mistral': 863, 'n_tokens_neox': 798, 'n_words': 235}