<commit_before>cmake_minimum_required(VERSION 2.8.12)

#project(grpcdronecore)


add_definitions(
    -std=c++11
    -Wno-unused-parameter
    -Wno-expansion-to-defined
)

set(proto_dir ${CMAKE_SOURCE_DIR}/grpc/proto)

add_custom_command(OUTPUT dronecore.grpc.pb.cc
    COMMAND ${Protobuf_PROTOC_EXECUTABLE}
        -I ${proto_dir}
        --grpc_out=.
        --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN}
        ${proto_dir}/dronecore.proto;
    DEPENDS ${proto_dir}/dronecore.proto
)

add_custom_command(OUTPUT dronecore.pb.cc
    COMMAND ${Protobuf_PROTOC_EXECUTABLE}
        -I ${proto_dir}
        --cpp_out=. ${proto_dir}/dronecore.proto
    DEPENDS ${proto_dir}/dronecore.proto
)

add_executable(dronecore_server
    dronecore_server.cpp
    dronecore.pb.cc # generated
    dronecore.grpc.pb.cc # generated
)

target_link_libraries(dronecore_server
    dronecore
    pthread
    ${Protobuf_PROTOC_LIBRARIES}
    ${GRPC_LIBRARIES}
    #grpc++_reflection
    dl
)

include_directories(
    ${Protobuf_INCLUDE_DIRS}
    ${GRPC_INCLUDE_DIRS}
    ${CMAKE_BINARY_DIR}/grpc/server
)
<commit_msg>grpc: fix warnings during build<commit_after>cmake_minimum_required(VERSION 2.8.12)

#project(grpcdronecore)


add_definitions(
    -std=c++11
    -Wno-unused-parameter
    -Wno-shadow
)

set(proto_dir ${CMAKE_SOURCE_DIR}/grpc/proto)

add_custom_command(OUTPUT dronecore.grpc.pb.cc
    COMMAND ${Protobuf_PROTOC_EXECUTABLE}
        -I ${proto_dir}
        --grpc_out=.
        --plugin=protoc-gen-grpc=${GRPC_CPP_PLUGIN}
        ${proto_dir}/dronecore.proto;
    DEPENDS ${proto_dir}/dronecore.proto
)

add_custom_command(OUTPUT dronecore.pb.cc
    COMMAND ${Protobuf_PROTOC_EXECUTABLE}
        -I ${proto_dir}
        --cpp_out=. ${proto_dir}/dronecore.proto
    DEPENDS ${proto_dir}/dronecore.proto
)

add_executable(dronecore_server
    dronecore_server.cpp
    dronecore.pb.cc # generated
    dronecore.grpc.pb.cc # generated
)

target_link_libraries(dronecore_server
    dronecore
    pthread
    ${Protobuf_PROTOC_LIBRARIES}
    ${GRPC_LIBRARIES}
    #grpc++_reflection
    dl
)

include_directories(
    ${Protobuf_INCLUDE_DIRS}
    ${GRPC_INCLUDE_DIRS}
    ${CMAKE_BINARY_DIR}/grpc/server
)

{'fraction_non_alphanumeric': 0.11349134001823154, 'fraction_numerical': 0.0054694621695533276, 'mean_word_length': 3.680170575692964, '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': '3919452', 'n_tokens_mistral': 867, 'n_tokens_neox': 845, 'n_words': 98}