<commit_before>cmake_minimum_required(VERSION 2.6)

project(cotsb_server)

add_definitions(-std=c++11 -g -O0 -I../ -I../../common/)

file(GLOB_RECURSE cotsb_headers "cotsb/*.h")
file(GLOB_RECURSE cotsb_sources "cotsb/*.cpp")

file(GLOB_RECURSE common_headers "../common/*.h")
file(GLOB_RECURSE common_sources "../common/*.cpp")
file(GLOB_RECURSE common_c_sources "../common/*.c")

set(cotsb_include_dirs "")
foreach (_file ${cotsb_headers})
    get_filename_component(_dir ${_file} PATH)
    list (APPEND cotsb_include_dirs ${_dir})
endforeach()

foreach (_file ${common_headers})
    get_filename_component(_dir ${_file} PATH)
    list (APPEND cotsb_include_dirs ${_dir})
endforeach()
list(REMOVE_DUPLICATES cotsb_include_dirs)

include_directories(${cotsb_include_dirs})

add_executable(server "main.cpp" ${cotsb_sources} ${common_sources} ${common_c_sources})
target_link_libraries(server sfml-system sfml-network sfml-graphics sfml-window sfml-audio pthread)<commit_msg>- Fixed cmake to use CXX flags variable instead of add_definition<commit_after>cmake_minimum_required(VERSION 2.6)

project(cotsb_server)

set(CMAKE_CXX_FLAGS "-std=c++11 -g -O0 -I../ -I../../common/")

file(GLOB_RECURSE cotsb_headers "cotsb/*.h")
file(GLOB_RECURSE cotsb_sources "cotsb/*.cpp")

file(GLOB_RECURSE common_headers "../common/*.h")
file(GLOB_RECURSE common_sources "../common/*.cpp")
file(GLOB_RECURSE common_c_sources "../common/*.c")

set(cotsb_include_dirs "")
foreach (_file ${cotsb_headers})
    get_filename_component(_dir ${_file} PATH)
    list (APPEND cotsb_include_dirs ${_dir})
endforeach()

foreach (_file ${common_headers})
    get_filename_component(_dir ${_file} PATH)
    list (APPEND cotsb_include_dirs ${_dir})
endforeach()
list(REMOVE_DUPLICATES cotsb_include_dirs)

include_directories(${cotsb_include_dirs})

add_executable(server "main.cpp" ${cotsb_sources} ${common_sources} ${common_c_sources})
target_link_libraries(server sfml-system sfml-network sfml-graphics sfml-window sfml-audio pthread)
{'fraction_non_alphanumeric': 0.1390827517447657, 'fraction_numerical': 0.004985044865403789, 'mean_word_length': 6.573584905660377, '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': '1838130', 'n_tokens_mistral': 765, 'n_tokens_neox': 737, 'n_words': 132}