<commit_before># MSVC config

env['CPPDEFINES']+=["WIN32",
                    "_WINDOWS"
                    ]
if debugmode:
    env['CPPDEFINES']+=["_DEBUG"]
else:
    env['CPPDEFINES']+=["NDEBUG"]

# Warnings, synchronous exceptions, enable RTTI, pool strings and ANSI for scoping
cppflags=Split('/c /nologo /W3 /EHsc /GR /GF /Zc:forScope')
assert architecture=="i486"
cppflags+=[ "/G%d" % i486_version ]
if   i486_SSE==1: cppflags+=[ "/arch:SSE" ]
elif i486_SSE==2: cppflags+=[ "/arch:SSE2" ]
if debugmode:
    cppflags+=["/Od",        # Optimisation off
               "/ZI",        # Edit & Continue debug info
               #"/O2", "/Oy-",
               "/Gm",        # Minimum rebuild
               "/RTC1",      # Stack and uninit run time checks<commit_msg>Added MSVC8 support<commit_after># MSVC config

env['CPPDEFINES']+=["WIN32",
                    "_WINDOWS"
                    ]
if debugmode:
    env['CPPDEFINES']+=["_DEBUG"]
else:
    env['CPPDEFINES']+=["NDEBUG"]

def CheckMSVC71(cc):
    cc.Message("Checking for MSVC7.1 ...")
    result=cc.TryCompile('#if !defined(_MSC_VER) || _MSC_VER<1310\n#error Too old!\n#endif\n', '.cpp')
    cc.Result(result)
    return result
def CheckMSVC80(cc):
    cc.Message("Checking for MSVC8.0 ...")
    result=cc.TryCompile('#if !defined(_MSC_VER) || _MSC_VER<1400\n#error Too old!\n#endif\n', '.cpp')
    cc.Result(result)
    return result
conf=Configure(env, { "CheckMSVC71" : CheckMSVC71, "CheckMSVC80" : CheckMSVC80 } )
assert conf.CheckMSVC71()
MSVCVersion=710
if conf.CheckMSVC80():
    MSVCVersion=800
env=conf.Finish()
# Warnings, synchronous exceptions, enable RTTI, pool strings and ANSI for scoping
cppflags=Split('/c /nologo /W3 /EHsc /GR /GF /Zc:forScope')
assert architecture=="i486"
if MSVCVersion==710:
    cppflags+=[ "/Ow",                   # Only functions may alias
                "/G%d" % i486_version    # Optimise for given processor revision
              ]
else:
    # Stop the stupid STDC function deprecated warnings
    env['CPPDEFINES']+=[("_CRT_SECURE_NO_DEPRECATE",1)]
if   i486_SSE==1: cppflags+=[ "/arch:SSE" ]
elif i486_SSE==2: cppflags+=[ "/arch:SSE2" ]
if debugmode:
    cppflags+=["/Od",        # Optimisation off
               "/ZI",        # Edit & Continue debug info
               #"/O2", "/Oy-",
               "/Gm",        # Minimum rebuild
               "/RTC1",      # Stack and uninit run time checks
{'fraction_non_alphanumeric': 0.15658657829328915, 'fraction_numerical': 0.03272576636288318, 'mean_word_length': 2.6315789473684212, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7356824', 'n_tokens_mistral': 897, 'n_tokens_neox': 819, 'n_words': 188}