<commit_before># $Id$
# $ $URL$
# Maintainer: joaander

# setup hoomd runner environment
if (ENABLE_STATIC)
    get_target_property(HOOMD_STATIC_EXE hoomd LOCATION)
    set(HOOMD_RUN_EXE ${HOOMD_STATIC_EXE})
else (ENABLE_STATIC)
    get_target_property(LIBHOOMD_LOCATION libhoomd LOCATION)
    get_filename_component(LIBHOOMD_DIR ${LIBHOOMD_LOCATION} PATH)
    
    set(HOOMD_RUN_EXE ${HOOMD_BINARY_DIR}/python-runner/hoomd_run)
endif (ENABLE_STATIC)

if (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)

add_test(NAME hoomd_script_tests_cpu COMMAND hoomd ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=cpu")
if (ENABLE_CUDA)
add_test(NAME hoomd_script_tests_gpu COMMAND hoomd ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=gpu")
endif (ENABLE_CUDA)

else (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)

add_test(hoomd_script_tests_cpu ${HOOMD_RUN_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=cpu")
if (ENABLE_CUDA)
add_test(NAME hoomd_script_tests_gpu ${HOOMD_RUN_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=gpu")
endif (ENABLE_CUDA)

endif (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)<commit_msg>fixed yet another typo in the hoomd script tests add_test command<commit_after># $Id$
# $ $URL$
# Maintainer: joaander

# setup hoomd runner environment
if (ENABLE_STATIC)
    get_target_property(HOOMD_STATIC_EXE hoomd LOCATION)
    set(HOOMD_RUN_EXE ${HOOMD_STATIC_EXE})
else (ENABLE_STATIC)
    get_target_property(LIBHOOMD_LOCATION libhoomd LOCATION)
    get_filename_component(LIBHOOMD_DIR ${LIBHOOMD_LOCATION} PATH)
    
    set(HOOMD_RUN_EXE ${HOOMD_BINARY_DIR}/python-runner/hoomd_run)
endif (ENABLE_STATIC)

if (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)

add_test(NAME hoomd_script_tests_cpu COMMAND hoomd ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=cpu")
if (ENABLE_CUDA)
add_test(NAME hoomd_script_tests_gpu COMMAND hoomd ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=gpu")
endif (ENABLE_CUDA)

else (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)

add_test(hoomd_script_tests_cpu ${HOOMD_RUN_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=cpu")
if (ENABLE_CUDA)
add_test(hoomd_script_tests_gpu ${HOOMD_RUN_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/hoomd_script_tests.py "--mode=gpu")
endif (ENABLE_CUDA)

endif (CMAKE_MINOR_VERSION GREATER 7 AND ENABLE_STATIC)
{'fraction_non_alphanumeric': 0.09163514081546868, 'fraction_numerical': 0.0025220680958385876, 'mean_word_length': 7.947368421052632, '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': '2248409', 'n_tokens_mistral': 995, 'n_tokens_neox': 937, 'n_words': 158}