<commit_before>'use strict'

function RendererAPI() {
    this.__init__()
}

RendererAPI.prototype = {
    field_of_view   : null,
    window_width    : null,
    window_height   : null,
    aspect_ratio    : null,
    near_clipping   : null,
    far_clipping    : null,
    renderer        : null,
    webgl_enabled   : null,
    warning_message : null,

    // Custom objects.
    stats_api       : null,

    //
    home_world      : null,

    // Three js object.
    previous_world  : null,
    previous_scene  : null,
    world           : null,
    scene           : null,
    current_scene   : null,

    // These variables get added later on.
    camera          : null,

    __init__: function() {
        this.webgl_enabled = !!Detector.webgl
        if (this.webgl_enabled === false) {
            this.warning_message = Detector.getWebGLErrorMessage()
            console.log('WebGL is not enabled!')
            console.log(this.get_warning_message())
            throw new Error('WebGL is not enabled!')
        } else {
            this.stats_api = new StatsAPI()

            // Since WebGL is enabled we can proceed.
            this.field_of_view = 70
            this.get_window_properties()
            this.near_clipping = 0.1
            this.far_clipping  = 10000
            this.renderer      = new THREE.WebGLRenderer({antialias: true, alpha: true})
            this.renderer.setPixelRatio(window.devicePixelRatio)
            this.renderer.setSize(this.window_width, this.window_height)
            this.renderer.setClearColor(0x000000, 1)

            this.renderer.domElement.style.position = 'absolute'
            this.renderer.domElement.style.zIndex = 1
            this.renderer.domElement.style.top = 0

            document.body.appendChild(this.renderer.domElement)

            window.addEventListener('resize', this.on_window_resize.bind(this), false)

            this.home_world = new HomeWorld()
        }
    },

    update_current_scene: function() {
        hello_message
    },

    switch_to_home_world: function() {
        this.set_current_world(this.home_world)
    },

    set_current_world: function(world) {
        if (this.world !== null) {
            this.world.exit_world()
            this.previous_world = this.world
            this.previous_scene = this.scene
        }
        this.world = world
        this.scene = this.world.scene<commit_msg>General updating 18.<commit_after>'use strict'

function RendererAPI() {
    this.__init__()
}

RendererAPI.prototype = {
    field_of_view   : null,
    window_width    : null,
    window_height   : null,
    aspect_ratio    : null,
    near_clipping   : null,
    far_clipping    : null,
    renderer        : null,
    webgl_enabled   : null,
    warning_message : null,

    // Custom objects.
    stats_api       : null,

    //
    home_world      : null,

    // Three js object.
    previous_world  : null,
    previous_scene  : null,
    world           : null,
    scene           : null,
    current_scene   : null,

    // These variables get added later on.
    camera          : null,

    __init__: function() {
        this.webgl_enabled = !!Detector.webgl
        if (this.webgl_enabled === false) {
            this.warning_message = Detector.getWebGLErrorMessage()
            console.log('WebGL is not enabled!')
            console.log(this.get_warning_message())
            throw new Error('WebGL is not enabled!')
        } else {
            this.stats_api = new StatsAPI()

            // Since WebGL is enabled we can proceed.
            this.field_of_view = 70
            this.get_window_properties()
            this.near_clipping = 0.1
            this.far_clipping  = 10000
            this.renderer      = new THREE.WebGLRenderer({antialias: true, alpha: true})
            this.renderer.setPixelRatio(window.devicePixelRatio)
            this.renderer.setSize(this.window_width, this.window_height)
            this.renderer.setClearColor(0x000000, 1)

            this.renderer.domElement.style.position = 'absolute'
            this.renderer.domElement.style.zIndex = 1
            this.renderer.domElement.style.top = 0

            document.body.appendChild(this.renderer.domElement)

            window.addEventListener('resize', this.on_window_resize.bind(this), false)

            this.home_world = new HomeWorld()
        }
    },

    update_current_scene: function() {
        this.world.update()
    },

    switch_to_home_world: function() {
        this.set_current_world(this.home_world)
    },

    set_current_world: function(world) {
        if (this.world !== null) {
            this.world.exit_world()
            this.previous_world = this.world
            this.previous_scene = this.scene
        }
        this.world = world
        this.scene = this.world.scene
{'fraction_non_alphanumeric': 0.09583937073069758, 'fraction_numerical': 0.008279859242392879, 'mean_word_length': 1.9249394673123488, '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': '6080794', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1393, 'n_words': 267}