<commit_before>CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (libdai)

# The version number.
SET (libdai_VERSION "0.3.0")

STRING (REGEX MATCHALL "[0-9]" libdai_VERSION_PARTS "${libdai_VERSION}")

LIST (GET libdai_VERSION_PARTS 0 libdai_VERSION_MAJOR)
LIST (GET libdai_VERSION_PARTS 1 libdai_VERSION_MINOR)
LIST (GET libdai_VERSION_PARTS 2 libdai_VERSION_PATCH)

SET (libdai_SOVERSION "${libdai_VERSION_MAJOR}.${libdai_VERSION_MINOR}")

SET(BUILD_SHARED_LIBS ON)

IF(CMAKE_COMPILER_IS_GNUCXX)
  SET (EXTRA_C_FLAGS "-Wno-deprecated -Wall -W -Wextra -fPIC")
  SET (EXTRA_C_FLAGS_RELEASE "-O3")
  SET (EXTRA_C_FLAGS_DEBUG "-O3 -g -DDAI_DEBUG")

  IF(APPLE)
      ADD_DEFINITIONS(-DMACOSX)
  ENDIF(APPLE)
  IF(CYGWIN)
    ADD_DEFINITIONS(-DCYGWIN)
  ENDIF(CYGWIN)
ENDIF()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${EXTRA_C_FLAGS_RELEASE}")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${EXTRA_C_FLAGS_DEBUG}")
<commit_msg>add normans cmake changes<commit_after>CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
PROJECT (libdai)

# The version number.
SET(libdai_VERSION "0.3.1")

STRING (REGEX MATCHALL "[0-9]" libdai_VERSION_PARTS "${libdai_VERSION}")

LIST (GET libdai_VERSION_PARTS 0 libdai_VERSION_MAJOR)
LIST (GET libdai_VERSION_PARTS 1 libdai_VERSION_MINOR)
LIST (GET libdai_VERSION_PARTS 2 libdai_VERSION_PATCH)

SET (libdai_SOVERSION "${libdai_VERSION_MAJOR}.${libdai_VERSION_MINOR}")

SET(BUILD_SHARED_LIBS ON)

STRING(TOLOWER "${CMAKE_CXX_COMPILER_ID}" COMPILER_ID)
IF(COMPILER_ID MATCHES "^(apple)?clang$" OR COMPILER_ID MATCHES "gcc")
  SET(EXTRA_C_FLAGS "-Wno-deprecated -Wall -W -Wextra -fPIC")
  SET(EXTRA_C_FLAGS_RELEASE "-O3")
  SET(EXTRA_C_FLAGS_DEBUG "-O3 -g -DDAI_DEBUG")

  IF(APPLE)
      ADD_DEFINITIONS(-DMACOSX)
  ENDIF(APPLE)
  IF(CYGWIN)
    ADD_DEFINITIONS(-DCYGWIN)
  ENDIF(CYGWIN)
ENDIF()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_C_FLAGS}")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${EXTRA_C_FLAGS_RELEASE}")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${EXTRA_C_FLAGS_DEBUG}")

{'fraction_non_alphanumeric': 0.11899095668729176, 'fraction_numerical': 0.01142313184198001, 'mean_word_length': 7.510121457489879, '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': '293392', 'n_tokens_mistral': 941, 'n_tokens_neox': 921, 'n_words': 146}