<commit_before>## Detect the raytracing library rtfact

INCLUDE(CheckLibraryExists)

## Set some possible paths to use when looking for the RTfact installation
SET(RTFACT_POSSIBLE_ROOT_DIRS
	${RTFACT_ROOT_DIR}
	$ENV{RTFACT_ROOT_DIR}
)

## First, try to find the required header files (RTremote/Renderer.hpp)
FIND_PATH(RTFACT_INCLUDE_PATH 
	NAMES RTremote/Renderer.hpp
	PATHS ${RTFACT_POSSIBLE_ROOT_DIRS}
	PATH_SUFFIXES include
	DOC "RTfact header include dir")

IF (NOT RTFACT_INCLUDE_PATH)
	MESSAGE(STATUS "Could not find RTfact header file (RTremote/Renderer.hpp)! Real time ray tracing will be disabled!")
ELSE()
	SET(RTFACT_INCLUDE_DIR ${RTFACT_INCLUDE_PATH} CACHE STRING "Full path to the RTfact headers")

	## Now, try to find the rtfact library itself.
	FIND_LIBRARY(RTFACT_OPT_LIBRARY 
		NAMES RTfactRemote
		PATHS ${RTFACT_POSSIBLE_ROOT_DIRS} ${RTFACT_POSSIBLE_ROOT_DIRS}/remote/build
		PATH_SUFFIXES lib
		DOC "RTfact library, optimized") 

	## And a possible debug version
	FIND_LIBRARY(RTFACT_DEBUG_LIBRARY
		NAMES RTfactRemoted
		PATHS ${RTFACT_POSSIBLE_ROOT_DIRS}
		PATH_SUFFIXES lib
		DOC "RTfact library, debug") 

	IF (RTFACT_OPT_LIBRARY OR RTFACT_DEBUG_LIBRARY)
		BALL_COMBINE_LIBS(RTFACT_LIBRARIES ${RTFACT_OPT_LIBRARY} ${RTFACT_DEBUG_LIBRARY})
		SET(RTFACT_FOUND TRUE)
	ELSE()
		MESSAGE(STATUS "Could not find RTfact libraries!")
		SET(RTFACT_FOUND FALSE)
	ENDIF()

	INCLUDE(FindPackageHandleStandardArgs)
	FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTFACT DEFAULT_MSG
		RTFACT_INCLUDE_DIR
		RTFACT_LIBRARIES)

	MARK_AS_ADVANCED(RTFACT_INCLUDE_DIR)
	MARK_AS_ADVANCED(RTFACT_LIBRARIES)

ENDIF()
<commit_msg>Fixed RTfact detection on Windows.<commit_after>## Detect the raytracing library rtfact

INCLUDE(CheckLibraryExists)

## Set some possible paths to use when looking for the RTfact installation
SET(RTFACT_POSSIBLE_ROOT_DIRS
	${RTFACT_ROOT_DIR}
	$ENV{RTFACT_ROOT_DIR}
)

## First, try to find the required header files (RTremote/Renderer.hpp)
FIND_PATH(RTFACT_INCLUDE_PATH 
	NAMES RTremote/Renderer.hpp
	PATHS ${RTFACT_POSSIBLE_ROOT_DIRS}
	PATH_SUFFIXES include
	DOC "RTfact header include dir")

IF (NOT RTFACT_INCLUDE_PATH)
	MESSAGE(STATUS "Could not find RTfact header file (RTremote/Renderer.hpp)! Real time ray tracing will be disabled!")
ELSE()
	SET(RTFACT_INCLUDE_DIR ${RTFACT_INCLUDE_PATH} CACHE STRING "Full path to the RTfact headers")

	## Now, try to find the rtfact library itself.
	FIND_LIBRARY(RTFACT_OPT_LIBRARY 
		NAMES RTfactRemote
		PATHS ${RTFACT_POSSIBLE_ROOT_DIRS} ${RTFACT_POSSIBLE_ROOT_DIRS}/remote/build ${RTFACT_POSSIBLE_ROOT_DIRS}/remote/build/Release
		PATH_SUFFIXES lib
		DOC "RTfact library, optimized") 

	## And a possible debug version
	FIND_LIBRARY(RTFACT_DEBUG_LIBRARY
		NAMES RTfactRemoted
		PATHS ${RTFACT_POSSIBLE_ROOT_DIRS}
		PATH_SUFFIXES lib
		DOC "RTfact library, debug") 

	IF (RTFACT_OPT_LIBRARY OR RTFACT_DEBUG_LIBRARY)
		BALL_COMBINE_LIBS(RTFACT_LIBRARIES ${RTFACT_OPT_LIBRARY} ${RTFACT_DEBUG_LIBRARY})
		SET(RTFACT_FOUND TRUE)
	ELSE()
		MESSAGE(STATUS "Could not find RTfact libraries!")
		SET(RTFACT_FOUND FALSE)
	ENDIF()

	INCLUDE(FindPackageHandleStandardArgs)
	FIND_PACKAGE_HANDLE_STANDARD_ARGS(RTFACT DEFAULT_MSG
		RTFACT_INCLUDE_DIR
		RTFACT_LIBRARIES)

	MARK_AS_ADVANCED(RTFACT_INCLUDE_DIR)
	MARK_AS_ADVANCED(RTFACT_LIBRARIES)

ENDIF()

{'fraction_non_alphanumeric': 0.07110438729198185, 'fraction_numerical': 0.0, 'mean_word_length': 6.688372093023256, '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': '7183172', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1234, 'n_words': 275}