<commit_before>include(AmxConfig)
include(CheckFunctionExists)
include(SampPlugin)

install(FILES crashdetect.inc DESTINATION ".")

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/amx)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

if(UNIX)
  add_definitions(-DLINUX)
endif()

set(PLUGIN_SOURCES
  amxcallstack.cpp
  amxcallstack.h
  amxdebuginfo.cpp
  amxdebuginfo.h
  amxerror.cpp
  amxerror.h
  amxopcode.cpp
  amxopcode.h
  amxpathfinder.cpp
  amxpathfinder.h
  amxscript.cpp
  amxscript.h
  amxservice.h
  amxstacktrace.cpp
  amxstacktrace.h
  configreader.cpp
  configreader.h
  compiler.h
  crashdetect.cpp
  crashdetect.h
  fileutils.cpp
  fileutils.h
  logprintf.cpp<commit_msg>Target at least Windows XP<commit_after>include(AmxConfig)
include(CheckFunctionExists)
include(SampPlugin)

install(FILES crashdetect.inc DESTINATION ".")

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/amx)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

if(UNIX)
  add_definitions(-DLINUX)
endif()

if(WIN32)
  add_definitions(-D_WIN32_WINNT=_WIN32_WINNT_WINXP)
endif()

set(PLUGIN_SOURCES
  amxcallstack.cpp
  amxcallstack.h
  amxdebuginfo.cpp
  amxdebuginfo.h
  amxerror.cpp
  amxerror.h
  amxopcode.cpp
  amxopcode.h
  amxpathfinder.cpp
  amxpathfinder.h
  amxscript.cpp
  amxscript.h
  amxservice.h
  amxstacktrace.cpp
  amxstacktrace.h
  configreader.cpp
  configreader.h
  compiler.h
  crashdetect.cpp
  crashdetect.h
  fileutils.cpp
  fileutils.h
  logprintf.cpp
{'fraction_non_alphanumeric': 0.08445297504798464, 'fraction_numerical': 0.003838771593090211, 'mean_word_length': 5.462809917355372, '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': '4514817', 'n_tokens_mistral': 630, 'n_tokens_neox': 621, 'n_words': 78}