<commit_before># gpgme configure checks

set(CMAKE_REQUIRED_INCLUDES ${GPGME_INCLUDES})
set(CMAKE_REQUIRED_LIBRARIES ${GPGME_LIBRARIES})

# check if gpgme has GPGME_KEYLIST_MODE_VALIDATE
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_keylist_mode_t mode = GPGME_KEYLIST_MODE_VALIDATE;
  }
" HAVE_GPGME_KEYLIST_MODE_VALIDATE
)

# check if gpgme has gpgme_cancel
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_ctx_t ctx = 0;
    gpgme_error_t e = gpgme_cancel( ctx );
  }
" HAVE_GPGME_CANCEL 
)

# check if gpgme has gpgme_key_t->keylist_mode
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_key_t key = 0;
    key->keylist_mode = 0;
  }
" HAVE_GPGME_KEY_T_KEYLIST_MODE 
)

# check if gpgme has gpgme_decrypt_result_t->wrong_key_usage
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_decrypt_result_t& res) {
    return res.wrong_key_usage;
  }
" HAVE_GPGME_WRONG_KEY_USAGE
)

# check if gpgme has GPGME_INCLUDE_CERTS_DEFAULT
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    int i = GPGME_INCLUDE_CERTS_DEFAULT;
  }
" HAVE_GPGME_INCLUDE_CERTS_DEFAULT
)

# check if gpgme has gpgme_key_t->is_qualified
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_key_t key;
    unsigned int iq;
    iq = key->is_qualified;
  }
" HAVE_GPGME_KEY_T_IS_QUALIFIED 
)

# check if gpgme has gpgme_subkey_t->is_qualified
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_subkey_t subkey;
    unsigned int iq;
    iq = subkey->is_qualified;
  }
" HAVE_GPGME_SUBKEY_T_IS_QUALIFIED 
)

set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)
<commit_msg>fix configure checks (CID 2062)<commit_after># gpgme configure checks

include (FindGpgme)

set(CMAKE_REQUIRED_INCLUDES ${GPGME_INCLUDES})
set(CMAKE_REQUIRED_LIBRARIES ${GPGME_LIBRARIES})

# check if gpgme has GPGME_KEYLIST_MODE_VALIDATE
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    gpgme_keylist_mode_t mode = GPGME_KEYLIST_MODE_VALIDATE;
  }
" HAVE_GPGME_KEYLIST_MODE_VALIDATE
)

# check if gpgme has gpgme_cancel
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_ctx_t& ctx) {
    gpgme_error_t e = gpgme_cancel( ctx );
  }
  int main() { return 0; }
" HAVE_GPGME_CANCEL 
)

# check if gpgme has gpgme_key_t->keylist_mode
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_key_t& key) {
    key->keylist_mode = 0;
  }
  int main() { return 0; }
" HAVE_GPGME_KEY_T_KEYLIST_MODE 
)

# check if gpgme has gpgme_decrypt_result_t->wrong_key_usage
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_decrypt_result_t& res) {
    return res->wrong_key_usage;
  }
  int main() { return 0; }
" HAVE_GPGME_WRONG_KEY_USAGE
)

# check if gpgme has GPGME_INCLUDE_CERTS_DEFAULT
check_cxx_source_compiles ("
  #include <gpgme.h>
  int main() {
    int i = GPGME_INCLUDE_CERTS_DEFAULT;
  }
" HAVE_GPGME_INCLUDE_CERTS_DEFAULT
)

# check if gpgme has gpgme_key_t->is_qualified
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_key_t& key) {
    unsigned int iq;
    iq = key->is_qualified;
  }
  int main() { return 0; }
" HAVE_GPGME_KEY_T_IS_QUALIFIED 
)

# check if gpgme has gpgme_subkey_t->is_qualified
check_cxx_source_compiles ("
  #include <gpgme.h>
  int test(gpgme_subkey_t& subkey) {
    unsigned int iq;
    iq = subkey->is_qualified;
  }
  int main() { return 0; }
" HAVE_GPGME_SUBKEY_T_IS_QUALIFIED 
)

set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)

{'fraction_non_alphanumeric': 0.09124190368910166, 'fraction_numerical': 0.0036609405801182764, 'mean_word_length': 4.785016286644951, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 32, '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': '2057766', 'n_tokens_mistral': 1624, 'n_tokens_neox': 1572, 'n_words': 264}