<commit_before>
add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/core_utils_wrap.cxx
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/core_utils.i
  COMMAND ${SWIG_COMMAND} -c++ -javascript -jsc
          -I${jsobjects_SWIG_INCLUDE_DIRS}
          -o ${CMAKE_CURRENT_BINARY_DIR}/core_utils_wrap.cxx
          ${CMAKE_CURRENT_SOURCE_DIR}/core_utils.i
)

include_directories(
  ${JS_INCLUDE_DIRS}
  ${BOOST_INCLUDE_DIRS}
  ${jsobjects_INCLUDE_DIRS}
#  ${HIREDIS_INCLUDE_DIRS}
  ${CMAKE_CURRENT_SOURCE_DIR}
)


add_library(core_extensions STATIC
  core_utils_wrap.cxx
  core_utils_initializer.h
  core_utils_initializer.cxx
)

set(core_utils_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" FORCE)<commit_msg>Fix dependencies for generating core extension automatically.<commit_after>
add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/core_utils_wrap.cxx
  DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/core_utils.i ${CMAKE_CURRENT_SOURCE_DIR}/resource_provider.h
  COMMAND ${SWIG_COMMAND} -c++ -javascript -jsc
          -I${jsobjects_SWIG_INCLUDE_DIRS}
          -o ${CMAKE_CURRENT_BINARY_DIR}/core_utils_wrap.cxx
          ${CMAKE_CURRENT_SOURCE_DIR}/core_utils.i
)

include_directories(
  ${JS_INCLUDE_DIRS}
  ${BOOST_INCLUDE_DIRS}
  ${jsobjects_INCLUDE_DIRS}
#  ${HIREDIS_INCLUDE_DIRS}
  ${CMAKE_CURRENT_SOURCE_DIR}
)


add_library(core_extensions STATIC
  core_utils_wrap.cxx
  core_utils_initializer.h
  core_utils_initializer.cxx
  resource_provider.h
)

set(core_utils_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "" FORCE)
{'fraction_non_alphanumeric': 0.09370904325032765, 'fraction_numerical': 0.0, 'mean_word_length': 5.726872246696035, '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': '7227681', 'n_tokens_mistral': 610, 'n_tokens_neox': 575, 'n_words': 69}