<commit_before>project(umurmurd)

cmake_minimum_required(VERSION 2.8)

add_definitions()

include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckSymbolExists)

if(SSL MATCHES "openssl")
  pkg_check_modules(SSLIMP REQUIRED openssl)
else()
  pkg_check_modules(SSLIMP REQUIRED polarssl)
  set(USE_POLARSSL ON)
endif()

pkg_check_modules(LIBCONFIG libconfig)
pkg_check_modules(LIBPROTOBUF libprotobuf-c)

link_directories(${LIBCONFIG_LIBDIR} ${LIBPROTOBUF_LIBDIR})

check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)

if(NOT HAVE_CLOCK_GETTIME)
  check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)
  if(NOT HAVE_CLOCK_GETTIME_RT)
    check_library_exists(c clock_get_time "mach/time.h" HAVE_CLOCK_GET_TIME)
    if(NOT HAVE_CLOCK_GET_TIME)
      message(FATAL_ERROR "Didn't find clock_gettime() or clock_get_time!")
    endif()
  else()
    set(LIBRARIES ${LIBRARIES} rt)
  endif()
endif()

set(SOURCE "")
add_subdirectory(src)
include_directories(include)

add_executable(umurmurd ${SOURCE})


add_definitions(${LIBCONFIG_CFLAGS} ${LIBPROTOBUF_CFLAGS} ${SSLIMP_CFLAGS})<commit_msg>added the REQUIRED flag for libconfig and protobuf-c<commit_after>project(umurmurd)

cmake_minimum_required(VERSION 2.8)

add_definitions()

include(FindPkgConfig)
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckSymbolExists)

if(SSL MATCHES "openssl")
  pkg_check_modules(SSLIMP REQUIRED openssl)
else()
  pkg_check_modules(SSLIMP REQUIRED polarssl)
  set(USE_POLARSSL ON)
endif()

pkg_check_modules(LIBCONFIG REQUIRED libconfig)
pkg_check_modules(LIBPROTOBUF REQUIRED libprotobuf-c)

link_directories(${LIBCONFIG_LIBDIR} ${LIBPROTOBUF_LIBDIR})

check_function_exists(clock_gettime HAVE_CLOCK_GETTIME)

if(NOT HAVE_CLOCK_GETTIME)
  check_library_exists(rt clock_gettime "time.h" HAVE_CLOCK_GETTIME_RT)
  if(NOT HAVE_CLOCK_GETTIME_RT)
    check_library_exists(c clock_get_time "mach/time.h" HAVE_CLOCK_GET_TIME)
    if(NOT HAVE_CLOCK_GET_TIME)
      message(FATAL_ERROR "Didn't find clock_gettime() or clock_get_time!")
    endif()
  else()
    set(LIBRARIES ${LIBRARIES} rt)
  endif()
endif()

set(SOURCE "")
add_subdirectory(src)
include_directories(include)

add_executable(umurmurd ${SOURCE})


add_definitions(${LIBCONFIG_CFLAGS} ${LIBPROTOBUF_CFLAGS} ${SSLIMP_CFLAGS})
{'fraction_non_alphanumeric': 0.09379014989293362, 'fraction_numerical': 0.0017130620985010706, 'mean_word_length': 8.534693877551021, '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': '3895173', 'n_tokens_mistral': 891, 'n_tokens_neox': 853, 'n_words': 136}