<commit_before>#include "iostream.h"
#include "emptyApp.h"


//--------------------------------------------------------------
void emptyApp::setup(){
  ofSetVerticalSync(true);
  
    // Disable the of setupScreen because now each scene has a custom renderer.
    ofDisableSetupScreen();
  
  //Create a scene.
	//The scene is a scene graph that renders objects added to its root and their children and their children's children and so on.
	//When the render mode of the scene is set to RENDER_ALPHA_DEPTH_SORTED, it handles sorting of both transparent and opaque objects in the z-axis.
  scene = new ofxScene(ofGetWidth(), ofGetHeight());
  scene->setBackgroundColor(80, 80, 80, 0);
    
//    font16 = new ofxSosoTrueTypeFont();
//    font16->loadFont("Arial.ttf", 16, true,  true, false, true);		//The last bool argument enables mipmapping on the letter textures.
//	font16->setKerningPair('T', 'y', -2);								//After you've loaded a font, you can also manually adjust kerning pairs.
//    
//    readOut = new ofxTextObject(font16, "Your R,G,B and X,Y,Z read out.");
//    readOut->setColor(255, 255, 255);										//Set the color of the text.
//    readOut->setPointSize(16);												//Set the point size of the text, independent of the font resolution.
//    readOut->setLeading(19);												//Set the leading (line-spacing) of the text.
//    //text->setScale(0.5);												//Text can be scaled like any other object. So the final scale is the pointSize x scale.
//    readOut->setColumnWidth(360);											//Set the column width, which determines how the words wrap.
//	readOut->setTrans(-300,300,0);			//Position the text, relative to the image object above.
//	scene->getRoot()->addChild(readOut);
    
    
    
    //Create Circle Object with Container
    circle = new ofxCircleObject(100,50);
    
    container = new ofxObject();
    
    container->addChild(circle);
    container->setTrans(100,-200,0);
    
    scene->getRoot()->addChild(container);
    
    
    // we add this listener before setting up so the initial circle resolution is correct
	circleResolution.addListener(this, &emptyApp::circleResolutionChanged);
    
    //--------------------------------------------------------------
    
    gui.setup(); // most of the time you don't need a name
	gui.add(filled.setup("fill", true));
	gui.add(radius.setup( "radius", 140, 10, 300 ));
	gui.add(center.setup("center",ofVec2f(ofGetWidth()*.5,ofGetHeight()*.5),ofVec2f(0,0),ofVec2f(ofGetWidth(),ofGetHeight())));
	gui.add(color.setup("color",ofColor(100,100,140),ofColor(0,0),ofColor(255,255)));
	gui.add(circleResolution.setup("circle res", 5, 3, 90));
	gui.add(twoCircles.setup("two circles"));
	
	gui.add(screenSize.setup("screen size", ""));
    
	bHide = true;
    
    
  
}

//--------------------------------------------------------------
void emptyApp::circleResolutionChanged(int & circleResolution){
	ofSetCircleResolution(circleResolution);
}

//--------------------------------------------------------------
void emptyApp::update(){
  
	//Update the scene with the current time. This call propagates the idle() call to all objects as well.
	//Note: If you are capturing frames to create a movie, simply replace ofGetElapsedTimef() with a float variable that you increment by a fixed time interval each frame.
  scene->update(ofGetElapsedTimef());
    //string text = "Your values" + ofToString(container->getX());
   ofSetCircleResolution(circleResolution);

    //ofColor = color.get();
    //typedef myColor_<unsigned char> = color;
    circle->outerRadius = radius*0.5;
    ofSetColor(color);
    //std:cout << myColor << std::endl;
}


