<commit_before>find_package(FLEX)

FLEX_TARGET(
	lexer
	lexer.y
	lexer.c
	COMPILE_FLAGS "-Wno-unused-function -Wno-unused-parameter")

#add_custom_command(
#	OUTPUT lexer.c lexer.h
#	COMMAND ${FLEX} --fast --outfile=lexer.c --header-file=lexer.h lexer.y
#	DEPENDS lexer.y
#	COMMENT "Building Flex lexer")



add_library(
	deepstream_parser
	message.cpp
	parser.cpp
	${FLEX_lexer_OUTPUT})

target_include_directories(deepstream_parser PUBLIC ${CMAKE_CURRENT_BINARY_DIR})<commit_msg>Src: make shared library by default<commit_after>find_package(FLEX)

FLEX_TARGET(
	lexer
	lexer.y
	lexer.c
	COMPILE_FLAGS "-Wno-unused-function -Wno-unused-parameter")

#add_custom_command(
#	OUTPUT lexer.c lexer.h
#	COMMAND ${FLEX} --fast --outfile=lexer.c --header-file=lexer.h lexer.y
#	DEPENDS lexer.y
#	COMMENT "Building Flex lexer")



add_library(
	deepstream_parser SHARED
	message.cpp
	parser.cpp
	${FLEX_lexer_OUTPUT})

target_include_directories(deepstream_parser PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
{'fraction_non_alphanumeric': 0.11402623612512613, 'fraction_numerical': 0.0, 'mean_word_length': 5.569536423841059, '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': '2596834', 'n_tokens_mistral': 422, 'n_tokens_neox': 397, 'n_words': 69}