<commit_before>//************************************************************/
//
//	Analysis Header
//
//	Outlines the SPXAnalysis class, which connects all of the
//  other non-configuration classes (non-steering/options) and
//	manages the plotting, drawing, and ROOT configuration via
//	the SPXPlot class.
//
//	@Author: 	<NAME> - CERN ATLAS
//	@Date:		08.10.2014
//
//************************************************************/

#ifndef SPXANALYSIS_H
#define SPXANALYSIS_H

class SPXAnalysis {

public:
	SPXAnalysis (void) {}
	explicit SPXAnalysis(SPXSteeringFile &steeringFile) : this->steeringFile(steeringFile) {}

	void Initialize(void) {}
	void Plot(void) {}
	
	static bool GetDebug(void) {
		return debug;
	}
	
	static void SetDebug(bool b) {
		debug = b;
	}

private:
	static bool debug;					//Flag indicating debug mode
	SPXSteeringFile &steeringFile;		//Reference to a fully parsed steering file	
	std::vector<SPXPlot> plots;			//Vector of plots
};

#endif<commit_msg>Wrote templates for Initialization and Plotting. Wrote dummy method for plotting one data set<commit_after>//************************************************************/
//
//	Analysis Header
//
//	Outlines the SPXAnalysis class, which connects all of the
//  other non-configuration classes (non-steering/options) and
//	manages the plotting, drawing, and ROOT configuration via
//	the SPXPlot class.
//
//	@Author: 	<NAME> - CERN ATLAS
//	@Date:		08.10.2014
//
//************************************************************/

#ifndef SPXANALYSIS_H
#define SPXANALYSIS_H

//#include "SPXPlot.h"
#include "SPXData.h" //TEMPORARY!
#include "SPXSteeringFile.h"
#include "SPXException.h"

class SPXAnalysis {

public:
	explicit SPXAnalysis(SPXSteeringFile *sf) : steeringFile(*sf) {}

	void Initialize(void) {
		/*
		try {
			for(int i = 0; i < steeringFile.GetNumberOfPlots(); i++) {
				SPXPlot plot = SPXPlot();
				plot.Initilize();
				plots.push_back(plot);
			}
		} catch(const SPXException &e) {
			throw;
		}
		*/
	}

	void Plot(void) {
		//TEMPORARY!!!
		SPXData::SetDebug(true);
		SPXFrameOptionsInstance &foi = steeringFile.GetFrameOptionsInstance(0, 0);
		SPXData data = SPXData(foi);

		try {
			data.Parse();	//Parse the data
			data.Print();	//Print the data to the console
			data.Draw();	//Draw the data in a frame
		} catch(const SPXException &e) {
			throw;
		}

		/*
		try {
			for(int i = 0; i < plots.size(); i++) {
				plots[i].Plot();
			}
		} catch(const SPXException &e) {
			throw;
		}
		*/
	}
	
	static bool GetDebug(void) {
		return debug;
	}
	
	static void SetDebug(bool b) {
		debug = b;
	}

private:
	static bool debug;					//Flag indicating debug mode
	SPXSteeringFile &steeringFile;		//Reference to a fully parsed steering file	
	//std::vector<SPXPlot> plots;			//Vector of plots
};

#endif
{'fraction_non_alphanumeric': 0.20726495726495728, 'fraction_numerical': 0.007122507122507123, 'mean_word_length': 3.689482470784641, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2530377', 'n_tokens_mistral': 1061, 'n_tokens_neox': 933, 'n_words': 249}