<commit_before>file(GLOB EXAMPLE_SOURCES *.cpp *.cu)

if(NOT ans_FOUND)
  list(FILTER EXAMPLE_SOURCES EXCLUDE REGEX "benchmark_ans.cpp")
endif()

if(NOT bitcomp_FOUND)
  list(FILTER EXAMPLE_SOURCES EXCLUDE REGEX "benchmark_bitcomp.cpp")
endif()

foreach(EXAMPLE_SOURCE ${EXAMPLE_SOURCES})
  # cut off suffixes
  string(REPLACE ".cpp" "" EXAMPLE_NAME ${EXAMPLE_SOURCE})
  string(REPLACE ".cu" "" EXAMPLE_NAME ${EXAMPLE_NAME})
  get_filename_component(BARE_NAME ${EXAMPLE_NAME} NAME)
  add_executable(${BARE_NAME} ${EXAMPLE_SOURCE})
  if (NOT MSVC)
    target_link_libraries(${BARE_NAME} PRIVATE nvcomp CUDA::cudart CUDA::nvml)
  else()
    # Including CUDA::cudart on Windows resulted in multiple definition
    # linker errors for gdeflate and bitcomp benchmarks, since
    # cudart_static.lib is already included.
    target_link_libraries(${BARE_NAME} PRIVATE nvcomp CUDA::nvml)
  endif()
  target_include_directories(${BARE_NAME} PRIVATE ${CMAKE_SOURCE_DIR})
  target_include_directories(${BARE_NAME} PRIVATE
    "$<BUILD_INTERFACE:${nvcomp_SOURCE_DIR}/src>")
  target_include_directories(${BARE_NAME} PRIVATE
      "$<BUILD_INTERFACE:${nvcomp_SOURCE_DIR}>")
  target_include_directories(${BARE_NAME} PRIVATE
      "$<BUILD_INTERFACE:${nvcomp_SOURCE_DIR}/include>")
endforeach(EXAMPLE_SOURCE ${EXAMPLE_SOURCES})<commit_msg>Remove including src from benchmarks<commit_after>file(GLOB EXAMPLE_SOURCES *.cpp *.cu)

if(NOT ans_FOUND)
  list(FILTER EXAMPLE_SOURCES EXCLUDE REGEX "benchmark_ans.cpp")
endif()

if(NOT bitcomp_FOUND)
  list(FILTER EXAMPLE_SOURCES EXCLUDE REGEX "benchmark_bitcomp.cpp")
endif()

foreach(EXAMPLE_SOURCE ${EXAMPLE_SOURCES})
  # cut off suffixes
  string(REPLACE ".cpp" "" EXAMPLE_NAME ${EXAMPLE_SOURCE})
  string(REPLACE ".cu" "" EXAMPLE_NAME ${EXAMPLE_NAME})
  get_filename_component(BARE_NAME ${EXAMPLE_NAME} NAME)
  add_executable(${BARE_NAME} ${EXAMPLE_SOURCE})
  if (NOT MSVC)
    target_link_libraries(${BARE_NAME} PRIVATE nvcomp CUDA::cudart CUDA::nvml)
  else()
    # Including CUDA::cudart on Windows resulted in multiple definition
    # linker errors for gdeflate and bitcomp benchmarks, since
    # cudart_static.lib is already included.
    target_link_libraries(${BARE_NAME} PRIVATE nvcomp CUDA::nvml)
  endif()
  target_include_directories(${BARE_NAME} PRIVATE ${CMAKE_SOURCE_DIR})
  target_include_directories(${BARE_NAME} PRIVATE
      "$<BUILD_INTERFACE:${nvcomp_SOURCE_DIR}>")
  target_include_directories(${BARE_NAME} PRIVATE
      "$<BUILD_INTERFACE:${nvcomp_SOURCE_DIR}/include>")
endforeach(EXAMPLE_SOURCE ${EXAMPLE_SOURCES})
{'fraction_non_alphanumeric': 0.11305361305361306, 'fraction_numerical': 0.0, 'mean_word_length': 6.779456193353474, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1173371', 'n_tokens_mistral': 979, 'n_tokens_neox': 900, 'n_words': 172}