<commit_before>set(DOWNLOAD_DIR ${EXTERNALS_DIR}/jsobjects)

if (DOWNLOAD_EXTERNALS)

  ExternalProject_Add(jsobjects
    GIT_REPOSITORY git://github.com/oliver----/jsobjects.git
    PREFIX ${DOWNLOAD_DIR}
    DOWNLOAD_DIR ${DOWNLOAD_DIR}
    STAMP_DIR ${DOWNLOAD_DIR}/stamp
    SOURCE_DIR ${DOWNLOAD_DIR}/jsobjects
    BINARY_DIR ${DOWNLOAD_DIR}/bin
    UPDATE_COMMAND "" # skip update
    CONFIGURE_COMMAND ${CMAKE_COMMAND} -DIMPORT=ON
        -DENABLE_JSC=ON -DENABLE_CPP=ON -DENABLE_TESTS=OFF
        -DEXTERNALS_DIR=${EXTERNALS_DIR}
        -DLIBRARY_TYPE=STATIC
        ${DOWNLOAD_DIR}/jsobjects
    BUILD_COMMAND make
    INSTALL_COMMAND "" # skip install
  )

endif ()

set(jsobjects_INCLUDE_DIRS ${DOWNLOAD_DIR}/jsobjects/include)
set(jsobjects_LIBRARY_DIRS ${DOWNLOAD_DIR}/bin/src/jsc ${DOWNLOAD_DIR}/bin/src/cpp)
set(jsobjects_SWIG_INCLUDE_DIRS ${DOWNLOAD_DIR}/jsobjects/swig)<commit_msg>Pull the latest jsobjects version on each build of externals.<commit_after>set(DOWNLOAD_DIR ${EXTERNALS_DIR}/jsobjects)

if (DOWNLOAD_EXTERNALS)

  ExternalProject_Add(jsobjects
    GIT_REPOSITORY git://github.com/oliver----/jsobjects.git
    PREFIX ${DOWNLOAD_DIR}
    DOWNLOAD_DIR ${DOWNLOAD_DIR}
    STAMP_DIR ${DOWNLOAD_DIR}/stamp
    SOURCE_DIR ${DOWNLOAD_DIR}/jsobjects
    BINARY_DIR ${DOWNLOAD_DIR}/bin
    UPDATE_COMMAND git pull origin master # skip update
    CONFIGURE_COMMAND ${CMAKE_COMMAND} -DIMPORT=ON
        -DENABLE_JSC=ON -DENABLE_CPP=ON -DENABLE_TESTS=OFF
        -DEXTERNALS_DIR=${EXTERNALS_DIR}
        -DLIBRARY_TYPE=STATIC
        ${DOWNLOAD_DIR}/jsobjects
    BUILD_COMMAND make
    INSTALL_COMMAND "" # skip install
  )

endif ()

set(jsobjects_INCLUDE_DIRS ${DOWNLOAD_DIR}/jsobjects/include)
set(jsobjects_LIBRARY_DIRS ${DOWNLOAD_DIR}/bin/src/jsc ${DOWNLOAD_DIR}/bin/src/cpp)
set(jsobjects_SWIG_INCLUDE_DIRS ${DOWNLOAD_DIR}/jsobjects/swig)
{'fraction_non_alphanumeric': 0.10664523043944266, 'fraction_numerical': 0.0, 'mean_word_length': 4.657575757575757, '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': '2060750', 'n_tokens_mistral': 696, 'n_tokens_neox': 719, 'n_words': 96}