<commit_before>function PAterminate()
    global ('PA_jvminterface')
    disp('quitting...');
    opt = PAoptions();

    if type(PA_jvminterface) ~= 1 then

        if type(opt.SharedPushPublicUrl) ~= 1
            // ok data is handled in a shared data space
        else
            if opt.EnableDisconnectedPopup
                jimport org.ow2.proactive.scheduler.ext.scilab.client.embedded.ScilabTaskRepository;
                repository = jinvoke(ScilabTaskRepository,'getInstance');
                notReceived = jinvoke(repository, 'notYetReceived');
                jobs = [];
                if ~jinvoke(notReceived, 'isEmpty')
                    msg = 'The following jobs are not completed yet : ';
                    for j = 0:jinvoke(notReceived, 'size')-1
                        jid = jinvoke(notReceived, 'get', j);
                        msg = msg + ' ' + jid;
                    end
                    msg = msg + ascii(10);
                    msg = msg + 'The MiddleMan JVM can stay alive and handle data transfers while your computer is on' + ascii(10);
                    msg = msg + 'Do you want enable this mode ?';
                    btn = messagebox(msg, "ProActive", "question", ["Yes" "No"], "modal")

                end
                jremove(notReceived);
                jremove(repository);
                jremove(ScilabTaskRepository);
                return;
            end
        end
        try
            jinvoke(PA_jvminterface,'shutdown');
        catch
        end
    end
endfunction<commit_msg>forgotten reaction to user's choice<commit_after>function PAterminate()
    global ('PA_jvminterface')
    disp('quitting...');
    opt = PAoptions();

    if type(PA_jvminterface) ~= 1 then

        if type(opt.SharedPushPublicUrl) ~= 1
            // ok data is handled in a shared data space
        else
            if opt.EnableDisconnectedPopup
                jimport org.ow2.proactive.scheduler.ext.scilab.client.embedded.ScilabTaskRepository;
                repository = jinvoke(ScilabTaskRepository,'getInstance');
                notReceived = jinvoke(repository, 'notYetReceived');
                jobs = [];
                if ~jinvoke(notReceived, 'isEmpty')
                    msg = 'The following jobs are not completed yet : ';
                    for j = 0:jinvoke(notReceived, 'size')-1
                        jid = jinvoke(notReceived, 'get', j);
                        msg = msg + ' ' + jid;
                    end
                    msg = msg + ascii(10);
                    msg = msg + 'The MiddleMan JVM can stay alive and handle data transfers while your computer is on' + ascii(10);
                    msg = msg + 'Do you want enable this mode ?';
                    btn = messagebox(msg, "ProActive", "question", ["Yes" "No"], "modal")
                    if btn == 1
                        return;
                    end
                end
                jremove(notReceived);
                jremove(repository);
                jremove(ScilabTaskRepository);
            end
        end
        try
            jinvoke(PA_jvminterface,'shutdown');
        catch
        end
    end
endfunction
{'fraction_non_alphanumeric': 0.09319108879824287, 'fraction_numerical': 0.005961719485409476, 'mean_word_length': 1.477078477078477, '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': '3937233', 'n_tokens_mistral': 862, 'n_tokens_neox': 800, 'n_words': 219}