<commit_before>###############################
# Detect and build libelemental
# if necessary
###############################

include(ExternalProject)

# Find if it already exists? (it's not required yet)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
find_package(libelemental)


# If not found, build it
if(NOT libelemental_FOUND)
  message(STATUS "We will build libelemental for you")
  ExternalProject_Add(libelemental_external
                      SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libelemental-source
                      CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/external/libelemental 
                                 -DBUILD_KISSFFT:Bool=Off
                                 -DBUILD_METIS:Bool=Off
                                 -DINSTALL_PYTHON_PACKAGE:Bool=No
                                 -DBUILD_SHARED_LIBS:Bool=No
                                 -DCMAKE_CXX_FLAGS=-fPIC
                                 -DMPI_CXX_COMPILER=${MPI_CXX_COMPILER}
                                 -DMPI_C_COMPILER=${MPI_C_COMPILER}
                                 -DMPI_Fortran_COMPILER=${MPI_Fortran_COMPILER}
                                 -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
                                 -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
                                 -DCMAKE_Fortran_COMPILER=${CMAKE_Fortran_COMPILER}
                                 --debug-trycompile
                      CMAKE_CACHE_ARGS -DMATH_LIBS:STRING=${BPMODULE_MATH_LIBS}
                      INSTALL_COMMAND make install DESTDIR=${CMAKE_BINARY_DIR}/stage
                     )
else()
  message(STATUS "Using existing libelemental")

  # Add a dummy library for dependencies
  add_library(libelemental_external INTERFACE)
endif()<commit_msg>Remove debugging switch<commit_after>###############################
# Detect and build libelemental
# if necessary
###############################

include(ExternalProject)

# Find if it already exists? (it's not required yet)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
find_package(libelemental)


# If not found, build it
if(NOT libelemental_FOUND)
  message(STATUS "We will build libelemental for you")
  ExternalProject_Add(libelemental_external
                      SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libelemental-source
                      CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}/external/libelemental 
                                 -DBUILD_KISSFFT:Bool=Off
                                 -DBUILD_METIS:Bool=Off
                                 -DINSTALL_PYTHON_PACKAGE:Bool=No
                                 -DBUILD_SHARED_LIBS:Bool=No
                                 -DCMAKE_CXX_FLAGS=-fPIC
                                 -DMPI_CXX_COMPILER=${MPI_CXX_COMPILER}
                                 -DMPI_C_COMPILER=${MPI_C_COMPILER}
                                 -DMPI_Fortran_COMPILER=${MPI_Fortran_COMPILER}
                                 -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
                                 -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
                                 -DCMAKE_Fortran_COMPILER=${CMAKE_Fortran_COMPILER}
                      CMAKE_CACHE_ARGS -DMATH_LIBS:STRING=${BPMODULE_MATH_LIBS}
                      INSTALL_COMMAND make install DESTDIR=${CMAKE_BINARY_DIR}/stage
                     )
else()
  message(STATUS "Using existing libelemental")

  # Add a dummy library for dependencies
  add_library(libelemental_external INTERFACE)
endif()
{'fraction_non_alphanumeric': 0.10062358276643991, 'fraction_numerical': 0.0, 'mean_word_length': 1.9069192751235584, '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': 23, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2347575', 'n_tokens_mistral': 1062, 'n_tokens_neox': 976, 'n_words': 142}