<commit_before>#ifndef __Data_student__
#define __Data_student__

#include "data-general.hpp"
#include "data-major.hpp"
#include "data-course.hpp"
using namespace std;

class Semester {
private:
	int period;
public:
	Semester() {
		period = 0;
	}
	Semester(int p) {
		period = p;
	}

	vector<Course> courses;
};

class Student {
private:
	void init(string n, int s, int g, string m) {
		name = n;
		startingYear = s;
		gradutationYear = g;
		// parseMajors(m);

		year1.push_back(Semester(1));
		year1.push_back(Semester(2));
		year1.push_back(Semester(3));

		year2.push_back(Semester(1));
		year2.push_back(Semester(2));
		year2.push_back(Semester(3));
		
		year3.push_back(Semester(1));
		year3.push_back(Semester(2));
		year3.push_back(Semester(3));
		
		year4.push_back(Semester(1));
		year4.push_back(Semester(2));
		year4.push_back(Semester(3));
	}
public:
	string name;
	int startingYear, gradutationYear;
	
	vector<Major> majors;

	vector<Semester> year1;//(3);
	vector<Semester> year2;//(3);
	vector<Semester> year3;//(3);
	vector<Semester> year4;//(3);

	Student() {
		init("", 2000, 2004, "");
	}
	Student(string fn) {
		ifstream infile;
		infile.open(fn.c_str());
	}

	ostream& getData(ostream &os) {
		os << name << " ";

		return os;
	}
	void display();
};

#endif<commit_msg>Add a spot for a hasTakenCourse function<commit_after>#ifndef __Data_student__
#define __Data_student__

#include "data-general.hpp"
#include "data-major.hpp"
#include "data-course.hpp"
using namespace std;

class Semester {
private:
	int period;
public:
	Semester() {
		period = 0;
	}
	Semester(int p) {
		period = p;
	}

	vector<Course> courses;
};

class Student {
private:
	void init(string n, int s, int g, string m) {
		name = n;
		startingYear = s;
		gradutationYear = g;
		// parseMajors(m);

		year1.push_back(Semester(1));
		year1.push_back(Semester(2));
		year1.push_back(Semester(3));

		year2.push_back(Semester(1));
		year2.push_back(Semester(2));
		year2.push_back(Semester(3));
		
		year3.push_back(Semester(1));
		year3.push_back(Semester(2));
		year3.push_back(Semester(3));
		
		year4.push_back(Semester(1));
		year4.push_back(Semester(2));
		year4.push_back(Semester(3));
	}
public:
	string name;
	int startingYear, gradutationYear;

	vector<Major> majors;

	vector<Semester> year1;//(3);
	vector<Semester> year2;//(3);
	vector<Semester> year3;//(3);
	vector<Semester> year4;//(3);

	Student() {
		init("", 2000, 2004, "");
	}
	Student(string fn) {
		ifstream infile;
		infile.open(fn.c_str());
	}

	bool hasTakenCourse() {
		return false;
	}

	ostream& getData(ostream &os) {
		os << name << " ";
		return os;
	}
	void display();
};

#endif
{'fraction_non_alphanumeric': 0.16704374057315233, 'fraction_numerical': 0.03092006033182504, 'mean_word_length': 4.414285714285715, 'pattern_counts': {'":': 0, '<': 23, '<?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': '4354129', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1062, 'n_words': 197}