<commit_before>cmake_minimum_required(VERSION 3.3)

project(CDT_visualizer VERSION 0.0.1 LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)

find_package(Qt5 COMPONENTS Core Widgets Gui REQUIRED)

if(CDT_USE_FIND_PACKAGE)
    # add CDT as package
    find_package(CDT REQUIRED)
else()
    # add CDT as source (easier development)
    add_subdirectory(../CDT CDT)
endif()
<commit_msg>Add `CDT_USE_FIND_PACKAGE` option<commit_after>cmake_minimum_required(VERSION 3.3)

project(CDT_visualizer VERSION 0.0.1 LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)

find_package(Qt5 COMPONENTS Core Widgets Gui REQUIRED)

option(CDT_USE_FIND_PACKAGE
    "If enabled prebuild CDT is consumed with find_package" OFF)

if(CDT_USE_FIND_PACKAGE)
    # add CDT as package
    find_package(CDT REQUIRED CONFIG)
else()
    # add CDT as source (easier development)
    add_subdirectory(../CDT CDT)
endif()

{'fraction_non_alphanumeric': 0.07897793263646923, 'fraction_numerical': 0.013937282229965157, 'mean_word_length': 5.201438848920863, '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': '6508055', 'n_tokens_mistral': 353, 'n_tokens_neox': 336, 'n_words': 77}