<commit_before>#
# configure python dependencies
#

find_package(Numpy REQUIRED)
find_package(PythonLibs REQUIRED)

include_directories(
    ${NUMPY_INCLUDE_DIRS}
    ${PYTHON_INCLUDE_DIRS}
    )

#
# configure cython
#

find_package(Cython REQUIRED)

include(UseCython)

#
# source
#

install(
    FILES<commit_msg>Use python-config to get include path(s).<commit_after>#
# configure python dependencies
#

find_package(Numpy REQUIRED)
#find_package(PythonLibs REQUIRED)

execute_process(
    COMMAND
        "python-config"
        "--includes"
    OUTPUT_VARIABLE PYTHON_INCLUDE_DIRS
    #ERROR_VARIABLE NUMPY_FOUND_PATH
    #RESULT_VARIABLE ECHO_NUMPY_PATH_FAILED
    OUTPUT_STRIP_TRAILING_WHITESPACE
    )

message(STATUS "Python include path: ${PYTHON_INCLUDE_DIRS}")

include_directories(
    ${NUMPY_INCLUDE_DIRS}
    #${PYTHON_INCLUDE_DIRS}
    )

set(CMAKE_C_FLAGS         "${CMAKE_C_FLAGS} ${PYTHON_INCLUDE_DIRS}")
set(CMAKE_C_FLAGS_DEBUG   "${CMAKE_C_FLAGS_DEBUG} ${PYTHON_INCLUDE_DIRS}")

#
# configure cython
#

find_package(Cython REQUIRED)

include(UseCython)

#
# source
#

install(
    FILES
{'fraction_non_alphanumeric': 0.09287646528403967, 'fraction_numerical': 0.0, 'mean_word_length': 4.935828877005347, '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': '6312604', 'n_tokens_mistral': 463, 'n_tokens_neox': 427, 'n_words': 64}