<commit_before># - Find MantisAPI
# Find the MantisAPI includes and client library
# This module defines
#  MantisAPI_INCLUDE_DIR, where to find MantisAPI/MantisAPI.h
#  MantisAPI_LIBRARIES, the libraries needed to use MantisAPI.
#  MantisAPI_FOUND, If false, do not try to use MantisAPI.

if(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
   set(MantisAPI_FOUND TRUE)

else(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    find_path(MantisAPI_INCLUDE_DIR MantisAPI.h
      ${CMAKE_INCLUDE_PATH}/mantis
      ${CMAKE_INSTALL_PREFIX}/include/mantis
      include
      /usr/include/
      /usr/local/include/
      /usr/include/mantis/
      /usr/local/include/mantis/
      /opt/mantis/include/
      $ENV{ProgramFiles}/mantis/*/include
      $ENV{SystemDrive}/mantis/*/include
    )

if(WIN32)
   find_library(MantisAPI_LIBRARIES NAMES MantisAPI
      PATHS
      $ENV{ProgramFiles}/aqueti/*/lib
      $ENV{SystemDrive}/aqueti/*/lib
      )
else(WIN32)
    find_library(MantisAPI_LIBRARIES NAMES MantisAPI
      PATHS
      ${CMAKE_INSTALL_PREFIX}/lib
      ${CMAKE_LIB_PATH}
      /usr/lib
      /usr/lib/mantis
      /usr/local/lib
      /usr/local/lib/mantis
      /opt/mantis/lib
      )
endif(WIN32)
  if(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    set(MantisAPI_FOUND TRUE)
    message(STATUS "Found MantisAPI: ${MantisAPI_INCLUDE_DIR}, ${MantisAPI_LIBRARIES}")
  else(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    message(STATUS "Didn't find MantisAPI: ${MantisAPI_INCLUDE_DIR}, ${MantisAPI_LIBRARIES}")
    set(MantisAPI_FOUND FALSE)
    if (MantisAPI_FIND_REQUIRED)
		message(FATAL_ERROR "MantisAPI not found.")
	else (MantisAPI_FIND_REQUIRED)
		message(STATUS "MantisAPI not found.")
	endif (MantisAPI_FIND_REQUIRED)
  endif(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
<commit_msg>Changed cmake file back to where it was one commit ago due to strange merge, should be OK but not 100% sure<commit_after># - Find MantisAPI
# Find the MantisAPI includes and client library
# This module defines
#  MantisAPI_INCLUDE_DIR, where to find MantisAPI/MantisAPI.h
#  MantisAPI_LIBRARIES, the libraries needed to use MantisAPI.
#  MantisAPI_FOUND, If false, do not try to use MantisAPI.

if(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
   set(MantisAPI_FOUND TRUE)

else(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    find_path(MantisAPI_INCLUDE_DIR MantisAPI.h
      ${CMAKE_INCLUDE_PATH}/mantis
      ${CMAKE_INSTALL_PREFIX}/include/mantis
      include
      /usr/include/
      /usr/local/include/
      /usr/include/mantis/
      /usr/local/include/mantis/
      /opt/mantis/include/
      $ENV{ProgramFiles}/mantis/*/include
      $ENV{SystemDrive}/mantis/*/include
    )

if(WIN32)
   find_library(MantisAPI_LIBRARIES NAMES MantisAPI
      PATHS
      $ENV{ProgramFiles}/aqueti/*/lib
      $ENV{SystemDrive}/aqueti/*/lib
      )
else(WIN32)
    find_library(MantisAPI_LIBRARIES NAMES MantisAPI
      PATHS
      ${CMAKE_LIB_PATH}
      /usr/lib
      /usr/lib/mantis
      /usr/local/lib
      /usr/local/lib/mantis
      /opt/mantis/lib
      )
endif(WIN32)
  if(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    set(MantisAPI_FOUND TRUE)
    message(STATUS "Found MantisAPI: ${MantisAPI_INCLUDE_DIR}, ${MantisAPI_LIBRARIES}")
  else(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)
    message(STATUS "Didn't find MantisAPI: ${MantisAPI_INCLUDE_DIR}, ${MantisAPI_LIBRARIES}")
    set(MantisAPI_FOUND FALSE)
    if (MantisAPI_FIND_REQUIRED)
		message(FATAL_ERROR "MantisAPI not found.")
	else (MantisAPI_FIND_REQUIRED)
		message(STATUS "MantisAPI not found.")
	endif (MantisAPI_FIND_REQUIRED)
  endif(MantisAPI_INCLUDE_DIR AND MantisAPI_LIBRARIES)

{'fraction_non_alphanumeric': 0.09026644915715062, 'fraction_numerical': 0.004078303425774877, 'mean_word_length': 3.8280839895013123, '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': '7532580', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1317, 'n_words': 244}