<commit_before>cmake_minimum_required(VERSION 2.8.7)

enable_testing()

include_directories(${CMAKE_SOURCE_DIR})

if (DEFINED NDEBUG)
    add_definitions(-DNDEBUG=1)
endif()

set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -pedantic -Wextra -Wfatal-errors")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    # using Clang
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    # using GCC
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()<commit_msg>Use CMAKE_CURRENT_SOURCE_DIR so the project can be used as a submodule<commit_after>cmake_minimum_required(VERSION 2.8.7)

enable_testing()

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

if (DEFINED NDEBUG)
    add_definitions(-DNDEBUG=1)
endif()

set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -pedantic -Wextra -Wfatal-errors")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    # using Clang
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    # using GCC
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
{'fraction_non_alphanumeric': 0.13485280151946819, 'fraction_numerical': 0.011396011396011397, 'mean_word_length': 6.268965517241379, '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': '3570694', 'n_tokens_mistral': 452, 'n_tokens_neox': 410, 'n_words': 73}