<commit_before>cmake_minimum_required(VERSION 3.6)
project(RaZ)

set(CMAKE_CXX_STANDARD 14)

if (CMAKE_COMPILER_IS_GNUCC)
    set(GCC_FLAGS "-pedantic -pedantic-errors \
                   -Wall -Wextra \
                   -Wcast-align -Wcast-qual \
                   -Wdisabled-optimization \
                   -Wfloat-equal \
                   -Wformat-security -Wformat-signedness -Wformat=2 \
                   -Wmissing-declarations -Wmissing-include-dirs \
                   -Wnon-virtual-dtor \
                   -Wold-style-cast \
                   -Woverloaded-virtual \
                   -Wpacked \
                   -Wredundant-decls \
                   -Wundef -Wuninitialized \
                   -Wunused-macros \
                   -Wvla \
                   -Wconversion \
                   -Wswitch-default -Wswitch-enum \
                   -Wsuggest-attribute=noreturn \
                   -Wzero-as-null-pointer-constant \
                   -Wlogical-op \
                   -Wvector-operation-performance \
                   -Wdouble-promotion \
                   -Wtrampolines \
                   -Wuseless-cast \
                   -Wconditionally-supported \
                   -Wfloat-conversion \
                   -Wopenmp-simd \
                   -fsized-deallocation \
                   -Warray-bounds=2 \
                   -Wconditionally-supported \
                   -Wnoexcept \
                   -Wsized-deallocation \
                   -Wstrict-null-sentinel \
                   -Wsuggest-override \
                   -Wduplicated-cond \
                   -Wnull-dereference \
                   -Waligned-new \
                   -Walloc-zero -Walloca \
                   -Wformat-overflow \
                   -Wshadow=compatible-local \
                   -Wno-format-security -Wno-format-nonliteral \
                   -Wno-switch-default \
                   \
                   -Wno-old-style-cast \
                   -Wno-zero-as-null-pointer-constant \
                   -Wno-useless-cast \
                   -Wno-float-equal \
                   -Wno-conversion \
                   -Wno-missing-declarations \
                   -Wno-double-promotion \
                   -Wno-cast-qual") # Disabling some warnings triggered a lot by ImGui...

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_FLAGS}")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    set(CLANG_FLAGS "-pedantic -pedantic-errors \
                     -Weverything \
                     -Wno-c++98-compat -Wno-c++98-compat-pedantic \
                     -Wno-mismatched-tags \
                     -Wno-padded \
                     -Wno-shadow \
                     -Wno-global-constructors \
                     -Wno-weak-vtables \
                     -Wno-exit-time-destructors \
                     -Wno-covered-switch-default \
                     -Wno-unused-template \
                     -Wno-reserved-id-macro \
                     -Wno-documentation -Wno-documentation-unknown-command")

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLANG_FLAGS}")
elseif (MSVC)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
endif ()<commit_msg>[Update] Removed warnings triggered with MSVC by libpng, GLEW & GLFW [Update] Defaulted CMAKE_BUILD_TYPE to Release if undefined<commit_after>cmake_minimum_required(VERSION 3.6)
project(RaZ)

set(CMAKE_CXX_STANDARD 14)

if (NOT CMAKE_BUILD_TYPE) # Define build type to Release if not automatically set
    set(CMAKE_BUILD_TYPE "Release")
endif ()

if (CMAKE_COMPILER_IS_GNUCC)
    set(GCC_FLAGS "-pedantic -pedantic-errors \
                   -Wall -Wextra \
                   -Wcast-align -Wcast-qual \
                   -Wdisabled-optimization \
                   -Wfloat-equal \
                   -Wformat-security -Wformat-signedness -Wformat=2 \
                   -Wmissing-declarations -Wmissing-include-dirs \
                   -Wnon-virtual-dtor \
                   -Wold-style-cast \
                   -Woverloaded-virtual \
                   -Wpacked \
                   -Wredundant-decls \
                   -Wundef -Wuninitialized \
                   -Wunused-macros \
                   -Wvla \
                   -Wconversion \
                   -Wswitch-default -Wswitch-enum \
                   -Wsuggest-attribute=noreturn \
                   -Wzero-as-null-pointer-constant \
                   -Wlogical-op \
                   -Wvector-operation-performance \
                   -Wdouble-promotion \
                   -Wtrampolines \
                   -Wuseless-cast \
                   -Wconditionally-supported \
                   -Wfloat-conversion \
                   -Wopenmp-simd \
                   -fsized-deallocation \
                   -Warray-bounds=2 \
                   -Wconditionally-supported \
                   -Wnoexcept \
                   -Wsized-deallocation \
                   -Wstrict-null-sentinel \
                   -Wsuggest-override \
                   -Wduplicated-cond \
                   -Wnull-dereference \
                   -Waligned-new \
                   -Walloc-zero -Walloca \
                   -Wformat-overflow \
                   -Wshadow=compatible-local \
                   -Wno-format-security -Wno-format-nonliteral \
                   -Wno-switch-default \
                   \
                   -Wno-old-style-cast \
                   -Wno-zero-as-null-pointer-constant \
                   -Wno-useless-cast \
                   -Wno-float-equal \
                   -Wno-conversion \
                   -Wno-missing-declarations \
                   -Wno-double-promotion \
                   -Wno-cast-qual") # Disabling some warnings triggered a lot by ImGui...

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_FLAGS}")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    set(CLANG_FLAGS "-pedantic -pedantic-errors \
                     -Weverything \
                     -Wno-c++98-compat -Wno-c++98-compat-pedantic \
                     -Wno-mismatched-tags \
                     -Wno-padded \
                     -Wno-shadow \
                     -Wno-global-constructors \
                     -Wno-weak-vtables \
                     -Wno-exit-time-destructors \
                     -Wno-covered-switch-default \
                     -Wno-unused-template \
                     -Wno-reserved-id-macro \
                     -Wno-documentation -Wno-documentation-unknown-command")

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLANG_FLAGS}")
elseif (MSVC)
    set(MSVC_FLAGS "/W4 \
                    \
                    /wd4100 \
                    /wd4127 \
                    /wd4131 \
                    /wd4152 \
                    /wd4204 \
                    /wd4244 \
                    /wd4245 \
                    /wd4267 \
                    /wd4456 \
                    /wd4996") # Disabling warnings triggered by libpng, GLEW & GLFW

    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${MSVC_FLAGS}")
endif ()
{'fraction_non_alphanumeric': 0.09428086070215176, 'fraction_numerical': 0.008776896942242356, 'mean_word_length': 0.9635908838243469, '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': '2041802', 'n_tokens_mistral': 2128, 'n_tokens_neox': 1898, 'n_words': 268}