<commit_before># - Try to find the pkcs11-helper library
# Once done this will define
#
#  PKCS11H_FOUND - system has pkcs11-helper 
#  PKCS11H_INCLUDE_DIRS - the pkcs11-helper include directories
#  PKCS11H_LIBRARIES - Link to these to use pkcs11-helper
#  PKCS11H_DEFINITIONS - Compiler switches required for using pkcs11-helper
#
# Copyright (c) 2006, <NAME>, <<EMAIL>>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
# pkcs11-helper can be found at http://www.opensc-project.org/pkcs11-helper
#

if (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)

  # in cache already
  SET(PKCS11H_FOUND TRUE)

else (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)

  INCLUDE(UsePkgConfig)

  PKGCONFIG(libpkcs11-helper-1 _PKCS11HIncDir _PKCS11HLinkDir _PKCS11HLinkFlags _PKCS11HCflags)

  set(PKCS11H_DEFINITIONS ${_PKCS11HCflags})
  set(PKCS11H_INCLUDE_DIRS ${_PKCS11HIncDir})
  set(PKCS11H_LIBRARIES ${_PKCS11HLinkFlags})
  
  if (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)<commit_msg>Don't try to use pkgconfig on win32<commit_after># - Try to find the pkcs11-helper library
# Once done this will define
#
#  PKCS11H_FOUND - system has pkcs11-helper 
#  PKCS11H_INCLUDE_DIRS - the pkcs11-helper include directories
#  PKCS11H_LIBRARIES - Link to these to use pkcs11-helper
#  PKCS11H_DEFINITIONS - Compiler switches required for using pkcs11-helper
#
# Copyright (c) 2006, <NAME>, <<EMAIL>>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
# pkcs11-helper can be found at http://www.opensc-project.org/pkcs11-helper
#

if (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)

  # in cache already
  SET(PKCS11H_FOUND TRUE)

else (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)
  if(NOT WIN32)
    INCLUDE(UsePkgConfig)

    PKGCONFIG(libpkcs11-helper-1 _PKCS11HIncDir _PKCS11HLinkDir _PKCS11HLinkFlags _PKCS11HCflags)

    set(PKCS11H_DEFINITIONS ${_PKCS11HCflags})
    set(PKCS11H_INCLUDE_DIRS ${_PKCS11HIncDir})
    set(PKCS11H_LIBRARIES ${_PKCS11HLinkFlags})
  endif(NOT WIN32)

  if (PKCS11H_INCLUDE_DIRS AND PKCS11H_LIBRARIES)
{'fraction_non_alphanumeric': 0.07584014532243415, 'fraction_numerical': 0.05994550408719346, 'mean_word_length': 5.153631284916201, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7231633', 'n_tokens_mistral': 970, 'n_tokens_neox': 842, 'n_words': 199}