<commit_before># -*- Mode: CMake; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */

MACRO(LEGIT_GENERATE_HEADERS DST)

    SET(TRACKERS_FILE "${DST}/trackers.h")

    FILE(WRITE "${TRACKERS_FILE}" "// Autogenerated file, do not edit! \n")

    FOREACH(TRACKER_HEADER ${LEGIT_TRACKERS})

        GET_SOURCE_FILE_PROPERTY(TRACKER_CLASS ${TRACKER_HEADER} LEGIT_TRACKER)

       # MESSAGE("Register: ${TRACKER_CLASS}")

        FILE(APPEND "${TRACKERS_FILE}" "#include \"${TRACKER_HEADER}\"\n")

    ENDFOREACH(TRACKER_HEADER)


ENDMACRO(LEGIT_GENERATE_HEADERS)


MACRO (LEGIT_ADD_SOURCES)
    FILE (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}/libs/legit" "${CMAKE_CURRENT_SOURCE_DIR}")

    FOREACH (_src ${ARGN})<commit_msg>Makefile inclusion okay when run by parent<commit_after># -*- Mode: CMake; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */

MACRO(LEGIT_GENERATE_HEADERS DST)

    SET(TRACKERS_FILE "${DST}/trackers.h")

    FILE(WRITE "${TRACKERS_FILE}" "// Autogenerated file, do not edit! \n")

    FOREACH(TRACKER_HEADER ${LEGIT_TRACKERS})

        GET_SOURCE_FILE_PROPERTY(TRACKER_CLASS ${TRACKER_HEADER} LEGIT_TRACKER)

       # MESSAGE("Register: ${TRACKER_CLASS}")

        FILE(APPEND "${TRACKERS_FILE}" "#include \"${TRACKER_HEADER}\"\n")

    ENDFOREACH(TRACKER_HEADER)


ENDMACRO(LEGIT_GENERATE_HEADERS)


MACRO (LEGIT_ADD_SOURCES)
    FILE (RELATIVE_PATH _relPath "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")

    FOREACH (_src ${ARGN})
{'fraction_non_alphanumeric': 0.14705882352941177, 'fraction_numerical': 0.00267379679144385, 'mean_word_length': 4.735632183908046, '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': '1532160', 'n_tokens_mistral': 598, 'n_tokens_neox': 564, 'n_words': 93}