<commit_before># Configure paths
set(MOZART_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
set(MOZART_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/../..")

set(OPI_FUNCTORS
    "${CMAKE_CURRENT_SOURCE_DIR}/OPI.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/Emacs.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/OPIEnv.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/OPIServer.oz")

set(OPI_FUNCTORS_OZF "")

foreach(FUNCTOR ${OPI_FUNCTORS})
  get_filename_component(FUNCTOR_BASENAME ${FUNCTOR} NAME_WE)
  set(FUNCTOR_OZF "${CMAKE_CURRENT_BINARY_DIR}/${FUNCTOR_BASENAME}.ozf")
  set(OPI_FUNCTORS_OZF ${OPI_FUNCTORS_OZF} "${FUNCTOR_OZF}")

  add_custom_command(
    OUTPUT "${FUNCTOR_OZF}"
    COMMAND ozemulator
      --init "${MOZART_BUILD_DIR}/lib/cache/Init.ozf"
      --search-load "cache=${MOZART_BUILD_DIR}/lib/cache"
      x-oz://system/Compile.ozf
      -c "${FUNCTOR}"
      -o "${FUNCTOR_OZF}"
    DEPENDS library "${FUNCTOR}"
    COMMENT "(compiling) ${FUNCTOR_OZF}"
    VERBATIM)
endforeach()

add_custom_target(
  opilibrary ALL
  DEPENDS ${OPI_FUNCTORS_OZF})

# Install<commit_msg>Removed now useless options to the compiler invocation.<commit_after># Configure paths
set(MOZART_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../..")
set(MOZART_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/../..")

set(OPI_FUNCTORS
    "${CMAKE_CURRENT_SOURCE_DIR}/OPI.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/Emacs.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/OPIEnv.oz"
    "${CMAKE_CURRENT_SOURCE_DIR}/OPIServer.oz")

set(OPI_FUNCTORS_OZF "")

foreach(FUNCTOR ${OPI_FUNCTORS})
  get_filename_component(FUNCTOR_BASENAME ${FUNCTOR} NAME_WE)
  set(FUNCTOR_OZF "${CMAKE_CURRENT_BINARY_DIR}/${FUNCTOR_BASENAME}.ozf")
  set(OPI_FUNCTORS_OZF ${OPI_FUNCTORS_OZF} "${FUNCTOR_OZF}")

  add_custom_command(
    OUTPUT "${FUNCTOR_OZF}"
    COMMAND ozemulator
      x-oz://system/Compile.ozf
      -c "${FUNCTOR}"
      -o "${FUNCTOR_OZF}"
    DEPENDS library "${FUNCTOR}"
    COMMENT "(compiling) ${FUNCTOR_OZF}"
    VERBATIM)
endforeach()

add_custom_target(
  opilibrary ALL
  DEPENDS ${OPI_FUNCTORS_OZF})

# Install
{'fraction_non_alphanumeric': 0.15024630541871922, 'fraction_numerical': 0.0, 'mean_word_length': 5.080838323353293, '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': '4786393', 'n_tokens_mistral': 851, 'n_tokens_neox': 825, 'n_words': 104}