<commit_before>add_executable ( password_service 
	password_service.cc
	)

if (NOT USE_SYSTEM_GRPC)
	add_dependencies(password_service grpc)
	set (GRPC_CPP_PLUGIN ${GRPC_INSTALL_DIR}/bin/grpc_cpp_plugin)
	# XXX very ugly method to find protoc, grpc_cpp_plugin
	find_program(PROTOBUF_EXE
		protoc
		HINTS ${GRPC_INSTALL_DIR}/bin ENV PATH
		)
else ()
	include (FindProtobuf)
	if (PROTOBUF_FOUND)
		set (PROTOBUF_EXE ${PROTOBUF_PROTOC_EXECUTABLE})
	else ()
		find_program(PROTOBUF_EXE
			protoc
			)
	endif (PROTOBUF_FOUND)
	find_program(GRPC_CPP_PLUGIN
		grpc_cpp_plugin
		)
endif ()

set (PROTO_FILES password_service.proto)
set (PROTO_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR})
# ref FindProtobuf.cmake
foreach (FIL ${PROTO_FILES})
	message ("protoc ${FIL}")
	get_filename_component(FIL_P ${FIL} NAME_WE)
	get_filename_component(FIL_A ${FIL} ABSOLUTE) 
	list (APPEND PROTO_SRC "${FIL_P}.pb.cc")
	list (APPEND PROTO_SRC "${FIL_P}.grpc.pb.cc")
	list (APPEND PROTO_HDR "${FIL_P}.pb.h")
	list (APPEND PROTO_HDR "${FIL_P}.grpc.pb.h")<commit_msg>set protoc internally if we NOT USE_SYSTEM_GRPC<commit_after>add_executable ( password_service 
	password_service.cc
	)

if (NOT USE_SYSTEM_GRPC)
	add_dependencies(password_service grpc)
	set (GRPC_CPP_PLUGIN ${GRPC_INSTALL_DIR}/bin/grpc_cpp_plugin)
	set (PROTOBUF_EXE ${GRPC_INSTALL_DIR}/bin/protoc)
else ()
	include (FindProtobuf)
	if (PROTOBUF_FOUND)
		set (PROTOBUF_EXE ${PROTOBUF_PROTOC_EXECUTABLE})
	else ()
		find_program(PROTOBUF_EXE
			protoc
			)
	endif (PROTOBUF_FOUND)
	find_program(GRPC_CPP_PLUGIN
		grpc_cpp_plugin
		)
endif ()

set (PROTO_FILES password_service.proto)
set (PROTO_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR})
# ref FindProtobuf.cmake
foreach (FIL ${PROTO_FILES})
	message ("protoc ${FIL}")
	get_filename_component(FIL_P ${FIL} NAME_WE)
	get_filename_component(FIL_A ${FIL} ABSOLUTE) 
	list (APPEND PROTO_SRC "${FIL_P}.pb.cc")
	list (APPEND PROTO_SRC "${FIL_P}.grpc.pb.cc")
	list (APPEND PROTO_HDR "${FIL_P}.pb.h")
	list (APPEND PROTO_HDR "${FIL_P}.grpc.pb.h")
{'fraction_non_alphanumeric': 0.11458333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 6.307971014492754, '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': '2324406', 'n_tokens_mistral': 837, 'n_tokens_neox': 801, 'n_words': 148}