<commit_before>include(CheckCXXCompilerFlag)

macro (CHECK_CXX_COMPILER_FLAG_AND_ENABLE_IT _FLAG)
  set(_RESULT "CXX_COMPILER_UNDERSTANDS_${_FLAG}")

  set(CMAKE_REQUIRED_FLAGS_ORIG "${CMAKE_REQUIRED_FLAGS}")
  set(CMAKE_REQUIRED_FLAGS "${CMAKE_CXX_FLAGS}")

  CHECK_CXX_COMPILER_FLAG("${_FLAG}" ${_RESULT})

  if(${${_RESULT}})
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_FLAG}")
  endif()

  set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_ORIG}")
endmacro ()
<commit_msg>CHECK_CXX_COMPILER_FLAG_AND_ENABLE_IT(): slight tuning<commit_after>include(CheckCXXCompilerFlag)

macro (CHECK_CXX_COMPILER_FLAG_AND_ENABLE_IT _FLAG)
  string(TOUPPER "${_FLAG}" _RESULT)
  string(REPLACE "-" "_" _RESULT "${_RESULT}")
  string(REPLACE "=" "_" _RESULT "${_RESULT}")
  set(_RESULT "HAVE_CXX_FLAG${_RESULT}")

  set(CMAKE_REQUIRED_FLAGS_ORIG "${CMAKE_REQUIRED_FLAGS}")
  set(CMAKE_REQUIRED_FLAGS "${CMAKE_CXX_FLAGS}")

  CHECK_CXX_COMPILER_FLAG("${_FLAG}" ${_RESULT})

  if(${${_RESULT}})
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_FLAG}")
  endif()

  set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS_ORIG}")
endmacro ()

{'fraction_non_alphanumeric': 0.15026833631484796, 'fraction_numerical': 0.0, 'mean_word_length': 9.08108108108108, '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': '5006483', 'n_tokens_mistral': 474, 'n_tokens_neox': 448, 'n_words': 51}