<commit_before>## Main SILL project file The cmake documentation is available online
## or in your installation cmake e.g. "C:\Program Files\CMake
## 2.6\doc\cmake-2.6"

project(SILL)

cmake_minimum_required(VERSION 2.6)

if(COMMAND cmake_policy)
  cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)


# add a prefix to each element of a list
function(add_prefix list_name prefix)
  # create empty list - necessary?
  SET(${list_name}_TMP)
 
  # prefix and suffix elements
  foreach(l ${${list_name}})
    list(APPEND ${list_name}_TMP ${prefix}${l})
  endforeach()
 
  # replace list by tmp list
  SET(${list_name} "${${list_name}_TMP}" PARENT_SCOPE)
endfunction(add_prefix)

# Specify the subdirectories for this root directory This will be
# used for the class branch, not the lab branch: subdirs(src examples
# EXCLUDE_FROM_ALL tests timings projects) (Remove EXCLUDE_FROM_ALL
# for lab branch.)
subdirs(src examples tests timings)

# This would make the if statements easier to read
# set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
# set(CMAKE_VERBOSE_MAKEFILE ON) -- supposedly useful for EclipseCDT
# http://www.vtk.org/Wiki/CMake:Eclipse_UNIX_Tutorial#
# Automatic_Discovery_of_Include_directories_.28Optional.2C_but_handy.29

# add random environment variable definitions
# deal with Boost time shtuff: we want nanoseconds!
# add_definitions(-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG)
# add_definitions(-DBOOST_ALL_DYN_LINK)

if (MSVC)
  add_definitions(-D_SCL_SECURE_NO_WARNINGS) # disable checked_iterator warnings
  add_definitions(-D_CRT_SECURE_NO_WARNINGS) # disable fopen warnings
  add_definitions(-D_SECURE_SCL=0)  # necesary for release builds of MSVC
endif(MSVC)

MESSAGE(STATUS "CMAKE_SYSTEM: ${CMAKE_SYSTEM}")

if (${CMAKE_SYSTEM} MATCHES Linux)
  include_directories(BEFORE /usr/local/lib64)  # Joseph: issues with bigbros
  set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
endif (${CMAKE_SYSTEM} MATCHES Linux)
<commit_msg>figuring out bigbro compilation issues<commit_after>## Main SILL project file The cmake documentation is available online
## or in your installation cmake e.g. "C:\Program Files\CMake
## 2.6\doc\cmake-2.6"

project(SILL)

cmake_minimum_required(VERSION 2.6)

if(COMMAND cmake_policy)
  cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)


# add a prefix to each element of a list
function(add_prefix list_name prefix)
  # create empty list - necessary?
  SET(${list_name}_TMP)
 
  # prefix and suffix elements
  foreach(l ${${list_name}})
    list(APPEND ${list_name}_TMP ${prefix}${l})
  endforeach()
 
  # replace list by tmp list
  SET(${list_name} "${${list_name}_TMP}" PARENT_SCOPE)
endfunction(add_prefix)

# Specify the subdirectories for this root directory This will be
# used for the class branch, not the lab branch: subdirs(src examples
# EXCLUDE_FROM_ALL tests timings projects) (Remove EXCLUDE_FROM_ALL
# for lab branch.)
subdirs(src examples tests timings)

# This would make the if statements easier to read
# set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
# set(CMAKE_VERBOSE_MAKEFILE ON) -- supposedly useful for EclipseCDT
# http://www.vtk.org/Wiki/CMake:Eclipse_UNIX_Tutorial#
# Automatic_Discovery_of_Include_directories_.28Optional.2C_but_handy.29

# add random environment variable definitions
# deal with Boost time shtuff: we want nanoseconds!
# add_definitions(-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG)
# add_definitions(-DBOOST_ALL_DYN_LINK)

if (MSVC)
  add_definitions(-D_SCL_SECURE_NO_WARNINGS) # disable checked_iterator warnings
  add_definitions(-D_CRT_SECURE_NO_WARNINGS) # disable fopen warnings
  add_definitions(-D_SECURE_SCL=0)  # necesary for release builds of MSVC
endif(MSVC)

MESSAGE(STATUS "CMAKE_SYSTEM: ${CMAKE_SYSTEM}")

if (${CMAKE_SYSTEM} MATCHES Linux)
  link_directories(BEFORE /usr/local/lib64)  # Joseph: issues with bigbros
  set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)
endif (${CMAKE_SYSTEM} MATCHES Linux)

{'fraction_non_alphanumeric': 0.08777270421106037, 'fraction_numerical': 0.010147133434804667, 'mean_word_length': 6.078994614003591, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2074745', 'n_tokens_mistral': 1417, 'n_tokens_neox': 1348, 'n_words': 350}