//--------------------------------------------------------------
void emptyApp::draw(){
    
    scene->draw();
    
    ofPushMatrix();
    ofScale(1,-1,-1);
    ofTranslate(-ofGetWindowWidth()/2, -ofGetWindowHeight()/2);
    
    ofBackgroundGradient(ofColor::white, ofColor::gray);
	//Call draw on scene, which initiates the drawing of the root object.
<commit_msg>minor edit Gui controls to ofxObject<commit_after>#include "iostream.h"
#include "emptyApp.h"


//--------------------------------------------------------------
void emptyApp::setup(){
  ofSetVerticalSync(true);
  
    // Disable the of setupScreen because now each scene has a custom renderer.
    ofDisableSetupScreen();
  
  //Create a scene.
	//The scene is a scene graph that renders objects added to its root and their children and their children's children and so on.
	//When the render mode of the scene is set to RENDER_ALPHA_DEPTH_SORTED, it handles sorting of both transparent and opaque objects in the z-axis.
  scene = new ofxScene(ofGetWidth(), ofGetHeight());
  scene->setBackgroundColor(80, 80, 80, 0);
    
//    font16 = new ofxSosoTrueTypeFont();
//    font16->loadFont("Arial.ttf", 16, true,  true, false, true);		//The last bool argument enables mipmapping on the letter textures.
//	font16->setKerningPair('T', 'y', -2);								//After you've loaded a font, you can also manually adjust kerning pairs.
//    
//    readOut = new ofxTextObject(font16, "Your R,G,B and X,Y,Z read out.");
//    readOut->setColor(255, 255, 255);										//Set the color of the text.
//    readOut->setPointSize(16);												//Set the point size of the text, independent of the font resolution.
//    readOut->setLeading(19);												//Set the leading (line-spacing) of the text.
//    //text->setScale(0.5);												//Text can be scaled like any other object. So the final scale is the pointSize x scale.
//    readOut->setColumnWidth(360);											//Set the column width, which determines how the words wrap.
//	readOut->setTrans(-300,300,0);			//Position the text, relative to the image object above.
//	scene->getRoot()->addChild(readOut);
    
    
    
    //Create Circle Object with Container
    circle = new ofxCircleObject(100,50);
    
    container = new ofxObject();
    
    container->addChild(circle);
    container->setTrans(100,-200,0);
    
    scene->getRoot()->addChild(container);
    
    
    // we add this listener before setting up so the initial circle resolution is correct
	circleResolution.addListener(this, &emptyApp::circleResolutionChanged);
    
    //--------------------------------------------------------------
    
    gui.setup(); // most of the time you don't need a name
	gui.add(filled.setup("fill", true));
	gui.add(radius.setup( "radius", 140, 10, 300 ));
	gui.add(center.setup("center",ofVec2f(ofGetWidth()*.5,ofGetHeight()*.5),ofVec2f(0,0),ofVec2f(ofGetWidth(),ofGetHeight())));
	gui.add(color.setup("color",ofColor(100,100,140),ofColor(0,0),ofColor(255,255)));
	gui.add(circleResolution.setup("circle res", 5, 3, 90));
	gui.add(twoCircles.setup("two circles"));
	
	gui.add(screenSize.setup("screen size", ""));
    
	bHide = true;
    
    
  
}

//--------------------------------------------------------------
void emptyApp::circleResolutionChanged(int & circleResolution){
	ofSetCircleResolution(circleResolution);
}

//--------------------------------------------------------------
void emptyApp::update(){
  
	//Update the scene with the current time. This call propagates the idle() call to all objects as well.
	//Note: If you are capturing frames to create a movie, simply replace ofGetElapsedTimef() with a float variable that you increment by a fixed time interval each frame.
  scene->update(ofGetElapsedTimef());
    //string text = "Your values" + ofToString(container->getX());
   ofSetCircleResolution(circleResolution);

    
    circle->outerRadius = radius*0.5;
    //circle->setTrans(center->x, center->y, 0);
    
}


//--------------------------------------------------------------
void emptyApp::draw(){
    
    scene->draw();
    
    ofPushMatrix();
    ofScale(1,-1,-1);
    ofTranslate(-ofGetWindowWidth()/2, -ofGetWindowHeight()/2);
    
    ofBackgroundGradient(ofColor::white, ofColor::gray);
	//Call draw on scene, which initiates the drawing of the root object.

{'fraction_non_alphanumeric': 0.20160582110149292, 'fraction_numerical': 0.024714590390164347, 'mean_word_length': 2.46458061712299, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 45, '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': '3092674', 'n_tokens_mistral': 2561, 'n_tokens_neox': 2306, 'n_words': 680}