<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT("VeritasOrchestra")

IF(TARGET ${PROJECT_NAME})
RETURN()
ENDIF()

ADD_SUBDIRECTORY(modules/VeritasBuilder)
ADD_SUBDIRECTORY(modules/VeritasData)

AUX_SOURCE_DIRECTORY(src SOURCES)

ADD_LIBRARY(${PROJECT_NAME} ${SOURCES})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC include)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} VeritasData)
TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PUBLIC -std=c++11)

GET_PROPERTY(COMPILER TARGET ${PROJECT_NAME} PROPERTY "Compiler")
IF(COMPILER STREQUAL "GNU")
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} -Wl,--no-as-needed pthread) # GCC's C++11 requires pthread, using --no-as-needed fix a runtime bug
ENDIF()<commit_msg>pthread isn't linked on Android<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT("VeritasOrchestra")

IF(TARGET ${PROJECT_NAME})
RETURN()
ENDIF()

ADD_SUBDIRECTORY(modules/VeritasBuilder)
ADD_SUBDIRECTORY(modules/VeritasData)

AUX_SOURCE_DIRECTORY(src SOURCES)

ADD_LIBRARY(${PROJECT_NAME} ${SOURCES})
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} PUBLIC include)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} VeritasData)
TARGET_COMPILE_OPTIONS(${PROJECT_NAME} PUBLIC -std=c++11)

GET_PROPERTY(COMPILER TARGET ${PROJECT_NAME} PROPERTY "Compiler")
GET_PROPERTY(PLATFORM TARGET ${PROJECT_NAME} PROPERTY "Platform")

IF(COMPILER STREQUAL "GNU" AND NOT PLATFORM STREQUAL "Android")
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} -Wl,--no-as-needed pthread) # GCC's C++11 requires pthread, using --no-as-needed fix a runtime bug
ENDIF()
{'fraction_non_alphanumeric': 0.12049770792403405, 'fraction_numerical': 0.007858546168958742, 'mean_word_length': 9.465753424657533, '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': '2703090', 'n_tokens_mistral': 606, 'n_tokens_neox': 564, 'n_words': 99}