<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
#  CYCLUS_AGENT_TEST_LIBRARIES - A test library for agents
#  CYCLUS_TEST_LIBRARIES - All testing libraries
#  CYCLUS_DEFAULT_TEST_DRIVER - The default cyclus unit test driver

# 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)
ELSE(DEFINED ENV{CYCLUS_ROOT_DIR})
  SET(CYCLUS_ROOT_DIR "$ENV{HOME}/.local") <commit_msg>FindCyclus.cmake now uses 'cyclus --install-path' if cyclus bin is in PATH<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
#  CYCLUS_AGENT_TEST_LIBRARIES - A test library for agents
#  CYCLUS_TEST_LIBRARIES - All testing libraries
#  CYCLUS_DEFAULT_TEST_DRIVER - The default cyclus unit test driver

# 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)
ELSE(DEFINED ENV{CYCLUS_ROOT_DIR})
  FIND_PROGRAM(CYCLUS_BIN cyclus)
  IF(CYCLUS_BIN)
    EXECUTE_PROCESS(COMMAND cyclus --install-path
                    OUTPUT_VARIABLE CYCLUS_ROOT_DIR
                    OUTPUT_STRIP_TRAILING_WHITESPACE)
  ELSE(CYCLUS_BIN)
    SET(CYCLUS_ROOT_DIR "$ENV{HOME}/.local") 
  ENDIF(CYCLUS_BIN)
{'fraction_non_alphanumeric': 0.07208387942332896, 'fraction_numerical': 0.0, 'mean_word_length': 4.9480519480519485, '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': '5410919', 'n_tokens_mistral': 888, 'n_tokens_neox': 785, 'n_words': 201}