<commit_before>cmake_minimum_required(VERSION 2.6)
if(COMMAND cmake_policy)
    cmake_policy(VERSION 2.6)
endif(COMMAND cmake_policy)

project( tmux-mem-cpu-load )

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE)
endif(NOT CMAKE_BUILD_TYPE)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_executable(tmux-mem-cpu-load tmux-mem-cpu-load.cpp)
install(TARGETS tmux-mem-cpu-load
  RUNTIME DESTINATION bin
  )

include( CTest )
if( BUILD_TESTING )
  add_test( NAME usage
    COMMAND tmux-mem-cpu-load -h )

  add_test( NAME no_arguments
    COMMAND tmux-mem-cpu-load )

  add_test( NAME colors
    COMMAND tmux-mem-cpu-load --colors )

  add_test( NAME arguments
    COMMAND tmux-mem-cpu-load --colors 1 4 )

  add_test( NAME invalid_status_interval
    COMMAND tmux-mem-cpu-load -1 4 )

  add_test( NAME invalid_graph_lines
    COMMAND tmux-mem-cpu-load 1 -4 )

  set_tests_properties( usage
    invalid_status_interval
    invalid_graph_lines
    PROPERTIES WILL_FAIL TRUE )
endif()
<commit_msg>Change the default build type to MinSizeRel.<commit_after>cmake_minimum_required(VERSION 2.6)
if(COMMAND cmake_policy)
    cmake_policy(VERSION 2.6)
endif(COMMAND cmake_policy)

project( tmux-mem-cpu-load )

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING
      "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
      FORCE)
endif(NOT CMAKE_BUILD_TYPE)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

add_executable(tmux-mem-cpu-load tmux-mem-cpu-load.cpp)
install(TARGETS tmux-mem-cpu-load
  RUNTIME DESTINATION bin
  )

include( CTest )
if( BUILD_TESTING )
  add_test( NAME usage
    COMMAND tmux-mem-cpu-load -h )

  add_test( NAME no_arguments
    COMMAND tmux-mem-cpu-load )

  add_test( NAME colors
    COMMAND tmux-mem-cpu-load --colors )

  add_test( NAME arguments
    COMMAND tmux-mem-cpu-load --colors 1 4 )

  add_test( NAME invalid_status_interval
    COMMAND tmux-mem-cpu-load -1 4 )

  add_test( NAME invalid_graph_lines
    COMMAND tmux-mem-cpu-load 1 -4 )

  set_tests_properties( usage
    invalid_status_interval
    invalid_graph_lines
    PROPERTIES WILL_FAIL TRUE )
endif()

{'fraction_non_alphanumeric': 0.08180227471566054, 'fraction_numerical': 0.008748906386701663, 'mean_word_length': 3.993449781659389, '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': '3984200', 'n_tokens_mistral': 877, 'n_tokens_neox': 814, 'n_words': 186}