<commit_before>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2014.  All rights reserved
 */
#ifndef _Stroika_Foundation_Cryptography_Format_h_
#define _Stroika_Foundation_Cryptography_Format_h_  1

#include    "../StroikaPreComp.h"

#include    <array>
#include    <cstdint>

#include    "../Characters/String.h"
#include    "../Configuration/Common.h"
#include    "../Streams/BinaryInputStream.h"



/*
 *  \version    <a href="code_status.html#Alpha">Alpha</a>
 */



namespace   Stroika {
    namespace   Foundation {
        namespace   Cryptography {


            /**
             *  Generally, this Format function is used to take a BLOB and render it as a hex string.
             *
             *  CRYTO_RESULT_TO_FORMAT_TYPE can be
             *      o   any of the uintN types (e.g. uint16_t, etc)
             *      o   any of the defined std::array<> types defined in Digest/ResultTypes.h.
             *      o   Memory::BLOB
             *
             *  AS_RESULT_TYPE can be:
             *      o   Characters::String
             *      o   std::string
             */
            template    <typename AS_RESULT_TYPE, typename CRYTO_RESULT_TO_FORMAT_TYPE>
            AS_RESULT_TYPE  Format (const CRYTO_RESULT_TO_FORMAT_TYPE& digestResult);
            template    <typename CRYTO_RESULT_TO_FORMAT_TYPE>
            string          Format (const CRYTO_RESULT_TO_FORMAT_TYPE& digestResult);


        }
    }
}


/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
#include    "Format.inl"

#endif  /*_Stroika_Foundation_Cryptography_Format_h_*/
<commit_msg>comments<commit_after>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2014.  All rights reserved
 */
#ifndef _Stroika_Foundation_Cryptography_Format_h_
#define _Stroika_Foundation_Cryptography_Format_h_  1

#include    "../StroikaPreComp.h"

#include    <array>
#include    <cstdint>

#include    "../Characters/String.h"
#include    "../Configuration/Common.h"
#include    "../Streams/BinaryInputStream.h"



/*
 *  \version    <a href="code_status.html#Alpha">Alpha</a>
 *
 *  TODO:
 *      @todo   Consider  renaming this module FormatResult
 */



namespace   Stroika {
    namespace   Foundation {
        namespace   Cryptography {


            /**
             *  Generally, this Format function is used to take a BLOB and render it as a hex string.
             *
             *  CRYTO_RESULT_TO_FORMAT_TYPE can be
             *      o   any of the uintN types (e.g. uint16_t, etc)
             *      o   any of the defined std::array<> types defined in Digest/ResultTypes.h.
             *      o   Memory::BLOB
             *
             *  AS_RESULT_TYPE can be:
             *      o   Characters::String
             *      o   std::string
             */
            template    <typename AS_RESULT_TYPE, typename CRYTO_RESULT_TO_FORMAT_TYPE>
            AS_RESULT_TYPE  Format (const CRYTO_RESULT_TO_FORMAT_TYPE& digestResult);
            template    <typename CRYTO_RESULT_TO_FORMAT_TYPE>
            string          Format (const CRYTO_RESULT_TO_FORMAT_TYPE& digestResult);


        }
    }
}


/*
 ********************************************************************************
 ***************************** Implementation Details ***************************
 ********************************************************************************
 */
#include    "Format.inl"

#endif  /*_Stroika_Foundation_Cryptography_Format_h_*/

{'fraction_non_alphanumeric': 0.19554455445544555, 'fraction_numerical': 0.00605060506050605, 'mean_word_length': 2.4408703878902553, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2888188', 'n_tokens_mistral': 1045, 'n_tokens_neox': 991, 'n_words': 221}