<commit_before># Copyright (c) 2015 <NAME>
# All rights reserved


# Project configuration.
cmake_minimum_required(VERSION 3.0)
project(lingo CXX)
enable_testing()


# Boost dependencies
find_package(Boost 1.55.0 REQUIRED
  COMPONENTS system filesystem)


# Determine LLVM configuration from llvm-config
#
# Note that these all come in as strings that need to
# be "sanitized" prior to processing. For the LLVM
# libraries, we need to make separate targets. 
execute_process(COMMAND llvm-config --includedir OUTPUT_VARIABLE LLVM_INCLUDE_STR)
execute_process(COMMAND llvm-config --libdir OUTPUT_VARIABLE LLVM_LIBRARY_STR)
execute_process(COMMAND llvm-config --libfiles OUTPUT_VARIABLE LLVM_LIBS_IN)
string(STRIP ${LLVM_INCLUDE_STR} LLVM_INCLUDE_DIR)
string(STRIP ${LLVM_LIBRARY_STR} LLVM_LIBRARY_DIR)
set(LLVM_LIBS)
separate_arguments(LLVM_LIBS_ARGS UNIX_COMMAND ${LLVM_LIBS_IN})
foreach(lib ${LLVM_LIBS_ARGS})
  list(APPEND LLVM_LIBS ${lib})
endforeach()


# Compiler configuration
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++1y")


# Build configuration
include_directories(. ${Boost_INCLUDE_DIRS} ${LLVM_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS} ${LLVM_LIBRARY_DIR})


add_executable(beaker 
  main.cpp<commit_msg>Rethink how LLVM is linked.<commit_after># Copyright (c) 2015 <NAME>
# All rights reserved


# Project configuration.
cmake_minimum_required(VERSION 3.0)
project(lingo CXX)
enable_testing()


# Boost dependencies
find_package(Boost 1.55.0 REQUIRED
  COMPONENTS system filesystem)


# Determine LLVM configuration from llvm-config
#
# Note that these all come in as strings that need to
# be "sanitized" prior to processing. For the LLVM
# libraries, we need to make separate targets. 
execute_process(COMMAND llvm-config --includedir OUTPUT_VARIABLE LLVM_INCLUDE_STR)
execute_process(COMMAND llvm-config --libdir OUTPUT_VARIABLE LLVM_LIBRARY_STR)
# execute_process(COMMAND llvm-config --libfiles OUTPUT_VARIABLE LLVM_LIBS_IN)
execute_process(COMMAND llvm-config --libs OUTPUT_VARIABLE LLVM_LIBS_STR)

string(STRIP ${LLVM_INCLUDE_STR} LLVM_INCLUDE_DIR)
string(STRIP ${LLVM_LIBRARY_STR} LLVM_LIBRARY_DIR)
string(STRIP ${LLVM_LIBS_STR} LLVM_LIBS_IN)

set(LLVM_LIBS)
separate_arguments(LLVM_LIBS_ARGS UNIX_COMMAND ${LLVM_LIBS_IN})
foreach(lib ${LLVM_LIBS_ARGS})
  string(SUBSTRING ${lib} 2 -1 s1)
  list(APPEND LLVM_LIBS ${s1})
endforeach()


# Compiler configuration
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++1y")


# Build configuration
include_directories(. ${Boost_INCLUDE_DIRS} ${LLVM_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIRS} ${LLVM_LIBRARY_DIR})


add_executable(beaker 
  main.cpp
{'fraction_non_alphanumeric': 0.0907715582450832, 'fraction_numerical': 0.009833585476550681, 'mean_word_length': 7.113496932515337, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4514066', 'n_tokens_mistral': 1000, 'n_tokens_neox': 933, 'n_words': 216}