<commit_before>macro(cyclus_init  _path _dir _name)

  SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
    ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${_path})
  
  IF(NOT DEFINED CYCPP)
    SET(CYCPP "${CYCLUS_CORE_INCLUDE_DIRS}/../cycpp.py")
  ENDIF(NOT DEFINED CYCPP)

  SET(BUILD_DIR ${PROJECT_BINARY_DIR}/${_dir})
  FILE(MAKE_DIRECTORY ${BUILD_DIR})

  GET_PROPERTY(DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)  
  #SET(INCL_ARG "")
  SET(INCL_ARG "$ENV{C_INCLUDE_PATH}")
  FOREACH(DIR ${DIRS})
    SET(INCL_ARG "${INCL_ARG}:${DIR}")
  ENDFOREACH(DIR ${DIRS})
  # SET(INCL_ARG "-I=\"${INCL_ARG}\"")
  SET(ENV{C_INCLUDE_PATH} ${INCL_ARG})
  MESSAGE("C_INCLUDE_PATH: $ENV{C_INCLUDE_PATH}")
  #SET(INCL_ARG "-I=\"${DIRS}\"")
  #MESSAGE("INCL ARG: ${INCL_ARG}")

  SET(HIN "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")
  SET(HOUT "-o=${BUILD_DIR}/${_name}.h")
  IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")
    EXECUTE_PROCESS(COMMAND ${CYCPP} ${HIN} ${HOUT})# ${INCL_ARG})
    MESSAGE("Executing ${CYCPP} ${HIN} ${HOUT}")# ${INCL_ARG}")
  ENDIF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")

  SET(CCIN "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.cc")
  SET(CCOUT "-o=${BUILD_DIR}/${_name}.cc")
  MESSAGE("Executing ${CYCPP} ${CCIN} ${CCOUT}")# ${INCL_ARG}")
  EXECUTE_PROCESS(COMMAND ${CYCPP} ${CCIN} ${CCOUT}) # ${INCL_ARG})
  
  # Build the cyclus executable from the CYCLUS_SRC source files
  ADD_LIBRARY( ${_dir} ${BUILD_DIR}/${_name}.cc )
  # Link the libraries to libcycluscore
  TARGET_LINK_LIBRARIES(${_dir} dl cycluscore)
  SET(CYCLUS_LIBRARIES ${CYCLUS_LIBRARIES} ${_dir} )
  
  install(TARGETS ${_dir}
    LIBRARY DESTINATION lib${_path}
    COMPONENT ${_path}
    )<commit_msg>now use cplus env var<commit_after>macro(cyclus_init  _path _dir _name)

  SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
    ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}${_path})
  
  IF(NOT DEFINED CYCPP)
    SET(CYCPP "${CYCLUS_CORE_INCLUDE_DIRS}/../cycpp.py")
  ENDIF(NOT DEFINED CYCPP)

  SET(BUILD_DIR ${PROJECT_BINARY_DIR}/${_dir})
  FILE(MAKE_DIRECTORY ${BUILD_DIR})

  GET_PROPERTY(DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)  
  #SET(INCL_ARG "")
  SET(INCL_ARG "$ENV{CPLUS_INCLUDE_PATH}")
  FOREACH(DIR ${DIRS})
    SET(INCL_ARG "${INCL_ARG}:${DIR}")
  ENDFOREACH(DIR ${DIRS})
  # SET(INCL_ARG "-I=\"${INCL_ARG}\"")
  SET(ENV{CPLUS_INCLUDE_PATH} ${INCL_ARG})
  MESSAGE("CPLUS_INCLUDE_PATH: $ENV{CPLUS_INCLUDE_PATH}")
  #SET(INCL_ARG "-I=\"${DIRS}\"")
  #MESSAGE("INCL ARG: ${INCL_ARG}")

  SET(HIN "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")
  SET(HOUT "-o=${BUILD_DIR}/${_name}.h")
  IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")
    EXECUTE_PROCESS(COMMAND ${CYCPLUS} ${HIN} ${HOUT})# ${INCL_ARG})
    MESSAGE("Executing ${CYCPLUS} ${HIN} ${HOUT}")# ${INCL_ARG}")
  ENDIF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.h")

  SET(CCIN "${CMAKE_CURRENT_SOURCE_DIR}/${_name}.cc")
  SET(CCOUT "-o=${BUILD_DIR}/${_name}.cc")
  MESSAGE("Executing ${CYCPP} ${CCIN} ${CCOUT}")# ${INCL_ARG}")
  EXECUTE_PROCESS(COMMAND ${CYCPP} ${CCIN} ${CCOUT}) # ${INCL_ARG})
  
  # Build the cyclus executable from the CYCLUS_SRC source files
  ADD_LIBRARY( ${_dir} ${BUILD_DIR}/${_name}.cc )
  # Link the libraries to libcycluscore
  TARGET_LINK_LIBRARIES(${_dir} dl cycluscore)
  SET(CYCLUS_LIBRARIES ${CYCLUS_LIBRARIES} ${_dir} )
  
  install(TARGETS ${_dir}
    LIBRARY DESTINATION lib${_path}
    COMPONENT ${_path}
    )
{'fraction_non_alphanumeric': 0.1858562244301578, 'fraction_numerical': 0.0, 'mean_word_length': 5.859719438877756, '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': '6486494', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1406, 'n_words': 214}