<commit_before># =====================================================
#  Public Domain: Inspired by github.com/KjellKod/g3log/Options.cmake
#  2015, August 17, @author Kjell.Hedstrom
# =====================================================


# SHARED or STATIC library build --- also will re-use this to 
# use SHARED g3log library or STATIC g3log library
#
# example: cmake -DBUILD_STATIC=ON .. 
option (BUILD_STATIC "Building g3logrotate as static library. Linking with static g3log library" OFF)
IF (BUILD_STATIC) 
  SET(G3LOG_LIBRARY_TYPE g3logger)

  IF (MSVC)
	SET(G3LOG_LIBRARY_NAME g3logger.lib)
  ELSE()
	SET(G3LOG_LIBRARY_NAME libg3logger.a)
  ENDIF()
  
  MESSAGE("'OPTION: cmake -DBUILD_STATIC=ON'\nLinking statically with g3log. Creating static library for g3logrotate")
ELSE()
  SET(G3LOG_LIBRARY_TYPE g3logger_shared)
  
  IF (MSVC)
	SET(G3LOG_LIBRARY_NAME g3logger.lib)
  ELSE()
	SET(G3LOG_LIBRARY_NAME libg3logger_shared.so)
  ENDIF()
  
  MESSAGE("'OPTION cmake -DBUILD_STATIC=ON'\nLinking dynamically with g3log. Creating dynamic library for g3logrotate")
ENDIF()



# Override the default path for g3log library
#example1:  cmake -DG3_LIBRARY_PATH="/usr/local/probe/lib"
#example2:  cmake -DG3_LIBRARY_PATH="/home/kjell/Github/g3log/build"
#
SET(G3_LIBRARY_PATH "" CACHE FILEPATH "Path to g3log libraries")
IF(EXISTS "${G3_LIBRARY_PATH}/${G3LOG_LIBRARY_NAME}")
   MESSAGE("SUCCESS lib")
ELSE()
  MESSAGE(SEND_ERROR "Can't find g3logger library file in G3_LIBRARY_PATH/${G3LOG_LIBRARY_NAME}:' ${G3_LIBRARY_PATH}'. Please set it with '-DG3_LIBRARY_PATH' \nExample run could be something like:\ncmake -DG3_HEADER_PATH=/home/X/ws/g3log/src/ -DG3_LIBRARY_PATH=/home/X/ws/g3log/build -DADD_LOGROTATE_UNIT_TEST=ON")
ENDIF()


# Override the default include path to g3log library
#example1:  cmake -DUSE_G3_HEADER_PATH="/usr/local/probe/include/"
#example2:  cmake -DUSE_G3_HEADER_PATH="/home/kjell/Github/g3log/src"
#
SET(G3_HEADER_PATH "" CACHE FILEPATH "Path to g3log headers")
IF(EXISTS ${G3_HEADER_PATH}/g3log/g3log.hpp)
   MESSAGE("SUCCESS path")
ELSE()
  MESSAGE(FATAL_ERROR "Can't find g3log.hpp at G3_HEADER_PATH/g3log/g3log.hpp, i.e. '${G3_HEADER_PATH}/g3log/g3log.hpp'. Please set it with '-DG3_HEADER_PATH'. \nExample run could be something like:\ncmake -DG3_HEADER_PATH=/home/X/ws/g3log/src/ -DG3_LIBRARY_PATH=/home/X/ws/g3log/build -DADD_LOGROTATE_UNIT_TEST=ON")
ENDIF()

<commit_msg>fix shared version<commit_after># =====================================================
#  Public Domain: Inspired by github.com/KjellKod/g3log/Options.cmake
#  2015, August 17, @author Kjell.Hedstrom
# =====================================================


# SHARED or STATIC library build --- also will re-use this to 
# use SHARED g3log library or STATIC g3log library
#
# example: cmake -DBUILD_STATIC=ON .. 
option (BUILD_STATIC "Building g3logrotate as static library. Linking with static g3log library" OFF)
IF (BUILD_STATIC) 
  SET(G3LOG_LIBRARY_TYPE g3logger)

  IF (MSVC)
	SET(G3LOG_LIBRARY_NAME g3logger.lib)
  ELSE()
	SET(G3LOG_LIBRARY_NAME libg3logger.a)
  ENDIF()
  
  MESSAGE("'OPTION: cmake -DBUILD_STATIC=ON'\nLinking statically with g3log. Creating static library for g3logrotate")
ELSE()
 
  IF (MSVC)
    SET(G3LOG_LIBRARY_TYPE g3logger)
	SET(G3LOG_LIBRARY_NAME g3logger.lib)
  ELSE()
    SET(G3LOG_LIBRARY_TYPE g3logger_shared)
	SET(G3LOG_LIBRARY_NAME libg3logger_shared.so)
  ENDIF()
  
  MESSAGE("'OPTION cmake -DBUILD_STATIC=ON'\nLinking dynamically with g3log. Creating dynamic library for g3logrotate")
ENDIF()



# Override the default path for g3log library
#example1:  cmake -DG3_LIBRARY_PATH="/usr/local/probe/lib"
#example2:  cmake -DG3_LIBRARY_PATH="/home/kjell/Github/g3log/build"
#
SET(G3_LIBRARY_PATH "" CACHE FILEPATH "Path to g3log libraries")
IF(EXISTS "${G3_LIBRARY_PATH}/${G3LOG_LIBRARY_NAME}")
   MESSAGE("SUCCESS lib")
ELSE()
  MESSAGE(SEND_ERROR "Can't find g3logger library file in G3_LIBRARY_PATH/${G3LOG_LIBRARY_NAME}:' ${G3_LIBRARY_PATH}'. Please set it with '-DG3_LIBRARY_PATH' \nExample run could be something like:\ncmake -DG3_HEADER_PATH=/home/X/ws/g3log/src/ -DG3_LIBRARY_PATH=/home/X/ws/g3log/build -DADD_LOGROTATE_UNIT_TEST=ON")
ENDIF()


# Override the default include path to g3log library
#example1:  cmake -DUSE_G3_HEADER_PATH="/usr/local/probe/include/"
#example2:  cmake -DUSE_G3_HEADER_PATH="/home/kjell/Github/g3log/src"
#
SET(G3_HEADER_PATH "" CACHE FILEPATH "Path to g3log headers")
IF(EXISTS ${G3_HEADER_PATH}/g3log/g3log.hpp)
   MESSAGE("SUCCESS path")
ELSE()
  MESSAGE(FATAL_ERROR "Can't find g3log.hpp at G3_HEADER_PATH/g3log/g3log.hpp, i.e. '${G3_HEADER_PATH}/g3log/g3log.hpp'. Please set it with '-DG3_HEADER_PATH'. \nExample run could be something like:\ncmake -DG3_HEADER_PATH=/home/X/ws/g3log/src/ -DG3_LIBRARY_PATH=/home/X/ws/g3log/build -DADD_LOGROTATE_UNIT_TEST=ON")
ENDIF()


{'fraction_non_alphanumeric': 0.15422578655151142, 'fraction_numerical': 0.028788813489615463, 'mean_word_length': 5.572972972972973, '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': '6924262', 'n_tokens_mistral': 2002, 'n_tokens_neox': 1847, 'n_words': 382}