<commit_before>
cmake_minimum_required(VERSION 3.2)

project(l10ns)

set(VERSION "3.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

configure_file(${PROJECT_SOURCE_DIR}/src/Program/Configurations.h.in ${PROJECT_SOURCE_DIR}/src/Program/Configurations.h)

find_package(Boost 1.54 COMPONENTS system filesystem regex REQUIRED)

add_subdirectory(src/Vendors/Glob)
add_subdirectory(src/Vendors/json)

include_directories("${PROJECT_SOURCE_DIR}/src/Program")
include_directories("${PROJECT_SOURCE_DIR}/src/TestFramework")
include_directories("${PROJECT_SOURCE_DIR}/src/Vendors/Glob")
include_directories("${PROJECT_SOURCE_DIR}/src/Vendors/json/src")

add_executable(l10ns ${PROJECT_SOURCE_DIR}/src/Program/Exec.cpp)

add_executable(accept-baseline ${PROJECT_SOURCE_DIR}/tasks/AcceptBaseline.cpp)
add_executable(clean-project ${PROJECT_SOURCE_DIR}/tasks/Clean.cpp)
add_executable(diff ${PROJECT_SOURCE_DIR}/tasks/Diff.cpp)
add_executable(generate-diagnostics ${PROJECT_SOURCE_DIR}/tasks/GenerateDiagnostics.cpp)
add_executable(generate-json-rpc-client-stub ${PROJECT_SOURCE_DIR}/tasks/GenerateJsonRpcClientStub.cpp)
add_executable(run-tests ${PROJECT_SOURCE_DIR}/src/TestFramework/Exec.cpp)

target_link_libraries(l10ns glob jsoncpp jsonrpccpp-common jsonrpccpp-client ${Boost_LIBRARIES})

target_link_libraries(accept-baseline glob ${Boost_LIBRARIES})
target_link_libraries(clean-project glob ${Boost_LIBRARIES})
target_link_libraries(diff glob ${Boost_LIBRARIES})
target_link_libraries(generate-diagnostics glob ${Boost_LIBRARIES})
target_link_libraries(run-tests glob ${Boost_LIBRARIES})<commit_msg>refactor: Fixes Windows build<commit_after>
cmake_minimum_required(VERSION 3.2)

project(l10ns)

set(VERSION "3.0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

# See: https://stackoverflow.com/questions/6468681/failed-linking-to-boost-library-with-cmake-generated-project-file-for-msvc9
add_definitions( -DBOOST_ALL_NO_LIB ) 
set(Boost_USE_STATIC_LIBS ON)

configure_file(${PROJECT_SOURCE_DIR}/src/Program/Configurations.h.in ${PROJECT_SOURCE_DIR}/src/Program/Configurations.h)
set(Boost_DEBUG on)
find_package(Boost 1.55 COMPONENTS system filesystem regex REQUIRED)

add_subdirectory(thrid_party/Glob)
add_subdirectory(third_party/grpc)

include_directories("C:/Program Files (x86)/libjson-rpc-cpp 0.5.0/include")
include_directories("${PROJECT_SOURCE_DIR}/src/Program")
include_directories("${PROJECT_SOURCE_DIR}/src/TestFramework")
include_directories("${PROJECT_SOURCE_DIR}/src/Vendors/Glob")
include_directories("C:/jsoncpp/dist")

ADD_LIBRARY(jsonrpccpp-common STATIC IMPORTED)
SET_TARGET_PROPERTIES(jsonrpccpp-common PROPERTIES IMPORTED_LOCATION "C:/Program Files (x86)/libjson-rpc-cpp 0.5.0/lib/libjsonrpccpp-common.a")
ADD_LIBRARY(jsonrpccpp-client STATIC IMPORTED)
SET_TARGET_PROPERTIES(jsonrpccpp-client PROPERTIES IMPORTED_LOCATION "C:/Program Files (x86)/libjson-rpc-cpp 0.5.0/lib/libjsonrpccpp-client.a")
ADD_LIBRARY(jsonrpccpp-server STATIC IMPORTED)
SET_TARGET_PROPERTIES(jsonrpccpp-server PROPERTIES IMPORTED_LOCATION "C:/Program Files (x86)/libjson-rpc-cpp 0.5.0/lib/libjsonrpccpp-server.a")

add_executable(l10ns C:/jsoncpp/dist/jsoncpp.cpp ${PROJECT_SOURCE_DIR}/src/Program/Exec.cpp)

add_executable(accept-baseline ${PROJECT_SOURCE_DIR}/tasks/AcceptBaseline.cpp)
add_executable(clean-project ${PROJECT_SOURCE_DIR}/tasks/Clean.cpp)
add_executable(diff ${PROJECT_SOURCE_DIR}/tasks/Diff.cpp)
add_executable(generate-diagnostics ${PROJECT_SOURCE_DIR}/tasks/GenerateDiagnostics.cpp)
add_executable(generate-json-rpc-client-stub ${PROJECT_SOURCE_DIR}/tasks/GenerateJsonRpcClientStub.cpp)
add_executable(run-tests ${PROJECT_SOURCE_DIR}/src/TestFramework/Exec.cpp)

target_link_libraries(l10ns glob jsonrpccpp-common jsonrpccpp-client jsonrpccpp-server ${Boost_LIBRARIES})
target_link_libraries(accept-baseline glob ${Boost_LIBRARIES})
target_link_libraries(clean-project glob ${Boost_LIBRARIES})
target_link_libraries(diff glob ${Boost_LIBRARIES})
target_link_libraries(generate-diagnostics glob ${Boost_LIBRARIES})
target_link_libraries(run-tests glob ${Boost_LIBRARIES})
{'fraction_non_alphanumeric': 0.1195342205323194, 'fraction_numerical': 0.013783269961977186, 'mean_word_length': 9.9609375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1492354', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1500, 'n_words': 167}