<commit_before>import qbs
import qbs.Utilities

Project {
    minimumQbsVersion: "1.8"
    property bool enableX86

    CppApplication {
        Depends { name: "singlelib" }
        Depends { name: "bundle" }
        name: "singleapp"
        targetName: "singleapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        // Turn off multiplexing
        aggregate: false
        multiplexByQbsProperties: []

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "singlelib" }
        Depends { name: "bundle" }
        name: "singleapp_agg"
        targetName: "singleapp_agg"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        // Force aggregation when not needed
        aggregate: true
        qbs.architectures: ["x86_64"]
        qbs.buildVariants: ["release"]

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    DynamicLibrary {
        Depends { name: "cpp" }
        Depends { name: "bundle" }
        name: "singlelib"
        targetName: "singlelib"
        files: ["lib.c"]
        cpp.sonamePrefix: qbs.targetOS.contains("darwin") ? "@rpath" : undefined
        cpp.defines: ["VARIANT=" + Utilities.cStringQuote(qbs.buildVariant)]

        // Turn off multiplexing
        aggregate: false
        multiplexByQbsProperties: []

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "multiapp"
        targetName: "multiapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "fatmultiapp"
        targetName: "fatmultiapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"
        qbs.architectures: project.enableX86 ? ["x86", "x86_64"] : ["x86_64"]
        qbs.architecture: "x86_64"
        multiplexByQbsProperties: project.enableX86 ? ["architectures"] : []

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "fatmultiappmultivariant"
        targetName: "fatmultiappmultivariant"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"<commit_msg>Fix autotests for Xcode < 10<commit_after>import qbs
import qbs.Utilities

Project {
    minimumQbsVersion: "1.8"
    property bool enableX86

    CppApplication {
        Depends { name: "singlelib" }
        Depends { name: "bundle" }
        name: "singleapp"
        targetName: "singleapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        // Turn off multiplexing
        aggregate: false
        multiplexByQbsProperties: []

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "singlelib" }
        Depends { name: "bundle" }
        name: "singleapp_agg"
        targetName: "singleapp_agg"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        // Force aggregation when not needed
        aggregate: true
        qbs.architectures: ["x86_64"]
        qbs.buildVariants: ["release"]

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    DynamicLibrary {
        Depends { name: "cpp" }
        Depends { name: "bundle" }
        name: "singlelib"
        targetName: "singlelib"
        files: ["lib.c"]
        cpp.sonamePrefix: qbs.targetOS.contains("darwin") ? "@rpath" : undefined
        cpp.defines: ["VARIANT=" + Utilities.cStringQuote(qbs.buildVariant)]

        // Turn off multiplexing
        aggregate: false
        multiplexByQbsProperties: []

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "multiapp"
        targetName: "multiapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "fatmultiapp"
        targetName: "fatmultiapp"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"
        qbs.architectures: project.enableX86 ? ["x86", "x86_64"] : ["x86_64"]
        qbs.architecture: "x86_64"
        multiplexByQbsProperties: project.enableX86 ? ["architectures", "buildVariants"]
                                                    : ["buildVariants"]

        Group {
            fileTagsFilter: ["bundle.content"]
            qbs.install: true
            qbs.installSourceBase: product.buildDirectory
        }
    }

    CppApplication {
        Depends { name: "multilib" }
        Depends { name: "bundle" }
        name: "fatmultiappmultivariant"
        targetName: "fatmultiappmultivariant"
        files: ["app.c"]
        cpp.rpaths: [cpp.rpathOrigin + "/../../../"]
        cpp.minimumMacosVersion: "10.6"
{'fraction_non_alphanumeric': 0.12773778526573748, 'fraction_numerical': 0.012865676213815286, 'mean_word_length': 1.8061882251826387, 'pattern_counts': {'":': 0, '<': 4, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '681416', 'n_tokens_mistral': 2053, 'n_tokens_neox': 1950, 'n_words': 371}