<commit_before>#   Copyright 2015 <NAME>
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
INCLUDE_DIRECTORIES( ${${PROJECT_NAME}_INCLUDE_DIR} )
INCLUDE_DIRECTORIES( ${${PROJECT_NAME}_EXAMPLE_DIR}/examples )

ADD_EXECUTABLE( qtl_estimator qtl_estimator.cpp )
SET_TARGET_PROPERTIES( qtl_estimator PROPERTIES COMPILE_DEFINITIONS "USE_BLOCK_SIZE_64;USE_INLINE_DYNAMIC_AND_CLASSIFY" )   # binary sequence combination determined by experimentation
TARGET_LINK_LIBRARIES( qtl_estimator ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )

LIST(APPEND PROG_NAME "iterate")
LIST(APPEND PROG_NAME "scan")
LIST(APPEND PROG_NAME "switch")
LIST(APPEND PROG_NAME "inline")
LIST(APPEND PROG_NAME "inline_dynamic")
LIST(APPEND PROG_NAME "vector")

LIST(APPEND WALKER_OPT "USE_ITERATE_CLASSIFY")  # USE_ITERATE_CLASSIFY is never used with qtl compilation
LIST(APPEND WALKER_OPT "USE_SCAN_AND_CLASSIFY")
LIST(APPEND WALKER_OPT "USE_SCAN_AND_CLASSIFY_SWITCH")
LIST(APPEND WALKER_OPT "USE_INLINE_AND_CLASSIFY")
LIST(APPEND WALKER_OPT "USE_INLINE_DYNAMIC_AND_CLASSIFY")
LIST(APPEND WALKER_OPT "USE_VECTOR_SUBSET")

set(WORD_SIZE_OPT "USE_BLOCK_SIZE_")    # USE_BLOCK_SIZE_64 is never used in qtl compilation

LIST(APPEND WORD_SIZE "32")
LIST(APPEND WORD_SIZE "64")

foreach( wsize ${WORD_SIZE} )
    MESSAGE( STATUS "Got word size ${wsize}" )
    SET( opt_idx 0)
    foreach( pname  ${PROG_NAME} )
        SET( tmp "qtl_estimator_${pname}_${wsize}")
        LIST( GET WALKER_OPT ${opt_idx} tmp_walker)
        SET( tmp_opts "${WORD_SIZE_OPT}${wsize};${tmp_walker}")
        MESSAGE( STATUS "Generating Make for ${tmp} -> ${tmp_opts}")

        ADD_EXECUTABLE( ${tmp} qtl_estimator.cpp )
        SET_TARGET_PROPERTIES( ${tmp} PROPERTIES COMPILE_DEFINITIONS "${tmp_opts}")
        TARGET_LINK_LIBRARIES( ${tmp} ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )
        MATH(EXPR opt_idx "${opt_idx}+1")

        LIST( APPEND TEST_TARGETS ${tmp} )
    endforeach(pname)
endforeach(wsize)

ADD_CUSTOM_TARGET(test_targets DEPENDS ${TEST_TARGETS})

ADD_EXECUTABLE( qtl_estimator_mutrec qtl_estimator.cpp )
SET_TARGET_PROPERTIES( qtl_estimator_mutrec PROPERTIES COMPILE_DEFINITIONS "USE_MUTATE_AND_RECOMBINE")
TARGET_LINK_LIBRARIES( qtl_estimator_mutrec ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )<commit_msg>Removed experimental configurations for executables<commit_after>#   Copyright 2015 <NAME>
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
INCLUDE_DIRECTORIES( ${${PROJECT_NAME}_INCLUDE_DIR} )
INCLUDE_DIRECTORIES( ${${PROJECT_NAME}_EXAMPLE_DIR}/examples )

