<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(json_spirit)

IF(NOT PROJECT_DIR)
  # PROJECT_SOURCE_DIR should be where the CMakeLists.txt is, in
  # build/, so we can generate the top-level project directory from
  # one offset
  SET(PROJECT_DIR ${PROJECT_SOURCE_DIR}/..)
ENDIF()
GET_FILENAME_COMPONENT(PROJECT_DIR ${PROJECT_DIR} ABSOLUTE)

SET(EXEC_PERMS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

INCLUDE_DIRECTORIES(${PROJECT_DIR}/json_spirit)


#########################
# Requirements
#########################
FIND_PACKAGE(Boost 1.34 REQUIRED)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})

#########################
# JSON Spirit Library
#########################
SET(JSON_SPIRIT_DIR ${PROJECT_DIR}/json_spirit)
SET(JSON_SPIRIT_SRCS
  ${JSON_SPIRIT_DIR}/json_spirit_reader.cpp
  ${JSON_SPIRIT_DIR}/json_spirit_value.cpp
  ${JSON_SPIRIT_DIR}/json_spirit_writer.cpp)<commit_msg>Only search for Boost if there isn't already an include path present.<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(json_spirit)

IF(NOT PROJECT_DIR)
  # PROJECT_SOURCE_DIR should be where the CMakeLists.txt is, in
  # build/, so we can generate the top-level project directory from
  # one offset
  SET(PROJECT_DIR ${PROJECT_SOURCE_DIR}/..)
ENDIF()
GET_FILENAME_COMPONENT(PROJECT_DIR ${PROJECT_DIR} ABSOLUTE)

SET(EXEC_PERMS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)

INCLUDE_DIRECTORIES(${PROJECT_DIR}/json_spirit)


#########################
# Requirements
#########################
IF(NOT Boost_INCLUDE_DIR)
  FIND_PACKAGE(Boost 1.34 REQUIRED)
ENDIF()
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})

#########################
# JSON Spirit Library
#########################
SET(JSON_SPIRIT_DIR ${PROJECT_DIR}/json_spirit)
SET(JSON_SPIRIT_SRCS
  ${JSON_SPIRIT_DIR}/json_spirit_reader.cpp
  ${JSON_SPIRIT_DIR}/json_spirit_value.cpp
  ${JSON_SPIRIT_DIR}/json_spirit_writer.cpp)
{'fraction_non_alphanumeric': 0.17969543147208122, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 8.125, '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': '3785597', 'n_tokens_mistral': 758, 'n_tokens_neox': 688, 'n_words': 121}