<commit_before># Unit test for libchen
# <NAME> <<EMAIL>>
# http://chensoft.com
# Licensed under MIT license
# Copyright 2016 <NAME>
cmake_minimum_required(VERSION 2.8)
project(test_libchen)

# environment
include(../CMakeEnv.cmake)

if(UNIX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-parameter")
endif()

option(LIBCHEN_TEST_CODE_COVERAGE "Enable libchen code coverage." OFF)

if(CMAKE_COMPILER_IS_GNUCXX AND LIBCHEN_TEST_CODE_COVERAGE)
    message("-- Enable code coverage")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")      # debug, no optimisation
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")  # enabling coverage
endif()

# libraries
option(LIBCHEN_BUILD_SHARED OFF)

add_subdirectory(.. libchen)
add_subdirectory(lib/googletest/googletest)

# include path
include_directories(../include)
include_directories(lib/googletest/googletest/include)

# source codes
file(GLOB INC_ROOT *.hpp)<commit_msg>make: remove Wno-unused-parameter on Windows<commit_after># Unit test for libchen
# <NAME> <<EMAIL>>
# http://chensoft.com
# Licensed under MIT license
# Copyright 2016 <NAME>
cmake_minimum_required(VERSION 2.8)
project(test_libchen)

# environment
include(../CMakeEnv.cmake)

if(UNIX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
else()
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()

option(LIBCHEN_TEST_CODE_COVERAGE "Enable libchen code coverage." OFF)

if(CMAKE_COMPILER_IS_GNUCXX AND LIBCHEN_TEST_CODE_COVERAGE)
    message("-- Enable code coverage")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")      # debug, no optimisation
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")  # enabling coverage
endif()

# libraries
option(LIBCHEN_BUILD_SHARED OFF)

add_subdirectory(.. libchen)
add_subdirectory(lib/googletest/googletest)

# include path
include_directories(../include)
include_directories(lib/googletest/googletest/include)

# source codes
file(GLOB INC_ROOT *.hpp)
{'fraction_non_alphanumeric': 0.11982881597717546, 'fraction_numerical': 0.006657156443176415, 'mean_word_length': 5.787096774193548, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '876667', 'n_tokens_mistral': 808, 'n_tokens_neox': 748, 'n_words': 149}