<commit_before>CMAKE_MINIMUM_REQUIRED( VERSION 3.0 )

PROJECT( flexcore )

IF( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
	SET( STANDALONE TRUE )
ELSE()
	SET( STANDALONE FALSE )
ENDIF()

SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

OPTION( FLEXCORE_ENABLE_COVERAGE_ANALYSIS "activate gcov based coverage anlysis" OFF )
OPTION( FLEXCORE_ENABLE_TESTS "build unit tests" ${STANDALONE} )
OPTION( FLEXCORE_ENABLE_BENCHMARKS "build micro benchmarks" ${STANDALONE} )

IF( FLEXCORE_ENABLE_COVERAGE_ANALYSIS AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
	MESSAGE( WARNING "Build type is not Debug, code coverage information may be wrong" )<commit_msg>benchmarks are disabled by default<commit_after>CMAKE_MINIMUM_REQUIRED( VERSION 3.0 )

PROJECT( flexcore )

IF( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
	SET( STANDALONE TRUE )
ELSE()
	SET( STANDALONE FALSE )
ENDIF()

SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

OPTION( FLEXCORE_ENABLE_COVERAGE_ANALYSIS "activate gcov based coverage anlysis" OFF )
OPTION( FLEXCORE_ENABLE_TESTS "build unit tests" ${STANDALONE} )
OPTION( FLEXCORE_ENABLE_BENCHMARKS "build micro benchmarks" OFF )

IF( FLEXCORE_ENABLE_COVERAGE_ANALYSIS AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
	MESSAGE( WARNING "Build type is not Debug, code coverage information may be wrong" )
{'fraction_non_alphanumeric': 0.07404637247569185, 'fraction_numerical': 0.0029917726252804786, 'mean_word_length': 7.3105590062111805, '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': '1622501', 'n_tokens_mistral': 511, 'n_tokens_neox': 483, 'n_words': 122}