<commit_before>set(GLFW_URL
        "http://sourceforge.net/projects/glfw/files/glfw/3.0.4/glfw-3.0.4.tar.gz/download"
        CACHE STRING "Location of glfw source package")

if(UNIX)
    set(GLFW_BUILD_SHARED_DEFAULT ON)
else(UNIX)
    set(GLFW_BUILD_SHARED_DEFAULT OFF)
endif(UNIX)

option(GLFW_BUILD_SHARED "Build shared glfw libs" ${GLFW_BUILD_SHARED_DEFAULT})

ExternalProject_Add(ext_glfw
        PREFIX "${EXTERNALS_WORK_DIR}"
        SOURCE_DIR "${EXTERNALS_WORK_DIR}/src/glfw"
        BINARY_DIR "${EXTERNALS_WORK_DIR}/build/glfw"
        INSTALL_DIR "${EXTERNALS_INSTALL_DIR}"
        GIT_REPOSITORY "https://github.com/glfw/glfw.git"
        GIT_TAG "d97044d9acc0c76433edda5a75b3196957906ca5"
        CMAKE_ARGS
            ${PLATFORM_CMAKE_ARGS}
            ${TOOLCHAIN_CMAKE_ARGS}
            -G ${CMAKE_GENERATOR}
            -DBUILD_SHARED_LIBS=${GLFW_BUILD_SHARED}
            -DCMAKE_INSTALL_PREFIX=${EXTERNALS_INSTALL_DIR}
            -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})
<commit_msg>update glfw to 3.2.1<commit_after>if(UNIX)
    set(GLFW_BUILD_SHARED_DEFAULT ON)
else(UNIX)
    set(GLFW_BUILD_SHARED_DEFAULT OFF)
endif(UNIX)

option(GLFW_BUILD_SHARED "Build shared glfw libs" ${GLFW_BUILD_SHARED_DEFAULT})

ExternalProject_Add(ext_glfw
        PREFIX "${EXTERNALS_WORK_DIR}"
        SOURCE_DIR "${EXTERNALS_WORK_DIR}/src/glfw"
        BINARY_DIR "${EXTERNALS_WORK_DIR}/build/glfw"
        INSTALL_DIR "${EXTERNALS_INSTALL_DIR}"
        GIT_REPOSITORY "https://github.com/glfw/glfw.git"
        GIT_TAG "999f3556fdd80983b10051746264489f2cb1ef16"
        CMAKE_ARGS
            ${PLATFORM_CMAKE_ARGS}
            ${TOOLCHAIN_CMAKE_ARGS}
            -G ${CMAKE_GENERATOR}
            -DBUILD_SHARED_LIBS=${GLFW_BUILD_SHARED}
            -DCMAKE_INSTALL_PREFIX=${EXTERNALS_INSTALL_DIR}
            -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})

{'fraction_non_alphanumeric': 0.10226049515608181, 'fraction_numerical': 0.03498385360602799, 'mean_word_length': 3.4156769596199523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1273682', 'n_tokens_mistral': 772, 'n_tokens_neox': 715, 'n_words': 80}