<commit_before># This file is part of the "FnordMetric" project
#   Copyright (c) 2014 <NAME>, Google Inc.
#
# FnordMetric is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License v3.0. You should have received a
# copy of the GNU General Public License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 2.8.8)
project(libfnord-sstable)
include(FindPkgConfig)

option(ENABLE_TESTS "Build unit tests [default: ON]" ON)

include_directories(${PROJECT_BINARY_DIR})
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
include_directories(../)
include_directories(../3rdparty/)

find_package(Threads)

if(APPLE)
  set(CMAKE_CXX_FLAGS "-std=c++0x -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
else()
  set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
endif()

# sstable
add_library(fnord-cstable OBJECT
    CSTableBuilder.cc
    CSTableReader.cc
    CSTableWriter.cc
    ColumnWriter.cc
    BooleanColumnReader.cc
    BooleanColumnWriter.cc
    UInt32ColumnReader.cc
    UInt32ColumnWriter.cc
    UInt64ColumnReader.cc
    UInt64ColumnWriter.cc
    LEB128ColumnReader.cc
    LEB128ColumnWriter.cc
    BitPackedIntColumnReader.cc
    BitPackedIntColumnWriter.cc
    RecordMaterializer.cc
    StringColumnReader.cc
    StringColumnWriter.cc)

add_executable(tests/test-recordmaterializer
    $<TARGET_OBJECTS:fnord-base>
    $<TARGET_OBJECTS:fnord-msg>
    $<TARGET_OBJECTS:fnord-cstable>
    RecordMaterializer_test.cc)
<commit_msg>build fix<commit_after># This file is part of the "FnordMetric" project
#   Copyright (c) 2014 <NAME>, Google Inc.
#
# FnordMetric is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License v3.0. You should have received a
# copy of the GNU General Public License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
cmake_minimum_required(VERSION 2.8.8)
project(libfnord-sstable)
include(FindPkgConfig)

option(ENABLE_TESTS "Build unit tests [default: ON]" ON)

include_directories(${PROJECT_BINARY_DIR})
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/tests)
include_directories(../)
include_directories(../3rdparty/)

find_package(Threads)

if(APPLE)
  set(CMAKE_CXX_FLAGS "-std=c++0x -stdlib=libc++ ${CMAKE_CXX_FLAGS}")
else()
  set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
endif()

# sstable
add_library(fnord-cstable OBJECT
    CSTableBuilder.cc
    CSTableReader.cc
    CSTableWriter.cc
    ColumnWriter.cc
    BooleanColumnReader.cc
    BooleanColumnWriter.cc
    UInt32ColumnReader.cc
    UInt32ColumnWriter.cc
    UInt64ColumnReader.cc
    UInt64ColumnWriter.cc
    LEB128ColumnReader.cc
    LEB128ColumnWriter.cc
    BitPackedIntColumnReader.cc
    BitPackedIntColumnWriter.cc
    RecordMaterializer.cc
    StringColumnReader.cc
    StringColumnWriter.cc)

add_executable(tests/test-recordmaterializer
    $<TARGET_OBJECTS:fnord-base>
    $<TARGET_OBJECTS:fnord-msg>
    $<TARGET_OBJECTS:fnord-cstable>
    RecordMaterializer_test.cc)

target_link_libraries(tests/test-recordmaterializer ${CMAKE_THREAD_LIBS_INIT})
{'fraction_non_alphanumeric': 0.09650529015710163, 'fraction_numerical': 0.01667201025969862, 'mean_word_length': 4.909090909090909, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '788458', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1053, 'n_words': 219}