<commit_before>#ifndef		__FTGlyphContainer__
#define		__FTGlyphContainer__

#include <vector>

#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H

//#include "FTGL.h"
class FTFace;
class FTGlyph;

using namespace std;

class	FTGlyphContainer
{
	public:
		// methods
		FTGlyphContainer( FTFace* face, int numGlyphs, bool p = false);
		~FTGlyphContainer();

		bool Add( FTGlyph* tempGlyph);

		FT_Vector& render( unsigned int index, unsigned int next, FT_Vector pen);
		
		// attributes
		
	private:
		// methods
		
		// attributes
		FT_Error err;
		bool preCache;
		int numGlyphs;
		FTFace* face;
		
		FT_Vector kernAdvance;
		float advance;

		
//		typedef pair<int, FTGlyph*> CHARREF; // glyphIndex, glyph
//		vector<CHARREF> glyphs;
//		map< int, FTGlyph*> CHARREF; // charCode, glyph
		vector<FTGlyph*> glyphs;
		
};


#endif	//	__FTGlyphContainer__
<commit_msg>Started to add comments<commit_after>#ifndef		__FTGlyphContainer__
#define		__FTGlyphContainer__

#include <vector>

#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H

//#include "FTGL.h"
class FTFace;
class FTGlyph;

using namespace std;

/**
 * FTGlyphContainer
 *
 * @see FTGlyph
 */
class	FTGlyphContainer
{
	public:
		// methods

		/**
		 * Constructor
		 */
		FTGlyphContainer( FTFace* face, int numGlyphs, bool p = false);

		/**
		 * Destructor
		 */
		~FTGlyphContainer();

		/**
		 * Adds a glyph to this glyph list.
		 *
		 * @param glyph		
		 * @return			<code>true</code>
		 */
		bool Add( FTGlyph* glyph);

		/**
		 * renders a character
		 */
		FT_Vector& render( unsigned int index, unsigned int next, FT_Vector pen);
		
		// attributes
		
	private:
		// methods
		
		// attributes

		/**
		 *
		 */
		FT_Error err;

		/**
		 *
		 */
		bool preCache;

		/**
		 *
		 */
		int numGlyphs;

		/**
		 *
		 */
		FTFace* face;
		

		/**
		 *
		 */
		FT_Vector kernAdvance;

		/**
		 *
		 */
		float advance;

		/**
		 *
		 */
		vector<FTGlyph*> glyphs;
//		typedef pair<int, FTGlyph*> CHARREF; // glyphIndex, glyph
//		vector<CHARREF> glyphs;
//		map< int, FTGlyph*> CHARREF; // charCode, glyph
		
};


#endif	//	__FTGlyphContainer__

{'fraction_non_alphanumeric': 0.13008890968647638, 'fraction_numerical': 0.0009358914365933552, 'mean_word_length': 2.7640845070422535, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2070015', 'n_tokens_mistral': 942, 'n_tokens_neox': 780, 'n_words': 186}