<commit_before>cmake_minimum_required(VERSION 2.6)
project(DACT)

if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
  set (CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

list(APPEND CMAKE_MODULE_PATH "${DACT_SOURCE_DIR}/cmake")

include_directories(${CMAKE_CURRENT_BINARY_DIR})

include (FindIndexedCorpus)

if(INDEXEDCORPUS_FOUND)
	INCLUDE_DIRECTORIES(${INDEXEDCORPUS_INCLUDE_DIR})
endif(INDEXEDCORPUS_FOUND)

include (FindXercesC)

if(XERCESC_FOUND)
	INCLUDE_DIRECTORIES(${XERCESC_INCLUDE_DIR})
endif(XERCESC_FOUND)

include (FindXalanC)

if(XALANC_FOUND)
	INCLUDE_DIRECTORIES(${XALANC_INCLUDE_DIR})
endif(XALANC_FOUND)

find_package(Qt4 COMPONENTS QtCore QtGui QtSvg REQUIRED)
INCLUDE(${QT_USE_FILE})

SET(dact_SRCS
  DactMainWindow.cpp
  main.cpp
)

SET(dact_MOC_HDRS
  DactMainWindow.h
)

SET(dact_UI
  DactMainWindow.ui
)

SET(dact_RCS
  application.qrc
)

qt4_add_resources(dact_SRCS ${dact_RCS})
qt4_wrap_ui(dact_UI_HDRS ${dact_UI})
qt4_wrap_cpp(dact_MOC_SRCS ${dact_MOC_HDRS})

add_executable(dact ${dact_SRCS} ${dact_MOC_SRCS} ${dact_UI_HDRS})
target_link_libraries(dact ${QT_LIBRARIES})
target_link_libraries(dact ${XERCESC_LIBRARIES})
target_link_libraries(dact ${XALANC_LIBRARIES})
target_link_libraries(dact ${INDEXEDCORPUS_LIBRARIES})<commit_msg>Since we are currently using a static libcorpus, we need to link boost ourselves.<commit_after>cmake_minimum_required(VERSION 2.6)
project(DACT)

if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
  set (CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

list(APPEND CMAKE_MODULE_PATH "${DACT_SOURCE_DIR}/cmake")

include_directories(${CMAKE_CURRENT_BINARY_DIR})

include (FindIndexedCorpus)

if(INDEXEDCORPUS_FOUND)
	INCLUDE_DIRECTORIES(${INDEXEDCORPUS_INCLUDE_DIR})
endif(INDEXEDCORPUS_FOUND)

include (FindXercesC)

if(XERCESC_FOUND)
	INCLUDE_DIRECTORIES(${XERCESC_INCLUDE_DIR})
endif(XERCESC_FOUND)

include (FindXalanC)

if(XALANC_FOUND)
	INCLUDE_DIRECTORIES(${XALANC_INCLUDE_DIR})
endif(XALANC_FOUND)

set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost 1.41.0 COMPONENTS system filesystem)
if(Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
endif()

find_package(Qt4 COMPONENTS QtCore QtGui QtSvg REQUIRED)
INCLUDE(${QT_USE_FILE})

SET(dact_SRCS
  DactMainWindow.cpp
  main.cpp
)

SET(dact_MOC_HDRS
  DactMainWindow.h
)

SET(dact_UI
  DactMainWindow.ui
)

SET(dact_RCS
  application.qrc
)

qt4_add_resources(dact_SRCS ${dact_RCS})
qt4_wrap_ui(dact_UI_HDRS ${dact_UI})
qt4_wrap_cpp(dact_MOC_SRCS ${dact_MOC_HDRS})

add_executable(dact ${dact_SRCS} ${dact_MOC_SRCS} ${dact_UI_HDRS})
target_link_libraries(dact ${QT_LIBRARIES})
target_link_libraries(dact ${XERCESC_LIBRARIES})
target_link_libraries(dact ${XALANC_LIBRARIES})
target_link_libraries(dact ${INDEXEDCORPUS_LIBRARIES})
target_link_libraries(dact ${Boost_LIBRARIES})
{'fraction_non_alphanumeric': 0.09416581371545547, 'fraction_numerical': 0.005458887751620608, 'mean_word_length': 10.364341085271318, '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': '6560636', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1259, 'n_words': 168}