<commit_before># build python package including all sources
# and test it

# copy source files
set(FORMAST_USE_SYSTEM_LIBS False)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in" "${CMAKE_CURRENT_BINARY_DIR}/setup.py")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/tox.ini.in" "${CMAKE_CURRENT_BINARY_DIR}/tox.ini")
file(COPY
    ${formast_SOURCE_DIR}/README.rst
    ${formast_SOURCE_DIR}/src/formast/lib
    ${formast_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/MANIFEST.in
    ${CMAKE_CURRENT_SOURCE_DIR}/test
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)
file(COPY
    @Boost_INCLUDE_DIR@/boost
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/include
    # try to include only what we need
    FILES_MATCHING
    PATTERN "boost/*.hpp"
    REGEX "boost/algorithm/.*"
    REGEX "boost/archive/.*"
    REGEX "boost/bind/.*"
    REGEX "boost/config/.*"
    REGEX "boost/concept/.*"
    REGEX "boost/detail/.*"
    REGEX "boost/exception/.*"
    REGEX "boost/function/.*"
    REGEX "boost/function_types/.*"
    REGEX "boost/functional/.*"
    REGEX "boost/fusion/.*"
    REGEX "boost/iostreams/.*"
    REGEX "boost/iterator/.*"
    REGEX "boost/math/.*"
    REGEX "boost/mpl/.*"
    REGEX "boost/multi_index/.*"
    REGEX "boost/optional/.*"
    REGEX "boost/preprocessor/.*"
    REGEX "boost/property_tree/.*"
    REGEX "boost/proto/.*"<commit_msg>No longer copy test folder to binary dir.<commit_after># build python package including all sources
# and test it

# copy source files
set(FORMAST_USE_SYSTEM_LIBS False)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in" "${CMAKE_CURRENT_BINARY_DIR}/setup.py")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/tox.ini.in" "${CMAKE_CURRENT_BINARY_DIR}/tox.ini")
file(COPY
    ${formast_SOURCE_DIR}/README.rst
    ${formast_SOURCE_DIR}/src/formast/lib
    ${formast_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/MANIFEST.in
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
)
file(COPY
    @Boost_INCLUDE_DIR@/boost
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/include
    # try to include only what we need
    FILES_MATCHING
    PATTERN "boost/*.hpp"
    REGEX "boost/algorithm/.*"
    REGEX "boost/archive/.*"
    REGEX "boost/bind/.*"
    REGEX "boost/config/.*"
    REGEX "boost/concept/.*"
    REGEX "boost/detail/.*"
    REGEX "boost/exception/.*"
    REGEX "boost/function/.*"
    REGEX "boost/function_types/.*"
    REGEX "boost/functional/.*"
    REGEX "boost/fusion/.*"
    REGEX "boost/iostreams/.*"
    REGEX "boost/iterator/.*"
    REGEX "boost/math/.*"
    REGEX "boost/mpl/.*"
    REGEX "boost/multi_index/.*"
    REGEX "boost/optional/.*"
    REGEX "boost/preprocessor/.*"
    REGEX "boost/property_tree/.*"
    REGEX "boost/proto/.*"
{'fraction_non_alphanumeric': 0.15035094200221646, 'fraction_numerical': 0.0, 'mean_word_length': 3.6132879045996593, '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': '2486233', 'n_tokens_mistral': 1030, 'n_tokens_neox': 986, 'n_words': 167}