<commit_before>import { vec3 } from 'gl-matrix';

class Vector3 {

    constructor(x = 0, y = 0, z = 0) {
        this.data = vec3.fromValues(x, y, z);
    }

    set x(value) {
        vec3.set(this.data, value, this.data[1], this.data[2]);
    }

    get x() {
        return this.data[0];
    }

    set y(value) {
        vec3.set(this.data, this.data[0], value, this.data[2]);
    }

    get y() {
        return this.data[1];
    }

    set z(value) {
        vec3.set(this.data, this.data[0], this.data[1], value);
    }

    get z() {
        return this.data[2];
    }

}

export default Vector3;
<commit_msg>adding set method to vector3<commit_after>import { vec3 } from 'gl-matrix';

class Vector3 {

    constructor(x = 0, y = 0, z = 0) {
        this.data = vec3.fromValues(x, y, z);
    }

    set(x, y, z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    set x(value) {
        vec3.set(this.data, value, this.data[1], this.data[2]);
    }

    get x() {
        return this.data[0];
    }

    set y(value) {
        vec3.set(this.data, this.data[0], value, this.data[2]);
    }

    get y() {
        return this.data[1];
    }

    set z(value) {
        vec3.set(this.data, this.data[0], this.data[1], value);
    }

    get z() {
        return this.data[2];
    }

}

export default Vector3;

{'fraction_non_alphanumeric': 0.1712789827973074, 'fraction_numerical': 0.02916978309648467, 'mean_word_length': 1.8050314465408805, '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': '4771220', 'n_tokens_mistral': 537, 'n_tokens_neox': 515, 'n_words': 111}