<commit_before>site_name(HOSTNAME)
string(REPLACE "-" "_" HOSTNAME ${HOSTNAME})
string(REPLACE "." "_" HOSTNAME ${HOSTNAME})

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/foo
)

if (NOT SQLATE_DATABASE_HOST)
  set(SQLATE_DATABASE_HOST "sqlate-postgres")
endif()

if (NOT SQLATE_DATABASE_USER)
  set(SQLATE_DATABASE_USER "sqlate.user")
endif()

if (NOT SQLATE_DATABASE_PASSWORD)
  set(SQLATE_DATABASE_PASSWORD "<PASSWORD>")
endif()


set(testcommon_srcs testbase.cpp testschema.cpp )
add_library(testcommon STATIC ${testcommon_srcs})

macro(add_sql_unittest _source)
  set(_test ${_source})<commit_msg>Use MAKE_C_IDENTIFIER where available and needed.<commit_after>site_name(HOSTNAME)
if (CMAKE_VERSION VERSION_LESS 2.8.11)
  string(REPLACE "-" "_" HOSTNAME ${HOSTNAME})
  string(REPLACE "." "_" HOSTNAME ${HOSTNAME})
else()
  string(MAKE_C_IDENTIFIER ${HOSTNAME} HOSTNAME)
endif()

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/foo
)

if (NOT SQLATE_DATABASE_HOST)
  set(SQLATE_DATABASE_HOST "sqlate-postgres")
endif()

if (NOT SQLATE_DATABASE_USER)
  set(SQLATE_DATABASE_USER "sqlate.user")
endif()

if (NOT SQLATE_DATABASE_PASSWORD)
  set(SQLATE_DATABASE_PASSWORD "<PASSWORD>")
endif()


set(testcommon_srcs testbase.cpp testschema.cpp )
add_library(testcommon STATIC ${testcommon_srcs})

macro(add_sql_unittest _source)
  set(_test ${_source})
{'fraction_non_alphanumeric': 0.12179930795847752, 'fraction_numerical': 0.002768166089965398, 'mean_word_length': 7.607142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4971077', 'n_tokens_mistral': 580, 'n_tokens_neox': 565, 'n_words': 91}