<commit_before>project(ENVYTOOLS C)
cmake_minimum_required(VERSION 2.6)

find_package(LibXml2 REQUIRED)
find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)

include_directories(${LIBXML2_INCLUDE_DIR})

flex_target(envylex envylex.l ${CMAKE_CURRENT_BINARY_DIR}/envylex.c)
bison_target(envyparse envyparse.y ${CMAKE_CURRENT_BINARY_DIR}/envyparse.c)
add_flex_bison_dependency(envylex envyparse)
include_directories(.)

add_library(rnn rnn.c rnndec.c)
add_library(envy coredis.c nv50dis.c nvc0dis.c ctxdis.c fucdis.c pmsdis.c vp2dis.c vp3mdis.c vp3tdis.c macrodis.c)

add_executable(envydis envydis.c)
add_executable(demmio demmio.c)
add_executable(headergen headergen.c)
add_executable(nvbios nvbios.c)
add_executable(envyas envyas.c ${FLEX_envylex_OUTPUTS} ${BISON_envyparse_OUTPUTS})

target_link_libraries(envydis envy)
target_link_libraries(envyas envy)
target_link_libraries(demmio envy rnn ${LIBXML2_LIBRARIES})
target_link_libraries(headergen rnn ${LIBXML2_LIBRARIES})

install(TARGETS envydis demmio headergen nvbios envy rnn envyas
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION lib
	ARCHIVE DESTINATION lib)<commit_msg>Use LIB_SUFFIX for install<commit_after>project(ENVYTOOLS C)
cmake_minimum_required(VERSION 2.6)

find_package(LibXml2 REQUIRED)
find_package(FLEX REQUIRED)
find_package(BISON REQUIRED)

include_directories(${LIBXML2_INCLUDE_DIR})

flex_target(envylex envylex.l ${CMAKE_CURRENT_BINARY_DIR}/envylex.c)
bison_target(envyparse envyparse.y ${CMAKE_CURRENT_BINARY_DIR}/envyparse.c)
add_flex_bison_dependency(envylex envyparse)
include_directories(.)

add_library(rnn rnn.c rnndec.c)
add_library(envy coredis.c nv50dis.c nvc0dis.c ctxdis.c fucdis.c pmsdis.c vp2dis.c vp3mdis.c vp3tdis.c macrodis.c)

add_executable(envydis envydis.c)
add_executable(demmio demmio.c)
add_executable(headergen headergen.c)
add_executable(nvbios nvbios.c)
add_executable(envyas envyas.c ${FLEX_envylex_OUTPUTS} ${BISON_envyparse_OUTPUTS})

target_link_libraries(envydis envy)
target_link_libraries(envyas envy)
target_link_libraries(demmio envy rnn ${LIBXML2_LIBRARIES})
target_link_libraries(headergen rnn ${LIBXML2_LIBRARIES})

install(TARGETS envydis demmio headergen nvbios envy rnn envyas
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION lib${LIB_SUFFIX}
	ARCHIVE DESTINATION lib${LIB_SUFFIX})
{'fraction_non_alphanumeric': 0.08351457155284907, 'fraction_numerical': 0.010439321444106133, 'mean_word_length': 9.454545454545455, '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': '4174637', 'n_tokens_mistral': 994, 'n_tokens_neox': 939, 'n_words': 150}