<commit_before>function Floating2DText(w, h, text, type, scene) {
    this.__init__(w, h, text, type, scene)
}

Floating2DText.prototype = {
    text: null,
    width: null,
    height: null,
    material: null,
    dynamic_texture: null,

    object3d: null,

    scene: null,

    wireframe: null,

    // States.
    being_looked_at: null,
    being_engaged_with: null,

    // Properties.
    type_password: null,
    type_title   : null,

    //
    original_border_color: null,

    __init__: function(w, h, text, type, scene) {
        this.scene = scene

        this.width              = w
        this.height             = h

        this.text               = text

        this.being_looked_at    = false
        this.being_engaged_with = false

        this.original_border_color = 0xFFC0CB

        if (type === TYPE_PASSWORD) {
            this.type_password = true
            this.type_title    = false
        } else if (type === TYPE_TITLE) {
            this.type_password = false
            this.type_title    = true
        } else if (type === TYPE_DEFAULT) {
            this.type_password = false
            this.type_title    = false
        }
        this.create()
    },

    look_at: function() {
        if (this.being_looked_at === false) {
            this.mesh.material.color.setHex(this.original_border_color)
        }
        this.being_looked_at = true
    },

    look_away: function() {
        if (this.being_looked_at) {
            console.log('SETTING TO HIGHLIGHT COLOR!!')
            this.mesh.material.color.setHex(HIGHLIGHT_COLOR)
        }
        this.being_looked_at = false
    },

    disengage: function() {
        this.being_engaged_with = false
    },

    is_engaged: function() {
        return this.being_engaged_with
    },

    engage: function() {
        this.being_engaged_with = true
    },

    update_text: function(text) {<commit_msg>General updating + testing 18.<commit_after>function Floating2DText(w, h, text, type, scene) {
    this.__init__(w, h, text, type, scene)
}

Floating2DText.prototype = {
    text: null,
    width: null,
    height: null,
    material: null,
    dynamic_texture: null,

    object3d: null,

    scene: null,

    wireframe: null,

    // States.
    being_looked_at: null,
    being_engaged_with: null,

    // Properties.
    type_password: null,
    type_title   : null,

    //
    original_border_color: null,

    __init__: function(w, h, text, type, scene) {
        this.scene = scene

        this.width              = w
        this.height             = h

        this.text               = text

        this.being_looked_at    = false
        this.being_engaged_with = false

        this.original_border_color = 0xFFC0CB

        if (type === TYPE_PASSWORD) {
            this.type_password = true
            this.type_title    = false
        } else if (type === TYPE_TITLE) {
            this.type_password = false
            this.type_title    = true
        } else if (type === TYPE_DEFAULT) {
            this.type_password = false
            this.type_title    = false
        }
        this.create()
    },

    look_at: function() {
        if (this.being_looked_at === false) {
            this.wireframe.material.color.setHex(this.original_border_color)
        }
        this.being_looked_at = true
    },

    look_away: function() {
        if (this.being_looked_at) {
            console.log('SETTING TO HIGHLIGHT COLOR!!')
            this.wireframe.material.color.setHex(HIGHLIGHT_COLOR)
        }
        this.being_looked_at = false
    },

    disengage: function() {
        this.being_engaged_with = false
    },

    is_engaged: function() {
        return this.being_engaged_with
    },

    engage: function() {
        this.being_engaged_with = true
    },

    update_text: function(text) {
{'fraction_non_alphanumeric': 0.1001826245760501, 'fraction_numerical': 0.0031307070180015655, 'mean_word_length': 1.8191176470588235, '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': '986103', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1192, 'n_words': 237}