<commit_before>IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
  IF( CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.4" )
    # Disable this warning for older versions of GCC because it will
    # be triggered by some of the test cases.
    SET_SOURCE_FILES_PROPERTIES(
      test_io_gml.cc
      PROPERTIES COMPILE_FLAGS "-Wno-missing-field-initializers"
    )
  ENDIF()
ENDIF()

IF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
  # Ignore warnings related to the GNU statement expressions if we
  # compile with clang.
  ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-Wno-gnu-statement-expression" )
ENDIF()

# Optimizes for a useful debugging experience. While the test cases
# might run slightly faster if "real" optimizations were enabled, I
# like this flag for debugging.
ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-Og" )
ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-g" )

#
# The tests should always have these nasty flags enabled. What's the
# use of the test without them?<commit_msg>Ignoring incorrect warnings for older versions of GCC<commit_after>IF( CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
  IF( CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5.4" )
    # Disable this warning for older versions of GCC because it will
    # be triggered by some of the test cases.
    SET_SOURCE_FILES_PROPERTIES(
      test_io_pajek.cc
      test_io_gml.cc
      test_io_vtk.cc
      PROPERTIES COMPILE_FLAGS "-Wno-missing-field-initializers"
    )
  ENDIF()
ENDIF()

IF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
  # Ignore warnings related to the GNU statement expressions if we
  # compile with clang.
  ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-Wno-gnu-statement-expression" )
ENDIF()

# Optimizes for a useful debugging experience. While the test cases
# might run slightly faster if "real" optimizations were enabled, I
# like this flag for debugging.
ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-Og" )
ENABLE_IF_SUPPORTED( CMAKE_CXX_FLAGS "-g" )

#
# The tests should always have these nasty flags enabled. What's the
# use of the test without them?
{'fraction_non_alphanumeric': 0.06993006993006994, 'fraction_numerical': 0.001998001998001998, 'mean_word_length': 4.298941798941799, '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': '74595', 'n_tokens_mistral': 703, 'n_tokens_neox': 653, 'n_words': 214}