<commit_before># CMake module to find R
# - Try to find R.  If found, defines:
#
#  R_FOUND        - system has R
#  R_EXEC         - the system R command
#  R_ROOT_DIR     - the R root directory
#  R_INCLUDE_DIRS - the R include directories

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  set(CMAKE_FIND_APPBUNDLE "LAST")
endif()

find_program(R_EXEC NAMES R R.exe)

#---Find includes and libraries if R exists
if(R_EXEC)

  set(R_FOUND TRUE)

  EXECUTE_PROCESS(
  COMMAND ${R_EXEC} "--slave" "--no-save" "-e" "cat(R.home())"
  OUTPUT_VARIABLE R_ROOT_DIR)


  find_path(R_INCLUDE_DIRS R.h
            HINTS ${R_ROOT_DIR}
            PATHS /usr/local/lib /usr/local/lib64 /usr/share
            PATH_SUFFIXES include R/include)
endif()

mark_as_advanced(R_FOUND R_EXEC R_ROOT_DIR R_INCLUDE_DIRS)<commit_msg>path fix<commit_after># CMake module to find R
# - Try to find R.  If found, defines:
#
#  R_FOUND        - system has R
#  R_EXEC         - the system R command
#  R_ROOT_DIR     - the R root directory
#  R_INCLUDE_DIRS - the R include directories

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  set(CMAKE_FIND_APPBUNDLE "LAST")
endif()

find_program(R_EXEC NAMES R R.exe)

#---Find includes and libraries if R exists
if(R_EXEC)

  set(R_FOUND TRUE)

  EXECUTE_PROCESS(
  COMMAND "${R_EXEC}" "--slave" "--no-save" "-e" "cat(R.home())"
  OUTPUT_VARIABLE R_ROOT_DIR)


  find_path(R_INCLUDE_DIRS R.h
            HINTS ${R_ROOT_DIR}
            PATHS /usr/local/lib /usr/local/lib64 /usr/share
            PATH_SUFFIXES include R/include)
endif()

mark_as_advanced(R_FOUND R_EXEC R_ROOT_DIR R_INCLUDE_DIRS)
{'fraction_non_alphanumeric': 0.10716510903426792, 'fraction_numerical': 0.0024922118380062306, 'mean_word_length': 3.117948717948718, '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': '939378', 'n_tokens_mistral': 664, 'n_tokens_neox': 614, 'n_words': 154}