<commit_before># Check for settings from VXL that are incompatible with flags.

set(cmakefiles_dir
  "${vistk_binary_dir}/CMakeFiles")

if (VISTK_ENABLE_PEDANTIC)
  if (CMAKE_CROSSCOMPILING)
    message(WARNING "The `-pedantic` flag is not recommended when "
      "cross-compiling.")
  else ()
    set(vxl_has_float_decls_path
      "${cmakefiles_dir}/vxl_has_float_decls.cxx")
    file(WRITE "${vxl_has_float_decls_path}"
"
#include <config_compiler>

int
main()
{
#if VCL_CAN_STATIC_CONST_INIT_FLOAT
#error \"VCL_CAN_STATIC_CONST_INIT_FLOAT is defined\"
#endif

  return 0;
}
")

    try_compile(VXL_HAS_FLOAT_DECLS_COMPILE
      "${vistk_binary_dir}"
      "${vxl_has_float_decls_path}"<commit_msg>Fix some style in the vxl_tests code<commit_after># Check for settings from VXL that are incompatible with flags.

set(cmakefiles_dir
  "${vistk_binary_dir}/CMakeFiles")

if (VISTK_ENABLE_PEDANTIC)
  if (CMAKE_CROSSCOMPILING)
    message(WARNING "The `-pedantic` flag is not recommended when "
      "cross-compiling.")
  else ()
    set(vxl_has_float_decls_path
      "${cmakefiles_dir}/vxl_has_float_decls.cxx")
    file(WRITE "${vxl_has_float_decls_path}"
"
#include <config_compiler>

#include <cstdlib>

int
main()
{
#if VCL_CAN_STATIC_CONST_INIT_FLOAT
#error \"VCL_CAN_STATIC_CONST_INIT_FLOAT is defined\"
#endif

  return EXIT_SUCCESS;
}
")

    try_compile(VXL_HAS_FLOAT_DECLS_COMPILE
      "${vistk_binary_dir}"
      "${vxl_has_float_decls_path}"
{'fraction_non_alphanumeric': 0.10356652949245541, 'fraction_numerical': 0.0006858710562414266, 'mean_word_length': 5.130252100840337, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3804806', 'n_tokens_mistral': 573, 'n_tokens_neox': 560, 'n_words': 101}