<commit_before>## See http://www.cmake.org/Wiki/CMake_Useful_Variables for more variables to set
cmake_minimum_required(VERSION 2.6)

#Set CMAKE_MODULE_PATH
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PV_DIR}/docs/cmake/Modules/")

set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_C_FLAGS_RELEASE "-g0 -O3")
set(CMAKE_CXX_FLAGS_RELEASE "-g0 -O3")

if (NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Debug)
endif (NOT CMAKE_BUILD_TYPE)

set(PV_SOURCE_DIR "${PV_DIR}/src")
set(PV_BINARY_DIR "${PV_DIR}/lib")
set(PROJECT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src") # should we move source files to a src directory?
set(PROJECT_BINARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_BUILD_TYPE}")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})

if (NOT GDAL_FOUND)
    find_package(GDAL REQUIRED)
endif (NOT GDAL_FOUND)

if (NOT MPI_C_FOUND OR NOT MPI_CXX_FOUND)
    find_package(MPI REQUIRED)
set(CMAKE_C_COMPILER "${MPI_C_COMPILER}")
set(CMAKE_CXX_COMPILER "${MPI_CXX_COMPILER}")
endif (NOT MPI_C_FOUND OR NOT MPI_CXX_FOUND)

if (NOT LIBSNDFILE_FOUND)
    find_package(LIBSNDFILE)
endif (NOT LIBSNDFILE_FOUND)

# Header files
include_directories(${PV_SOURCE_DIR})
include_directories(${GDAL_INCLUDE_DIR})
IF(LIBSNDFILE_FOUND)
    include_directories(${LIBSNDFILE_INCLUDE_DIR})
ENDIF(LIBSNDFILE_FOUND)

# Link to binary files
link_directories(${PV_BINARY_DIR})


# Add executable
file(GLOB libSrcCPP ${PROJECT_SOURCE_DIR}/*.cpp)
file(GLOB libSrcC ${PROJECT_SOURCE_DIR}/*.c)
add_executable(soundAnalysis ${libSrcCPP} ${libSrcC})

# Link executable to PV 
target_link_libraries(soundAnalysis pv)

# Link executable to external libraries
target_link_libraries(soundAnalysis ${GDAL_LIBRARY})
IF(LIBSNDFILE_FOUND)
   target_link_libraries(soundAnalysis ${LIBSNDFILE_LIBRARY})
ENDIF(LIBSNDFILE_FOUND)<commit_msg>Add -DPV_USE_SNDFILE to soundAnalysis/CMakeLists.txt<commit_after>## See http://www.cmake.org/Wiki/CMake_Useful_Variables for more variables to set
cmake_minimum_required(VERSION 2.6)

#Set CMAKE_MODULE_PATH
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PV_DIR}/docs/cmake/Modules/")

set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_CXX_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_C_FLAGS_RELEASE "-g0 -O3")
set(CMAKE_CXX_FLAGS_RELEASE "-g0 -O3")

if (NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Debug)
endif (NOT CMAKE_BUILD_TYPE)

set(PV_SOURCE_DIR "${PV_DIR}/src")
set(PV_BINARY_DIR "${PV_DIR}/lib")
set(PROJECT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src") # should we move source files to a src directory?
set(PROJECT_BINARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_BUILD_TYPE}")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})

if (NOT GDAL_FOUND)
    find_package(GDAL REQUIRED)
endif (NOT GDAL_FOUND)

if (NOT MPI_C_FOUND OR NOT MPI_CXX_FOUND)
    find_package(MPI REQUIRED)
set(CMAKE_C_COMPILER "${MPI_C_COMPILER}")
set(CMAKE_CXX_COMPILER "${MPI_CXX_COMPILER}")
endif (NOT MPI_C_FOUND OR NOT MPI_CXX_FOUND)

if (NOT LIBSNDFILE_FOUND)
    find_package(LIBSNDFILE)
endif (NOT LIBSNDFILE_FOUND)

# Header files
include_directories(${PV_SOURCE_DIR})
include_directories(${GDAL_INCLUDE_DIR})

#Include compiler directive and include directory for LIBSNDFILE
if (LIBSNDFILE_FOUND)
   ADD_DEFINITIONS(-DPV_USE_SNDFILE)
   include_directories(${LIBSNDFILE_INCLUDE_DIR})
else (LIBSNDFILE_FOUND)
   REMOVE_DEFINITIONS(-DPV_USE_SNDFILE)
endif (LIBSNDFILE_FOUND)

# Link to binary files
link_directories(${PV_BINARY_DIR})


# Add executable
file(GLOB libSrcCPP ${PROJECT_SOURCE_DIR}/*.cpp)
file(GLOB libSrcC ${PROJECT_SOURCE_DIR}/*.c)
add_executable(soundAnalysis ${libSrcCPP} ${libSrcC})

# Link executable to PV 
target_link_libraries(soundAnalysis pv)

# Link executable to external libraries
target_link_libraries(soundAnalysis ${GDAL_LIBRARY})
IF(LIBSNDFILE_FOUND)
   target_link_libraries(soundAnalysis ${LIBSNDFILE_LIBRARY})
ENDIF(LIBSNDFILE_FOUND)
{'fraction_non_alphanumeric': 0.10770419994846689, 'fraction_numerical': 0.00515331100231899, 'mean_word_length': 8.177304964539006, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2858071', 'n_tokens_mistral': 1616, 'n_tokens_neox': 1508, 'n_words': 270}