<commit_before># If CMAKE_BUILD_TYPE is not set, we must set it to "Release" in order to
# avoid errors when linking against the Qt libraries
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release)
endif()

# TODO: use windeployqt to install Qt libraries
# windeployqt --dry-run --list mapping nitroshare.exe

# Include required system libraries when installing
include(InstallRequiredSystemLibraries)<commit_msg>Added custom target for installing the Qt libraries on Windows.<commit_after># If CMAKE_BUILD_TYPE is not set, we must set it to "Release" in order to
# avoid errors when linking against the Qt libraries
if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Release)
endif()

# Determine the path to windeployqt by finding the path to qmake
get_target_property(_qmake_executable Qt5::qmake IMPORTED_LOCATION)
get_filename_component(_qt_bin_dir "${_qmake_executable}" DIRECTORY)
find_program(_windeployqt windeployqt HINTS "${_qt_bin_dir}")

# Add a custom target that installs the Qt libraries
add_custom_target(install_qt_libraries
    ${_windeployqt} --dir "${CMAKE_INSTALL_PREFIX}/bin" "$<TARGET_FILE:nitroshare>")
add_dependencies(install_qt_libraries nitroshare)

# Include required system libraries when installing
include(InstallRequiredSystemLibraries)

{'fraction_non_alphanumeric': 0.06677140612725845, 'fraction_numerical': 0.0007855459544383347, 'mean_word_length': 6.815950920245399, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3674281', 'n_tokens_mistral': 394, 'n_tokens_neox': 372, 'n_words': 127}