<commit_before># -*- mode: CMake; tab-width: 2; indent-tabs-mode: nil; -*-

cmake_minimum_required(VERSION 2.8.12)

project(viewer)

# Extra compiler flags.
if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
  set(compiler_flags "/MP /WX")
else()
  set(compiler_flags "-W -Wall -Wextra -pedantic -Werror")
  set(cxx_flags "-std=c++11")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${compiler_flags}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${compiler_flags} ${cxx_flags}")

if(APPLE)
  # Use libc++ on Mac OS X.
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")

  # Deployment target.
  set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")
endif()

if(UNIX AND NOT APPLE)
  # Use ld.gold on Linux.
  execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE ld_version)<commit_msg>Drop OS X deployment target<commit_after># -*- mode: CMake; tab-width: 2; indent-tabs-mode: nil; -*-

cmake_minimum_required(VERSION 2.8.12)

project(viewer)

# Extra compiler flags.
if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
  set(compiler_flags "/MP /WX")
else()
  set(compiler_flags "-W -Wall -Wextra -pedantic -Werror")
  set(cxx_flags "-std=c++11")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${compiler_flags}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${compiler_flags} ${cxx_flags}")

if(APPLE)
  # Use libc++ on Mac OS X.
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++")
endif()

if(UNIX AND NOT APPLE)
  # Use ld.gold on Linux.
  execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE ld_version)
{'fraction_non_alphanumeric': 0.15424912689173456, 'fraction_numerical': 0.00989522700814901, 'mean_word_length': 5.794466403162056, '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': '2312848', 'n_tokens_mistral': 753, 'n_tokens_neox': 695, 'n_words': 137}