<commit_before># Copyright (c) 2015, Pivotal Software, Inc. All Rights Reserved.

include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include"
                    "${CMAKE_SOURCE_DIR}/libgpdbcost/include"
                    "${CMAKE_SOURCE_DIR}/libgpopt/include"
                    "${CMAKE_SOURCE_DIR}/libnaucrates/include")
# for the generated config.h file.
include_directories(${PROJECT_BINARY_DIR}/libgpos/include/)

# Some tests use C99 long long integer constants, but the C++ dialect may not
# explicitly include C99. We supress such errors here.
check_cxx_compiler_flag("-Wno-long-long"
                        COMPILER_HAS_WNO_LONG_LONG)
if (COMPILER_HAS_WNO_LONG_LONG)
    set_source_files_properties(src/unittest/dxl/statistics/CStatisticsTest.cpp
                                src/unittest/dxl/statistics/CJoinCardinalityTest.cpp
                                src/unittest/gpopt/base/CConstraintTest.cpp
                                src/unittest/gpopt/metadata/CPartConstraintTest.cpp
                                PROPERTIES COMPILE_FLAGS "-Wno-long-long")
endif()

add_executable(gporca_test
               include/unittest/base.h
               include/unittest/dxl/statistics/CCardinalityTestUtils.h
               include/unittest/dxl/statistics/CStatisticsTest.h
               include/unittest/dxl/statistics/CJoinCardinalityTest.h
               include/unittest/gpopt/base/CConstraintTest.h
               include/unittest/gpopt/CTestUtils.inl
               include/unittest/gpopt/metadata/CPartConstraintTest.h

               src/startup/main.cpp
               include/unittest/gpopt/CTestUtils.h
               src/unittest/CTestUtils.cpp
               include/unittest/gpopt/CConstExprEvaluatorForDates.h
               src/unittest/CConstExprEvaluatorForDates.cpp
               include/unittest/gpopt/CSubqueryTestUtils.h<commit_msg>Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR<commit_after># Copyright (c) 2015, Pivotal Software, Inc. All Rights Reserved.

include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include"
                    "${PROJECT_SOURCE_DIR}/libgpdbcost/include"
                    "${PROJECT_SOURCE_DIR}/libgpopt/include"
                    "${PROJECT_SOURCE_DIR}/libnaucrates/include")
# for the generated config.h file.
include_directories(${PROJECT_BINARY_DIR}/libgpos/include/)

# Some tests use C99 long long integer constants, but the C++ dialect may not
# explicitly include C99. We supress such errors here.
check_cxx_compiler_flag("-Wno-long-long"
                        COMPILER_HAS_WNO_LONG_LONG)
if (COMPILER_HAS_WNO_LONG_LONG)
    set_source_files_properties(src/unittest/dxl/statistics/CStatisticsTest.cpp
                                src/unittest/dxl/statistics/CJoinCardinalityTest.cpp
                                src/unittest/gpopt/base/CConstraintTest.cpp
                                src/unittest/gpopt/metadata/CPartConstraintTest.cpp
                                PROPERTIES COMPILE_FLAGS "-Wno-long-long")
endif()

add_executable(gporca_test
               include/unittest/base.h
               include/unittest/dxl/statistics/CCardinalityTestUtils.h
               include/unittest/dxl/statistics/CStatisticsTest.h
               include/unittest/dxl/statistics/CJoinCardinalityTest.h
               include/unittest/gpopt/base/CConstraintTest.h
               include/unittest/gpopt/CTestUtils.inl
               include/unittest/gpopt/metadata/CPartConstraintTest.h

               src/startup/main.cpp
               include/unittest/gpopt/CTestUtils.h
               src/unittest/CTestUtils.cpp
               include/unittest/gpopt/CConstExprEvaluatorForDates.h
               src/unittest/CConstExprEvaluatorForDates.cpp
               include/unittest/gpopt/CSubqueryTestUtils.h
{'fraction_non_alphanumeric': 0.07869025613942435, 'fraction_numerical': 0.004224980195405334, 'mean_word_length': 2.2515021459227467, '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': '881539', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1104, 'n_words': 139}