<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 3.6.3)

# Set project name
SET(PROJ_NAME "tlswrapper" CACHE STRING "name of project")
PROJECT(${PROJ_NAME})

# Set project options
SET(PROJ_EXT "cxx")
SET(BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../build/" CACHE STRING "location to build to")
SET(INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../includes/" CACHE STRING "location of header files")
SET(MAX_ERR "5" CACHE STRING "maximum number of errors to display during compile")
SET(DEBUG_SUFFIX "_Debug" CACHE STRING "label to append to debug executable")
OPTION(DEBUG "enable debug flags at compile")


# Point to necessary project locations
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIR})
INCLUDE_DIRECTORIES(${INCLUDE_DIR})

# Setup project source compilation
ADD_EXECUTABLE(${PROJECT_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.${PROJ_EXT}"
                               "${CMAKE_CURRENT_SOURCE_DIR}/tlswserver.${PROJ_EXT}"
                               "${CMAKE_CURRENT_SOURCE_DIR}/tlswclient.${PROJ_EXT}")
ADD_DEFINITIONS(-std=c++11 -fmax-errors=${MAX_ERR})
IF (DEBUG)
  MESSAGE("Generating debug version")
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG=true")
  SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}${DEBUG_SUFFIX})
ELSE ()
  MESSAGE("Generating release version")
ENDIF ()

FIND_PACKAGE(OPENSSL REQUIRED)
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
IF (OPENSSL_FOUND)
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OPENSSL_LIB} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
ENDIF()<commit_msg>updated cmakelists<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 3.6.3)

# Set project name
SET(PROJ_NAME "tlswrapper" CACHE STRING "name of project")
PROJECT(${PROJ_NAME})

# Set project options
SET(PROJ_EXT "cxx")
SET(BUILD_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../build/" CACHE STRING "location to build to")
SET(INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../includes/" CACHE STRING "location of header files")
SET(MAX_ERR "5" CACHE STRING "maximum number of errors to display during compile")
SET(DEBUG_SUFFIX "_Debug" CACHE STRING "label to append to debug executable")
OPTION(DEBUG "enable debug flags at compile")


# Point to necessary project locations
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${BUILD_DIR})
INCLUDE_DIRECTORIES(${INCLUDE_DIR})

# Setup project source compilation
ADD_EXECUTABLE(${PROJECT_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.${PROJ_EXT}"
                               "${CMAKE_CURRENT_SOURCE_DIR}/tlswserver.${PROJ_EXT}"
                               "${CMAKE_CURRENT_SOURCE_DIR}/tlswclient.${PROJ_EXT}"
                               "${CMAKE_CURRENT_SOURCE_DIR}/tlswhelper.${PROJ_EXT}")

ADD_DEFINITIONS(-std=c++11 -fmax-errors=${MAX_ERR})
IF (DEBUG)
  MESSAGE("Generating debug version")
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG=true")
  SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}${DEBUG_SUFFIX})
ELSE ()
  MESSAGE("Generating release version")
ENDIF ()

FIND_PACKAGE(OPENSSL REQUIRED)
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
IF (OPENSSL_FOUND)
    TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OPENSSL_LIB} ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
ENDIF()
{'fraction_non_alphanumeric': 0.12233375156838143, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 5.79957356076759, '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': '6495030', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1075, 'n_words': 217}