<commit_before>'use strict'

function WorldManager() {
    this.__init__()
}

function Planet(world, x, y, z) {
    this.__init__(world, x, y, z)
}

Planet.prototype = {
    geometry: null,
    material: null,
    mesh    : null,

    __init__: function(world, x, y, z) {
        this.world = world

        // Inherit from interactive.
        Interactive.call(this)

        this.planet_title = new Floating3DText(400, world.planet_name, TYPE_TITLE)
        this.planet_title.update_position_and_look_at(new THREE.Vector3(x, y - 500, z), new THREE.Vector3(0, 0, 0))

        this.geometry = new THREE.DodecahedronGeometry(200, 2)

        this.planet_color = 0x8effcb

        this.material = new THREE.MeshBasicMaterial({
            color: 0x8effcb, // '0x8effcb'
            // TODO : Figure out if I should use front side or back side.
            side: THREE.DoubleSide
        })
        this.mesh = new THREE.Mesh(this.geometry, this.material)
        this.mesh.position.set(x, y, z)

        this.world.add_to_scene(this.mesh)
        this.world.add_interactive_object(this.mesh)
    },

    add_this_planet_to_world: function(world) {
        world.add_to_scene(this.mesh)
        world.add_to_scene(this.planet_title.object3D)
    },

    /* __  ___      ___  ___     __                  __   ___  __
      /__`  |   /\   |  |__     /  ` |__|  /\  |\ | / _` |__  /__`
      .__/  |  /~~\  |  |___    \__, |  | /~~\ | \| \__> |___ .__/ */<commit_msg>general updating 27<commit_after>'use strict'

function WorldManager() {
    this.__init__()
}

function Planet(world, x, y, z) {
    this.__init__(world, x, y, z)
}

Planet.prototype = {
    geometry: null,
    material: null,
    mesh    : null,

    __init__: function(world, x, y, z) {
        this.world = world

        // Inherit from visibility.
        Visibility.call(this)
        // Inherit from interactive.
        Interactive.call(this)

        this.planet_title = new Floating3DText(400, world.planet_name, TYPE_TITLE)
        this.planet_title.update_position_and_look_at(new THREE.Vector3(x, y - 500, z), new THREE.Vector3(0, 0, 0))

        this.geometry = new THREE.DodecahedronGeometry(200, 2)

        this.planet_color = 0x8effcb

        this.material = new THREE.MeshBasicMaterial({
            color: 0x8effcb, // '0x8effcb'
            // TODO : Figure out if I should use front side or back side.
            side: THREE.DoubleSide
        })
        this.mesh = new THREE.Mesh(this.geometry, this.material)
        this.mesh.position.set(x, y, z)

        this.world.add_to_scene(this.mesh)
        this.world.add_interactive_object(this.mesh)
    },

    add_this_planet_to_world: function(world) {
        world.add_to_scene(this.mesh)
        world.add_to_scene(this.planet_title.object3D)
    },

    /* __  ___      ___  ___     __                  __   ___  __
      /__`  |   /\   |  |__     /  ` |__|  /\  |\ | / _` |__  /__`
      .__/  |  /~~\  |  |___    \__, |  | /~~\ | \| \__> |___ .__/ */
{'fraction_non_alphanumeric': 0.1295925183700735, 'fraction_numerical': 0.01603206412825651, 'mean_word_length': 1.9830677290836654, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1223473', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1033, 'n_words': 176}