<commit_before>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string>
#include <sstream>
#include <algorithm> // find

using namespace std;

class cOctNode {
public:

    double size;
    int MAX_OCTNODE_OBJECTS;
    int NUM_BRANCHES_OCTNODE;    
    int level;
    string nid;
    vector<double> position;
    vector<cOctNode> branches;
    vector<int> data;
    vector<double> low, upp;
    cOctNode();
    cOctNode(int _level, string _nid, vector<double> _position, double _size);
    ~cOctNode();
    bool isLeafNode();
    int numPolys();
    void addPoly(int _indx);
    void addNode(int _level, string _nid, vector<double> _position, double _size);
    void getLowUppVerts();
    void setupConstants();
};

class cTri {
public:

    double D;
    int label;
    vector<vector<double> > vertices;
    vector<double> N;
    vector<double> lowVert, uppVert;
    cTri();
    cTri(int _label, vector<vector<double> > _vertices);
    ~cTri();
    void getN();
    void getD();
    bool isInNode(cOctNode &node);
    bool isInNode(vector<vector<double> > &lowUppVerts);
    void getLowerVert();
    void getUpperVert();
};

class cOctree {
public:

    int MAX_OCTREE_LEVELS;
    int branchOffsets[8][3];
    cOctNode root;
    vector<vector<double> > vertexCoords3D;
    vector<vector<int> > polyConnectivity;
    vector<cTri> polyList;
    cOctree(vector<vector<double> > _vertexCoords3D, vector<vector<int> > _polyConnectivity);
    ~cOctree();    
    double getSizeRoot();
    int numPolys();
    vector<double> getPositionRoot();
    void insertPoly(cOctNode &node, cTri &poly);
    void insertPolys();
    void setupPolyList();
    void splitNodeAndReallocate(cOctNode &node);
    //cOctNode* getNodeFromLabel(int polyLabel);
	//cOctNode* findBranchByLabel(int polyLabel, cOctNode &node);
    cOctNode* getNodeFromId(string nodeId);
    cOctNode* findBranchById(string nodeId, cOctNode &node);
    vector<cOctNode*> getNodesFromLabel(int polyLabel);
    void findBranchesByLabel(int polyLabel, cOctNode &node, vector<cOctNode*> &nodeList);
};

class CLine {
public:
    vector<double> p0,p1,dir;
    CLine();
    CLine(vector<double> &lp0, vector<double> &p1_dir, int isp1orDir);
    ~CLine();
    void getDir();<commit_msg>Fixed tab / space issue<commit_after>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string>
#include <sstream>
#include <algorithm> // find

using namespace std;

class cOctNode {
public:

    double size;
    int MAX_OCTNODE_OBJECTS;
    int NUM_BRANCHES_OCTNODE;    
    int level;
    string nid;
    vector<double> position;
    vector<cOctNode> branches;
    vector<int> data;
    vector<double> low, upp;
    cOctNode();
    cOctNode(int _level, string _nid, vector<double> _position, double _size);
    ~cOctNode();
    bool isLeafNode();
    int numPolys();
    void addPoly(int _indx);
    void addNode(int _level, string _nid, vector<double> _position, double _size);
    void getLowUppVerts();
    void setupConstants();
};

class cTri {
public:

    double D;
    int label;
    vector<vector<double> > vertices;
    vector<double> N;
    vector<double> lowVert, uppVert;
    cTri();
    cTri(int _label, vector<vector<double> > _vertices);
    ~cTri();
    void getN();
    void getD();
    bool isInNode(cOctNode &node);
    bool isInNode(vector<vector<double> > &lowUppVerts);
    void getLowerVert();
    void getUpperVert();
};

class cOctree {
public:

    int MAX_OCTREE_LEVELS;
    int branchOffsets[8][3];
    cOctNode root;
    vector<vector<double> > vertexCoords3D;
    vector<vector<int> > polyConnectivity;
    vector<cTri> polyList;
    cOctree(vector<vector<double> > _vertexCoords3D, vector<vector<int> > _polyConnectivity);
    ~cOctree();    
    double getSizeRoot();
    int numPolys();
    vector<double> getPositionRoot();
    void insertPoly(cOctNode &node, cTri &poly);
    void insertPolys();
    void setupPolyList();
    void splitNodeAndReallocate(cOctNode &node);
    //cOctNode* getNodeFromLabel(int polyLabel);
    //cOctNode* findBranchByLabel(int polyLabel, cOctNode &node);
    cOctNode* getNodeFromId(string nodeId);
    cOctNode* findBranchById(string nodeId, cOctNode &node);
    vector<cOctNode*> getNodesFromLabel(int polyLabel);
    void findBranchesByLabel(int polyLabel, cOctNode &node, vector<cOctNode*> &nodeList);
};

class CLine {
public:
    vector<double> p0,p1,dir;
    CLine();
    CLine(vector<double> &lp0, vector<double> &p1_dir, int isp1orDir);
    ~CLine();
    void getDir();
{'fraction_non_alphanumeric': 0.12431961680818637, 'fraction_numerical': 0.003919007184846506, 'mean_word_length': 4.009814612868048, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '6755688', 'n_tokens_mistral': 1605, 'n_tokens_neox': 1586, 'n_words': 374}