<commit_before>project(sosplugin)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(ENABLE_SOSPLUGIN OFF)

if(CLR_CMAKE_PLATFORM_UNIX)
    # Check for LLDB library
    find_library(LLDB NAMES lldb lldb-3.5 PATHS WITH_LLDB_LIBS)
    if(LLDB STREQUAL LLDB-NOTFOUND)
        message(FATAL_ERROR "Cannot find liblldb or liblldb-3.5. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
    endif()

    # Check for LLDB headers
    find_path(LLDB_H "lldb/API/LLDB.h" PATHS WITH_LLDB_INCLUDES)
    if(LLDB_H STREQUAL LLDB_H-NOTFOUND)
        find_path(LLDB_H "lldb/API/LLDB.h" PATHS "/usr/lib/llvm-3.5/include")
        if(LLDB_H STREQUAL LLDB_H-NOTFOUND)
            message(FATAL_ERROR "Cannot find LLDB.h. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
        endif()
    endif()

    # Add the parent's parent's directory to the include path
    get_filename_component(LLDB_H LLDB_H DIRECTORY)
    get_filename_component(LLDB_H LLDB_H DIRECTORY)
    include_directories(LLDB_H)

    set(ENABLE_SOSPLUGIN ON)
endif()

if(ENABLE_SOSPLUGIN)
    add_compile_options(-Wno-delete-non-virtual-dtor)

    include_directories(inc)
    set(SOURCES<commit_msg>Don't attempt to walk up the directory tree after finding LLDB.h.<commit_after>project(sosplugin)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(ENABLE_SOSPLUGIN OFF)

if(CLR_CMAKE_PLATFORM_UNIX)
    # Check for LLDB library
    find_library(LLDB NAMES lldb lldb-3.5 PATHS WITH_LLDB_LIBS)
    if(LLDB STREQUAL LLDB-NOTFOUND)
        message(FATAL_ERROR "Cannot find liblldb or liblldb-3.5. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
    endif()

    # Check for LLDB headers
    find_path(LLDB_H "lldb/API/LLDB.h" PATHS WITH_LLDB_INCLUDES)
    if(LLDB_H STREQUAL LLDB_H-NOTFOUND)
        find_path(LLDB_H "lldb/API/LLDB.h" PATHS "/usr/lib/llvm-3.5/include")
        if(LLDB_H STREQUAL LLDB_H-NOTFOUND)
            message(FATAL_ERROR "Cannot find LLDB.h. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
        endif()
    endif()
    include_directories(LLDB_H)

    set(ENABLE_SOSPLUGIN ON)
endif()

if(ENABLE_SOSPLUGIN)
    add_compile_options(-Wno-delete-non-virtual-dtor)

    include_directories(inc)
    set(SOURCES
{'fraction_non_alphanumeric': 0.08814455707360071, 'fraction_numerical': 0.00881445570736007, 'mean_word_length': 3.8297872340425534, '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': '661530', 'n_tokens_mistral': 919, 'n_tokens_neox': 868, 'n_words': 184}