<commit_before># The file list for building the graph database library.
# They can be used directly for unit tests.
# the ../src part is so that they can be accessed from outside the src tree
set(_graph_files
      ../src/value.c
      ../src/module.c
      ../src/value_cmp.c
      ../src/query_executor.c

      ../src/hexastore/hexastore.c
      ../src/hexastore/triplet.c

      ../src/graph/edge.c
      ../src/graph/node.c
      ../src/graph/graph.c

      ../src/parser/ast.c
      ../src/parser/lex.yy.c
      ../src/parser/grammar.c

      ../src/aggregate/aggregate.c
      ../src/aggregate/functions.c
      ../src/aggregate/repository.c

      ../src/grouping/group.c
      ../src/grouping/group_cache.c

      ../src/util/heap.c
      ../src/util/triemap/triemap.c
      ../src/util/triemap/triemap_type.c

      ../src/resultset/record.c
      ../src/resultset/resultset.c

      ../src/rmutil/sds.c
      ../src/rmutil/util.c
      ../src/rmutil/vector.c
      ../src/rmutil/strings.c
      )


set (graph_files ${_graph_files} PARENT_SCOPE)

# Libgraph target - a static library for graph database
add_library(Llibgraph STATIC  ${_graph_files})

target_compile_options(Llibgraph PUBLIC "-fPIC" "-DREDIS_MODULE_TARGET" "-I${CMAKE_CURRENT_LIST_DIR}")


# build the parser source code before building Llibgraph
#add_custom_command(
#                TARGET Llibgraph
#                PRE_BUILD
#                COMMAND lex -i lexer.l
#                COMMAND lemon -s grammar.y
#                WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/parser)



add_library(module MODULE
    module.c
    rmutil/util.c
    rmutil/strings.c
)

add_library(librmutil STATIC IMPORTED ../../src/rmutil/librmutil.a)

target_compile_options(module PUBLIC "-DREDIS_MODULE_TARGET")

target_link_libraries(module Llibgraph)<commit_msg>link with math<commit_after># The file list for building the graph database library.
# They can be used directly for unit tests.
# the ../src part is so that they can be accessed from outside the src tree
set(_graph_files
      ../src/value.c
      ../src/module.c
      ../src/value_cmp.c
      ../src/query_executor.c

      ../src/hexastore/hexastore.c
      ../src/hexastore/triplet.c

      ../src/graph/edge.c
      ../src/graph/node.c
      ../src/graph/graph.c

      ../src/parser/ast.c
      ../src/parser/lex.yy.c
      ../src/parser/grammar.c

      ../src/aggregate/aggregate.c
      ../src/aggregate/functions.c
      ../src/aggregate/repository.c

      ../src/grouping/group.c
      ../src/grouping/group_cache.c

      ../src/util/heap.c
      ../src/util/triemap/triemap.c
      ../src/util/triemap/triemap_type.c

      ../src/resultset/record.c
      ../src/resultset/resultset.c

      ../src/rmutil/sds.c
      ../src/rmutil/util.c
      ../src/rmutil/vector.c
      ../src/rmutil/strings.c
      )


set (graph_files ${_graph_files} PARENT_SCOPE)

# Libgraph target - a static library for graph database
add_library(Llibgraph STATIC  ${_graph_files})

target_compile_options(Llibgraph PUBLIC "-fPIC" "-DREDIS_MODULE_TARGET" "-I${CMAKE_CURRENT_LIST_DIR}")


# build the parser source code before building Llibgraph
#add_custom_command(
#                TARGET Llibgraph
#                PRE_BUILD
#                COMMAND lex -i lexer.l
#                COMMAND lemon -s grammar.y
#                WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/parser)



add_library(module MODULE
    module.c
    rmutil/util.c
    rmutil/strings.c
)

add_library(librmutil STATIC IMPORTED ../../src/rmutil/librmutil.a)

target_compile_options(module PUBLIC "-DREDIS_MODULE_TARGET")

target_link_libraries(module Llibgraph)
target_link_libraries(module m)
{'fraction_non_alphanumeric': 0.1293126867698995, 'fraction_numerical': 0.0, 'mean_word_length': 2.1497005988023954, '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': '5067198', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1232, 'n_words': 235}