<commit_before>
link_directories(${PROJECT_BINARY_DIR}/common)
link_directories(${PROJECT_BINARY_DIR}/util)

# ROSE is required. Skip if not found.
find_package(ROSE)
if (NOT ROSE_FOUND)
  message (WARNING "ROSE not found. Translators will not be built.")
  return()
endif()

include_directories(${ROSE_INCLUDE_DIR})

# Boost
#set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED program_options)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

# JNI
find_package(JNI REQUIRED)

# common sources
set (PHYSISC_SRC physisc.cc configuration.cc
  translation_context.cc grid.cc domain.cc
  def_analysis.cc map.cc run.cc rose_traversal.cc rose_util.cc<commit_msg>FIX: Build error on CentOS 6 using its default Boost and manually build CMake version 2.8 or later.<commit_after>
link_directories(${PROJECT_BINARY_DIR}/common)
link_directories(${PROJECT_BINARY_DIR}/util)

# ROSE is required. Skip if not found.
find_package(ROSE)
if (NOT ROSE_FOUND)
  message (WARNING "ROSE not found. Translators will not be built.")
  return()
endif()

include_directories(${ROSE_INCLUDE_DIR})

# Boost
#set(Boost_USE_STATIC_LIBS ON)
set(Boost_NO_BOOST_CMAKE true)
find_package(Boost REQUIRED program_options)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

# JNI
find_package(JNI REQUIRED)

# common sources
set (PHYSISC_SRC physisc.cc configuration.cc
  translation_context.cc grid.cc domain.cc
  def_analysis.cc map.cc run.cc rose_traversal.cc rose_util.cc
{'fraction_non_alphanumeric': 0.09306930693069307, 'fraction_numerical': 0.0019801980198019802, 'mean_word_length': 6.978947368421053, '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': '742011', 'n_tokens_mistral': 566, 'n_tokens_neox': 538, 'n_words': 122}