<commit_before>cmake_minimum_required(VERSION 2.6.4)

if(GLIB_FOUND)
  add_library(parse_args parse_args)

  list(APPEND SCANNER_SRCS scanner.c nproc.c
                           scanner-scan.c scanner-dump.c
                           scanner-common.c)
  if(TAGLIB_FOUND)
    list(APPEND SCANNER_SRCS scanner-tag.c rgtag.cpp)
  endif()

  # Enable globbing for MinGW builds
  if(WIN32)
    list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".o")
    find_library(CRT_GLOB CRT_glob.o)
    list(REMOVE_ITEM CMAKE_FIND_LIBRARY_SUFFIXES ".o")
    if(CRT_GLOB)
      message(STATUS "Linking against CRT_glob.o to enable globbing...")
      list(APPEND SCANNER_SRCS ${CRT_GLOB})
    endif()
  endif()

  add_executable(loudness ${SCANNER_SRCS})
  target_link_libraries(loudness ebur128 input filetree parse_args ${GLIB_LIBRARIES})
  if(TAGLIB_FOUND)
    target_link_libraries(loudness ${TAGLIB_LIBRARIES})
  endif()

  if(GTK2_FOUND AND TAGLIB_FOUND)
    add_executable(loudness-drop scanner-drop scanner-tag scanner-common nproc rgtag.cpp)
    target_link_libraries(loudness-drop ebur128 input filetree parse_args ${RSVG2_LIBRARIES} ${GTK2_LIBRARIES} ${TAGLIB_LIBRARIES})
  endif()

  if(QT4_FOUND AND TAGLIB_FOUND)
    qt4_automoc(scanner-drop-qt.cpp)
    include_directories(${CMAKE_CURRENT_BINARY_DIR})
    add_executable(loudness-drop-qt scanner-drop-qt scanner-tag scanner-common nproc rgtag.cpp)
    target_link_libraries(loudness-drop-qt ebur128 input filetree parse_args ${GLIB_LIBRARIES} ${QT_QTGUI_LIBRARY} ${QT_QTSVG_LIBRARY} ${TAGLIB_LIBRARIES})
  endif()

  if(SNDFILE_FOUND)
    add_executable(r128-minimal-example minimal_example.c)
    target_link_libraries(r128-minimal-example ebur128 ${SNDFILE_LIBRARIES})
  endif()

  install(TARGETS loudness
          RUNTIME DESTINATION ${FOLDER_BIN}
          LIBRARY DESTINATION ${FOLDER_PLUGIN})
endif()
<commit_msg>link against QtCore<commit_after>cmake_minimum_required(VERSION 2.6.4)

if(GLIB_FOUND)
  add_library(parse_args parse_args)

  list(APPEND SCANNER_SRCS scanner.c nproc.c
                           scanner-scan.c scanner-dump.c
                           scanner-common.c)
  if(TAGLIB_FOUND)
    list(APPEND SCANNER_SRCS scanner-tag.c rgtag.cpp)
  endif()

  # Enable globbing for MinGW builds
  if(WIN32)
    list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES ".o")
    find_library(CRT_GLOB CRT_glob.o)
    list(REMOVE_ITEM CMAKE_FIND_LIBRARY_SUFFIXES ".o")
    if(CRT_GLOB)
      message(STATUS "Linking against CRT_glob.o to enable globbing...")
      list(APPEND SCANNER_SRCS ${CRT_GLOB})
    endif()
  endif()

  add_executable(loudness ${SCANNER_SRCS})
  target_link_libraries(loudness ebur128 input filetree parse_args ${GLIB_LIBRARIES})
  if(TAGLIB_FOUND)
    target_link_libraries(loudness ${TAGLIB_LIBRARIES})
  endif()

  if(GTK2_FOUND AND TAGLIB_FOUND)
    add_executable(loudness-drop scanner-drop scanner-tag scanner-common nproc rgtag.cpp)
    target_link_libraries(loudness-drop ebur128 input filetree parse_args ${RSVG2_LIBRARIES} ${GTK2_LIBRARIES} ${TAGLIB_LIBRARIES})
  endif()

  if(QT4_FOUND AND TAGLIB_FOUND)
    qt4_automoc(scanner-drop-qt.cpp)
    include_directories(${CMAKE_CURRENT_BINARY_DIR})
    add_executable(loudness-drop-qt scanner-drop-qt scanner-tag scanner-common nproc rgtag.cpp)
    target_link_libraries(loudness-drop-qt ebur128 input filetree parse_args ${GLIB_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTSVG_LIBRARY} ${TAGLIB_LIBRARIES})
  endif()

  if(SNDFILE_FOUND)
    add_executable(r128-minimal-example minimal_example.c)
    target_link_libraries(r128-minimal-example ebur128 ${SNDFILE_LIBRARIES})
  endif()

  install(TARGETS loudness
          RUNTIME DESTINATION ${FOLDER_BIN}
          LIBRARY DESTINATION ${FOLDER_PLUGIN})
endif()

{'fraction_non_alphanumeric': 0.09255801547079222, 'fraction_numerical': 0.014937316617764738, 'mean_word_length': 4.387931034482759, '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': '4702139', 'n_tokens_mistral': 1544, 'n_tokens_neox': 1397, 'n_words': 227}