<commit_before>cmake_minimum_required(VERSION 2.8)
project(Lpg)

file(GLOB_RECURSE formatted "*.c" "*.h")

find_program(LPG_CLANG_FORMAT NAMES clang-format clang-format-3.7 clang-format-3.6 PATHS "C:/Program Files/LLVM/bin")
add_custom_target(clang-format COMMAND ${LPG_CLANG_FORMAT} -i ${formatted} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})

if(MSVC)
	add_definitions(/WX /Wall /wd4820 /wd4255 /wd4201 /wd4204 /wd4710 /wd4711 /wd4221 /WX /D_WIN32_WINNT_WINTHRESHOLD=0 /DNTDDI_WIN7SP1=0 /DWINAPI_PARTITION_SYSTEM=0)
else()
	add_definitions(-std=gnu99 -Wall -Wextra -Wconversion -Werror -Wunused -Wundef -Wvla)
endif()

add_subdirectory(generic)
add_subdirectory(language)
add_subdirectory(ide)
add_subdirectory(tests)<commit_msg>do not try to use clang-format-3.6<commit_after>cmake_minimum_required(VERSION 2.8)
project(Lpg)

file(GLOB_RECURSE formatted "*.c" "*.h")

find_program(LPG_CLANG_FORMAT NAMES clang-format clang-format-3.7 PATHS "C:/Program Files/LLVM/bin")
add_custom_target(clang-format COMMAND ${LPG_CLANG_FORMAT} -i ${formatted} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})

if(MSVC)
	add_definitions(/WX /Wall /wd4820 /wd4255 /wd4201 /wd4204 /wd4710 /wd4711 /wd4221 /WX /D_WIN32_WINNT_WINTHRESHOLD=0 /DNTDDI_WIN7SP1=0 /DWINAPI_PARTITION_SYSTEM=0)
else()
	add_definitions(-std=gnu99 -Wall -Wextra -Wconversion -Werror -Wunused -Wundef -Wvla)
endif()

add_subdirectory(generic)
add_subdirectory(language)
add_subdirectory(ide)
add_subdirectory(tests)
{'fraction_non_alphanumeric': 0.12225274725274725, 'fraction_numerical': 0.059065934065934064, 'mean_word_length': 6.791443850267379, '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': '3252192', 'n_tokens_mistral': 649, 'n_tokens_neox': 593, 'n_words': 103}