<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 3.2)

OPTION(AUDIO_IO_BUILD_TESTS "Whether to build tests from audio_io" ON)

if(${WIN32})
add_definitions(-DAUDIO_IO_WINDOWS_BACKENDS)
set(AUDIO_IO_NEEDED_LIBRARIES winmm)
endif()

SET(AUDIO_IO_FILES
src/audio_io/resampler.cpp
src/audio_io/speex_resampler.c
src/audio_io/common_output.cpp
src/audio_io/winmm_output.cpp
src/audio_io/factory_creation.cpp
)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_library(audio_io STATIC
${AUDIO_IO_FILES}
)
target_link_libraries(audio_io ${AUDIO_IO_NEEDED_LIBRARIES})

add_executable(output
src/tests/output.cpp
)
target_link_libraries(output audio_io)
<commit_msg>Building tests is optional<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 3.2)

project(audio_io)

OPTION(AUDIO_IO_BUILD_TESTS "Whether to build tests from audio_io" ON)

if(${WIN32})
add_definitions(-DAUDIO_IO_WINDOWS_BACKENDS)
set(AUDIO_IO_NEEDED_LIBRARIES winmm)
endif()

SET(AUDIO_IO_FILES
src/audio_io/resampler.cpp
src/audio_io/speex_resampler.c
src/audio_io/common_output.cpp
src/audio_io/winmm_output.cpp
src/audio_io/factory_creation.cpp
)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_library(audio_io STATIC
${AUDIO_IO_FILES}
)
target_link_libraries(audio_io ${AUDIO_IO_NEEDED_LIBRARIES})

if(${AUDIO_IO_BUILD_TESTS})
add_executable(output
src/tests/output.cpp
)
target_link_libraries(output audio_io)

endif()
{'fraction_non_alphanumeric': 0.095, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 9.9453125, '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': '4066532', 'n_tokens_mistral': 588, 'n_tokens_neox': 570, 'n_words': 68}