ADD_EXECUTABLE( qtl_estimator qtl_estimator.cpp )
SET_TARGET_PROPERTIES( qtl_estimator PROPERTIES COMPILE_DEFINITIONS "USE_BLOCK_SIZE_64;USE_INLINE_DYNAMIC_AND_CLASSIFY" )   # binary sequence combination determined by experimentation
TARGET_LINK_LIBRARIES( qtl_estimator ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )

ADD_EXECUTABLE( qtl_estimator_vector qtl_estimator.cpp )
SET_TARGET_PROPERTIES( qtl_estimator_vector PROPERTIES COMPILE_DEFINITIONS "USE_BLOCK_SIZE_64;USE_VECTOR_SUBSET" )
TARGET_LINK_LIBRARIES( qtl_estimator_vector ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )

#LIST(APPEND PROG_NAME "iterate")
#LIST(APPEND PROG_NAME "scan")
#LIST(APPEND PROG_NAME "switch")
#LIST(APPEND PROG_NAME "inline")
#LIST(APPEND PROG_NAME "inline_dynamic")
#LIST(APPEND PROG_NAME "vector")
#
#LIST(APPEND WALKER_OPT "USE_ITERATE_CLASSIFY")  # USE_ITERATE_CLASSIFY is never used with qtl compilation
#LIST(APPEND WALKER_OPT "USE_SCAN_AND_CLASSIFY")
#LIST(APPEND WALKER_OPT "USE_SCAN_AND_CLASSIFY_SWITCH")
#LIST(APPEND WALKER_OPT "USE_INLINE_AND_CLASSIFY")
#LIST(APPEND WALKER_OPT "USE_INLINE_DYNAMIC_AND_CLASSIFY")
#LIST(APPEND WALKER_OPT "USE_VECTOR_SUBSET")
#
#set(WORD_SIZE_OPT "USE_BLOCK_SIZE_")    # USE_BLOCK_SIZE_64 is never used in qtl compilation
#
#LIST(APPEND WORD_SIZE "32")
#LIST(APPEND WORD_SIZE "64")
#
#foreach( wsize ${WORD_SIZE} )
#    MESSAGE( STATUS "Got word size ${wsize}" )
#    SET( opt_idx 0)
#    foreach( pname  ${PROG_NAME} )
#        SET( tmp "qtl_estimator_${pname}_${wsize}")
#        LIST( GET WALKER_OPT ${opt_idx} tmp_walker)
#        SET( tmp_opts "${WORD_SIZE_OPT}${wsize};${tmp_walker}")
#        MESSAGE( STATUS "Generating Make for ${tmp} -> ${tmp_opts}")
#
#        ADD_EXECUTABLE( ${tmp} qtl_estimator.cpp )
#        SET_TARGET_PROPERTIES( ${tmp} PROPERTIES COMPILE_DEFINITIONS "${tmp_opts}")
#        TARGET_LINK_LIBRARIES( ${tmp} ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )
#        MATH(EXPR opt_idx "${opt_idx}+1")
#
#        LIST( APPEND TEST_TARGETS ${tmp} )
#    endforeach(pname)
#endforeach(wsize)
#
#ADD_CUSTOM_TARGET(test_targets DEPENDS ${TEST_TARGETS})

ADD_EXECUTABLE( qtl_estimator_mutrec qtl_estimator.cpp )
SET_TARGET_PROPERTIES( qtl_estimator_mutrec PROPERTIES COMPILE_DEFINITIONS "USE_MUTATE_AND_RECOMBINE")
TARGET_LINK_LIBRARIES( qtl_estimator_mutrec ${COMMON_LIBRARIES} ${PROJECT_NAME}_utility ${PROJECT_NAME}_commandline ${PROJECT_NAME}_fitmetric )
{'fraction_non_alphanumeric': 0.09852216748768473, 'fraction_numerical': 0.006038455426664548, 'mean_word_length': 6.439716312056738, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6785699', 'n_tokens_mistral': 2294, 'n_tokens_neox': 2212, 'n_words': 492}