<commit_before>#--------------------------------------------------------------------
# Inviwo DataFramePython Module
ivw_module(DataFramePython)

#--------------------------------------------------------------------
# Add header files
set(HEADER_FILES
    include/inviwo/dataframepython/dataframepythonmodule.h
    include/inviwo/dataframepython/dataframepythonmoduledefine.h
)
ivw_group("Header Files" ${HEADER_FILES})

#--------------------------------------------------------------------
# Add source files
set(SOURCE_FILES
    src/dataframepythonmodule.cpp
)
ivw_group("Source Files" ${SOURCE_FILES})

#--------------------------------------------------------------------
# Add Unittests
set(TEST_FILES
    tests/unittests/dataframepython-unittest-main.cpp
    tests/unittests/column-test.cpp
    tests/unittests/dataframe-test.cpp
)
ivw_add_unittest(${TEST_FILES})

if(IVW_UNITTESTS)
    add_dependencies(inviwo-unittests-dataframepython ivwdataframe)
endif()

#--------------------------------------------------------------------
# Create module
ivw_create_module(${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(inviwo-module-dataframepython PUBLIC 
    pybind11::embed 
    $<BUILD_INTERFACE:${PYTHON_LIBRARIES}>
)

add_subdirectory(bindings)<commit_msg>CMake: Moved add_dependencies to after bindings been added<commit_after>#--------------------------------------------------------------------
# Inviwo DataFramePython Module
ivw_module(DataFramePython)

#--------------------------------------------------------------------
# Add header files
set(HEADER_FILES
    include/inviwo/dataframepython/dataframepythonmodule.h
    include/inviwo/dataframepython/dataframepythonmoduledefine.h
)
ivw_group("Header Files" ${HEADER_FILES})

#--------------------------------------------------------------------
# Add source files
set(SOURCE_FILES
    src/dataframepythonmodule.cpp
)
ivw_group("Source Files" ${SOURCE_FILES})

#--------------------------------------------------------------------
# Add Unittests
set(TEST_FILES
    tests/unittests/dataframepython-unittest-main.cpp
    tests/unittests/column-test.cpp
    tests/unittests/dataframe-test.cpp
)
ivw_add_unittest(${TEST_FILES})

#--------------------------------------------------------------------
# Create module
ivw_create_module(${SOURCE_FILES} ${HEADER_FILES})
target_link_libraries(inviwo-module-dataframepython PUBLIC 
    pybind11::embed 
    $<BUILD_INTERFACE:${PYTHON_LIBRARIES}>
)

add_subdirectory(bindings)

if(IVW_UNITTESTS)
    add_dependencies(inviwo-unittests-dataframepython ivwdataframe)
endif()
{'fraction_non_alphanumeric': 0.3366912049593181, 'fraction_numerical': 0.0015497869043006587, 'mean_word_length': 1.7526652452025586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5435539', 'n_tokens_mistral': 719, 'n_tokens_neox': 679, 'n_words': 90}