<commit_before>SET(LIB_SCAN_SRC scan/scan_entity.cpp scan/scan_files.cpp)
SET(LIB_SCAN_HDR scan/scan_entity.h scan/scan_files.h)
SET(LIB_SEARCH_SRC search/allrefs.cpp search/commandref.cpp search/dataref.cpp search/search.cpp)
SET(LIB_SEARCH_HDR search/allrefs.h search/commandref.h search/dataref.h search/ref.h search/search.h)
SET(LIB_UTIL_SRC util/string_util.cpp)
SET(LIB_UTIL_HDR util/visit_backport.h util/string_util.h)

SET(LIB_HDR ${LIB_SCAN_HDR} ${LIB_SEARCH_HDR} ${LIB_UTIL_HDR})
SET(LIB_SRC ${LIB_SCAN_SRC} ${LIB_SEARCH_SRC} ${LIB_UTIL_SRC})

SET(LIB_SRC ${LIB_SRC} ${LIB_HDR})
LIST(SORT LIB_SRC)

add_library(drt STATIC ${LIB_SRC} ${LIB_HDR})

find_package(Boost 1.54.0 REQUIRED COMPONENTS filesystem system iostreams regex)
target_link_libraries(drt PUBLIC Boost::filesystem Boost::system Boost::iostreams)
target_include_directories(drt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

# define the minimum X-Plane SDK version that gives us the functions we need for the API
add_xplane_sdk_definitions(drt 210)<commit_msg>For LInux build, -fPIC<commit_after>SET(LIB_SCAN_SRC scan/scan_entity.cpp scan/scan_files.cpp)
SET(LIB_SCAN_HDR scan/scan_entity.h scan/scan_files.h)
SET(LIB_SEARCH_SRC search/allrefs.cpp search/commandref.cpp search/dataref.cpp search/search.cpp)
SET(LIB_SEARCH_HDR search/allrefs.h search/commandref.h search/dataref.h search/ref.h search/search.h)
SET(LIB_UTIL_SRC util/string_util.cpp)
SET(LIB_UTIL_HDR util/visit_backport.h util/string_util.h)

SET(LIB_HDR ${LIB_SCAN_HDR} ${LIB_SEARCH_HDR} ${LIB_UTIL_HDR})
SET(LIB_SRC ${LIB_SCAN_SRC} ${LIB_SEARCH_SRC} ${LIB_UTIL_SRC})

SET(LIB_SRC ${LIB_SRC} ${LIB_HDR})
LIST(SORT LIB_SRC)

add_library(drt STATIC ${LIB_SRC} ${LIB_HDR})

find_package(Boost 1.54.0 REQUIRED COMPONENTS filesystem system iostreams regex)
target_link_libraries(drt PUBLIC Boost::filesystem Boost::system Boost::iostreams)
target_include_directories(drt INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

# define the minimum X-Plane SDK version that gives us the functions we need for the API
add_xplane_sdk_definitions(drt 210)

if(UNIX AND NOT APPLE)
    set_property(TARGET drt PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
{'fraction_non_alphanumeric': 0.10341643582640812, 'fraction_numerical': 0.006463527239150508, 'mean_word_length': 7.808943089430894, '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': '5185202', 'n_tokens_mistral': 868, 'n_tokens_neox': 834, 'n_words': 158}