<commit_before>if(APPLE)
cmake_minimum_required(VERSION 3.0)
else(APPLE)
cmake_minimum_required(VERSION 2.8)
endif(APPLE)

include(ExternalProject)

project( CCTag )

# load local machine config <hostname>.cmake
site_name(MACHINE_NAME)

include("${MACHINE_NAME}.cmake")

IF(DEFINED CCTAG_BUILD_TYPE)
  SET(CMAKE_BUILD_TYPE ${CCTAG_BUILD_TYPE})
ELSE(DEFINED CCTAG_BUILD_TYPE)
  SET(CMAKE_BUILD_TYPE Debug)
ENDIF(DEFINED CCTAG_BUILD_TYPE)
MESSAGE(STATUS "using built type ${CMAKE_BUILD_TYPE}")

set(CMAKE_CXX_FLAGS_DEBUG   "${CMAKE_CXX_FLAGS_DEBUG}   -DTHIS_IS_DEBUG_MODE -pg")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DTHIS_IS_RELEASE_MODE")

# CCTAG_BUILD_MODE set to RELEASE by default (DEBUG,RELEASE)
if(DEFINED CCTAG_BUILD_MODE)
  add_definitions("-D${CCTAG_BUILD_MODE}")
  if(CCTAG_BUILD_MODE STREQUAL "DEBUG")
    add_definitions("-DCCTAG_SERIALIZE")
  endif(CCTAG_BUILD_MODE STREQUAL "DEBUG")
endif(DEFINED CCTAG_BUILD_MODE)

# Store all the output
if(CCTAG_SERIALIZE)<commit_msg>Remove the CCTAG_BUILD_TYPE. Add c++11 compilation.<commit_after>if(APPLE)
cmake_minimum_required(VERSION 3.0)
else(APPLE)
cmake_minimum_required(VERSION 2.8)
endif(APPLE)

include(ExternalProject)

project( CCTag )

# load local machine config <hostname>.cmake
site_name(MACHINE_NAME)

include("${MACHINE_NAME}.cmake")

MESSAGE(STATUS "using built type ${CMAKE_BUILD_TYPE}")

set(CMAKE_CXX_FLAGS_DEBUG   "${CMAKE_CXX_FLAGS_DEBUG}   -DTHIS_IS_DEBUG_MODE -pg")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DTHIS_IS_RELEASE_MODE")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

# CCTAG_BUILD_MODE set to RELEASE by default (DEBUG,RELEASE)
if(DEFINED CCTAG_BUILD_MODE)
  add_definitions("-D${CCTAG_BUILD_MODE}")
  if(CCTAG_BUILD_MODE STREQUAL "DEBUG")
    add_definitions("-DCCTAG_SERIALIZE")
  endif(CCTAG_BUILD_MODE STREQUAL "DEBUG")
endif(DEFINED CCTAG_BUILD_MODE)

# Store all the output
if(CCTAG_SERIALIZE)
{'fraction_non_alphanumeric': 0.10673575129533679, 'fraction_numerical': 0.0062176165803108805, 'mean_word_length': 8.606965174129353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '175230', 'n_tokens_mistral': 812, 'n_tokens_neox': 737, 'n_words': 123}