<commit_before>cmake_minimum_required(VERSION 3.1)
project(An1mated CXX)

# Options
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build(Release or Debug)")
set(LIB_AN1MATED_BUILD_TYPE Shared CACHE STRING "Choose the type of libAn1mated build(Static OR Shared)")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules/")

# Enforce C++14 standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Enable automoc / autoic / autorcc
option(CMAKE_AUTOMOC "Enable automoc" ON)
option(CMAKE_AUTOUIC "Enable autouic" ON)
option(CMAKE_AUTORCC "Enable autorcc" ON)

# Including moc'ed files is sometimes retarded
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Enable tests?
option(TESTS "Enable build of tests" ON)

# Detect Qt5 package with Core and Widgets components
find_package(Qt5 COMPONENTS Core Widgets Test REQUIRED)

## Setup libAn1mated library
# Get include dir and headers
set(LIB_AN1MATED_INCLUDE_DIR "include/libAn1mated/")
file(GLOB LIB_AN1MATED_HDRS include/libAn1mated/*.hpp)
# Get src dir and sources
set(LIB_AN1MATED_SRCS_DIR "src/libAn1mated/")
file(GLOB LIB_AN1MATED_SRCS src/libAn1mated/*.cpp)

# Detect if build type of libAn1mated is shared or static
if (${LIB_AN1MATED_BUILD_TYPE} MATCHES "Static")
	add_library(libAn1mated STATIC ${LIB_AN1MATED_SRCS} ${LIB_AN1MATED_HDRS})
elseif (${LIB_AN1MATED_BUILD_TYPE} MATCHES "Shared")
	add_library(libAn1mated SHARED ${LIB_AN1MATED_SRCS} ${LIB_AN1MATED_HDRS})
else()
	message( FATAL_ERROR "Wrong libAn1mated build type")<commit_msg>[ci skip] I think we won't need autorcc<commit_after>cmake_minimum_required(VERSION 3.1)
project(An1mated CXX)

# Options
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build(Release or Debug)")
set(LIB_AN1MATED_BUILD_TYPE Shared CACHE STRING "Choose the type of libAn1mated build(Static OR Shared)")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake_modules/")

# Enforce C++14 standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Enable automoc / autoic / autorcc
option(CMAKE_AUTOMOC "Enable automoc" ON)
option(CMAKE_AUTOUIC "Enable autouic" ON)

# Including moc'ed files is sometimes retarded
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Enable tests?
option(TESTS "Enable build of tests" ON)

# Detect Qt5 package with Core and Widgets components
find_package(Qt5 COMPONENTS Core Widgets Test REQUIRED)

## Setup libAn1mated library
# Get include dir and headers
set(LIB_AN1MATED_INCLUDE_DIR "include/libAn1mated/")
file(GLOB LIB_AN1MATED_HDRS include/libAn1mated/*.hpp)
# Get src dir and sources
set(LIB_AN1MATED_SRCS_DIR "src/libAn1mated/")
file(GLOB LIB_AN1MATED_SRCS src/libAn1mated/*.cpp)

# Detect if build type of libAn1mated is shared or static
if (${LIB_AN1MATED_BUILD_TYPE} MATCHES "Static")
	add_library(libAn1mated STATIC ${LIB_AN1MATED_SRCS} ${LIB_AN1MATED_HDRS})
elseif (${LIB_AN1MATED_BUILD_TYPE} MATCHES "Shared")
	add_library(libAn1mated SHARED ${LIB_AN1MATED_SRCS} ${LIB_AN1MATED_HDRS})
else()
	message( FATAL_ERROR "Wrong libAn1mated build type")
{'fraction_non_alphanumeric': 0.08682830930537352, 'fraction_numerical': 0.019659239842726082, 'mean_word_length': 7.527932960893855, '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': '1145912', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1148, 'n_words': 282}