<commit_before>var PlanetChunckMeshBuilder = (function () {
    function PlanetChunckMeshBuilder() {
    }
    PlanetChunckMeshBuilder.BuildVertexData = function (size, iPos, jPos, kPos, r, data) {
        var vertexData = new BABYLON.VertexData();
        var vertices = new Array();
        var positions = new Array();
        var indices = new Array();
        var uvs = new Array();
        for (var i = 0; i < PlanetTools.CHUNCKSIZE; i++) {
            for (var j = 0; j < PlanetTools.CHUNCKSIZE; j++) {
                for (var k = 0; k < PlanetTools.CHUNCKSIZE; k++) {
                    var y = j + jPos * PlanetTools.CHUNCKSIZE;
                    var z = i + iPos * PlanetTools.CHUNCKSIZE;
                    vertices[0] = PlanetTools.EvaluateVertex(size, y, z);
                    vertices[1] = PlanetTools.EvaluateVertex(size, y, z + 1);
                    vertices[2] = PlanetTools.EvaluateVertex(size, y + 1, z);
                    vertices[3] = PlanetTools.EvaluateVertex(size, y + 1, z + 1);
                    vertices[4] = vertices[0].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[5] = vertices[1].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[6] = vertices[2].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[7] = vertices[3].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[0].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[1].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[2].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[3].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    if (data[i][j][k] !== 0) {
                        if (i - 1 < 0 || data[i - 1][j][k] === 0) {
                            MeshTools.PushQuad(vertices, 0, 2, 6, 4, positions, indices, uvs);
                        }
                        if (j - 1 < 0 || data[i][j - 1][k] === 0) {
                            MeshTools.PushQuad(vertices, 0, 4, 5, 1, positions, indices, uvs);
                        }
                        if (k - 1 < 0 || data[i][j][k - 1] === 0) {
                            MeshTools.PushQuad(vertices, 0, 1, 3, 2, positions, indices, uvs);
                        }
                        if (i + 1 >= PlanetTools.CHUNCKSIZE || data[i + 1][j][k] === 0) {
                            MeshTools.PushQuad(vertices, 1, 5, 7, 3, positions, indices, uvs);
                        }
                        if (j + 1 >= PlanetTools.CHUNCKSIZE || data[i][j + 1][k] === 0) {
                            MeshTools.PushQuad(vertices, 2, 3, 7, 6, positions, indices, uvs);
                        }
                        if (k + 1 >= PlanetTools.CHUNCKSIZE || data[i][j][k + 1] === 0) {
                            MeshTools.PushQuad(vertices, 4, 6, 7, 5, positions, indices, uvs);
                        }
                    }
                }
            }
        }
        var normals = new Array();
        BABYLON.VertexData.ComputeNormals(positions, indices, normals);
        vertexData.positions = positions;
        vertexData.indices = indices;
        vertexData.normals = normals;
        return vertexData;
    };
    return PlanetChunckMeshBuilder;
}());<commit_msg>Set Uvs.<commit_after>var PlanetChunckMeshBuilder = (function () {
    function PlanetChunckMeshBuilder() {
    }
    PlanetChunckMeshBuilder.BuildVertexData = function (size, iPos, jPos, kPos, r, data) {
        var vertexData = new BABYLON.VertexData();
        var vertices = new Array();
        var positions = new Array();
        var indices = new Array();
        var uvs = new Array();
        for (var i = 0; i < PlanetTools.CHUNCKSIZE; i++) {
            for (var j = 0; j < PlanetTools.CHUNCKSIZE; j++) {
                for (var k = 0; k < PlanetTools.CHUNCKSIZE; k++) {
                    var y = j + jPos * PlanetTools.CHUNCKSIZE;
                    var z = i + iPos * PlanetTools.CHUNCKSIZE;
                    vertices[0] = PlanetTools.EvaluateVertex(size, y, z);
                    vertices[1] = PlanetTools.EvaluateVertex(size, y, z + 1);
                    vertices[2] = PlanetTools.EvaluateVertex(size, y + 1, z);
                    vertices[3] = PlanetTools.EvaluateVertex(size, y + 1, z + 1);
                    vertices[4] = vertices[0].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[5] = vertices[1].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[6] = vertices[2].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[7] = vertices[3].multiply(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE + 1));
                    vertices[0].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[1].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[2].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    vertices[3].multiplyInPlace(MeshTools.FloatVector(r + k + kPos * PlanetTools.CHUNCKSIZE));
                    if (data[i][j][k] !== 0) {
                        if (i - 1 < 0 || data[i - 1][j][k] === 0) {
                            MeshTools.PushQuad(vertices, 0, 2, 6, 4, positions, indices, uvs);
                        }
                        if (j - 1 < 0 || data[i][j - 1][k] === 0) {
                            MeshTools.PushQuad(vertices, 0, 4, 5, 1, positions, indices, uvs);
                        }
                        if (k - 1 < 0 || data[i][j][k - 1] === 0) {
                            MeshTools.PushQuad(vertices, 0, 1, 3, 2, positions, indices, uvs);
                        }
                        if (i + 1 >= PlanetTools.CHUNCKSIZE || data[i + 1][j][k] === 0) {
                            MeshTools.PushQuad(vertices, 1, 5, 7, 3, positions, indices, uvs);
                        }
                        if (j + 1 >= PlanetTools.CHUNCKSIZE || data[i][j + 1][k] === 0) {
                            MeshTools.PushQuad(vertices, 2, 3, 7, 6, positions, indices, uvs);
                        }
                        if (k + 1 >= PlanetTools.CHUNCKSIZE || data[i][j][k + 1] === 0) {
                            MeshTools.PushQuad(vertices, 4, 6, 7, 5, positions, indices, uvs);
                        }
                    }
                }
            }
        }
        var normals = new Array();
        BABYLON.VertexData.ComputeNormals(positions, indices, normals);
        vertexData.positions = positions;
        vertexData.indices = indices;
        vertexData.normals = normals;
        vertexData.uvs = uvs;
        return vertexData;
    };
    return PlanetChunckMeshBuilder;
}());
{'fraction_non_alphanumeric': 0.13119330076762037, 'fraction_numerical': 0.020376831821353802, 'mean_word_length': 1.6105646630236794, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '5707762', 'n_tokens_mistral': 2328, 'n_tokens_neox': 2105, 'n_words': 471}