<commit_before>FIND_PACKAGE(Boost 1.40.0 COMPONENTS serialization date_time regex thread iostreams REQUIRED)
find_package(Protobuf REQUIRED)
link_directories ( ${Boost_LIBRARY_DIRS} )
include_directories ( ${Boost_INCLUDE_DIRS}
                      ${CMAKE_SOURCE_DIR}/fastlz_filter
                      ${CMAKE_SOURCE_DIR}/../third_party
                      ${CMAKE_SOURCE_DIR}/../third_party/fastlz
                      ${PROTOBUF_INCLUDE_DIRS}
                      ${CMAKE_CURRENT_BINARY_DIR}
)
 
add_executable (test_gtfs test.cpp gtfs_parser.cpp gtfs_parser.h type.h type.cpp data.h data.cpp ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c)
target_link_libraries(test_gtfs ${Boost_LIBRARIES})

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS type.proto)
add_executable (ptref ptreferential.h ptreferential.cpp type.h type.cpp data.h data.cpp indexes.h where.h reflexion.h ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c ${PROTO_SRCS} ${PROTO_HDRS} ptref_cli.cpp ptref_graph.cpp)
target_link_libraries(ptref ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY} pthread readline)



FIND_PACKAGE(WS_Commons)
MAKE_WS(WS_ptref ${CMAKE_SOURCE_DIR}/WS_commons/threadpool.h ${CMAKE_SOURCE_DIR}/WS_commons/data_structures.h ${CMAKE_SOURCE_DIR}/WS_commons/fcgi.h ${CMAKE_SOURCE_DIR}/WS_commons/isapi.h ${CMAKE_SOURCE_DIR}/WS_commons/baseworker.h ptreferential.h ptreferential.cpp type.h type.cpp data.h data.cpp indexes.h where.h reflexion.h ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c ${PROTO_SRCS} ${PROTO_HDRS} ptref_ws.cpp ptref_graph.cpp LIBS pthread ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY})


add_executable (navijkstra navijkstra.cpp data.cpp type.cpp ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c )
target_link_libraries(navijkstra ${Boost_LIBRARIES})

add_subdirectory(tests)<commit_msg>ptreferential est fourni sous forme de lib<commit_after>FIND_PACKAGE(Boost 1.40.0 COMPONENTS serialization date_time regex thread iostreams REQUIRED)
find_package(Protobuf REQUIRED)
link_directories (${Boost_LIBRARY_DIRS})
include_directories ( ${Boost_INCLUDE_DIRS}
                      ${CMAKE_SOURCE_DIR}/fastlz_filter
                      ${CMAKE_SOURCE_DIR}/../third_party
                      ${CMAKE_SOURCE_DIR}/../third_party/fastlz
                      ${PROTOBUF_INCLUDE_DIRS}
                      ${CMAKE_CURRENT_BINARY_DIR}
)
 
add_executable (test_gtfs test.cpp gtfs_parser.cpp gtfs_parser.h type.h type.cpp data.h data.cpp ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c)
target_link_libraries(test_gtfs ${Boost_LIBRARIES})

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS type.proto)

SET(PTREF_SRC ptreferential.h ptreferential.cpp type.h type.cpp data.h data.cpp indexes.h where.h reflexion.h ${PROTO_SRCS} ${PROTO_HDRS})
add_library(ptreferential ${PTREF_SRC})
target_link_libraries(ptreferential ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY})

add_executable(ptref ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c  ptref_cli.cpp ptref_graph.cpp)
target_link_libraries(ptref ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY} pthread readline ptreferential)



FIND_PACKAGE(WS_Commons)
MAKE_WS(WS_ptref ${CMAKE_SOURCE_DIR}/WS_commons/threadpool.h ${CMAKE_SOURCE_DIR}/WS_commons/data_structures.h ${CMAKE_SOURCE_DIR}/WS_commons/fcgi.h ${CMAKE_SOURCE_DIR}/WS_commons/isapi.h ${CMAKE_SOURCE_DIR}/WS_commons/baseworker.h ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c ${PROTO_SRCS} ${PROTO_HDRS} ptref_ws.cpp ptref_graph.cpp LIBS pthread ${Boost_LIBRARIES} ${PROTOBUF_LIBRARY} ptreferential)


add_executable(navijkstra navijkstra.cpp data.cpp type.cpp ${CMAKE_SOURCE_DIR}/../third_party/fastlz/fastlz.c)
target_link_libraries(navijkstra ${Boost_LIBRARIES})

add_subdirectory(tests)
{'fraction_non_alphanumeric': 0.10857763300760044, 'fraction_numerical': 0.002171552660152009, 'mean_word_length': 5.172529313232831, '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': '6857076', 'n_tokens_mistral': 1436, 'n_tokens_neox': 1337, 'n_words': 182}