<commit_before>var taskPlatformAdapterPlatform = {
    validate: function(mode, success, error) {
        $('#validateOk').show();
    },
    getTaskParams: function(key, defaultValue, success, error) {
        var res = {'minScore': 0, 'maxScore': 100, 'noScore': 0, 'readOnly': true, 'randomSeed': "0", 'options': {}}; // TODO :: randomSeed
        if(key && key in res) {
            res = res[key];
        } else if(key) {
            res = defaultValue;
        }
        if(success) {
            success(res);
        } else {
            return res;
        }},
    askHint: function(hint, success, error) {
        success();
    },
    updateDisplay: function(params, success, error) {
        success();
    }
};

platform.setPlatform(taskPlatformAdapterPlatform);
$(function () {
    task.load(null, function () {
        var source = window.parent.adapterApi.getSource();
        task.reloadAnswerObject({'easy': [{'blockly': source.sourceCode}]});

        setTimeout(function() {
            $('.contentCentered').hide();
            $('#submitBtn').hide();
            $('#displayHelperAnswering').hide();
            }, 0);
        });

        var updateHeight = null;
        updateHeight = function() {
            window.parent.adapterApi.setHeight($('body').outerHeight(true));
            setTimeout(updateHeight, 1000);
        };
        updateHeight();
        setTimeout(function() {
            task.displayedSubTask.getGrade(function(results) {
                if(results.successRate >= 1) {
                    $('#success').show();
                    window.parent.adapterApi.displayPopup();
                }
                task.displayedSubTask.run();
                }, true);
        }, 1000);
});

if(window.Blockly) {
  Blockly.JavaScript['input_num'] = function(block) {
    Blockly.JavaScript.definitions_['input_funcs'] = "var stdinBuffer = '';\n"
                                                   + "function readStdin() {\n"
                                                   + "    if (stdinBuffer == '')\n"<commit_msg>Fix quickAlgo final test rerun<commit_after>var taskPlatformAdapterPlatform = {
    validate: function(mode, success, error) {
        $('#validateOk').show();
    },
    getTaskParams: function(key, defaultValue, success, error) {
        var res = {'minScore': 0, 'maxScore': 100, 'noScore': 0, 'readOnly': true, 'randomSeed': "0", 'options': {}}; // TODO :: randomSeed
        if(key && key in res) {
            res = res[key];
        } else if(key) {
            res = defaultValue;
        }
        if(success) {
            success(res);
        } else {
            return res;
        }},
    askHint: function(hint, success, error) {
        success();
    },
    updateDisplay: function(params, success, error) {
        success();
    }
};

platform.setPlatform(taskPlatformAdapterPlatform);
$(function () {
    task.load(null, function () {
        var source = window.parent.adapterApi.getSource();
        task.reloadAnswerObject({'easy': [{'blockly': source.sourceCode}]});

        setTimeout(function() {
            $('.contentCentered').hide();
            $('#submitBtn').hide();
            $('#displayHelperAnswering').hide();
            }, 0);
        });

        var updateHeight = null;
        updateHeight = function() {
            window.parent.adapterApi.setHeight($('body').outerHeight(true));
            setTimeout(updateHeight, 1000);
        };
        updateHeight();
        setTimeout(function() {
            task.displayedSubTask.getGrade(function(results) {
                if(results.successRate >= 1) {
                    $('#success').show();
                    window.parent.adapterApi.displayPopup();
                }
                setTimeout(function() {
                    task.displayedSubTask.run();
                    }, 1000);
                }, true);
        }, 1000);
});

if(window.Blockly) {
  Blockly.JavaScript['input_num'] = function(block) {
    Blockly.JavaScript.definitions_['input_funcs'] = "var stdinBuffer = '';\n"
                                                   + "function readStdin() {\n"
                                                   + "    if (stdinBuffer == '')\n"
{'fraction_non_alphanumeric': 0.15249822401136634, 'fraction_numerical': 0.008524745441629173, 'mean_word_length': 1.8066445182724253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1057663', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1108, 'n_words': 201}