<commit_before>######################################
##### CMake environment setup    #####
######################################
project(libebur128 C)
cmake_minimum_required(VERSION 2.6.4)
set(CMAKE_MODULE_PATH ${${PROJECT_NAME}_SOURCE_DIR}/cmake)
set(EXECUTABLE_OUTPUT_PATH ${${PROJECT_NAME}_BINARY_DIR})


######################################
##### Library setup              #####
######################################

include(FindPkgConfig)
if("${CMAKE_C_COMPILER}" MATCHES ".*lsb.*")
  set(LSB_COMPILER_FOUND TRUE)
  set(PKG_CONFIG_PREFIX "/opt/lsb/lib/pkgconfig/")
  set(PKG_CONFIG_SUFFIX ".pc")
endif()

##### glib
if(NOT WIN32)
  pkg_check_modules(GLIB "${PKG_CONFIG_PREFIX}glib-2.0${PKG_CONFIG_SUFFIX}")
  pkg_check_modules(GTHREAD "${PKG_CONFIG_PREFIX}gthread-2.0${PKG_CONFIG_SUFFIX}")
  if(GLIB_FOUND AND GTHREAD_FOUND)
    message(STATUS "${GLIB_INCLUDE_DIRS} ${GTHREAD_LIBRARY_DIRS}")
    include_directories(SYSTEM ${GLIB_INCLUDE_DIRS})
    include_directories(SYSTEM ${GTHREAD_INCLUDE_DIRS})
    link_directories(${GLIB_LIBRARY_DIRS})
    link_directories(${GTHREAD_LIBRARY_DIRS})
  endif()
else()
  find_library(GLIB_LIBRARIES glib-2.0-0)
  find_library(GTHREAD_LIBRARIES gthread-2.0-0)
  if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
    find_library(INTL_LIBRARIES intl)
  endif()
  if(INTL_LIBRARIES)
    set(INTL_FOUND TRUE)
  endif()
  find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
  find_path(GLIB_LIB_INCLUDE_DIR glibconfig.h PATH_SUFFIXES ../lib/glib-2.0/include)
  if(GLIB_LIBRARIES AND GTHREAD_LIBRARIES AND GLIB_INCLUDE_DIR AND GLIB_LIB_INCLUDE_DIR)
    include_directories(SYSTEM ${GLIB_INCLUDE_DIR})
    include_directories(SYSTEM ${GLIB_LIB_INCLUDE_DIR})
    set(GLIB_FOUND TRUE)
    set(GTHREAD_FOUND TRUE)
  endif()
endif()

##### libsndfile
if(NOT WIN32)
  pkg_check_modules(SNDFILE sndfile>=1.0.21)
  if(SNDFILE_FOUND)
    include_directories(SYSTEM ${SNDFILE_INCLUDE_DIRS})
    link_directories(${SNDFILE_LIBRARY_DIRS})
  endif()
else()<commit_msg>copy corrent intl dll for win64<commit_after>######################################
##### CMake environment setup    #####
######################################
project(libebur128 C)
cmake_minimum_required(VERSION 2.6.4)
set(CMAKE_MODULE_PATH ${${PROJECT_NAME}_SOURCE_DIR}/cmake)
set(EXECUTABLE_OUTPUT_PATH ${${PROJECT_NAME}_BINARY_DIR})


######################################
##### Library setup              #####
######################################

include(FindPkgConfig)
if("${CMAKE_C_COMPILER}" MATCHES ".*lsb.*")
  set(LSB_COMPILER_FOUND TRUE)
  set(PKG_CONFIG_PREFIX "/opt/lsb/lib/pkgconfig/")
  set(PKG_CONFIG_SUFFIX ".pc")
endif()

##### glib
if(NOT WIN32)
  pkg_check_modules(GLIB "${PKG_CONFIG_PREFIX}glib-2.0${PKG_CONFIG_SUFFIX}")
  pkg_check_modules(GTHREAD "${PKG_CONFIG_PREFIX}gthread-2.0${PKG_CONFIG_SUFFIX}")
  if(GLIB_FOUND AND GTHREAD_FOUND)
    message(STATUS "${GLIB_INCLUDE_DIRS} ${GTHREAD_LIBRARY_DIRS}")
    include_directories(SYSTEM ${GLIB_INCLUDE_DIRS})
    include_directories(SYSTEM ${GTHREAD_INCLUDE_DIRS})
    link_directories(${GLIB_LIBRARY_DIRS})
    link_directories(${GTHREAD_LIBRARY_DIRS})
  endif()
else()
  find_library(GLIB_LIBRARIES glib-2.0-0)
  find_library(GTHREAD_LIBRARIES gthread-2.0-0)
  if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
    find_library(INTL_LIBRARIES intl)
  elseif(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
    find_library(INTL_LIBRARIES intl-8)
  endif()
  if(INTL_LIBRARIES)
    set(INTL_FOUND TRUE)
  endif()
  find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
  find_path(GLIB_LIB_INCLUDE_DIR glibconfig.h PATH_SUFFIXES ../lib/glib-2.0/include)
  if(GLIB_LIBRARIES AND GTHREAD_LIBRARIES AND GLIB_INCLUDE_DIR AND GLIB_LIB_INCLUDE_DIR)
    include_directories(SYSTEM ${GLIB_INCLUDE_DIR})
    include_directories(SYSTEM ${GLIB_LIB_INCLUDE_DIR})
    set(GLIB_FOUND TRUE)
    set(GTHREAD_FOUND TRUE)
  endif()
endif()

##### libsndfile
if(NOT WIN32)
  pkg_check_modules(SNDFILE sndfile>=1.0.21)
  if(SNDFILE_FOUND)
    include_directories(SYSTEM ${SNDFILE_INCLUDE_DIRS})
    link_directories(${SNDFILE_LIBRARY_DIRS})
  endif()
else()
{'fraction_non_alphanumeric': 0.19161970105366333, 'fraction_numerical': 0.015192354814996324, 'mean_word_length': 6.85, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6089817', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1535, 'n_words': 201}