<commit_before>include(ExternalProject)

# Find if it already exists? (it's not required yet)
find_package(cereal QUIET)                                

# If not found, build it
# (Actually, cereal doesn't have a make install, so skip building, etc,
# and just copy the headers
if(NOT PYBIND11_FOUND)
  message(STATUS "We will install cereal for you")
  ExternalProject_Add(cereal_external
                      SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cereal-source
                      CONFIGURE_COMMAND echo "Skipping configuring for header-only library"
                      BUILD_COMMAND echo "Skipping building for header-only library"
                      INSTALL_COMMAND mkdir -p ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX}/external/cereal &&
                                      cp -R ${CMAKE_CURRENT_SOURCE_DIR}/cereal-source/include ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX}/external/cereal
                     )
else()
  # Add a dummy library for dependencies
  add_library(cereal_external INTERFACE)
endif()
<commit_msg>fixed copy/paste error before I steal this....<commit_after>include(ExternalProject)

# Find if it already exists? (it's not required yet)
find_package(cereal QUIET)                                

# If not found, build it
# (Actually, cereal doesn't have a make install, so skip building, etc,
# and just copy the headers
if(NOT CEREAL_FOUND)
  message(STATUS "We will install cereal for you")
  ExternalProject_Add(cereal_external
                      SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cereal-source
                      CONFIGURE_COMMAND echo "Skipping configuring for header-only library"
                      BUILD_COMMAND echo "Skipping building for header-only library"
                      INSTALL_COMMAND mkdir -p ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX}/external/cereal &&
                                      cp -R ${CMAKE_CURRENT_SOURCE_DIR}/cereal-source/include ${CMAKE_BINARY_DIR}/stage/${CMAKE_INSTALL_PREFIX}/external/cereal
                     )
else()
  # Add a dummy library for dependencies
  add_library(cereal_external INTERFACE)
endif()

{'fraction_non_alphanumeric': 0.07548054383497421, 'fraction_numerical': 0.0009376465072667605, 'mean_word_length': 2.60472972972973, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7033729', 'n_tokens_mistral': 624, 'n_tokens_neox': 571, 'n_words': 160}