<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(libIO)

SET(SRC io_tiff.c io_tiff.h
        io_png.c io_png.h
        draw.c draw.h
        nan.h)

ADD_LIBRARY(IO ${SRC})

IF(NOT WITH_LOCAL_LIBTIFF)
    FIND_PACKAGE(TIFF)
ENDIF(NOT WITH_LOCAL_LIBTIFF)
IF(NOT WITH_LOCAL_LIBPNG)
    FIND_PACKAGE(PNG)
ENDIF(NOT WITH_LOCAL_LIBPNG)

IF(NOT TIFF_FOUND)
    SET(TIFF_INCLUDE_DIR ../3rdParty/tiff)
    SET(TIFF_LIBRARIES tiff)
ENDIF(NOT TIFF_FOUND)

IF(NOT PNG_FOUND)
    SET(PNG_INCLUDE_DIR ../3rdParty/png)
    SET(PNG_LIBRARIES png)
ENDIF(NOT PNG_FOUND)

ADD_DEFINITIONS(${PNG_DEFINITIONS})

INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
INCLUDE_DIRECTORIES(..)

TARGET_LINK_LIBRARIES(IO ${TIFF_LIBRARIES} ${PNG_LIBRARIES})

IF(UNIX)
    SET_TARGET_PROPERTIES(IO PROPERTIES
                          COMPILE_FLAGS "-Wall -Wextra -Werror")
ENDIF(UNIX)

INSTALL(FILES CMakeLists.txt ${SRC} DESTINATION src/libIO)<commit_msg>removed -Werror flag preventing c/monasse_refactored to compile<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(libIO)

SET(SRC io_tiff.c io_tiff.h
        io_png.c io_png.h
        draw.c draw.h
        nan.h)

ADD_LIBRARY(IO ${SRC})

IF(NOT WITH_LOCAL_LIBTIFF)
    FIND_PACKAGE(TIFF)
ENDIF(NOT WITH_LOCAL_LIBTIFF)
IF(NOT WITH_LOCAL_LIBPNG)
    FIND_PACKAGE(PNG)
ENDIF(NOT WITH_LOCAL_LIBPNG)

IF(NOT TIFF_FOUND)
    SET(TIFF_INCLUDE_DIR ../3rdParty/tiff)
    SET(TIFF_LIBRARIES tiff)
ENDIF(NOT TIFF_FOUND)

IF(NOT PNG_FOUND)
    SET(PNG_INCLUDE_DIR ../3rdParty/png)
    SET(PNG_LIBRARIES png)
ENDIF(NOT PNG_FOUND)

ADD_DEFINITIONS(${PNG_DEFINITIONS})

INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
INCLUDE_DIRECTORIES(..)

TARGET_LINK_LIBRARIES(IO ${TIFF_LIBRARIES} ${PNG_LIBRARIES})

IF(UNIX)
    SET_TARGET_PROPERTIES(IO PROPERTIES
                          COMPILE_FLAGS "-Wall -Wextra")
ENDIF(UNIX)

INSTALL(FILES CMakeLists.txt ${SRC} DESTINATION src/libIO)
{'fraction_non_alphanumeric': 0.10486322188449848, 'fraction_numerical': 0.004052684903748734, 'mean_word_length': 4.69164265129683, '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': '4140253', 'n_tokens_mistral': 913, 'n_tokens_neox': 836, 'n_words': 122}