<commit_before>#  CYCLUS_CORE_FOUND - system has the Cyclus Core library
#  CYCLUS_CORE_INCLUDE_DIR - the Cyclus include directory
#  CYCLUS_CORE_LIBRARIES - The libraries needed to use the Cyclus Core Library

# Check if we have an environment variable to cyclus root
IF(DEFINED ENV{CYCLUS_ROOT_DIR})
  IF(NOT DEFINED CYCLUS_ROOT_DIR)
    SET(CYCLUS_ROOT_DIR "$ENV{CYCLUS_ROOT_DIR}")
  ELSE(NOT DEFINED CYCLUS_ROOT_DIR)
    # Yell if both exist
    MESSAGE(STATUS "\tTwo CYCLUS_ROOT_DIRs have been found:")
    MESSAGE(STATUS "\t\tThe defined cmake variable CYCLUS_ROOT_DIR: ${CYCLUS_ROOT_DIR}")
    MESSAGE(STATUS "\t\tThe environment variable CYCLUS_ROOT_DIR: $ENV{CYCLUS_ROOT_DIR}")
  ENDIF(NOT DEFINED CYCLUS_ROOT_DIR)
ENDIF(DEFINED ENV{CYCLUS_ROOT_DIR})

# Let the user know if we're using a hint
IF(DEFINED CYCLUS_ROOT_DIR)
  MESSAGE(STATUS "CYCLUS_ROOT_DIR hint is : ${CYCLUS_ROOT_DIR}")
ELSE(DEFINED CYCLUS_ROOT_DIR)
  MESSAGE(STATUS "No hint is used for CYCLUS_ROOT_DIR")
ENDIF(DEFINED CYCLUS_ROOT_DIR)

# Set the include dir, this will be the future basis for other
# defined dirs
FIND_PATH(CYCLUS_CORE_INCLUDE_DIR suffix.h
  HINTS "${CYCLUS_ROOT_DIR}" "${CYCLUS_ROOT_DIR}/cyclus"
  "${CYCLUS_ROOT_DIR}/include" 
  "${CYCLUS_ROOT_DIR}/include/cyclus" 
  /usr/local/cyclus /opt/local/cyclus 
  PATH_SUFFIXES cyclus/include include)

# Add the root dir to the hints
SET(CYCLUS_ROOT_DIR "${CYCLUS_CORE_INCLUDE_DIR}/..")
MESSAGE(STATUS "CYCLUS_ROOT_DIR hint has been set to : ${CYCLUS_ROOT_DIR}")

# Look for the header files<commit_msg>adds missing modified PATH_SUFFIX<commit_after>#  CYCLUS_CORE_FOUND - system has the Cyclus Core library
#  CYCLUS_CORE_INCLUDE_DIR - the Cyclus include directory
#  CYCLUS_CORE_LIBRARIES - The libraries needed to use the Cyclus Core Library

# Check if we have an environment variable to cyclus root
IF(DEFINED ENV{CYCLUS_ROOT_DIR})
  IF(NOT DEFINED CYCLUS_ROOT_DIR)
    SET(CYCLUS_ROOT_DIR "$ENV{CYCLUS_ROOT_DIR}")
  ELSE(NOT DEFINED CYCLUS_ROOT_DIR)
    # Yell if both exist
    MESSAGE(STATUS "\tTwo CYCLUS_ROOT_DIRs have been found:")
    MESSAGE(STATUS "\t\tThe defined cmake variable CYCLUS_ROOT_DIR: ${CYCLUS_ROOT_DIR}")
    MESSAGE(STATUS "\t\tThe environment variable CYCLUS_ROOT_DIR: $ENV{CYCLUS_ROOT_DIR}")
  ENDIF(NOT DEFINED CYCLUS_ROOT_DIR)
ENDIF(DEFINED ENV{CYCLUS_ROOT_DIR})

# Let the user know if we're using a hint
IF(DEFINED CYCLUS_ROOT_DIR)
  MESSAGE(STATUS "CYCLUS_ROOT_DIR hint is : ${CYCLUS_ROOT_DIR}")
ELSE(DEFINED CYCLUS_ROOT_DIR)
  MESSAGE(STATUS "No hint is used for CYCLUS_ROOT_DIR")
ENDIF(DEFINED CYCLUS_ROOT_DIR)

# Set the include dir, this will be the future basis for other
# defined dirs
FIND_PATH(CYCLUS_CORE_INCLUDE_DIR suffix.h
  HINTS "${CYCLUS_ROOT_DIR}" "${CYCLUS_ROOT_DIR}/cyclus"
  "${CYCLUS_ROOT_DIR}/include" 
  "${CYCLUS_ROOT_DIR}/include/cyclus" 
  /usr/local/cyclus /opt/local/cyclus 
  PATH_SUFFIXES cyclus/include include include/cyclus)

# Add the root dir to the hints
SET(CYCLUS_ROOT_DIR "${CYCLUS_CORE_INCLUDE_DIR}/..")
MESSAGE(STATUS "CYCLUS_ROOT_DIR hint has been set to : ${CYCLUS_ROOT_DIR}")

# Look for the header files
{'fraction_non_alphanumeric': 0.08677553634325968, 'fraction_numerical': 0.0, 'mean_word_length': 5.61864406779661, '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': '2951148', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1098, 'n_words': 295}