<commit_before>include_directories(BEFORE ..)

set(libvast_sources
  archive.cc
  configuration.cc
  event_sink.cc
  event_source.cc
  exception.cc
  expression.cc
  id_tracker.cc
  index.cc
  ingestor.cc
  logger.cc
  program.cc
  query.cc
  query_client.cc
  schema.cc
  schema_manager.cc
  search.cc
  segment.cc
  segment_manager.cc
  system_monitor.cc
  to_string.cc
  comm/broccoli.cc
  comm/connection.cc
  comm/exception.cc
  comm/server.cc
  detail/cppa_archive.cc
  detail/cppa_type_info.cc
  detail/ast/query.cc
  detail/parser/expression.cc
  detail/parser/query.cc
  detail/parser/schema.cc
  fs/exception.cc
  fs/operations.cc
  sink/file.cc
  source/broccoli.cc
  source/file.cc
  util/console.cc
  util/profiler.cc)

set(libs
    ${Boost_LIBRARIES}
    ${LIBCPPA_LIBRARIES}
    ${0event_LIBRARIES}
    ${Broccoli_LIBRARIES})

# Always link with -lprofile if we have Gperftools.
if (GPERFTOOLS_FOUND)
  set(libs ${libs} ${GPERFTOOLS_PROFILER})
endif ()

# Only link against tcmalloc if requested.
if (GPERFTOOLS_FOUND AND USE_PERFTOOLS_HEAP_PROFILER)
  set(libs ${libs} ${GPERFTOOLS_TCMALLOC})
endif ()

add_library(libvast SHARED ${libvast_sources})
set_target_properties(libvast PROPERTIES OUTPUT_NAME vast)
target_link_libraries(libvast ${libs})
install(TARGETS libvast DESTINATION lib)

add_executable(vast main.cc)
set_target_properties(vast PROPERTIES OUTPUT_NAME vast)
target_link_libraries(vast ${libs} libvast)
install(TARGETS vast DESTINATION bin)<commit_msg>Logical CMake nit.<commit_after>include_directories(BEFORE ..)

set(libvast_sources
  archive.cc
  configuration.cc
  event_sink.cc
  event_source.cc
  exception.cc
  expression.cc
  id_tracker.cc
  index.cc
  ingestor.cc
  logger.cc
  program.cc
  query.cc
  query_client.cc
  schema.cc
  schema_manager.cc
  search.cc
  segment.cc
  segment_manager.cc
  system_monitor.cc
  to_string.cc
  comm/broccoli.cc
  comm/connection.cc
  comm/exception.cc
  comm/server.cc
  detail/cppa_archive.cc
  detail/cppa_type_info.cc
  detail/ast/query.cc
  detail/parser/expression.cc
  detail/parser/query.cc
  detail/parser/schema.cc
  fs/exception.cc
  fs/operations.cc
  sink/file.cc
  source/broccoli.cc
  source/file.cc
  util/console.cc
  util/profiler.cc)

set(libs
    ${Boost_LIBRARIES}
    ${LIBCPPA_LIBRARIES}
    ${0event_LIBRARIES}
    ${Broccoli_LIBRARIES})

# Always link with -lprofile if we have Gperftools.
if (GPERFTOOLS_FOUND)
  set(libs ${libs} ${GPERFTOOLS_PROFILER})
endif ()

# Only link against tcmalloc if requested.
if (GPERFTOOLS_FOUND AND USE_PERFTOOLS_HEAP_PROFILER)
  set(libs ${libs} ${GPERFTOOLS_TCMALLOC})
endif ()

add_library(libvast SHARED ${libvast_sources})
set_target_properties(libvast PROPERTIES OUTPUT_NAME vast)
target_link_libraries(libvast ${libs})
install(TARGETS libvast DESTINATION lib)

add_executable(vast main.cc)
set_target_properties(vast PROPERTIES OUTPUT_NAME vast)
target_link_libraries(vast libvast ${libs})
install(TARGETS vast DESTINATION bin)
{'fraction_non_alphanumeric': 0.09182643794147326, 'fraction_numerical': 0.0006727211570803902, 'mean_word_length': 4.548507462686567, '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': '7356407', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1138, 'n_words': 197}