<commit_before># Copyright (C) 1995-2019, <NAME> and <NAME>.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

set(ROOT_ARCHITECTURE macosx)
set(ROOT_PLATFORM macosx)

if (CMAKE_SYSTEM_NAME MATCHES Darwin)
  EXECUTE_PROCESS(COMMAND sw_vers "-productVersion"
                  COMMAND cut -d . -f 1-2
                  OUTPUT_VARIABLE MACOSX_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
<commit_msg>[cmake] Complain if ninja too new an CMake too old:<commit_after># Copyright (C) 1995-2019, <NAME> and <NAME>.
# All rights reserved.
#
# For the licensing terms see $ROOTSYS/LICENSE.
# For the list of contributors see $ROOTSYS/README/CREDITS.

set(ROOT_ARCHITECTURE macosx)
set(ROOT_PLATFORM macosx)

# https://gitlab.kitware.com/cmake/cmake/issues/19222
if(CMAKE_VERSION VERSION_LESS 3.14.4)
  if(CMAKE_GENERATOR STREQUAL "Ninja")
    find_program(NINJAPROG ninja DOC "looking for Ninja to be used")
    if (NINJAPROG)
      execute_process(COMMAND ${NINJAPROG} --version
        OUTPUT_VARIABLE NINJAVERSION
        OUTPUT_STRIP_TRAILING_WHITESPACE
        RESULT_VARIABLE NINJAVERSIONRES)
      if(${NINJAVERSIONRES} EQ 0)
        if(${NINJAVERSION} VERSION_GREATER 1.8.2)
          message(FATAL_ERROR "You have hit https://gitlab.kitware.com/cmake/cmake/issues/19222\n"
            "Your build will be indeterministic, i.e. unreliable for incremental builds."
            "To fix this, please install CMake >= 3.14.4!")
        endif()
      endif()
    endif()
  endif()
endif()

if (CMAKE_SYSTEM_NAME MATCHES Darwin)
  EXECUTE_PROCESS(COMMAND sw_vers "-productVersion"
                  COMMAND cut -d . -f 1-2
                  OUTPUT_VARIABLE MACOSX_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)

{'fraction_non_alphanumeric': 0.09208309938236946, 'fraction_numerical': 0.023582257158899493, 'mean_word_length': 3.3676470588235294, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '7461872', 'n_tokens_mistral': 691, 'n_tokens_neox': 629, 'n_words': 152}