<commit_before>include("openroad")

swig_lib(NAME          odbpy
         NAMESPACE     odb
         LANGUAGE      python
         I_FILE        ../common/odb.i
         SWIG_INCLUDES ${PROJECT_SOURCE_DIR}/include
                       ${PROJECT_SOURCE_DIR}/src/swig/python
         SCRIPTS       ${CMAKE_CURRENT_BINARY_DIR}/odbpy.py
)

target_include_directories(odbpy
    PUBLIC
        ${PROJECT_SOURCE_DIR}/include/odb
)

target_link_libraries(odbpy
    PUBLIC
        odb
        utl
        tcl
        cdl
        odb_swig_common
        Boost::boost
)

# Executable
add_executable(odbpy-bin 
                main.cpp 
)

target_include_directories(odbpy-bin
  PUBLIC
    ${PROJECT_SOURCE_DIR}/include/odb
)

target_link_libraries(odbpy-bin
  PUBLIC
    odbpy
)

set_target_properties(odbpy-bin
    PROPERTIES 
        OUTPUT_NAME odbpy
)<commit_msg>odb: change cmake to use TCL_LIBRARY rather than tcl<commit_after>include("openroad")

swig_lib(NAME          odbpy
         NAMESPACE     odb
         LANGUAGE      python
         I_FILE        ../common/odb.i
         SWIG_INCLUDES ${PROJECT_SOURCE_DIR}/include
                       ${PROJECT_SOURCE_DIR}/src/swig/python
         SCRIPTS       ${CMAKE_CURRENT_BINARY_DIR}/odbpy.py
)

target_include_directories(odbpy
    PUBLIC
        ${PROJECT_SOURCE_DIR}/include/odb
)

target_link_libraries(odbpy
    PUBLIC
        odb
        utl
        ${TCL_LIBRARY}
        cdl
        odb_swig_common
        Boost::boost
)

# Executable
add_executable(odbpy-bin 
                main.cpp 
)

target_include_directories(odbpy-bin
  PUBLIC
    ${PROJECT_SOURCE_DIR}/include/odb
)

target_link_libraries(odbpy-bin
  PUBLIC
    odbpy
)

set_target_properties(odbpy-bin
    PROPERTIES 
        OUTPUT_NAME odbpy
)
{'fraction_non_alphanumeric': 0.06908267270668177, 'fraction_numerical': 0.0, 'mean_word_length': 2.127433628318584, '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': '5310378', 'n_tokens_mistral': 654, 'n_tokens_neox': 595, 'n_words': 84}