<commit_before>import sublime_plugin
from ..QuickMenu import *
from ..utils.javatar_actions import *


class JavatarCommand(sublime_plugin.WindowCommand):
    qm = None
    menuStable = {
        "main": {
            "items": [["Builds...", "Build system"], ["Calls...", "Insert class informations"], ["Create...", "Create a new class or package"], ["Operations...", "Do a Java operation"], ["Project Settings...", "Adjust per-project settings"], ["Javatar Settings...", "Adjust Javatar settings"], ["Packages Manager...", "Javatar packages manager"]],
            "actions": [
                {
                    "name": "builds"
                }, {
                    "name": "calls"
                }, {
                    "name": "creates"
                }, {
                    "name": "operations"
                }, {
                    "name": "project_settings"
                }, {
                    "name": "global_settings"
                }, {
                    "name": "package_manager"
                }
            ]
        },
        "builds": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Project", "Build all classes in project"], ["Package", "Build all classes in current package"], ["Working", "Build all classes in opened tabs"], ["Current Class", "Build current class"], ["Run Main Class", "Run class contains main method"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "project"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "package"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "working"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "class"
                    }
                }, {
                    "command": "javatar_run_main"
                }
            ]
        },
        "calls": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Package Name", "Return package path from root"], ["Subpackage Name", "Return current package name"], ["Full Class Name", "Return class path from root"], ["Class Name", "Return current class name"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "package_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "subpackage_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "full_class_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "class_name"
                    }
                }
            ]
        },
        "creates": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Package", "Create a new package"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_create_package"
                }
            ]
        },
        "operations": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Correct Class", "Correct package and class name in current file"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_correct_class"
                }
            ]
        },
        "project_settings": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Set Program Arguments", "Set the arguments that should be passed to the executed main"], ["Dependencies...", "Manage project dependencies"], ["Set Source Folder", "Set source folder to specified as default package"], ["Set Default JDK", "Set default JDK for builds and runs"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_program_arguments"
                    }
                }, {
                    "name": "local_dependencies"
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_source_folder"
                    }
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_jdk",
                        "arg1": True
                    }
                }<commit_msg>Clarify 'set program arguments' command description<commit_after>import sublime_plugin
from ..QuickMenu import *
from ..utils.javatar_actions import *


class JavatarCommand(sublime_plugin.WindowCommand):
    qm = None
    menuStable = {
        "main": {
            "items": [["Builds...", "Build system"], ["Calls...", "Insert class informations"], ["Create...", "Create a new class or package"], ["Operations...", "Do a Java operation"], ["Project Settings...", "Adjust per-project settings"], ["Javatar Settings...", "Adjust Javatar settings"], ["Packages Manager...", "Javatar packages manager"]],
            "actions": [
                {
                    "name": "builds"
                }, {
                    "name": "calls"
                }, {
                    "name": "creates"
                }, {
                    "name": "operations"
                }, {
                    "name": "project_settings"
                }, {
                    "name": "global_settings"
                }, {
                    "name": "package_manager"
                }
            ]
        },
        "builds": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Project", "Build all classes in project"], ["Package", "Build all classes in current package"], ["Working", "Build all classes in opened tabs"], ["Current Class", "Build current class"], ["Run Main Class", "Run class contains main method"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "project"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "package"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "working"
                    }
                }, {
                    "command": "javatar_build",
                    "args": {
                        "build_type": "class"
                    }
                }, {
                    "command": "javatar_run_main"
                }
            ]
        },
        "calls": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Package Name", "Return package path from root"], ["Subpackage Name", "Return current package name"], ["Full Class Name", "Return class path from root"], ["Class Name", "Return current class name"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "package_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "subpackage_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "full_class_name"
                    }
                }, {
                    "command": "javatar_call",
                    "args": {
                        "call_type": "class_name"
                    }
                }
            ]
        },
        "creates": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Package", "Create a new package"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_create_package"
                }
            ]
        },
        "operations": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Correct Class", "Correct package and class name in current file"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_correct_class"
                }
            ]
        },
        "project_settings": {
            "selected_index": 2,
            "items": [["Back", "Back to previous menu"], ["Set Program Arguments", "Set the arguments to pass on main execution"], ["Dependencies...", "Manage project dependencies"], ["Set Source Folder", "Set source folder to specified as default package"], ["Set Default JDK", "Set default JDK for builds and runs"]],
            "actions": [
                {
                    "name": "main"
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_program_arguments"
                    }
                }, {
                    "name": "local_dependencies"
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_source_folder"
                    }
                }, {
                    "command": "javatar_settings",
                    "args": {
                        "actiontype": "set_jdk",
                        "arg1": True
                    }
                }
{'fraction_non_alphanumeric': 0.13356002644752998, 'fraction_numerical': 0.0011334655709832814, 'mean_word_length': 1.039684068580235, 'pattern_counts': {'":': 146, '<': 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': '7115415', 'n_tokens_mistral': 2605, 'n_tokens_neox': 2391, 'n_words': 608}