<commit_before>""" SCons basic build flags for cross platform compilations


"""
import os


def configure_darwin(env):
    """ Configure for recent (Yosemite or better) versions of OSX
    """

    warnings = ''
    warnings += '-Wall -Wextra -Wpedantic -Wwrite-strings '
    warnings += '-Wcast-qual -Wconversion -Werror=return-type'
    warnings = warnings.split()

    env['WARNINGFLAGS'] = warnings
    env.Append(CCFLAGS = ['-fcolor-diagnostics $WARNINGFLAGS'])
    env.Append(CXXFLAGS = '-std=c++1y -stdlib=libc++'.split())

    opt_flags = dict(
        debug   = '-g -O0'.split(),
        release = ['-03']
    )

    configuration = env.subst('$configuration').lower()
    env.Append(CCFLAGS = opt_flags[configuration])
    return env


def configure_platform(env):<commit_msg>correcting output for use in vim<commit_after>""" SCons basic build flags for cross platform compilations


"""
import os
import sys

def configure_darwin(env):
    """ Configure for recent (Yosemite or better) versions of OSX
    """

    warnings = ''
    warnings += '-Wall -Wextra -Wpedantic -Wwrite-strings '
    warnings += '-Wcast-qual -Wconversion -Werror=return-type'
    warnings = warnings.split()
    env['WARNINGFLAGS'] = warnings
    env.Append(CCFLAGS = '$WARNINGFLAGS')

    # if scons is being run as a tool (say from inside vim)
    # don't worry about coloring the output
    if sys.stdout.isatty():
        env.Append(CCFLAGS = ['-fcolor-diagnostics'])

    env.Append(CXXFLAGS = '-std=c++1y -stdlib=libc++'.split())

    opt_flags = dict(
        debug   = '-g -O0'.split(),
        release = ['-03']
    )

    configuration = env.subst('$configuration').lower()
    env.Append(CCFLAGS = opt_flags[configuration])
    return env


def configure_platform(env):
{'fraction_non_alphanumeric': 0.14027149321266968, 'fraction_numerical': 0.004524886877828055, 'mean_word_length': 3.201900237529691, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2427920', 'n_tokens_mistral': 561, 'n_tokens_neox': 544, 'n_words': 141}