<commit_before># Enable testing capability
enable_testing()

# Set C++ compatibility
set(CMAKE_CXX_STANDARD 17)

# Define CXX flags
set(CXX_FLAGS -Wall -pedantic)

# Create test coverage target (gcov)
if (CMAKE_BUILD_TYPE STREQUAL "Coverage")
	set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE ON)
    set(CXX_FLAGS ${CXX_FLAGS} --coverage  -fprofile-arcs -ftest-coverage)
	set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " --coverage  -fprofile-arcs -ftest-coverage")
endif()

# Set compilation flags
add_definitions(${CXX_FLAGS})<commit_msg>Bugfix cmake find dependecy in sub sub modules<commit_after># Enable testing capability
enable_testing()

# Set C++ compatibility
set(CMAKE_CXX_STANDARD 17)

# Define CXX flags
set(CXX_FLAGS -Wall -pedantic)

# Create test coverage target (gcov)
if (CMAKE_BUILD_TYPE STREQUAL "Coverage")
	set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE ON)
    set(CXX_FLAGS ${CXX_FLAGS} --coverage  -fprofile-arcs -ftest-coverage)
	set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " --coverage  -fprofile-arcs -ftest-coverage")
endif()

# Set compilation flags
add_definitions(${CXX_FLAGS})

# Define find depenedencies
function(find_dependencies packagName)

    # Test if target is defined
    if(NOT TARGET ${packagName})
    
        # Test if CMakeFile exist for this library
        if(EXISTS ${PROJECT_SOURCE_DIR}/Dependencies/${packagName}/CMakeLists.txt)

        
            # Include package
            add_subdirectory(${PROJECT_SOURCE_DIR}/Dependencies/${packagName})
            
            # Set include dir
            set(${packagName}_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/Dependencies/${packagName}/Sources" PARENT_SCOPE)
            
            
        else()
        
            # Find package
            find_package(${packagName})

        endif()  
        
    endif()

endfunction()
{'fraction_non_alphanumeric': 0.09732094040459267, 'fraction_numerical': 0.002186987424822307, 'mean_word_length': 3.5864661654135337, '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': '7443419', 'n_tokens_mistral': 641, 'n_tokens_neox': 594, 'n_words': 128}