<commit_before>#Finds KrisLibrary package.
#If KRISLIBRARY_ROOT is set, searches for a KrisLibrary install there
#defines 
# - KRISLIBRARY_LIBRARIES
# - KRISLIBRARY_INCLUDE_DIRS
# - KRISLIBRARY_DEFINITIONS
#
# This will properly configure a build to include all external libraries:
# KrisLibrary and its dependencies

#this will get everything but KrisLibrary
INCLUDE(KrisLibraryDependencies)

FIND_PATH(KRISLIBRARY_INCLUDE_DIR
  	KrisLibrary/File.h
  PATHS /usr/include /usr/local/include ${KRISLIBRARY_ROOT}
  DOC "Directory where KrisLibrary header files are stored" )

# Find KrisLibrary
IF(WIN32)
  include(FindPackageHandleStandardArgs)
  FIND_PATH(KRISLIBRARY_INCLUDE_DIR KrisLibrary/File.h
    PATHS ${KRISLIBRARY_ROOT}  )
  FIND_LIBRARY(KRISLIBRARY_LIBRARY_DEBUG 
	NAMES KrisLibraryd
	PATHS ${KRISLIBRARY_ROOT})
  FIND_LIBRARY(KRISLIBRARY_LIBRARY_RELEASE
	NAMES KrisLibrary
	PATHS ${KRISLIBRARY_ROOT})
  find_package_handle_standard_args(KRISLIBRARY
	DEFAULT_MSG
	KRISLIBRARY_INCLUDE_DIR
	KRISLIBRARY_LIBRARY_DEBUG
	KRISLIBRARY_LIBRARY_RELEASE)
  if(NOT KRISLIBRARY_FOUND)
    MESSAGE("KrisLibrary not found!")
  endif( )
ELSE(WIN32)
  FIND_LIBRARY( KRISLIBRARY_LIBRARY KrisLibrary PATHS /usr/local/lib "${KRISLIBRARY_ROOT}/KrisLibrary/lib" )
  
  #do the find_package call...
  include(FindPackageHandleStandardArgs)
  find_package_handle_standard_args(KRISLIBRARY "Could not find KrisLibrary " KRISLIBRARY_INCLUDE_DIR KRISLIBRARY_LIBRARY)
  # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view
  ENDIF(WIN32)

SET(KRISLIBRARY_INCLUDE_DIRS ${KRISLIBRARY_INCLUDE_DIRS} ${KRISLIBRARY_INCLUDE_DIR})
SET(KRISLIBRARY_LIBRARIES ${KRISLIBRARY_LIBRARY} ${KRISLIBRARY_LIBRARIES})
<commit_msg>Sets KRISLIBRARY_LIBRARY depending on debug or otpimized build<commit_after>#Finds KrisLibrary package.
#If KRISLIBRARY_ROOT is set, searches for a KrisLibrary install there
#defines 
# - KRISLIBRARY_LIBRARIES
# - KRISLIBRARY_INCLUDE_DIRS
# - KRISLIBRARY_DEFINITIONS
#
# This will properly configure a build to include all external libraries:
# KrisLibrary and its dependencies

#this will get everything but KrisLibrary
INCLUDE(KrisLibraryDependencies)

FIND_PATH(KRISLIBRARY_INCLUDE_DIR
  	KrisLibrary/File.h
  PATHS /usr/include /usr/local/include ${KRISLIBRARY_ROOT}
  DOC "Directory where KrisLibrary header files are stored" )

# Find KrisLibrary
IF(WIN32)
  include(FindPackageHandleStandardArgs)
  FIND_PATH(KRISLIBRARY_INCLUDE_DIR KrisLibrary/File.h
    PATHS ${KRISLIBRARY_ROOT}  )
  FIND_LIBRARY(KRISLIBRARY_LIBRARY_DEBUG 
	NAMES KrisLibraryd
	PATHS ${KRISLIBRARY_ROOT})
  FIND_LIBRARY(KRISLIBRARY_LIBRARY_RELEASE
	NAMES KrisLibrary
	PATHS ${KRISLIBRARY_ROOT})

	#this is used to pick between RELEASE and DEBUG library
    include(SelectLibraryConfigurations)
    select_library_configurations(KRISLIBRARY)

  find_package_handle_standard_args(KRISLIBRARY
	DEFAULT_MSG
	KRISLIBRARY_INCLUDE_DIR
	KRISLIBRARY_LIBRARY_DEBUG
	KRISLIBRARY_LIBRARY_RELEASE)
  if(NOT KRISLIBRARY_FOUND)
    MESSAGE("KrisLibrary not found!")
  endif( )
ELSE(WIN32)
  FIND_LIBRARY( KRISLIBRARY_LIBRARY KrisLibrary PATHS /usr/local/lib "${KRISLIBRARY_ROOT}/KrisLibrary/lib" )
  
  #do the find_package call...
  include(FindPackageHandleStandardArgs)
  find_package_handle_standard_args(KRISLIBRARY "Could not find KrisLibrary " KRISLIBRARY_INCLUDE_DIR KRISLIBRARY_LIBRARY)
  # show the BERKELEY_DB_INCLUDE_DIR and BERKELEY_DB_LIBRARIES variables only in the advanced view
  ENDIF(WIN32)

SET(KRISLIBRARY_INCLUDE_DIRS ${KRISLIBRARY_INCLUDE_DIRS} ${KRISLIBRARY_INCLUDE_DIR})
SET(KRISLIBRARY_LIBRARIES ${KRISLIBRARY_LIBRARY} ${KRISLIBRARY_LIBRARIES})

{'fraction_non_alphanumeric': 0.06185286103542234, 'fraction_numerical': 0.0032697547683923707, 'mean_word_length': 6.963123644251627, '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': '5916999', 'n_tokens_mistral': 1499, 'n_tokens_neox': 1251, 'n_words': 257}