<commit_before># Finds the C-CLIENT library that is part of the UW IMAP toolkit
#
#  CCLIENT_FOUND        - True if C-CLIENT library found.
#  CCLIENT_INCLUDE_DIRS - Directory to include to get C-CLIENT headers
#  CCLIENT_LIBRARIES    - Libraries to link against for the C-CLIENT library
#

if (CCLIENT_INCLUDE_DIRS AND CCLIENT_LIBRARIES)
  # Already in cache, be silent
 set(CCLIENT_FIND_QUIETLY TRUE)
endif (CCLIENT_INCLUDE_DIRS AND CCLIENT_LIBRARIES)

find_path(
  CCLIENT_INCLUDE
  NAMES linkage.h
  PATHS ${CCLIENT_INCLUDE_DIRS}
  PATH_SUFFIXES c-client
  DOC "Include directory for the CCLient library linkage")
mark_as_advanced(CCLIENT_INCLUDE)

# Look for the library.
find_file(
  CCLIENT_LIBRARY
  NAMES libc-client.a libc-client4.a
  PATHS ${CCLIENT_LIBRARY_DIRS} /opt/local/lib /usr/lib
  DOC "Library to link against for the email support")

if (CCLIENT_LIBRARY)
  MESSAGE("-- Found CCLIENT library -- " ${CCLIENT_LIBRARY})
else (CCLIENT_LIBRARY)
  MESSAGE("-- Could not find CCLIENT library")
endif (CCLIENT_LIBRARY)

# Copy the results to the output variables.
if(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)
  set(CCLIENT_FOUND 1)
  set(CCLIENT_LIBRARIES ${CCLIENT_LIBRARY})
  set(CCLIENT_INCLUDE_DIRS ${CCLIENT_INCLUDE_DIRS} ${CCLIENT_INCLUDE})

  # Do not treat the operator name keywords and, bitand, bitor, compl, not, or and xor
  # as synonyms as keywords. Needed in order to include C-CLIENT library
  IF (CMAKE_COMPILER_IS_GNUCXX)
    IF(NOT CMAKE_CXX_FLAGS MATCHES "-fno-operator-names")
      SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
    ENDIF(NOT CMAKE_CXX_FLAGS MATCHES "-fno-operator-names")
  ENDIF (CMAKE_COMPILER_IS_GNUCXX)

else(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)
  set(CCLIENT_FOUND 0)
  set(CCLIENT_LIBRARIES)
  set(CCLIENT_INCLUDE_DIRS)
endif(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)<commit_msg>Updated CCLIENT_INCLUDE.<commit_after># Finds the C-CLIENT library that is part of the UW IMAP toolkit
#
#  CCLIENT_FOUND        - True if C-CLIENT library found.
#  CCLIENT_INCLUDE      - Directory to include to get C-CLIENT headers
#  CCLIENT_LIBRARY      - Libraries to link against for the C-CLIENT library
#

if (CCLIENT_INCLUDE_DIRS AND CCLIENT_LIBRARIES)
  # Already in cache, be silent
 set(CCLIENT_FIND_QUIETLY TRUE)
endif (CCLIENT_INCLUDE_DIRS AND CCLIENT_LIBRARIES)

find_path(
  CCLIENT_INCLUDE
  NAMES linkage.c
  PATHS ${CCLIENT_INCLUDE_DIRS}
  PATH_SUFFIXES imap
  DOC "Include directory for the CCLient library linkage")
mark_as_advanced(CCLIENT_INCLUDE)

# Look for the library.
find_file(
  CCLIENT_LIBRARY
  NAMES libc-client.a libc-client4.a
  PATHS ${CCLIENT_LIBRARY_DIRS} /opt/local/lib /usr/lib
  DOC "Library to link against for the email support")

if (CCLIENT_LIBRARY)
  MESSAGE(STATUS "Found CCLIENT library -- " ${CCLIENT_LIBRARY})
else (CCLIENT_LIBRARY)
  MESSAGE(STATUS "Could not find CCLIENT library")
endif (CCLIENT_LIBRARY)

# Copy the results to the output variables.
if(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)
  set(CCLIENT_FOUND 1)

  # Do not treat the operator name keywords and, bitand, bitor, compl, not, or and xor
  # as synonyms as keywords. Needed in order to include C-CLIENT library
  IF (CMAKE_COMPILER_IS_GNUCXX)
    IF(NOT CMAKE_CXX_FLAGS MATCHES "-fno-operator-names")
      SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
    ENDIF(NOT CMAKE_CXX_FLAGS MATCHES "-fno-operator-names")
  ENDIF (CMAKE_COMPILER_IS_GNUCXX)

else(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)
  set(CCLIENT_FOUND 0)
  set(CCLIENT_LIBRARY)
  set(CCLIENT_INCLUDE)
endif(CCLIENT_INCLUDE AND CCLIENT_LIBRARY)
{'fraction_non_alphanumeric': 0.07520268381325133, 'fraction_numerical': 0.0016773832820799553, 'mean_word_length': 4.884868421052632, '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': '4645505', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1297, 'n_words': 345}