<commit_before>cmake_minimum_required(VERSION 2.6)

# Configurable.

project(filter-iterator CXX)
set(project_lib "libfilter_iterator")

option(FILTER_ITERATOR_ENABLE_TESTS
	"Enables or disables tests. Disabled by default." OFF)


message(STATUS "Build type: ${CMAKE_BUILD_TYPE}.")

set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fstack-protector")
set(CMAKE_CXX_FLAGS "-std=c++98 -Wall -Wextra -Werror -pedantic")


set(src_dir "${CMAKE_CURRENT_SOURCE_DIR}/src")
file(GLOB_RECURSE src_files "${src_dir}/*.cpp")

set(FILTER_ITERATOR_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${FILTER_ITERATOR_INCLUDE_DIRS})


if (FILTER_ITERATOR_ENABLE_TESTS)
	add_subdirectory(test)
endif()
<commit_msg>Removed redundant code.<commit_after>cmake_minimum_required(VERSION 2.6)

# Configurable.

project(filter-iterator CXX)

option(FILTER_ITERATOR_ENABLE_TESTS
	"Enables or disables tests. Disabled by default." OFF)


message(STATUS "Build type: ${CMAKE_BUILD_TYPE}.")

set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fstack-protector")
set(CMAKE_CXX_FLAGS "-std=c++98 -Wall -Wextra -Werror -pedantic")


set(FILTER_ITERATOR_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${FILTER_ITERATOR_INCLUDE_DIRS})


if (FILTER_ITERATOR_ENABLE_TESTS)
	add_subdirectory(test)
endif()

{'fraction_non_alphanumeric': 0.11786237188872621, 'fraction_numerical': 0.008784773060029283, 'mean_word_length': 7.934640522875817, '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': '3546241', 'n_tokens_mistral': 541, 'n_tokens_neox': 500, 'n_words': 85}