<commit_before>cmake_minimum_required(VERSION 3.0.0)

project(ruc-ui)

file(GLOB SOURCE_FILES "*.cpp")
add_executable(ruc-ui ${SOURCE_FILES})

if(MSVC)
  	target_compile_options(ruc-ui PRIVATE /W4 /WX)
else()
  	target_compile_options(ruc-ui PRIVATE -Wall -Wextra)
endif()

set_target_properties(ruc-ui
    PROPERTIES
    ARCHIVE_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
    LIBRARY_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
    RUNTIME_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
)

target_link_libraries(ruc-ui PRIVATE ruc-util)
if(FLTK_IMPORTED)
	message("fltk imported")
	target_link_libraries(ruc-ui PRIVATE fltk)
	target_include_directories(ruc-ui PRIVATE ${FLTK_INCLUDEDIR})
else()
	message("fltk system-wide")
	find_package (FLTK REQUIRED)
	target_link_libraries(ruc-ui PRIVATE ${FLTK_LIBRARIES})
	target_include_directories(ruc-ui PRIVATE ${FLTK_INCLUDE_DIR})
endif()
<commit_msg>Fix compilation in CI<commit_after>cmake_minimum_required(VERSION 3.0.0)

project(ruc-ui)

file(GLOB SOURCE_FILES "*.cpp")
add_executable(ruc-ui ${SOURCE_FILES})

if(MSVC)
  	target_compile_options(ruc-ui PRIVATE /W4 /WX)
else()
  	target_compile_options(ruc-ui PRIVATE -Wall -Wextra)
endif()

set_target_properties(ruc-ui
    PROPERTIES
    ARCHIVE_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
    LIBRARY_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
    RUNTIME_OUTPUT_DIRECTORY "${RUC_BINARY_DIR}"
)

target_link_libraries(ruc-ui PRIVATE ruc-util)
if(FLTK_IMPORTED)
	# FIXME: this is an overkill, fix ASAP
	get_target_property(FLTK_BINARY_DIR fltk BINARY_DIR)
	get_target_property(FLTK_SOURCE_DIR fltk SOURCE_DIR)
	message("fltk imported from ${FLTK_SOURCE_DIR} / ${FLTK_BINARY_DIR}")
	target_link_libraries(ruc-ui PUBLIC fltk)
	target_include_directories(ruc-ui PRIVATE ${FLTK_SOURCE_DIR}/.. ${FLTK_BINARY_DIR}/..)
else()
	message("fltk system-wide")
	find_package (FLTK REQUIRED)
	target_link_libraries(ruc-ui PRIVATE ${FLTK_LIBRARIES})
	target_include_directories(ruc-ui PRIVATE ${FLTK_INCLUDE_DIR})
endif()

{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.004058853373921867, 'mean_word_length': 7.048979591836734, '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': '2529135', 'n_tokens_mistral': 829, 'n_tokens_neox': 779, 'n_words': 124}