<commit_before>CMAKE_POLICY(SET CMP0005 OLD)

ADD_DEFINITIONS(-DPVP_XSD_FILE_PATH=\\"${CMAKE_CURRENT_SOURCE_DIR}/BrainProxyAxon.xsd\\")

SET(PAI_SOURCE_FILES
    PAIUtils
	ActionParamType
	ActionParameter
	ActionType
	PetAction
	ActionPlan
	PAI
	ActionPlanDispatcher
    EmbodimentDOMParser
    EmbodimentErrorHandler
)

IF (PROTOBUF_FOUND)
    # Compile proto messages.
    SET(PROTO_ARGS 
        PROTOFILES PAI.MapInfo.proto
        OUTPATH ${CMAKE_CURRENT_SOURCE_DIR}
    )
    PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTO_ARGS})
    SET(PAI_SOURCE_FILES ${PAI_SOURCE_FILES} ${PROTO_SRCS})
ENDIF (PROTOBUF_FOUND)

ADD_LIBRARY (PAI
    ${PAI_SOURCE_FILES}
)

SET(PAI_LINK_LIBS
	AtomSpaceExtensions
	util 
    oac
	${XERCESC_LIBRARIES}
	${Boost_DATE_TIME_LIBRARY} 
	${Boost_REGEX_LIBRARY}
    ${PROTOBUF_LIBRARY}
)

IF (GUILE_FOUND)
   SET(PAI_LINK_LIBS smob server ${PAI_LINK_LIBS})
ENDIF (GUILE_FOUND)<commit_msg>Fix a library linking error when protobuf is not found.<commit_after>CMAKE_POLICY(SET CMP0005 OLD)

ADD_DEFINITIONS(-DPVP_XSD_FILE_PATH=\\"${CMAKE_CURRENT_SOURCE_DIR}/BrainProxyAxon.xsd\\")

SET(PAI_SOURCE_FILES
    PAIUtils
	ActionParamType
	ActionParameter
	ActionType
	PetAction
	ActionPlan
	PAI
	ActionPlanDispatcher
    EmbodimentDOMParser
    EmbodimentErrorHandler
)

IF (PROTOBUF_FOUND)
    # Compile proto messages.
    SET(PROTO_ARGS 
        PROTOFILES PAI.MapInfo.proto
        OUTPATH ${CMAKE_CURRENT_SOURCE_DIR}
    )
    PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTO_ARGS})
    SET(PAI_SOURCE_FILES ${PAI_SOURCE_FILES} ${PROTO_SRCS})
ENDIF (PROTOBUF_FOUND)

ADD_LIBRARY (PAI
    ${PAI_SOURCE_FILES}
)

SET(PAI_LINK_LIBS
	AtomSpaceExtensions
	util 
    oac
	${XERCESC_LIBRARIES}
	${Boost_DATE_TIME_LIBRARY} 
	${Boost_REGEX_LIBRARY}
)

IF (PROTOBUF_FOUND)
    SET(PAI_LINK_LIBS ${PAI_LINK_LIBS} ${PROTOBUF_LIBRARY})
ENDIF (PROTOBUF_FOUND)

IF (GUILE_FOUND)
   SET(PAI_LINK_LIBS smob server ${PAI_LINK_LIBS})
ENDIF (GUILE_FOUND)
{'fraction_non_alphanumeric': 0.08223350253807106, 'fraction_numerical': 0.0040609137055837565, 'mean_word_length': 5.19811320754717, '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': '5936695', 'n_tokens_mistral': 851, 'n_tokens_neox': 789, 'n_words': 118}