<commit_before>function AppAssistant(appController) {
};

AppAssistant.prototype = {
    handleLaunch: function(params){
        Mojo.Log.info("handleLaunch: %j", params);

        // Create the main scene if we do not already have one
        var proxy = this.controller.getStageProxy("main");
        if (!proxy) {
            // The stage controller has not been created
            this.controller.createStageWithCallback({
                    name: "main",
                    lightweight: true,
                },
                function(controller) {
                    controller.pushScene("main");
                },
                Mojo.Controller.StageType.card);
        } else {
            var controller = this.controller.getStageController("main");
            controller && controller.activate();
        }
    },

    delegateToSupportingScene: function(stageName, delegateName, params) {
        var controller = this.controller.getStageController(stageName),
            proxy = this.controller.getStageProxy(stageName);
        if (controller) {
            // The scene if fully initialized, we delegate directly, walking on the scene stack until we
            // find a scene that supports this operation
            var scenes = controller.getScenes(),
                len = scenes.length;<commit_msg>Additional comments docing the delagateToSupportingScene method.<commit_after>function AppAssistant(appController) {
};

AppAssistant.prototype = {
    handleLaunch: function(params){
        Mojo.Log.info("handleLaunch: %j", params);

        // Create the main scene if we do not already have one
        var proxy = this.controller.getStageProxy("main");
        if (!proxy) {
            // The stage controller has not been created
            this.controller.createStageWithCallback({
                    name: "main",
                    lightweight: true,
                },
                function(controller) {
                    controller.pushScene("main");
                },
                Mojo.Controller.StageType.card);
        } else {
            var controller = this.controller.getStageController("main");
            controller && controller.activate();
        }
    },

    /**
     * Delegation utility. Calls the first scene assistant who has an instance of delegateName.
     * If the stage is still proxied calls proxy.delegateToSceneAssistant.
     */
    delegateToSupportingScene: function(stageName, delegateName, params) {
        var controller = this.controller.getStageController(stageName),
            proxy = this.controller.getStageProxy(stageName);
        if (controller) {
            // The scene if fully initialized, we delegate directly, walking on the scene stack until we
            // find a scene that supports this operation
            var scenes = controller.getScenes(),
                len = scenes.length;
{'fraction_non_alphanumeric': 0.08914996544574982, 'fraction_numerical': 0.0, 'mean_word_length': 2.0250783699059562, 'pattern_counts': {'":': 0, '<': 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': '4215791', 'n_tokens_mistral': 680, 'n_tokens_neox': 653, 'n_words': 191}