<commit_before>import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo

Module {
    property list<string> references;
    property string buildVariant: "debug"
    property bool debugInformation: (buildVariant == "debug")
    property string optimization: (buildVariant == "debug" ? "none" : "fast")
    property string platform: null
    property string hostOS: getHostOS()
    property string hostArchitecture: getHostDefaultArchitecture()
    property string targetOS: null
    property string targetName: null
    property string toolchain: null
    property string architecture: null
    property string endianness: null
    property string installDir: '.'
    property string sysroot

    PropertyOptions {
        name: "buildVariant"
        allowedValues: ['debug', 'release']
        description: "Defines the consistence of your ice cream sandwich"
    }

    PropertyOptions {
        name: "optimization"
        allowedValues: ['none', 'fast', 'small']
        description: "optimization level"
    }

    Rule {
        inputs: ["install"]
        Artifact {
            fileTags: ["installed_content"]
            fileName: {
                var targetPath = input.modules.qbs.installDir + "/" + input.fileName
                if (product.module.sysroot && FileInfo.isAbsolutePath(targetPath))
                    targetPath = product.module.sysroot + targetPath
                return targetPath
            }
        }

        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.sourceCode = function() {
                        File.remove(output.fileName);
                        File.copy(input.fileName, output.fileName);
                    }<commit_msg>fix build variant description<commit_after>import qbs.base 1.0
import qbs.fileinfo 1.0 as FileInfo

Module {
    property list<string> references;
    property string buildVariant: "debug"
    property bool debugInformation: (buildVariant == "debug")
    property string optimization: (buildVariant == "debug" ? "none" : "fast")
    property string platform: null
    property string hostOS: getHostOS()
    property string hostArchitecture: getHostDefaultArchitecture()
    property string targetOS: null
    property string targetName: null
    property string toolchain: null
    property string architecture: null
    property string endianness: null
    property string installDir: '.'
    property string sysroot

    PropertyOptions {
        name: "buildVariant"
        allowedValues: ['debug', 'release']
        description: "name of the build variant"
    }

    PropertyOptions {
        name: "optimization"
        allowedValues: ['none', 'fast', 'small']
        description: "optimization level"
    }

    Rule {
        inputs: ["install"]
        Artifact {
            fileTags: ["installed_content"]
            fileName: {
                var targetPath = input.modules.qbs.installDir + "/" + input.fileName
                if (product.module.sysroot && FileInfo.isAbsolutePath(targetPath))
                    targetPath = product.module.sysroot + targetPath
                return targetPath
            }
        }

        prepare: {
            var cmd = new JavaScriptCommand();
            cmd.sourceCode = function() {
                        File.remove(output.fileName);
                        File.copy(input.fileName, output.fileName);
                    }
{'fraction_non_alphanumeric': 0.08718703976435935, 'fraction_numerical': 0.00235640648011782, 'mean_word_length': 2.2373689227836033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2992806', 'n_tokens_mistral': 843, 'n_tokens_neox': 819, 'n_words': 240}