<commit_before># Locate libnuml
# This module defines:
# LIBNUML_INCLUDE_DIR, where to find the headers
#
# LIBNUML_LIBRARY, LIBNUML_LIBRARY_DEBUG
# LIBNUML_FOUND, LIBNUML_LIBRARY_NAME


if(UNIX OR CYGWIN OR MINGW)
  set(LIBNUML_LIBRARY_NAME numl)
else()
  set(LIBNUML_LIBRARY_NAME libnuml)
endif()

if (NOT LIBNUML_SHARED)
  set(LIBNUML_LIBRARY_NAME "${LIBNUML_LIBRARY_NAME}-static")
endif()

message (STATUS "Looking for ${LIBNUML_LIBRARY_NAME}")

find_package(${LIBNUML_LIBRARY_NAME} CONFIG QUIET)

if (${LIBNUML_LIBRARY_NAME}_FOUND)

  get_target_property(LIBNUML_LIBRARY ${LIBNUML_LIBRARY_NAME} LOCATION)
  get_filename_component(LIB_PATH ${LIBNUML_LIBRARY} DIRECTORY)
  file(TO_CMAKE_PATH ${LIB_PATH}/../include LIBNUML_INCLUDE_DIR)  
  get_filename_component (LIBNUML_INCLUDE_DIR ${LIBNUML_INCLUDE_DIR} REALPATH)
  get_target_property(LIBNUML_VERSION ${LIBNUML_LIBRARY_NAME} VERSION)

else()

find_path(LIBNUML_INCLUDE_DIR sbml/SBase.h
    PATHS $ENV{LIBNUML_DIR}/include
          $ENV{LIBNUML_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}/include
          ~/Library/Frameworks
          /Library/Frameworks
          /sw/include        # Fink
          /opt/local/include # MacPorts
          /opt/csw/include   # Blastwave
          /opt/include
          /usr/freeware/include
    NO_DEFAULT_PATH)

if (NOT LIBNUML_INCLUDE_DIR)
    message(FATAL_ERROR "libsbml include dir not found not found!")
endif (NOT LIBNUML_INCLUDE_DIR)

if (NOT LIBNUML_INCLUDE_DIR)
    find_path(LIBNUML_INCLUDE_DIR sbml/SBase.h)
endif (NOT LIBNUML_INCLUDE_DIR)

find_library(LIBNUML_LIBRARY 
    NAMES sbml-static 
          sbml
          libsbml-static 
          libsbml
    PATHS $ENV{LIBNUML_DIR}/lib
          $ENV{LIBNUML_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}/lib
          ~/Library/Frameworks
          /Library/Frameworks
          /sw/lib        # Fink
          /opt/local/lib # MacPorts
          /opt/csw/lib   # Blastwave
          /opt/lib
          /usr/freeware/lib64
    NO_DEFAULT_PATH)

if (NOT LIBNUML_LIBRARY)
    find_library(LIBNUML_LIBRARY 
        NAMES sbml-static 
              sbml)
endif (NOT LIBNUML_LIBRARY)

if (NOT LIBNUML_LIBRARY)
    message(FATAL_ERROR "LIBNUML library not found!")
endif (NOT LIBNUML_LIBRARY)
<commit_msg>- fix issue with numl find script<commit_after># Locate libnuml
# This module defines:
# LIBNUML_INCLUDE_DIR, where to find the headers
#
# LIBNUML_LIBRARY, LIBNUML_LIBRARY_DEBUG
# LIBNUML_FOUND, LIBNUML_LIBRARY_NAME


if(UNIX OR CYGWIN OR MINGW)
  set(LIBNUML_LIBRARY_NAME numl)
else()
  set(LIBNUML_LIBRARY_NAME libnuml)
endif()

if (NOT LIBNUML_SHARED)
  set(LIBNUML_LIBRARY_NAME "${LIBNUML_LIBRARY_NAME}-static")
endif()

message (STATUS "Looking for ${LIBNUML_LIBRARY_NAME}")

find_package(${LIBNUML_LIBRARY_NAME} CONFIG QUIET)

if (${LIBNUML_LIBRARY_NAME}_FOUND)

  get_target_property(LIBNUML_LIBRARY ${LIBNUML_LIBRARY_NAME} LOCATION)
  get_filename_component(LIB_PATH ${LIBNUML_LIBRARY} DIRECTORY)
  file(TO_CMAKE_PATH ${LIB_PATH}/../include LIBNUML_INCLUDE_DIR)  
  get_filename_component (LIBNUML_INCLUDE_DIR ${LIBNUML_INCLUDE_DIR} REALPATH)
  get_target_property(LIBNUML_VERSION ${LIBNUML_LIBRARY_NAME} VERSION)

else()

find_path(LIBNUML_INCLUDE_DIR sbml/SBase.h
    PATHS $ENV{LIBNUML_DIR}/include
          $ENV{LIBNUML_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}/include
          ~/Library/Frameworks
          /Library/Frameworks
          /sw/include        # Fink
          /opt/local/include # MacPorts
          /opt/csw/include   # Blastwave
          /opt/include
          /usr/freeware/include
    NO_DEFAULT_PATH)

if (NOT LIBNUML_INCLUDE_DIR)
    message(FATAL_ERROR "libsbml include dir not found not found!")
endif (NOT LIBNUML_INCLUDE_DIR)

if (NOT LIBNUML_INCLUDE_DIR)
    find_path(LIBNUML_INCLUDE_DIR sbml/SBase.h)
endif (NOT LIBNUML_INCLUDE_DIR)

find_library(LIBNUML_LIBRARY 
    NAMES numl-static 
          numl
          libnuml-static 
          libnuml
    PATHS $ENV{LIBNUML_DIR}/lib
          $ENV{LIBNUML_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}
          ${LIBSEDML_DEPENDENCY_DIR}/lib
          ~/Library/Frameworks
          /Library/Frameworks
          /sw/lib        # Fink
          /opt/local/lib # MacPorts
          /opt/csw/lib   # Blastwave
          /opt/lib
          /usr/freeware/lib64
    NO_DEFAULT_PATH)

if (NOT LIBNUML_LIBRARY)
    find_library(LIBNUML_LIBRARY 
        NAMES numl-static 
              numl)
endif (NOT LIBNUML_LIBRARY)

if (NOT LIBNUML_LIBRARY)
    message(FATAL_ERROR "LIBNUML library not found!")
endif (NOT LIBNUML_LIBRARY)

{'fraction_non_alphanumeric': 0.08329764453961457, 'fraction_numerical': 0.0008565310492505353, 'mean_word_length': 3.2386569872958257, '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': '1439118', 'n_tokens_mistral': 1846, 'n_tokens_neox': 1706, 'n_words': 292}