<commit_before>//
//  GPGContext.h
//  GPGME
//
//  Created by davelopper at users.sourceforge.net on Tue Aug 14 2001.
//
//
//  Copyright (C) 2001-2005 Mac GPG Project.
//  
//  This code is free software; you can redistribute it and/or modify it under
//  the terms of the GNU Lesser General Public License as published by the Free
//  Software Foundation; either version 2.1 of the License, or (at your option)
//  any later version.
//  
//  This code is distributed in the hope that it will be useful, but WITHOUT ANY
//  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
//  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
//  details.
//  
//  You should have received a copy of the GNU Lesser General Public License
//  along with this program; if not, visit <http://www.gnu.org/> or write to the
//  Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
//  MA 02111-1307, USA.
//  
//  More info at <http://macgpg.sourceforge.net/>
//

#ifndef GPGCONTEXT_H
#define GPGCONTEXT_H

#include <GPGME/GPGObject.h>
#include <GPGME/GPGEngine.h>

#ifdef __cplusplus
extern "C" {
#if 0 /* just to make Emacs auto-indent happy */
}
#endif
#endif


@class NSArray;
@class NSCalendarDate;
@class NSEnumerator;
@class NSMutableDictionary;
@class NSMutableSet;
@class GPGData;
@class GPGKey;


/*"
 * The #GPGSignatureMode type is used to specify the desired type of a 
 * signature. The following modes are available:
 * _{GPGSignatureModeNormal  A normal signature is made, the output includes
 *                           the plaintext and the signature.}
 * _{GPGSignatureModeDetach  A detached signature is made.}
 * _{GPGSignatureModeClear   A clear text signature is made. The %ASCII %armor
 *                           and %{text mode} settings of the context are
 *                           ignored.}
"*/
typedef enum {
    GPGSignatureModeNormal = 0,
    GPGSignatureModeDetach = 1,
    GPGSignatureModeClear  = 2
} GPGSignatureMode;


/*"
 * The key listing mode is a combination of one or multiple of the following
 * bit values:
 * _{GPGKeyListModeLocal       Specifies that the local %{key-ring} should be 
 *                             searched for keys in the key listing operation.
 *                             This is the default.}
 * _{GPGKeyListModeExtern      Specifies that an external source should be 
 *                             searched for keys in the key listing operation.
 *                             The type of external source is dependant on the
 *                             crypto engine used. For example, it can be a 
 *                             remote %{key server} or LDAP certificate
 *                             server.}
 * _{GPGKeyListModeSignatures  Specifies that signatures on keys shall be
 *                             retrieved too. This is a time-consuming 
 *                             operation, and that mode should not be used
 *                             when retrieving all keys, but only a key per
 *                             key basis, like when using #{-refreshKey:}.
 * _{GPGKeyListModeValidate    Specifies that the backend should do key or
 *                             certificate validation and not just get the
 *                             validity information from an internal cache.
 *                             This might be an expensive operation and is in
 *                             general not useful. Currently only implemented
 *                             for the S/MIME backend and ignored for other
 *                             backends.}
"*/
typedef unsigned int GPGKeyListMode;

#define GPGKeyListModeLocal         1
#define GPGKeyListModeExtern        2
#define GPGKeyListModeSignatures    4
#define GPGKeyListModeValidate    256


