<commit_before>cmake_minimum_required (VERSION 2.8.11)
## Building Dynisnt 

## Dyninst libraries we need to link against
set(DYNINST_LIBRARY_COMMON  -lcommon)
set(DYNINST_LIBRARY_DYNC  -ldynC_API)
set(DYNINST_LIBRARY_DWARF  -ldynDwarf)
set(DYNINST_LIBRARY_ELF  -ldynElf)
set(DYNINST_LIBRARY_API_RT  -ldyninstAPI_RT)
set(DYNINST_LIBRARY_API  -ldyninstAPI)
set(DYNINST_LIBRARY_INSTAPI  -linstructionAPI)
set(DYNINST_LIBRARY_PARSE  -lparseAPI)
set(DYNINST_LIBRARY_PATCH  -lpatchAPI)
set(DYNINST_LIBRARY_PCONTROL  -lpcontrol)
set(DYNINST_LIBRARY_STACKWALK  -lstackwalk)
set(DYNINST_LIBRARY_SYMLITE  -lsymLite)
set(DYNINST_LIBRARY_SYMTAB  -lsymtabAPI)
set(DYNINST_VERSION "HEAD")


## Check if the machine is ORNL Titan
## If it is, we must select a specific version of dyninst
cmake_host_system_information(RESULT BUILD_HOST QUERY HOSTNAME)
if ("${BUILD_HOST}" MATCHES "(titan-ext)[1-7]")
	## We are on titan, use the following version of dyninst
	set(DYNINST_VERSION "a8252fd9ace7dd837f98b0db750c588560feea95")
endif("${BUILD_HOST}" MATCHES "(titan-ext)[1-7]")

if (NOT DEFINED LIBELF_LIBFILE)
	message(ERROR " LIBELF_LIBFILE is not set, set -DLIBELF_LIBFILE=<full path to libelf.so>")
endif(NOT DEFINED LIBELF_LIBFILE)

if (NOT DEFINED LIBELF_INCLUDE)
	message(ERROR " LIBELF_INCLUDE is not set, set -DLIBELF_INCLUDE=<directory of libelf inc>")
endif(NOT DEFINED LIBELF_INCLUDE)

if (NOT DEFINED LIBDWARF_LIBFILE)
	message(ERROR " LIBDWARF_LIBFILE is not set, set -DLIBDWARF_LIBFILE=<full path to libdwarf.so>")
endif(NOT DEFINED LIBDWARF_LIBFILE)

if (NOT DEFINED LIBDWARF_INCLUDE)
	message(ERROR " LIBDWARF_INCLUDE is not set, set -DLIBDWARF_INCLUDE=<directory of libdwarf inc>")
endif(NOT DEFINED LIBDWARF_INCLUDE)

## Check if existing dyninst install was passed
if (NOT DEFINED ${DYNINST_ROOT})<commit_msg>Added a message to alert when ORNL Titan is detected as build system<commit_after>cmake_minimum_required (VERSION 2.8.11)
## Building Dynisnt 

## Dyninst libraries we need to link against
set(DYNINST_LIBRARY_COMMON  -lcommon)
set(DYNINST_LIBRARY_DYNC  -ldynC_API)
set(DYNINST_LIBRARY_DWARF  -ldynDwarf)
set(DYNINST_LIBRARY_ELF  -ldynElf)
set(DYNINST_LIBRARY_API_RT  -ldyninstAPI_RT)
set(DYNINST_LIBRARY_API  -ldyninstAPI)
set(DYNINST_LIBRARY_INSTAPI  -linstructionAPI)
set(DYNINST_LIBRARY_PARSE  -lparseAPI)
set(DYNINST_LIBRARY_PATCH  -lpatchAPI)
set(DYNINST_LIBRARY_PCONTROL  -lpcontrol)
set(DYNINST_LIBRARY_STACKWALK  -lstackwalk)
set(DYNINST_LIBRARY_SYMLITE  -lsymLite)
set(DYNINST_LIBRARY_SYMTAB  -lsymtabAPI)
set(DYNINST_VERSION "HEAD")


## Check if the machine is ORNL Titan
## If it is, we must select a specific version of dyninst
cmake_host_system_information(RESULT BUILD_HOST QUERY HOSTNAME)
if ("${BUILD_HOST}" MATCHES "(titan-ext)[1-7]")
	## We are on titan, use the following version of dyninst
	message(INFO " We detected that we are on ORNL Titan, Using Dyninst REV a8252fd")
	set(DYNINST_VERSION "a8252fd9ace7dd837f98b0db750c588560feea95")
endif("${BUILD_HOST}" MATCHES "(titan-ext)[1-7]")

if (NOT DEFINED LIBELF_LIBFILE)
	message(ERROR " LIBELF_LIBFILE is not set, set -DLIBELF_LIBFILE=<full path to libelf.so>")
endif(NOT DEFINED LIBELF_LIBFILE)

if (NOT DEFINED LIBELF_INCLUDE)
	message(ERROR " LIBELF_INCLUDE is not set, set -DLIBELF_INCLUDE=<directory of libelf inc>")
endif(NOT DEFINED LIBELF_INCLUDE)

if (NOT DEFINED LIBDWARF_LIBFILE)
	message(ERROR " LIBDWARF_LIBFILE is not set, set -DLIBDWARF_LIBFILE=<full path to libdwarf.so>")
endif(NOT DEFINED LIBDWARF_LIBFILE)

if (NOT DEFINED LIBDWARF_INCLUDE)
	message(ERROR " LIBDWARF_INCLUDE is not set, set -DLIBDWARF_INCLUDE=<directory of libdwarf inc>")
endif(NOT DEFINED LIBDWARF_INCLUDE)

## Check if existing dyninst install was passed
if (NOT DEFINED ${DYNINST_ROOT})
{'fraction_non_alphanumeric': 0.08594997339010112, 'fraction_numerical': 0.017562533262373604, 'mean_word_length': 6.963983050847458, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5354182', 'n_tokens_mistral': 1611, 'n_tokens_neox': 1487, 'n_words': 344}