<commit_before>cmake_minimum_required(VERSION 3.0)

# set(LFS_ROOT "${PROJECT_SOURCE_DIR}/luafilesystem")
# set(LFS_WORKING_DIR "${CMAKE_BINARY_DIR}/luafilesystem")
# set(LFS_INCLUDE "${LFS_WORKING_DIR}/src")

# Copy to the build directory. Not required since we don't use the provided make file
# add_custom_target(copy_lfs
    # COMMAND ${CMAKE_COMMAND} -E echo "Copying LuaFileSystem source to build directory..."
    # COMMAND ${CMAKE_COMMAND} -E make_directory ${LFS_WORKING_DIR}
    # COMMAND ${CMAKE_COMMAND} -E copy_directory ${LFS_ROOT} ${LFS_WORKING_DIR}
# )

# Add the libary target. Note that we can't specify the source using
# ${CMAKE_BINARY_DIR}/src/lfs.c because it's not yet copied in the build dir.
add_library(liblfs SHARED src/lfs.c)
# Add dependencies targets
# add_dependencies(liblfs copy_lfs libluajit) # Copy files to the build dir before building the shared library
add_dependencies(liblfs libluajit)

set_target_properties(liblfs PROPERTIES OUTPUT_NAME "lfs")

# Specify libraries or flags to use when linking with target libfls
target_link_libraries(liblfs liblua)
target_include_directories(liblfs PUBLIC ${LFS_INCLUDE})
<commit_msg>Fix dependency typo<commit_after>cmake_minimum_required(VERSION 3.0)

# set(LFS_ROOT "${PROJECT_SOURCE_DIR}/luafilesystem")
# set(LFS_WORKING_DIR "${CMAKE_BINARY_DIR}/luafilesystem")
# set(LFS_INCLUDE "${LFS_WORKING_DIR}/src")

# Copy to the build directory. Not required since we don't use the provided make file
# add_custom_target(copy_lfs
    # COMMAND ${CMAKE_COMMAND} -E echo "Copying LuaFileSystem source to build directory..."
    # COMMAND ${CMAKE_COMMAND} -E make_directory ${LFS_WORKING_DIR}
    # COMMAND ${CMAKE_COMMAND} -E copy_directory ${LFS_ROOT} ${LFS_WORKING_DIR}
# )

# Add the libary target. Note that we can't specify the source using
# ${CMAKE_BINARY_DIR}/src/lfs.c because it's not yet copied in the build dir.
add_library(liblfs SHARED src/lfs.c)
# Add dependencies targets
# add_dependencies(liblfs copy_lfs libluajit) # Copy files to the build dir before building the shared library
add_dependencies(liblfs liblua)

set_target_properties(liblfs PROPERTIES OUTPUT_NAME "lfs")

# Specify libraries or flags to use when linking with target libfls
target_link_libraries(liblfs liblua)
target_include_directories(liblfs PUBLIC ${LFS_INCLUDE})

{'fraction_non_alphanumeric': 0.0893854748603352, 'fraction_numerical': 0.0017189514396218307, 'mean_word_length': 6.207430340557275, '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': '3200550', 'n_tokens_mistral': 822, 'n_tokens_neox': 777, 'n_words': 220}