<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 3.3)

INCLUDE (CheckIncludeFiles)
INCLUDE (CheckSymbolExists)
INCLUDE (CheckFunctionExists)

IF(APPLE)
  SET(hidapi_SRC hidapi/hid-mac.c)
  LIST(APPEND extra_LIBS "-framework IOKit" "-framework CoreFoundation")
  SET(TARGET_LOCATION darwin_${CMAKE_SYSTEM_PROCESSOR}-gcc3)
ELSEIF(WIN32)
  SET(hidapi_SRC hidapi/hid-win.c)
  LIST(APPEND extra_LIBS "setupapi")
  SET(TARGET_LOCATION winnt_${CMAKE_SYSTEM_PROCESSOR}-msvc)
ELSEIF(UNIX)
  SET(extra_LIBS  pthread)
  SET(extra_INCLUDES)
  IF(USE_LIBUSB)
    FIND_PACKAGE(PkgConfig)
    PKG_CHECK_MODULES(libusb REQUIRED libusb-1.0)
    LIST(APPEND extra_LIBS ${libusb_LIBRARIES})
    LIST(APPEND extra_INCLUDES ${libusb_INCLUDE_DIRS})
    SET(hidapi_SRC hidapi/hid-linux-libusb.c)
  ELSE()
    FIND_PACKAGE(PkgConfig)
    PKG_CHECK_MODULES(libudev REQUIRED libudev)
    LIST(APPEND extra_LIBS ${libudev_LIBRARIES})
    LIST(APPEND extra_INCLUDES ${libudev_INCLUDE_DIRS})
    SET(hidapi_SRC hidapi/hid-linux-hidraw.c)
  ENDIF(USE_LIBUSB)
  SET(TARGET_LOCATION linux_${CMAKE_SYSTEM_PROCESSOR}-gcc3)
ENDIF(APPLE)<commit_msg>CMAKE_SYSTEM_PROCESSOR doesn't work when building windows binary<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 3.3)

INCLUDE (CheckIncludeFiles)
INCLUDE (CheckSymbolExists)
INCLUDE (CheckFunctionExists)

IF(APPLE)
  SET(hidapi_SRC hidapi/hid-mac.c)
  LIST(APPEND extra_LIBS "-framework IOKit" "-framework CoreFoundation")
  SET(TARGET_LOCATION darwin_${CMAKE_SYSTEM_PROCESSOR}-gcc3)
ELSEIF(WIN32)
  SET(hidapi_SRC hidapi/hid-win.c)
  LIST(APPEND extra_LIBS "setupapi")
  SET(TARGET_LOCATION winnt_x86-msvc)
ELSEIF(UNIX)
  SET(extra_LIBS  pthread)
  SET(extra_INCLUDES)
  IF(USE_LIBUSB)
    FIND_PACKAGE(PkgConfig)
    PKG_CHECK_MODULES(libusb REQUIRED libusb-1.0)
    LIST(APPEND extra_LIBS ${libusb_LIBRARIES})
    LIST(APPEND extra_INCLUDES ${libusb_INCLUDE_DIRS})
    SET(hidapi_SRC hidapi/hid-linux-libusb.c)
  ELSE()
    FIND_PACKAGE(PkgConfig)
    PKG_CHECK_MODULES(libudev REQUIRED libudev)
    LIST(APPEND extra_LIBS ${libudev_LIBRARIES})
    LIST(APPEND extra_INCLUDES ${libudev_INCLUDE_DIRS})
    SET(hidapi_SRC hidapi/hid-linux-hidraw.c)
  ENDIF(USE_LIBUSB)
  SET(TARGET_LOCATION linux_${CMAKE_SYSTEM_PROCESSOR}-gcc3)
ENDIF(APPLE)
{'fraction_non_alphanumeric': 0.0987105380168964, 'fraction_numerical': 0.008003557136505114, 'mean_word_length': 6.377049180327869, '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': '469886', 'n_tokens_mistral': 968, 'n_tokens_neox': 920, 'n_words': 127}