<commit_before>############################################################################
# CMakeLists.txt file for building ROOT rootx package
# @author <NAME>, CERN
############################################################################

if(x11)
  include_directories(${X11_INCLUDE_DIR})
  # FIXME: Why are we adding the x11 independent rootx.cxx file?
  ROOT_EXECUTABLE(root *.cxx  ${CMAKE_SOURCE_DIR}/core/clib/src/strlcpy.c
                  LIBRARIES ${X11_LIBRARIES} ${X11_Xpm_LIB} ${X11_Xft_LIB} ${X11_Xext_LIB})
                  
  #---CreateRootCommandLineOptions------------------------------------------------------------------
  generateHeaders(${CMAKE_SOURCE_DIR}/core/base/src/root-argparse.py 
                  ${CMAKE_BINARY_DIR}/include/rootCommandLineOptionsHelp.h root)
elseif(cocoa)

  if (cxxmodules)
    # FIXME: Disable modules for ObjC/ObjC++. It has problems when compiling
    # rootxx-cocoa.mm with a lots of warnings and errors such as:
    # rootxx-cocoa.mm:884:48: error: property 'length' not found on object of type 'NSMutableAttributedString *'
    #
    # FIXME: We should disable building with modules on only the TU of rootxx-cocoa.mm
    # Unfortunately, cmake cannot reliably remove flags from a single TU.
    # as COMPILE_OPTIONS and COMPILE_FLAGS could be overriden causing tricky to
    # debug problems.
    string(REPLACE "${ROOT_CXXMODULES_CXXFLAGS}" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
    string(REPLACE "${ROOT_CXXMODULES_CFLAGS}" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
  endif(cxxmodules)

  # FIXME: rootxx-cocoa.mm should be compiled with -ObjC++ flag. Here we rely
  # that the compiler will recognise the extension mm and switch to the correct
  # language mode.
  ROOT_EXECUTABLE(root rootx.cxx rootxx-cocoa.mm LIBRARIES "-framework Cocoa")
  #---CreateRootCommandLineOptions------------------------------------------------------------------
  generateHeaders(${CMAKE_SOURCE_DIR}/core/base/src/root-argparse.py 
                  ${CMAKE_BINARY_DIR}/include/rootCommandLineOptionsHelp.h root)
endif()
<commit_msg>- white spaces<commit_after>############################################################################
# CMakeLists.txt file for building ROOT rootx package
# @author <NAME>, CERN
############################################################################

if(x11)
  include_directories(${X11_INCLUDE_DIR})
  # FIXME: Why are we adding the x11 independent rootx.cxx file?
  ROOT_EXECUTABLE(root *.cxx  ${CMAKE_SOURCE_DIR}/core/clib/src/strlcpy.c
                  LIBRARIES ${X11_LIBRARIES} ${X11_Xpm_LIB} ${X11_Xft_LIB} ${X11_Xext_LIB})

  #---CreateRootCommandLineOptions------------------------------------------------------------------
  generateHeaders(${CMAKE_SOURCE_DIR}/core/base/src/root-argparse.py
                  ${CMAKE_BINARY_DIR}/include/rootCommandLineOptionsHelp.h root)
elseif(cocoa)

  if (cxxmodules)
    # FIXME: Disable modules for ObjC/ObjC++. It has problems when compiling
    # rootxx-cocoa.mm with a lots of warnings and errors such as:
    # rootxx-cocoa.mm:884:48: error: property 'length' not found on object of type 'NSMutableAttributedString *'
    #
    # FIXME: We should disable building with modules on only the TU of rootxx-cocoa.mm
    # Unfortunately, cmake cannot reliably remove flags from a single TU.
    # as COMPILE_OPTIONS and COMPILE_FLAGS could be overriden causing tricky to
    # debug problems.
    string(REPLACE "${ROOT_CXXMODULES_CXXFLAGS}" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
    string(REPLACE "${ROOT_CXXMODULES_CFLAGS}" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
  endif(cxxmodules)

  # FIXME: rootxx-cocoa.mm should be compiled with -ObjC++ flag. Here we rely
  # that the compiler will recognise the extension mm and switch to the correct
  # language mode.
  ROOT_EXECUTABLE(root rootx.cxx rootxx-cocoa.mm LIBRARIES "-framework Cocoa")
  #---CreateRootCommandLineOptions------------------------------------------------------------------
  generateHeaders(${CMAKE_SOURCE_DIR}/core/base/src/root-argparse.py
                  ${CMAKE_BINARY_DIR}/include/rootCommandLineOptionsHelp.h root)
endif()

{'fraction_non_alphanumeric': 0.22042100169368498, 'fraction_numerical': 0.009194289862085652, 'mean_word_length': 3.235655737704918, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2930970', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1193, 'n_words': 304}