<commit_before># Minimal CMakeLists.txt for the AWS SDK for C++.
cmake_minimum_required(VERSION 3.2)

# Build using the C++ standard version 11.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Use shared libraries, which is the default for the AWS C++ SDK build.
option(BUILD_SHARED_LIBS "Build shared libraries" ON)

# "my-example" is just an example value.
project(my-example)

# By default the AWS SDK for C++ is installed into /usr/local.
# You may need to adjust the default include path on some platforms.
# include_directories(/usr/local/include)

# Locate the AWS SDK for C++ package.
# "s3" and "cloudtrail" are just example values.
find_package(AWSSDK REQUIRED COMPONENTS s3 cloudtrail ...)

# The executable name and its sourcefiles.
add_executable(my-example my-example.cpp)

# The libraries used by your executable.
target_link_libraries(my-example ${AWSSDK_LINK_LIBRARIES})<commit_msg>Use target_compile_features instead of CMAKE_CXX_STANDARD.<commit_after># Minimal CMakeLists.txt for the AWS SDK for C++.
cmake_minimum_required(VERSION 3.2)

# Use shared libraries, which is the default for the AWS C++ SDK build.
option(BUILD_SHARED_LIBS "Build shared libraries" ON)

# "my-example" is just an example value.
project(my-example)

# By default the AWS SDK for C++ is installed into /usr/local.
# You may need to adjust the default include path on some platforms.
# include_directories(/usr/local/include)

# Locate the AWS SDK for C++ package.
# "s3" and "cloudtrail" are just example values.
find_package(AWSSDK REQUIRED COMPONENTS s3 cloudtrail ...)

# The executable name and its sourcefiles.
add_executable(my-example my-example.cpp)

# Build using the C++ standard version 11.
target_compile_features(my-example PUBLIC cxx_std_11)

# The libraries used by your executable.
target_link_libraries(my-example ${AWSSDK_LINK_LIBRARIES})
{'fraction_non_alphanumeric': 0.0855614973262032, 'fraction_numerical': 0.008556149732620321, 'mean_word_length': 5.154605263157895, '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': '970515', 'n_tokens_mistral': 632, 'n_tokens_neox': 584, 'n_words': 214}