<commit_before>#ifndef MODELH
#define MODELH

#include <cstdio>
#include <GL/glew.h>

#define G308_SHADE_POLYGON 0		
#define G308_SHADE_WIREFRAME 1
struct G308_Point {
	float x;
	float y;
	float z;
};
typedef G308_Point G308_Normal;
struct G308_UVcoord {

	float u;
	float v;
};
struct G308_Triangle2 {
	unsigned int v1;
	unsigned int v2;
	unsigned int v3;
	unsigned int n1;
	unsigned int n2;
	unsigned int n3;
	unsigned int t1;
	unsigned int t2;
	unsigned int t3;
};

class Model {
public:
	Model(const char *filename);
	void display();
private:
	void CreateGLPolyGeometry();
	void CreateGLWireGeometry();
	void addToList(G308_Point v, G308_Normal n, G308_UVcoord u);

	int m_nNumPoint;
	int m_nNumUV;
	int m_nNumNormal;
	int m_nNumPolygon;

	int mode; // Which mode to display

	G308_Point* m_pVertexArray;		// Vertex Array
	G308_Normal* m_pNormalArray;	// Normal Array
	G308_Triangle2* m_pTriangles;	// Triangle Array
	G308_UVcoord* m_pUVArray;	    // Texture Coordinate Array

	int m_glGeomListPoly;	// Display List for Polygon
	int m_glGeomListWire;	// Display List for Wireframe
};

#endif
<commit_msg>include glm in model.h<commit_after>#ifndef MODELH
#define MODELH

#include <cstdio>
#include <GL/glew.h>
#include <glm/glm.hpp>

#define G308_SHADE_POLYGON 0		
#define G308_SHADE_WIREFRAME 1
struct G308_Point {
	float x;
	float y;
	float z;
};
typedef G308_Point G308_Normal;
struct G308_UVcoord {

	float u;
	float v;
};
struct G308_Triangle2 {
	unsigned int v1;
	unsigned int v2;
	unsigned int v3;
	unsigned int n1;
	unsigned int n2;
	unsigned int n3;
	unsigned int t1;
	unsigned int t2;
	unsigned int t3;
};

class Model {
public:
	Model(const char *filename);
	void display();
private:
	void CreateGLPolyGeometry();
	void CreateGLWireGeometry();
	void addToList(G308_Point v, G308_Normal n, G308_UVcoord u);

	int m_nNumPoint;
	int m_nNumUV;
	int m_nNumNormal;
	int m_nNumPolygon;

	int mode; // Which mode to display

	G308_Point* m_pVertexArray;		// Vertex Array
	G308_Normal* m_pNormalArray;	// Normal Array
	G308_Triangle2* m_pTriangles;	// Triangle Array
	G308_UVcoord* m_pUVArray;	    // Texture Coordinate Array

	int m_glGeomListPoly;	// Display List for Polygon
	int m_glGeomListWire;	// Display List for Wireframe
};

#endif

{'fraction_non_alphanumeric': 0.08451957295373666, 'fraction_numerical': 0.04893238434163701, 'mean_word_length': 4.472019464720194, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5784617', 'n_tokens_mistral': 969, 'n_tokens_neox': 880, 'n_words': 253}