<commit_before>find_package(Threads REQUIRED)

file(GLOB tests "${CMAKE_CURRENT_SOURCE_DIR}/*.mm")
add_executable(ocpp_mixing ${tests})

if(APPLE)
  target_link_libraries(ocpp_mixing
    "-framework Cocoa"
    "-framework AppKit"
    "-framework CoreData"
    "-framework Foundation"
  )
else()
  if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    execute_process(COMMAND locate "objc.h"
                            OUTPUT_VARIABLE objc_locate 
                            OUTPUT_STRIP_TRAILING_WHITESPACE)
    message(${objc_locate})

    execute_process(COMMAND "dirname" ${objc_locate}
                            OUTPUT_VARIABLE objc_dir
                            OUTPUT_STRIP_TRAILING_WHITESPACE)
    message(${objc_dir})

    include_directories(${objc_dir})
  endif()

  execute_process(COMMAND gnustep-config "--variable=GNUSTEP_SYSTEM_HEADERS"
                                  OUTPUT_VARIABLE gnustep_includes 
                                  OUTPUT_STRIP_TRAILING_WHITESPACE)

  execute_process(COMMAND gnustep-config "--variable=GNUSTEP_SYSTEM_LIBRARIES"
                                  OUTPUT_VARIABLE gnustep_libs 
                                  OUTPUT_STRIP_TRAILING_WHITESPACE)

  execute_process(COMMAND gnustep-config "--objc-flags" 
  				  OUTPUT_VARIABLE flags 
  				  OUTPUT_STRIP_TRAILING_WHITESPACE)
<commit_msg>disable clang build<commit_after>if(APPLE)
  file(GLOB tests "${CMAKE_CURRENT_SOURCE_DIR}/*.mm")
  add_executable(ocpp_mixing ${tests})

  target_link_libraries(ocpp_mixing
    "-framework Cocoa"
    "-framework AppKit"
    "-framework CoreData"
    "-framework Foundation"
  )
elseif(not "${CMAKE_CXX_COMPILER_ID}" strequal "Clang")
  find_package(Threads REQUIRED)

  file(GLOB tests "${CMAKE_CURRENT_SOURCE_DIR}/*.mm")
  add_executable(ocpp_mixing ${tests})

  execute_process(COMMAND gnustep-config "--variable=GNUSTEP_SYSTEM_HEADERS"
                                  OUTPUT_VARIABLE gnustep_includes 
                                  OUTPUT_STRIP_TRAILING_WHITESPACE)

  execute_process(COMMAND gnustep-config "--variable=GNUSTEP_SYSTEM_LIBRARIES"
                                  OUTPUT_VARIABLE gnustep_libs 
                                  OUTPUT_STRIP_TRAILING_WHITESPACE)

  execute_process(COMMAND gnustep-config "--objc-flags" 
  				  OUTPUT_VARIABLE flags 
  				  OUTPUT_STRIP_TRAILING_WHITESPACE)

{'fraction_non_alphanumeric': 0.07780126849894292, 'fraction_numerical': 0.0, 'mean_word_length': 2.5740181268882174, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2747942', 'n_tokens_mistral': 832, 'n_tokens_neox': 743, 'n_words': 101}