<commit_before>window.onbeforeunload = function () {
    var message = "Are you sure you want to navigate away from this page?\n\nYour changes may be lost.";
    return confirm(message);
};

var OjsArticleSubmission = {
    articleId: null,
    languages: [],
    loadStepTemplate: function (step) {
        var tpl = $('#step' + step + '_tpl').html();
        var tpl_rendered = Mustache.render(tpl);
        $("#step" + step).append(tpl_rendered);
    },
    backTo: function (step) {
        this.hideAllSteps();
        this.configureProgressBar(step);
        this.showStep(step);
    },
    configureProgressBar: function (step) {
        $("ul.submission-progress li").removeClass("active");
        $("ul.submission-progress li#submission-progress-step" + step).addClass("active");
    },
    hideAllSteps: function () {
        $(".step").addClass("hide", 200, "easeInBack");
    },
    showStep: function (step) {
        $("#step" + step + "-container").removeClass("hide", 200, "easeInBack");
    },
    hideStep: function (step) {<commit_msg>submission onbeforeunload confirm <commit_after>window.onbeforeunload = function () {
    var message = "Are you sure you want to navigate away from this page?\n\nYour changes may be lost.";
    return message;
};

var OjsArticleSubmission = {
    articleId: null,
    languages: [],
    loadStepTemplate: function (step) {
        var tpl = $('#step' + step + '_tpl').html();
        var tpl_rendered = Mustache.render(tpl);
        $("#step" + step).append(tpl_rendered);
    },
    backTo: function (step) {
        this.hideAllSteps();
        this.configureProgressBar(step);
        this.showStep(step);
    },
    configureProgressBar: function (step) {
        $("ul.submission-progress li").removeClass("active");
        $("ul.submission-progress li#submission-progress-step" + step).addClass("active");
    },
    hideAllSteps: function () {
        $(".step").addClass("hide", 200, "easeInBack");
    },
    showStep: function (step) {
        $("#step" + step + "-container").removeClass("hide", 200, "easeInBack");
    },
    hideStep: function (step) {
{'fraction_non_alphanumeric': 0.16211121583411875, 'fraction_numerical': 0.005655042412818096, 'mean_word_length': 3.0670498084291187, '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': '3951040', 'n_tokens_mistral': 645, 'n_tokens_neox': 642, 'n_words': 141}