<commit_before>## Copyright (C) 2011 Aldebaran Robotics


# This is to be used when the names of the
# flags have changed:
message(STATUS "using t001chain compatibility layer")

# Example:
# After calling:
#      _fix_flags(_res DEPENDS DEPENDENCIES
#          foo SRC foo.h foo.cpp DEPENDENCIES bar)
# _res equals:
#  "foo;SRC;foo.h;foo.cpp;DEPENDS;bar
function(_fix_flags _res _old _new)
  set(_out)
  foreach(_flag ${ARGN})
    string(REPLACE ${_old} ${_new} _new_flag ${_flag})
    list(APPEND _out ${_new_flag})
  endforeach()
  set(${_res} ${_out} PARENT_SCOPE)
endfunction()

function(sdk_add_include _name _subfolder)
  qi_warning("sdk_add_include is deprecated.

  Note:
    Assuming you have a foo.h in a bar library,
    calling this function lets you use:<commit_msg>cmake: qibuild/compat: include it only once, fix message<commit_after>## Copyright (C) 2011 <NAME>ics

if (_QI_COMPAT_CMAKE_)
  return()
endif()
set(_QI_COMPAT_CMAKE_ TRUE)

# This is to be used when the names of the
# flags have changed:
message(STATUS "Using t001chain compatibility layer")

# Example:
# After calling:
#      _fix_flags(_res DEPENDS DEPENDENCIES
#          foo SRC foo.h foo.cpp DEPENDENCIES bar)
# _res equals:
#  "foo;SRC;foo.h;foo.cpp;DEPENDS;bar
function(_fix_flags _res _old _new)
  set(_out)
  foreach(_flag ${ARGN})
    string(REPLACE ${_old} ${_new} _new_flag ${_flag})
    list(APPEND _out ${_new_flag})
  endforeach()
  set(${_res} ${_out} PARENT_SCOPE)
endfunction()

function(sdk_add_include _name _subfolder)
  qi_warning("sdk_add_include is deprecated.

  Note:
    Assuming you have a foo.h in a bar library,
    calling this function lets you use:
{'fraction_non_alphanumeric': 0.10589651022864019, 'fraction_numerical': 0.00842358604091456, 'mean_word_length': 4.543333333333333, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1535860', 'n_tokens_mistral': 619, 'n_tokens_neox': 597, 'n_words': 173}