<commit_before>cmake_minimum_required(VERSION 2.8)

# Enable compiler warnings.
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

# Disable C++ exceptions and enable C++11 globaly.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-unwind-tables -fno-asynchronous-unwind-tables -Wno-int-to-void-pointer-cast")

# Enable debugging.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1 -g -fno-omit-frame-pointer -ferror-limit=100 -w")

# Enable address sanitizer (overflows & shit).
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address")

# Build third party dependencies.
add_subdirectory(third_party)

# Build related libraries.
add_subdirectory(src/libbinary)
add_subdirectory(src/libdisassembly)
add_subdirectory(src/libemulation)
# add_subdirectory(src/libsymbolic)

# Build the tools.
add_subdirectory(src/tools)

# Build the bindings.
add_subdirectory(bindings)
<commit_msg>Cleaned up the main cmakefile.<commit_after>cmake_minimum_required(VERSION 2.8)

# Options.
option(DEBUG "Build with debugging on" ON)

# Enable compiler warnings.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

# Disable C++ exceptions.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-unwind-tables -fno-asynchronous-unwind-tables")

# Enable debugging.
if (DEBUG)
    message(STATUS "Debugging is ON")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O1 -g -fno-omit-frame-pointer -w")
endif(DEBUG)

# Build third party dependencies.
add_subdirectory(third_party)

# Build related libraries.
add_subdirectory(src/libbinary)
add_subdirectory(src/libdisassembly)
add_subdirectory(src/libemulation)

# Build the tools.
add_subdirectory(src/tools)

# Build the bindings.
add_subdirectory(bindings)

{'fraction_non_alphanumeric': 0.11658653846153846, 'fraction_numerical': 0.006610576923076923, 'mean_word_length': 6.270742358078603, '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': '1248269', 'n_tokens_mistral': 626, 'n_tokens_neox': 582, 'n_words': 117}