<commit_before>cmake_minimum_required(VERSION 3.6)
find_package(PkgConfig)
project(unison-fsmonitor-macos)

find_package(Boost 1.61 REQUIRED filesystem iostreams system)

#
# Find glib-2.0
#
pkg_check_modules(PC_GLIB2 REQUIRED glib-2.0)
# Load each of the sublibraries
foreach(_library ${PC_GLIB2_LIBRARIES})
  find_library(${_library}_LIBRARIES NAMES ${_library} "lib${_library}" HINTS ${PC_GLIB2_LIBRARY_DIRS})
  list(APPEND GLIB2_LIBRARIES ${${_library}_LIBRARIES})
endforeach()
set(GLIB2_INCLUDE_DIRS ${PC_GLIB2_INCLUDE_DIRS})

#
# Find the fswatch library
#
find_path(FSWATCH_INCLUDE_DIRS libfswatch/c++/monitor.hpp)
find_library(FSWATCH_LIBRARIES NAMES fswatch libfswatch)

file(GLOB SOURCES "src/*.cc" "src/*.hpp" "src/*.h")

add_executable(unison-fsmonitor ${SOURCES})
target_include_directories(unison-fsmonitor PUBLIC ${GLIB2_INCLUDE_DIRS}
                                                   ${FSWATCH_INCLUDE_DIRS}
                                                   ${Boost_INCLUDE_DIRS})
target_link_libraries(unison-fsmonitor ${GLIB2_LIBRARIES}
                                       ${FSWATCH_LIBRARIES}
                                       ${Boost_LIBRARIES})
target_compile_features(unison-fsmonitor PRIVATE cxx_lambdas cxx_unicode_literals cxx_alias_templates)
<commit_msg>unset our temporary cmake vars<commit_after>cmake_minimum_required(VERSION 3.6)
find_package(PkgConfig)
project(unison-fsmonitor-macos)

find_package(Boost 1.61 REQUIRED filesystem iostreams system)

#
# Find glib-2.0
#
pkg_check_modules(PC_GLIB2 REQUIRED glib-2.0)
# Load each of the sublibraries
foreach(_library ${PC_GLIB2_LIBRARIES})
  find_library(${_library}_LIBRARIES NAMES ${_library} "lib${_library}" HINTS ${PC_GLIB2_LIBRARY_DIRS})
  list(APPEND GLIB2_LIBRARIES ${${_library}_LIBRARIES})
  unset(${_library}_LIBRARIES CACHE)
endforeach()
set(GLIB2_INCLUDE_DIRS ${PC_GLIB2_INCLUDE_DIRS})

#
# Find the fswatch library
#
find_path(FSWATCH_INCLUDE_DIRS libfswatch/c++/monitor.hpp)
find_library(FSWATCH_LIBRARIES NAMES fswatch libfswatch)

file(GLOB SOURCES "src/*.cc" "src/*.hpp" "src/*.h")

add_executable(unison-fsmonitor ${SOURCES})
target_include_directories(unison-fsmonitor PUBLIC ${GLIB2_INCLUDE_DIRS}
                                                   ${FSWATCH_INCLUDE_DIRS}
                                                   ${Boost_INCLUDE_DIRS})
target_link_libraries(unison-fsmonitor ${GLIB2_LIBRARIES}
                                       ${FSWATCH_LIBRARIES}
                                       ${Boost_LIBRARIES})
target_compile_features(unison-fsmonitor PRIVATE cxx_lambdas cxx_unicode_literals cxx_alias_templates)

{'fraction_non_alphanumeric': 0.09522003034901366, 'fraction_numerical': 0.012898330804248861, 'mean_word_length': 3.602094240837696, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2678419', 'n_tokens_mistral': 978, 'n_tokens_neox': 893, 'n_words': 136}