<commit_before>//  Copyright (c) 2011-2012 UX Productivity Pty Ltd. All rights reserved.

(function(){

    var backMessages = new Array();

    function addBackMessage()
    {
        backMessages.push(arrayCopy(arguments));
        return null;
    }

    window.Editor = {

        getBackMessages: function()
        {
            var result = JSON.stringify(backMessages);
            backMessages = new Array();
            return result;
        },

        debug: function(str)
        {
            addBackMessage("debug",str);
        },

        setOutline: function(outline)
        {<commit_msg>Added addOutlineItem(), updateOutlineItem(), and removeOutlineItem(), in preparation for outline items being manipulated at a more fine-grained level, rather than relying on updating the complete outline every time something changes.<commit_after>//  Copyright (c) 2011-2012 UX Productivity Pty Ltd. All rights reserved.

(function(){

    var backMessages = new Array();

    function addBackMessage()
    {
        backMessages.push(arrayCopy(arguments));
        return null;
    }

    window.Editor = {

        getBackMessages: function()
        {
            var result = JSON.stringify(backMessages);
            backMessages = new Array();
            return result;
        },

        debug: function(str)
        {
            addBackMessage("debug",str);
        },

        addOutlineItem: function(itemId,type)
        {
            addBackMessage("addOutlineItem",itemId,type);
        },

        updateOutlineItem: function(itemId,title)
        {
            addBackMessage("updateOutlineItem",itemId,title);
        },

        removeOutlineItem: function(itemId)
        {
            addBackMessage("removeOutlineItem",itemId);
        },

        setOutline: function(outline)
        {
{'fraction_non_alphanumeric': 0.09900990099009901, 'fraction_numerical': 0.0088008800880088, 'mean_word_length': 2.1308089500860583, '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': '4758306', 'n_tokens_mistral': 494, 'n_tokens_neox': 462, 'n_words': 111}