<commit_before>cmake_minimum_required (VERSION 3.0.0)
project (BoostTestProject)

# file(DOWNLOAD "https://github.com/FlorianChevassu/APM/archive/master.zip" ${CMAKE_CURRENT_BINARY_DIR}/APM.zip STATUS download_status SHOW_PROGRESS)
# list(GET download_status 0 download_status_value)
# if(NOT download_status_value EQUAL 0)
#   message(FATAL_ERROR "Error while downloading APM.")
# else()
#   message(STATUS "APM downloaded.")
# endif()
#
# set(APM_dir ${CMAKE_CURRENT_BINARY_DIR}/APM)
# file(MAKE_DIRECTORY ${APM_dir})
#
#
# execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${CMAKE_CURRENT_BINARY_DIR}/APM.zip
#   WORKING_DIRECTORY ${APM_dir}
# RESULT_VARIABLE extract_result)
# if(NOT extract_result EQUAL 0)
#   message(FATAL_ERROR "Error extracting APM.zip.")
# else()
#     message(STATUS "APM.zip successfully extracted.")
# endif()
#
#
# set(APM_DEBUG 1)
# set(Boost_DEBUG 1)
#
# include(${CMAKE_CURRENT_BINARY_DIR}/APM/APM-master/APM.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../../APM/APM.cmake)
#force installation of boost...
set(APM_install_Boost ON CACHE BOOL "")

add_executable(BoostTest BoostTest.cpp)
# an APM module repository is a place (folder, GIT repo, etc.) containing CMake modules to "require" projects.
APM_add_module_repository(moduleRepo FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/../")

# an APM package repository contains all the built libraries and sources.
APM_add_package_repository(packageRepo FOLDER "${CMAKE_CURRENT_BINARY_DIR}/packages/")

require_package(Boost VERSION 1.59.0 TARGETS BoostTest COMPONENTS filesystem system REQUIRED)<commit_msg>put APM download in travis conf<commit_after>cmake_minimum_required (VERSION 3.0.0)
project (BoostTestProject)

include(${CMAKE_CURRENT_LIST_DIR}/../../APM/APM.cmake)

#force installation of boost...
set(APM_install_Boost ON CACHE BOOL "")

add_executable(BoostTest BoostTest.cpp)
# an APM module repository is a place (folder, GIT repo, etc.) containing CMake modules to "require" projects.
APM_add_module_repository(moduleRepo FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/../")

# an APM package repository contains all the built libraries and sources.
APM_add_package_repository(packageRepo FOLDER "${CMAKE_CURRENT_BINARY_DIR}/packages/")

require_package(Boost VERSION 1.59.0 TARGETS BoostTest COMPONENTS filesystem system REQUIRED)
{'fraction_non_alphanumeric': 0.11149674620390455, 'fraction_numerical': 0.00824295010845987, 'mean_word_length': 6.4627831715210355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2815475', 'n_tokens_mistral': 827, 'n_tokens_neox': 787, 'n_words': 179}