<commit_before>cmake_minimum_required(VERSION 2.8)

project(scc)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})

include_directories(include ${CMAKE_CURRENT_BINARY_DIR})

# bison and flex
find_package(BISON)
find_package(FLEX)
flex_target(SCANNER source/scc.l ${CMAKE_CURRENT_BINARY_DIR}/scc_lex.c)
bison_target(PARSER source/scc.y ${CMAKE_CURRENT_BINARY_DIR}/scc_yacc.c)
ADD_FLEX_BISON_DEPENDENCY(SCANNER PARSER)

file(GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/source/*.c")

add_executable(scc ${SOURCE_FILES}
                   ${BISON_PARSER_OUTPUTS}
                   ${FLEX_SCANNER_OUTPUTS})<commit_msg>Add c99 flags.<commit_after>cmake_minimum_required(VERSION 2.8)

project(scc)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")

include_directories(include ${CMAKE_CURRENT_BINARY_DIR})

# bison and flex
find_package(BISON)
find_package(FLEX)
flex_target(SCANNER source/scc.l ${CMAKE_CURRENT_BINARY_DIR}/scc_lex.c)
bison_target(PARSER source/scc.y ${CMAKE_CURRENT_BINARY_DIR}/scc_yacc.c)
ADD_FLEX_BISON_DEPENDENCY(SCANNER PARSER)

file(GLOB_RECURSE SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/source/*.c")

add_executable(scc ${SOURCE_FILES}
                   ${BISON_PARSER_OUTPUTS}
                   ${FLEX_SCANNER_OUTPUTS})
{'fraction_non_alphanumeric': 0.10760953112990007, 'fraction_numerical': 0.006149116064565719, 'mean_word_length': 6.44, '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': '293395', 'n_tokens_mistral': 542, 'n_tokens_neox': 515, 'n_words': 58}