<commit_before>{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "viewRow": {
            "title": "View row",
            "description": "A single row of a view (either add/edit/view or index)",
            "type": "array",
            "items": {
                "type": "string"
            },
            "uniqueItems": true,
            "minItems": 1,
            "maxItems": 13
        },
        "fieldLabel": {
            "title": "Field Label",
            "description": "Label for a row of fields",
            "type": "string"
        },
        "fieldName": {
            "title": "Module field name",
            "description": "A single module field name",
            "type": "string"
        },
        "relationField": {
            "title": "Relation field name",
            "description": "A single relation field name",
            "type": "string",
            "pattern": "^(ASSOCIATION)\\((.+)\\)$"
        },
        "embeddedField": {
            "title": "Embedded field",
            "description": "Embedded fields are valid references.",
            "type": "string",
            "pattern": "^(EMBEDDED)\\((.+)\\)$"
        },
        "emptyField": {
            "title": "Empty field",
            "description": "Empty fields are allowed by the builder.",
            "type": "string",
            "pattern": "^$"
        }
    },
    "title": "View configuration",
    "description": "View configuration",
    "type": "object",
    "properties": {
        "items": {
            "title": "View row items",
            "description": "All rows for a given view",
            "type": "array",
            "items": {
                "type": "array",
                "minItems": 1,
                "maxItems": 13,
                "items": [ { "$ref": "#/definitions/fieldLabel" } ],
                "additionalItems": {
                    "anyOf": [
                        { "$ref": "#/definitions/fieldName" },
                        { "$ref": "#/definitions/embeddedField" },
                        { "$ref": "#/definitions/emptyField" },
                        { "$ref": "#/definitions/relationField" }
                    ]
                }
            }
        }
    },
    "required": ["items"],
    "additionalProperties": false
}<commit_msg>Provision for embedding virtual fields (task #16980)<commit_after>{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "definitions": {
        "viewRow": {
            "title": "View row",
            "description": "A single row of a view (either add/edit/view or index)",
            "type": "array",
            "items": {
                "type": "string"
            },
            "uniqueItems": true,
            "minItems": 1,
            "maxItems": 13
        },
        "fieldLabel": {
            "title": "Field Label",
            "description": "Label for a row of fields",
            "type": "string"
        },
        "fieldName": {
            "title": "Module field name",
            "description": "A single module field name",
            "type": "string"
        },
        "virtualFieldName": {
            "title": "Module field name",
            "description": "A single module field name",
            "type": "string",
            "enum": []
        },
        "relationField": {
            "title": "Relation field name",
            "description": "A single relation field name",
            "type": "string",
            "pattern": "^(ASSOCIATION)\\((.+)\\)$"
        },
        "embeddedField": {
            "title": "Embedded field",
            "description": "Embedded fields are valid references.",
            "type": "string",
            "pattern": "^(EMBEDDED)\\((.+)\\)$"
        },
        "emptyField": {
            "title": "Empty field",
            "description": "Empty fields are allowed by the builder.",
            "type": "string",
            "pattern": "^$"
        }
    },
    "title": "View configuration",
    "description": "View configuration",
    "type": "object",
    "properties": {
        "items": {
            "title": "View row items",
            "description": "All rows for a given view",
            "type": "array",
            "items": {
                "type": "array",
                "minItems": 1,
                "maxItems": 13,
                "items": [ { "$ref": "#/definitions/fieldLabel" } ],
                "additionalItems": {
                    "anyOf": [
                        { "$ref": "#/definitions/fieldName" },
                        { "$ref": "#/definitions/virtualFieldName" },
                        { "$ref": "#/definitions/embeddedField" },
                        { "$ref": "#/definitions/emptyField" },
                        { "$ref": "#/definitions/relationField" }
                    ]
                }
            }
        }
    },
    "required": ["items"],
    "additionalProperties": false
}
{'fraction_non_alphanumeric': 0.16727272727272727, 'fraction_numerical': 0.004242424242424243, 'mean_word_length': 1.362118320610687, 'pattern_counts': {'":': 118, '<': 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': '1998145', 'n_tokens_mistral': 1339, 'n_tokens_neox': 1272, 'n_words': 316}