<commit_before>'use strict';

function CreatedWorldsManager() {
    this.__init__();
}

CreatedWorldsManager.prototype = {

    __init__: function() {
        this.created_worlds = [];
    },

    create_new_created_world: function() {
        // Create a new created world Entity.
        var created_world_entity = new Entity();
        created_world_entity.set_property(ENTITY_DEFAULT_PROPERTY_TYPE, ENTITY_TYPE_CREATED_WORLD);

        this.entity.add_child(created_world_entity);

        var created_world = new CreatedWorld();
        MANAGER_WORLD.set_current_world(created_world);
    },

    load: function() {
        l('TODO : Load shared worlds!');
        // TODO : USE THIS POST!!!
        //this.post_get_shared_worlds = new PostHelper(POST_URL_GET_SHARED_WORLDS);

        l(MANAGER_ENTITY.get_all_entities_of_type(ENTITY_TYPE_CREATED_WORLDS_MANAGER));
        this.entity = MANAGER_ENTITY.get_all_entities_of_type(ENTITY_TYPE_CREATED_WORLDS_MANAGER)[0];

        // Iterate through the children of this manager. They each are a created world.
        var created_worlds = this.entity.get_children();
        for (var c = 0; c < created_worlds.length; c++) {

            // There are no shared worlds for now so cant test yet.
            var created_world = created_worlds[c];

        }
    }

};<commit_msg>shared worlds update 04<commit_after>'use strict';

function CreatedWorldsManager() {
    this.__init__();
}

CreatedWorldsManager.prototype = {

    __init__: function() {
        this.created_worlds = [];
    },

    create_new_created_world: function() {
        MANAGER_CREATED_WORLDS._create_new_created_world();
    },

    _create_new_created_world: function() {
        // Create a new created world Entity.
        var created_world_entity = new Entity();
        created_world_entity.set_property(ENTITY_DEFAULT_PROPERTY_TYPE, ENTITY_TYPE_CREATED_WORLD);

        this.entity.add_child(created_world_entity);

        var created_world = new CreatedWorld();
        MANAGER_WORLD.set_current_world(created_world);
    },

    load: function() {
        l('TODO : Load shared worlds!');
        // TODO : USE THIS POST!!!
        //this.post_get_shared_worlds = new PostHelper(POST_URL_GET_SHARED_WORLDS);

        l(MANAGER_ENTITY.get_all_entities_of_type(ENTITY_TYPE_CREATED_WORLDS_MANAGER));
        this.entity = MANAGER_ENTITY.get_all_entities_of_type(ENTITY_TYPE_CREATED_WORLDS_MANAGER)[0];

        // Iterate through the children of this manager. They each are a created world.
        var created_worlds = this.entity.get_children();
        for (var c = 0; c < created_worlds.length; c++) {

            // There are no shared worlds for now so cant test yet.
            var created_world = created_worlds[c];

        }
    }

};
{'fraction_non_alphanumeric': 0.09575233981281497, 'fraction_numerical': 0.0021598272138228943, 'mean_word_length': 3.045123726346434, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4160082', 'n_tokens_mistral': 903, 'n_tokens_neox': 867, 'n_words': 170}