<commit_before>#include "Page.h"
class Book
{
    public:
    	GLfloat x, y, z;
        GLfloat width, height;
        GLint noOfPages, currentPageIndex;
        Page **pages;
        Book(GLfloat, GLfloat, GLfloat);
        void addPage(GLint);
        void renderPage();
        void renderPage(GLint);
};
Book::Book(GLfloat x, GLfloat y, GLfloat z)
{
	this->x = x;
	this->y = y;
	this->z = z;
	this->noOfPages = 0;
}
void Book::addPage(GLint type)
{
	pages[noOfPages]=new Page(type, x + BOOK_BORDER_SIZE, y + BOOK_BORDER_SIZE, noOfPages);
	currentPageIndex = noOfPages++;
}<commit_msg>Book Linked to Pages to Render Content<commit_after>#include "Page.h"
#include<iostream>
using namespace std;
class Book
{
    public:
    	GLfloat x, y, z;
        GLfloat width, height;
        GLint noOfPages, currentPageIndex;
        Page **pages;
        int **test;
        Book(GLfloat, GLfloat, GLfloat);
        void addPage(GLint, char[]);
        void addPage(GLint, void (*)(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat));
        void renderPage();
        void renderPage(GLint);
        void renderBook();
        void setBorder();
};
Book::Book(GLfloat x, GLfloat y, GLfloat z)
{
	this->x = x;
	this->y = y;
	this->z = z;
	this->width = BOOK_WIDTH;
	this->height = BOOK_HEIGHT;
	this->noOfPages = 0;
    this->pages = new Page*[MAX_NO_PAGES];
}
void Book::renderBook()
{
    glColor3f(0.0,0.0,0.0);
    setBorder();
}
void Book::setBorder()
{
	glPointSize(5.0);
	glBegin(GL_LINE_LOOP);
        glVertex3f(x, y, z);
        glVertex3f(x + width + BOOK_BORDER_SIZE, y, z);
        glVertex3f(x + width + BOOK_BORDER_SIZE, y + height + BOOK_BORDER_SIZE, z);
        glVertex3f(x, y + height + BOOK_BORDER_SIZE, z);
    glEnd();
}
void Book::addPage(GLint type, char s[])
{
	pages[noOfPages] = new Page(type, x + BOOK_BORDER_SIZE, y + BOOK_BORDER_SIZE, noOfPages, s);
	currentPageIndex = noOfPages++;
}
void Book::addPage(GLint type, void (*pageContent)(GLfloat, GLfloat, GLfloat, GLfloat, GLfloat))
{
    pages[noOfPages] = new Page(type, x + BOOK_BORDER_SIZE, y + BOOK_BORDER_SIZE, noOfPages, pageContent);
    currentPageIndex = noOfPages++;
}
{'fraction_non_alphanumeric': 0.1402609506057782, 'fraction_numerical': 0.006989748369058714, 'mean_word_length': 3.4086242299794662, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 15, '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': '5458272', 'n_tokens_mistral': 802, 'n_tokens_neox': 797, 'n_words': 189}