<commit_before>cmake_minimum_required (VERSION 2.8)
project (OwlWM)

# The version number.
set (LibOwlWM_VERSION_MAJOR 1)
set (LibOwlWM_VERSION_MINOR 0)
set (LibOwlWM_VERSION_REVISION 0)

#Use optimization level three for the world model libraries
set(CMAKE_CXX_FLAGS "-O3 -std=c++0x -Wall -Wextra -Wno-sign-compare")

FIND_PATH(OWL_INC_DIR NAMES owl PATHS /usr/include /usr/local/include)
IF(NOT OWL_INC_DIR)
  MESSAGE(FATAL_ERROR "Unable to find libowl installation!")
ELSE(NOT OWL_INC_DIR)
  #Truncate the search path
  STRING(REGEX REPLACE "/owl" "" OWL_INC_DIR ${OWL_INC_DIR})
ENDIF(NOT OWL_INC_DIR)

include_directories ("${OWL_INC_DIR}")

include_directories ("${OwlWM_SOURCE_DIR}/libwm/include")
include_directories ("${OwlWM_SOURCE_DIR}/implementations")

add_subdirectory (libwm)
add_subdirectory (implementations)
add_subdirectory (wmserver bin)
add_subdirectory (tests/src tests/bin)

#Let the user choose which implementations to build
SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)

#Set the correct library directory suffix
if(NOT DEFINED LIB_SUFFIX)
  get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
  if (${LIB64} STREQUAL "TRUE")
    set(LIBSUFFIX 64)
  else()
    set(LIBSUFFIX "")
  endif()
  set(LIB_SUFFIX ${LIBSUFFIX} CACHE STRING "lib directory suffix")
endif()

SET(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/" CACHE STRING "Base directory for pkgconfig files")
SET(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/owl/" CACHE PATH "The subdirectory to the header prefix")

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/owlwm.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/owlwm.pc @ONLY)
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/owlwm.pc DESTINATION ${PKGCONFIG_INSTALL_PREFIX})
#add_library (LibOwl SHARED ${IncludeFiles} ${SourceFiles})

#Note that not all distributions put init script in /etc/init.d (Slackware is in /etc/rc.d)
INSTALL( FILES ${OwlWM_SOURCE_DIR}/scripts/rc.owl-world-model PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE DESTINATION /etc/init.d )

#$(LIBDIR)/libowl.a: $(LIBDIR)/sensor_aggregator_protocol.o $(LIBDIR)/aggregator_solver_protocol.o $(LIBDIR)/world_model_protocol.o $(LIBDIR)/netbuffer.o $(LIBDIR)/sample_data.o $(LIBDIR)/simple_sockets.o

# uninstall target
configure_file(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    IMMEDIATE @ONLY)

add_custom_target(uninstall
    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)

<commit_msg>Adding some comments into the cmake config file.<commit_after>cmake_minimum_required (VERSION 2.8)
project (OwlWM)

# The version number.
set (LibOwlWM_VERSION_MAJOR 1)
set (LibOwlWM_VERSION_MINOR 0)
set (LibOwlWM_VERSION_REVISION 0)

#Use these to change to clang for the compiler (or set the CC and CXX variables)
#SET (CMAKE_C_COMPILER "/usr/bin/clang")
#SET (CMAKE_CXX_COMPILER "/usr/bin/clang++")

#Use optimization level three for the world model libraries
set(CMAKE_CXX_FLAGS "-O3 -std=c++0x -Wall -Wextra -Wno-sign-compare")
#Use this to switch to building debugging code
#set(CMAKE_CXX_FLAGS "--debug -g -std=c++0x -Wall -Wextra -Wno-sign-compare")

FIND_PATH(OWL_INC_DIR NAMES owl PATHS /usr/include /usr/local/include)
IF(NOT OWL_INC_DIR)
  MESSAGE(FATAL_ERROR "Unable to find libowl installation!")
ELSE(NOT OWL_INC_DIR)
  #Truncate the search path
  STRING(REGEX REPLACE "/owl" "" OWL_INC_DIR ${OWL_INC_DIR})
ENDIF(NOT OWL_INC_DIR)

include_directories ("${OWL_INC_DIR}")

include_directories ("${OwlWM_SOURCE_DIR}/libwm/include")
include_directories ("${OwlWM_SOURCE_DIR}/implementations")

add_subdirectory (libwm)
add_subdirectory (implementations)
add_subdirectory (wmserver bin)
add_subdirectory (tests/src tests/bin)

#Let the user choose which implementations to build
SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)

#Set the correct library directory suffix
if(NOT DEFINED LIB_SUFFIX)
  get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
  if (${LIB64} STREQUAL "TRUE")
    set(LIBSUFFIX 64)
  else()
    set(LIBSUFFIX "")
  endif()
  set(LIB_SUFFIX ${LIBSUFFIX} CACHE STRING "lib directory suffix")
endif()

SET(PKGCONFIG_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig/" CACHE STRING "Base directory for pkgconfig files")
SET(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include/owl/" CACHE PATH "The subdirectory to the header prefix")

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/owlwm.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/owlwm.pc @ONLY)
INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/owlwm.pc DESTINATION ${PKGCONFIG_INSTALL_PREFIX})
#add_library (LibOwl SHARED ${IncludeFiles} ${SourceFiles})

#Note that not all distributions put init script in /etc/init.d (Slackware is in /etc/rc.d)
INSTALL( FILES ${OwlWM_SOURCE_DIR}/scripts/rc.owl-world-model PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE DESTINATION /etc/init.d )

# uninstall target
configure_file(
    "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
    IMMEDIATE @ONLY)

add_custom_target(uninstall
    COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)


{'fraction_non_alphanumeric': 0.1050943396226415, 'fraction_numerical': 0.005849056603773585, 'mean_word_length': 6.75, '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': '4574450', 'n_tokens_mistral': 2056, 'n_tokens_neox': 1931, 'n_words': 423}