<commit_before>cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(foo)

find_package(Torch REQUIRED)

# Define our library target
add_library(sru_cpu SHARED sru_cpu_impl.cpp)
# Enable C++14
target_compile_features(sru_cpu PRIVATE cxx_std_14)
# Link against LibTorch
target_link_libraries(sru_cpu "${TORCH_LIBRARIES}")

add_executable(example_app main_test_cpp.cpp)
target_link_libraries(example_app "${TORCH_LIBRARIES}")
if (UNIX AND NOT APPLE)
    target_link_libraries(example_app -Wl,--no-as-needed sru_cpu)
else()
    target_link_libraries(example_app -Wl,-all_load sru_cpu)
endif()
target_compile_features(example_app PRIVATE cxx_std_14)<commit_msg>update makefile<commit_after>cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(foo)

find_package(Torch REQUIRED)

# Define our library target
add_library(sru_cpu SHARED sru_cpu_impl.cpp)
# Enable C++14
target_compile_features(sru_cpu PRIVATE cxx_std_14)
# Link against LibTorch
target_link_libraries(sru_cpu "${TORCH_LIBRARIES}")

# Define our library target
add_library(sru_cuda SHARED sru_cuda_impl_dummy.cpp)
# Enable C++14
target_compile_features(sru_cuda PRIVATE cxx_std_14)
# Link against LibTorch
target_link_libraries(sru_cuda "${TORCH_LIBRARIES}")

add_executable(example_app main_test_cpp.cpp)
target_link_libraries(example_app "${TORCH_LIBRARIES}")
if (UNIX AND NOT APPLE)
    target_link_libraries(example_app -Wl,--no-as-needed sru_cpu)
else()
    target_link_libraries(example_app -Wl,-all_load sru_cpu)
endif()
target_compile_features(example_app PRIVATE cxx_std_14)
{'fraction_non_alphanumeric': 0.08597285067873303, 'fraction_numerical': 0.012928248222365869, 'mean_word_length': 8.923076923076923, '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': '480092', 'n_tokens_mistral': 615, 'n_tokens_neox': 581, 'n_words': 103}