<commit_before>cmake_minimum_required(VERSION 2.8)
PROJECT(trace_server)
FIND_PACKAGE(Qt4 REQUIRED)

# Small macro to find both relase and/or debug versions of the libraries
# It will define the variable {LIBPREFIX}_LIBRARY with the proper debug and/or
# release libraries. Be aware that mixing runtimes can be dangerous!
macro(FIND_RELEASE_AND_DEBUG LIBPREFIX 
      LIBNAME_RELEASE LIBNAME_DEBUG SEARCH_PATHS)

  find_library(${LIBPREFIX}_OPTIMIZED_LIBRARY 
    NAMES ${LIBNAME_RELEASE}
    PATHS ${SEARCH_PATHS}
    PATH_SUFFIXES lib
  )
  find_library(${LIBPREFIX}_DEBUG_LIBRARY 
    NAMES ${LIBNAME_DEBUG}
    PATHS ${SEARCH_PATHS}   
    PATH_SUFFIXES lib
  )
  
  # Sets up the found version: either release and or debug
  if(${LIBPREFIX}_OPTIMIZED_LIBRARY AND ${LIBPREFIX}_DEBUG_LIBRARY)
  # Use both debug and release versions if supported, otherwise default to release
    if (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
      set(${LIBPREFIX}_LIBRARY 
        optimized "${${LIBPREFIX}_OPTIMIZED_LIBRARY}"
        debug "${${LIBPREFIX}_DEBUG_LIBRARY}"
      )
    else(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
      set(${LIBPREFIX}_LIBRARY "${${LIBPREFIX}_OPTIMIZED_LIBRARY}")
    endif(CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
  elseif(${LIBPREFIX}_OPTIMIZED_LIBRARY)
    set(${LIBPREFIX}_LIBRARY "${${LIBPREFIX}_OPTIMIZED_LIBRARY}")
  elseif(${LIBPREFIX}_OPTIMIZED_LIBRARY)
    set(${LIBPREFIX}_LIBRARY "${${LIBPREFIX}_DEBUG_LIBRARY}")
  endif(${LIBPREFIX}_OPTIMIZED_LIBRARY AND ${LIBPREFIX}_DEBUG_LIBRARY)
  
  if(${LIBPREFIX}_LIBRARY)
    set(${LIBPREFIX}_LIBRARY ${${LIBPREFIX}_LIBRARY} 
      CACHE FILEPATH "The ${LIBPREFIX} library"
      )
  endif(${LIBPREFIX}_LIBRARY)

  # We don't want to pollute the gui with non-user friendly entries
  mark_as_advanced(${LIBPREFIX}_LIBRARY
    ${LIBPREFIX}_OPTIMIZED_LIBRARY ${LIBPREFIX}_DEBUG_LIBRARY)
  
endmacro(FIND_RELEASE_AND_DEBUG)

SET (LIBRARY_OUTPUT_PATH
   ${PROJECT_BINARY_DIR}/Bin
   CACHE PATH
   "Single Directory for all Libraries"
   )

SET (EXECUTABLE_OUTPUT_PATH
   ${PROJECT_BINARY_DIR}/Bin
   CACHE PATH
   "Single Directory for all Executables."
   )

SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "c:/devel/boost_1_47_0")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "c:/devel/boost_1_47_0")

add_definitions("-DTRACE_ENABLED")<commit_msg>+ cmake generator for trace_server<commit_after>cmake_minimum_required(VERSION 2.8)
PROJECT(trace_server)
FIND_PACKAGE(Qt4 REQUIRED)

include(FindReleaseAndDebug)

SET (LIBRARY_OUTPUT_PATH
   ${PROJECT_BINARY_DIR}/Bin
   CACHE PATH
   "Single Directory for all Libraries"
   )

SET (EXECUTABLE_OUTPUT_PATH
   ${PROJECT_BINARY_DIR}/Bin
   CACHE PATH
   "Single Directory for all Executables."
   )

SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "c:/devel/boost_1_47_0")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "c:/devel/boost_1_47_0")

add_definitions("-DTRACE_ENABLED")
{'fraction_non_alphanumeric': 0.09556548642145067, 'fraction_numerical': 0.0075627363355104844, 'mean_word_length': 5.613636363636363, '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': '93904', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1016, 'n_words': 195}