<commit_before># Set the FFMpeg include path
INCLUDE_DIRECTORIES(${FFMPEG_INCLUDE_DIR})

# Write the platform decision code
IF(UNIX)
  SET(__PLATFORM PLATFORM_LINUX)
ELSE()
  SET(__PLATFORM PLATFORM_WINDOWS)
ENDIF()
CONFIGURE_FILE(config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

# Add the acinerella library
ADD_LIBRARY(acinerella SHARED acinerella.c acinerella.h)

IF (UNIX)
  TARGET_LINK_LIBRARIES(acinerella avformat avcodec avutil swscale pthread z m)
ELSE (UNIX)
  TARGET_LINK_LIBRARIES(acinerella avformat avcodec avutil swscale pthread z m ws2_32)
ENDIF (UNIX)

# Add the test application
ADD_EXECUTABLE(demo demo.c)
TARGET_LINK_LIBRARIES(demo acinerella)
INSTALL(TARGETS acinerella LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
<commit_msg>Link against the libraries indicated by FindFFMPEG<commit_after># Set the FFMpeg include path
INCLUDE_DIRECTORIES(${FFMPEG_INCLUDE_DIR})

# Write the platform decision code
IF(UNIX)
  SET(__PLATFORM PLATFORM_LINUX)
ELSE()
  SET(__PLATFORM PLATFORM_WINDOWS)
ENDIF()
CONFIGURE_FILE(config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

# Add the acinerella library
ADD_LIBRARY(acinerella SHARED acinerella.c acinerella.h)

IF (UNIX)
  TARGET_LINK_LIBRARIES(acinerella ${FFMPEG_LIBRARIES} pthread z m)
ELSE (UNIX)
  TARGET_LINK_LIBRARIES(acinerella ${FFMPEG_LIBRARIES} pthread z m ws2_32)
ENDIF (UNIX)

# Add the test application
ADD_EXECUTABLE(demo demo.c)
TARGET_LINK_LIBRARIES(demo acinerella)
INSTALL(TARGETS acinerella LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)

{'fraction_non_alphanumeric': 0.07232084155161078, 'fraction_numerical': 0.0039447731755424065, 'mean_word_length': 7.4088397790055245, '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': '5587284', 'n_tokens_mistral': 598, 'n_tokens_neox': 561, 'n_words': 136}