<commit_before># ===================================================
# nanogui
# ===================================================
set(CMAKE_MRPT_HAS_NANOGUI 0)
set(CMAKE_MRPT_HAS_NANOGUI_SYSTEM 0)

set(BUILD_NANOGUI ON CACHE BOOL "Build an embedded version of nanogui (OpenGL GUIs)")

find_package(PkgConfig QUIET)
if (PKG_CONFIG_FOUND)
  pkg_search_module(GLFW glfw3)
endif()

if (BUILD_NANOGUI AND
    (NOT CMAKE_MRPT_HAS_OPENGL_GLUT))<commit_msg>don't build nanogui in OSX by default<commit_after># ===================================================
# nanogui
# ===================================================
set(CMAKE_MRPT_HAS_NANOGUI 0)
set(CMAKE_MRPT_HAS_NANOGUI_SYSTEM 0)

if (APPLE)
  set(def_ OFF)
else()
  set(def_ ON)
endif()
set(BUILD_NANOGUI ${def_} CACHE BOOL "Build an embedded version of nanogui (OpenGL GUIs)")
unset(def_)

find_package(PkgConfig QUIET)
if (PKG_CONFIG_FOUND)
  pkg_search_module(GLFW glfw3)
endif()

if (BUILD_NANOGUI AND
    (NOT CMAKE_MRPT_HAS_OPENGL_GLUT))
{'fraction_non_alphanumeric': 0.2754491017964072, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 8.64423076923077, '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': '3931197', 'n_tokens_mistral': 389, 'n_tokens_neox': 355, 'n_words': 74}