<commit_before>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2016.  All rights reserved
 */
#include    "../StroikaPreComp.h"

#include    <atomic>
#include    <exception>
#include    <malloc.h>

#if     qPlatform_POSIX
#include    <unistd.h>
#endif

#include    "../Memory/Common.h"

#include    "Trace.h"

#include    "MallocGuard.h"



using   namespace   Stroika::Foundation;
using   Memory::Byte;


#if     qStroika_Foundation_Debug_MallocGuard
namespace {
    constexpr   Byte kMallocGuardHeader_BASE_[16] =   { 0xf3, 0xfa, 0x0b, 0x93, 0x48, 0x50, 0x46, 0xe6, 0x22, 0xf1, 0xfa, 0xc0, 0x9a, 0x0b, 0xeb, 0x23, };
    constexpr   Byte kMallocGuardFooter_BASE_[16] =   { 0x07, 0x41, 0xa4, 0x2b, 0xba, 0x97, 0xcb, 0x38, 0x46, 0x1e, 0x3c, 0x42, 0x3c, 0x5f, 0x0c, 0x80, };

    using   GuradBytes_ =   Byte[qStroika_Foundation_Debug_MallocGuard_GuardSize];
#if     qStroika_Foundation_Debug_MallocGuard_GuardSize == 16
    constexpr   GuradBytes_ kMallocGuardHeader_ =   kMallocGuardHeader_BASE_;
    constexpr   GuradBytes_ kMallocGuardFooter_ =   kMallocGuardFooter_BASE_;
#else
    const       GuradBytes_ kMallocGuardHeader_;
    const       GuradBytes_ kMallocGuardFooter_;
    struct DoInit_ ()
    {<commit_msg>maybe fix constexpr issue with mallocguard<commit_after>/*
 * Copyright(c) Sophist Solutions, Inc. 1990-2016.  All rights reserved
 */
#include    "../StroikaPreComp.h"

#include    <atomic>
#include    <exception>
#include    <malloc.h>

#if     qPlatform_POSIX
#include    <unistd.h>
#endif

#include    "../Memory/Common.h"

#include    "Trace.h"

#include    "MallocGuard.h"



using   namespace   Stroika::Foundation;
using   Memory::Byte;


#if     qStroika_Foundation_Debug_MallocGuard
namespace {
    constexpr   Byte kMallocGuardHeader_BASE_[16] =   { 0xf3, 0xfa, 0x0b, 0x93, 0x48, 0x50, 0x46, 0xe6, 0x22, 0xf1, 0xfa, 0xc0, 0x9a, 0x0b, 0xeb, 0x23, };
    constexpr   Byte kMallocGuardFooter_BASE_[16] =   { 0x07, 0x41, 0xa4, 0x2b, 0xba, 0x97, 0xcb, 0x38, 0x46, 0x1e, 0x3c, 0x42, 0x3c, 0x5f, 0x0c, 0x80, };

    using   GuradBytes_ =   Byte[qStroika_Foundation_Debug_MallocGuard_GuardSize];
#if     qStroika_Foundation_Debug_MallocGuard_GuardSize == 16
    constexpr   GuradBytes_ kMallocGuardHeader_     {   kMallocGuardHeader_BASE_ };
    constexpr   GuradBytes_ kMallocGuardFooter_     {   kMallocGuardFooter_BASE_ };
#else
    const       GuradBytes_ kMallocGuardHeader_;
    const       GuradBytes_ kMallocGuardFooter_;
    struct DoInit_ ()
    {
{'fraction_non_alphanumeric': 0.09923356192012908, 'fraction_numerical': 0.06938281565147236, 'mean_word_length': 3.7509578544061304, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3135876', 'n_tokens_mistral': 1117, 'n_tokens_neox': 996, 'n_words': 199}