/*"
 * Certificates inclusion (S/MIME only):
 * _{GPGAllExceptRootCertificatesInclusion  Include all certificates except
 *                                          the root certificate.}
 * _{GPGAllCertificatesInclusion            Include all certificates.}
 * _{GPGNoCertificatesInclusion             Include no certificates.}
 * _{GPGOnlySenderCertificateInclusion      Include the sender's certificate
 *                                          only.}
 * _{n                                      Include the first n certificates
 *                                          of the certificates path, starting
 *                                          from the sender's certificate. The
 *                                          number n must be positive.}
"*/
typedef enum {<commit_msg>Fixed doc format<commit_after>//
//  GPGContext.h
//  GPGME
//
//  Created by davelopper at users.sourceforge.net on Tue Aug 14 2001.
//
//
//  Copyright (C) 2001-2005 Mac GPG Project.
//  
//  This code is free software; you can redistribute it and/or modify it under
//  the terms of the GNU Lesser General Public License as published by the Free
//  Software Foundation; either version 2.1 of the License, or (at your option)
//  any later version.
//  
//  This code is distributed in the hope that it will be useful, but WITHOUT ANY
//  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
//  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
//  details.
//  
//  You should have received a copy of the GNU Lesser General Public License
//  along with this program; if not, visit <http://www.gnu.org/> or write to the
//  Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
//  MA 02111-1307, USA.
//  
//  More info at <http://macgpg.sourceforge.net/>
//

#ifndef GPGCONTEXT_H
#define GPGCONTEXT_H

#include <GPGME/GPGObject.h>
#include <GPGME/GPGEngine.h>

#ifdef __cplusplus
extern "C" {
#if 0 /* just to make Emacs auto-indent happy */
}
#endif
#endif


@class NSArray;
@class NSCalendarDate;
@class NSEnumerator;
@class NSMutableDictionary;
@class NSMutableSet;
@class GPGData;
@class GPGKey;


/*"
 * The #GPGSignatureMode type is used to specify the desired type of a 
 * signature. The following modes are available:
 * _{GPGSignatureModeNormal  A normal signature is made, the output includes
 *                           the plaintext and the signature.}
 * _{GPGSignatureModeDetach  A detached signature is made.}
 * _{GPGSignatureModeClear   A clear text signature is made. The %ASCII %armor
 *                           and %{text mode} settings of the context are
 *                           ignored.}
"*/
typedef enum {
    GPGSignatureModeNormal = 0,
    GPGSignatureModeDetach = 1,
    GPGSignatureModeClear  = 2
} GPGSignatureMode;


/*"
 * The key listing mode is a combination of one or multiple of the following
 * bit values:
 * _{GPGKeyListModeLocal       Specifies that the local %{key-ring} should be 
 *                             searched for keys in the key listing operation.
 *                             This is the default.}
 * _{GPGKeyListModeExtern      Specifies that an external source should be 
 *                             searched for keys in the key listing operation.
 *                             The type of external source is dependant on the
 *                             crypto engine used. For example, it can be a 
 *                             remote %{key server} or LDAP certificate
 *                             server.}
 * _{GPGKeyListModeSignatures  Specifies that signatures on keys shall be
 *                             retrieved too. This is a time-consuming 
 *                             operation, and that mode should not be used
 *                             when retrieving all keys, but only a key per
 *                             key basis, like when using #{-refreshKey:}.}
 * _{GPGKeyListModeValidate    Specifies that the backend should do key or
 *                             certificate validation and not just get the
 *                             validity information from an internal cache.
 *                             This might be an expensive operation and is in
 *                             general not useful. Currently only implemented
 *                             for the S/MIME backend and ignored for other
 *                             backends.}
"*/
typedef unsigned int GPGKeyListMode;

#define GPGKeyListModeLocal         1
#define GPGKeyListModeExtern        2
#define GPGKeyListModeSignatures    4
#define GPGKeyListModeValidate    256


/*"
 * Certificates inclusion (S/MIME only):
 * _{GPGAllExceptRootCertificatesInclusion  Include all certificates except
 *                                          the root certificate.}
 * _{GPGAllCertificatesInclusion            Include all certificates.}
 * _{GPGNoCertificatesInclusion             Include no certificates.}
 * _{GPGOnlySenderCertificateInclusion      Include the sender's certificate
 *                                          only.}
 * _{n                                      Include the first n certificates
 *                                          of the certificates path, starting
 *                                          from the sender's certificate. The
 *                                          number n must be positive.}
"*/
typedef enum {
{'fraction_non_alphanumeric': 0.06373507057546146, 'fraction_numerical': 0.008686210640608035, 'mean_word_length': 1.8211332312404287, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6832319', 'n_tokens_mistral': 2344, 'n_tokens_neox': 2233, 'n_words': 940}