<commit_before>{
    "type": "ResizableLayout",
    "cssClass": "wegas-editview",
    "plugins": [
        {
            "fn": "PopupListener"
        },
        {
            "fn": "OnDeleteListener"
        }
    ],
    "top": {
        "height": 25,
        "children": [
            {
                "type": "FlexList",
                "direction": "horizontal",
                "cssClass": "wegas-edit-maintoolbar",
                "children": [
                    {
                        "type": "FlexList",
                        "direction": "horizontal",
                        "cssClass": "wegas-toolbar-title",
                        "children": [
                            {
                                "type": "Button",
                                "cssClass": "wegas-logo",
                                "tooltip": "Back to lobby",
                                "plugins": [
                                    {
                                        "fn": "OpenUrlAction",
                                        "cfg": {
                                            "url": "",
                                            "target": "_self"
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Text",
                                "cssClass": "wegas-title"
                            }
                        ]
                    },
                    {
                        "type": "FlexList",
                        "direction": "horizontal",
                        "cssClass": "wegas-toolbar-menu",
                        "children": [
                            {
                                "type": "Button",
                                "label": "Edit",
                                "cssClass": "wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [
                                                {
                                                    "type": "Button",
                                                    "label": "Find & Replace",
                                                    "plugins": [
                                                        {
                                                            "fn": "FindAndReplaceAction"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Button",
                                "label": "View",
                                "cssClass": "wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [
                                                {
                                                    "type": "Button",
                                                    "label": "[FORM] Show WYSIWYG Script",
                                                    "cssClass": "wegas-toggle-scriptsource-mode-button",
                                                    "plugins": [
                                                        {
                                                            "fn": "ExecuteLocalScriptAction",
                                                            "cfg": {
                                                                "targetEvent": "click",
                                                                "onClick": "Y.Wegas.Config.ShowImpactAsSource = false;Y.all('.wegas-toggle-scriptsource-mode-button').each(function(button){Y.Widget.getByNode(button).ConditionalDisable.conditionEval();});return;"
                                                            }
                                                        }, {
                                                            "fn": "ConditionalDisable",
                                                            "cfg": {
                                                                "condition": {
                                                                    "@class": "Script",
                                                                    "content": "!Y.Wegas.Config.ShowImpactAsSource"
                                                                },
                                                                "attribute": "cssClass",
                                                                "value": "button-hidden"
                                                            }
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "label": "[FORM] Show Script Source",
                                                    "cssClass": "wegas-toggle-scriptsource-mode-button",
                                                    "plugins": [
                                                        {
                                                            "fn": "ExecuteLocalScriptAction",
                                                            "cfg": {
                                                                "targetEvent": "click",
                                                                "onClick": "Y.Wegas.Config.ShowImpactAsSource = true;Y.all('.wegas-toggle-scriptsource-mode-button').each(function(button){Y.Widget.getByNode(button).ConditionalDisable.conditionEval();});return;"
                                                            }
                                                        }, {
                                                            "fn": "ConditionalDisable",
                                                            "cfg": {
                                                                "condition": {
                                                                    "@class": "Script",
                                                                    "content": "Y.Wegas.Config.ShowImpactAsSource;"
                                                                },
                                                                "attribute": "cssClass",
                                                                "value": "button-hidden"
                                                            }
                                                        }
                                                    ]
                                                }, {
                                                    "type": "Button",
                                                    "label": "Advanced Tabs",
                                                    "plugins": [
                                                        {
                                                            "fn": "ToggleAdvancedTabsMode"
                                                        }
                                                    ]
                                                }

                                            ]
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Button",
                                "label": "Advanced Tools",
                                "cssClass": "editor-scenarist-button editor-scenarist-advanced-button wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [

                                                {
                                                    "type": "Button",
                                                    "label": "EXPERIMENTAL: Create a new scenario from player state",
                                                    "plugins": [
                                                        {
                                                            "fn": "GmExtractorAction"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "label": "<b>Experimental & Hazardous</b> Re-init default values from a player",
                                                    "plugins": [
                                                        {
                                                            "fn": "GmDefaulterAction"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "label": "Clear EM level2 Cache",
                                                    "plugins": [
                                                        {
                                                            "fn": "FireAndForgetRequestAction",
                                                            "cfg": {
                                                                "url": "rest/Utils/EmCache",<commit_msg>[Editor] Hide clear level2 cache button<commit_after>{
    "type": "ResizableLayout",
    "cssClass": "wegas-editview",
    "plugins": [
        {
            "fn": "PopupListener"
        },
        {
            "fn": "OnDeleteListener"
        }
    ],
    "top": {
        "height": 25,
        "children": [
            {
                "type": "FlexList",
                "direction": "horizontal",
                "cssClass": "wegas-edit-maintoolbar",
                "children": [
                    {
                        "type": "FlexList",
                        "direction": "horizontal",
                        "cssClass": "wegas-toolbar-title",
                        "children": [
                            {
                                "type": "Button",
                                "cssClass": "wegas-logo",
                                "tooltip": "Back to lobby",
                                "plugins": [
                                    {
                                        "fn": "OpenUrlAction",
                                        "cfg": {
                                            "url": "",
                                            "target": "_self"
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Text",
                                "cssClass": "wegas-title"
                            }
                        ]
                    },
                    {
                        "type": "FlexList",
                        "direction": "horizontal",
                        "cssClass": "wegas-toolbar-menu",
                        "children": [
                            {
                                "type": "Button",
                                "label": "Edit",
                                "cssClass": "wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [
                                                {
                                                    "type": "Button",
                                                    "label": "Find & Replace",
                                                    "plugins": [
                                                        {
                                                            "fn": "FindAndReplaceAction"
                                                        }
                                                    ]
                                                }
                                            ]
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Button",
                                "label": "View",
                                "cssClass": "wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [
                                                {
                                                    "type": "Button",
                                                    "label": "[FORM] Show WYSIWYG Script",
                                                    "cssClass": "wegas-toggle-scriptsource-mode-button",
                                                    "plugins": [
                                                        {
                                                            "fn": "ExecuteLocalScriptAction",
                                                            "cfg": {
                                                                "targetEvent": "click",
                                                                "onClick": "Y.Wegas.Config.ShowImpactAsSource = false;Y.all('.wegas-toggle-scriptsource-mode-button').each(function(button){Y.Widget.getByNode(button).ConditionalDisable.conditionEval();});return;"
                                                            }
                                                        }, {
                                                            "fn": "ConditionalDisable",
                                                            "cfg": {
                                                                "condition": {
                                                                    "@class": "Script",
                                                                    "content": "!Y.Wegas.Config.ShowImpactAsSource"
                                                                },
                                                                "attribute": "cssClass",
                                                                "value": "button-hidden"
                                                            }
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "label": "[FORM] Show Script Source",
                                                    "cssClass": "wegas-toggle-scriptsource-mode-button",
                                                    "plugins": [
                                                        {
                                                            "fn": "ExecuteLocalScriptAction",
                                                            "cfg": {
                                                                "targetEvent": "click",
                                                                "onClick": "Y.Wegas.Config.ShowImpactAsSource = true;Y.all('.wegas-toggle-scriptsource-mode-button').each(function(button){Y.Widget.getByNode(button).ConditionalDisable.conditionEval();});return;"
                                                            }
                                                        }, {
                                                            "fn": "ConditionalDisable",
                                                            "cfg": {
                                                                "condition": {
                                                                    "@class": "Script",
                                                                    "content": "Y.Wegas.Config.ShowImpactAsSource;"
                                                                },
                                                                "attribute": "cssClass",
                                                                "value": "button-hidden"
                                                            }
                                                        }
                                                    ]
                                                }, {
                                                    "type": "Button",
                                                    "label": "Advanced Tabs",
                                                    "plugins": [
                                                        {
                                                            "fn": "ToggleAdvancedTabsMode"
                                                        }
                                                    ]
                                                }

                                            ]
                                        }
                                    }
                                ]
                            },
                            {
                                "type": "Button",
                                "label": "Advanced Tools",
                                "cssClass": "editor-scenarist-button editor-scenarist-advanced-button wegas-advanced-feature",
                                "plugins": [
                                    {
                                        "fn": "WidgetMenu",
                                        "cfg": {
                                            "children": [

                                                {
                                                    "type": "Button",
                                                    "label": "EXPERIMENTAL: Create a new scenario from player state",
                                                    "plugins": [
                                                        {
                                                            "fn": "GmExtractorAction"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "label": "<b>Experimental & Hazardous</b> Re-init default values from a player",
                                                    "plugins": [
                                                        {
                                                            "fn": "GmDefaulterAction"
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Button",
                                                    "cssClass": "wegas-internal-feature",
                                                    "label": "Clear EM level2 Cache",
                                                    "plugins": [
                                                        {
                                                            "fn": "FireAndForgetRequestAction",
                                                            "cfg": {
                                                                "url": "rest/Utils/EmCache",
{'fraction_non_alphanumeric': 0.07234650166587339, 'fraction_numerical': 0.00033317467872441694, 'mean_word_length': 0.33065231158961367, 'pattern_counts': {'":': 207, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 430, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6743095', 'n_tokens_mistral': 2655, 'n_tokens_neox': 2532, 'n_words': 420}