<commit_before>#include "data-department.hpp"
using namespace std;

///////
// Constructors
/////

Department::Department() {
	cout << "Called Department constructor with nothing." << endl;
	id = NONE;
}
Department::Department(int i) {
	cout << "Called Department constructor with integer." << endl;
	id = intToDept(i);
}
Department::Department(dept_t department) {
	cout << "Called Department constructor with dept_t." << endl;
	id = department;
}
Department::Department(string str) {
	// cout << "Called Department constructor with string." << endl;
	// cout << "String was: " << str << endl;
	// make sure the string is uppercase
	std::transform(str.begin(), str.end(), str.begin(), ::toupper);
	if (str.length() == 2)
		id = shortStringToDept(str);
	else
		id = stringToDept(str);
}


dept_t Department::intToDept(int i) {
	     if ( i == 0  ) return AFAM;
	else if ( i == 1  ) return ALSO;
	else if ( i == 2  ) return AMCON;
	else if ( i == 3  ) return AMST;
	else if ( i == 4  ) return ARMS;
	else if ( i == 5  ) return ART;
	else if ( i == 6  ) return ASIAN;
	else if ( i == 7  ) return BIO;
	else if ( i == 8  ) return BMOLS;
	else if ( i == 9  ) return CHEM;
	else if ( i == 10 ) return CHIN;
	else if ( i == 11 ) return CLASS;
	else if ( i == 12 ) return CSCI;
	else if ( i == 13 ) return DANCE;
	else if ( i == 14 ) return ECON;
	else if ( i == 15 ) return EDUC;
	else if ( i == 16 ) return ENGL;
	else if ( i == 17 ) return ENVST;
	else if ( i == 18 ) return ESAC;
	else if ( i == 19 ) return ESTH;
	else if ( i == 20 ) return FAMST;
	else if ( i == 21 ) return FILM;<commit_msg>Tweaks to debugging statements in Department<commit_after>#include "data-department.hpp"
using namespace std;

///////
// Constructors
/////

Department::Department() {
	// cout << "Called Department constructor with nothing." << endl;
	id = NONE;
}
Department::Department(int i) {
	cout << "Called Department constructor with integer." << endl;
	id = intToDept(i);
}
Department::Department(dept_t department) {
	cout << "Called Department constructor with dept_t." << endl;
	id = department;
}
Department::Department(string str) {
	// cout << "Called Department constructor with string '" << str << "'" << endl;
	// make sure the string is uppercase
	std::transform(str.begin(), str.end(), str.begin(), ::toupper);
	if (str.length() == 2)
		id = shortStringToDept(str);
	else
		id = stringToDept(str);
}

dept_t Department::intToDept(int i) {
	     if ( i == 0  ) return AFAM;
	else if ( i == 1  ) return ALSO;
	else if ( i == 2  ) return AMCON;
	else if ( i == 3  ) return AMST;
	else if ( i == 4  ) return ARMS;
	else if ( i == 5  ) return ART;
	else if ( i == 6  ) return ASIAN;
	else if ( i == 7  ) return BIO;
	else if ( i == 8  ) return BMOLS;
	else if ( i == 9  ) return CHEM;
	else if ( i == 10 ) return CHIN;
	else if ( i == 11 ) return CLASS;
	else if ( i == 12 ) return CSCI;
	else if ( i == 13 ) return DANCE;
	else if ( i == 14 ) return ECON;
	else if ( i == 15 ) return EDUC;
	else if ( i == 16 ) return ENGL;
	else if ( i == 17 ) return ENVST;
	else if ( i == 18 ) return ESAC;
	else if ( i == 19 ) return ESTH;
	else if ( i == 20 ) return FAMST;
	else if ( i == 21 ) return FILM;
{'fraction_non_alphanumeric': 0.15720112958895513, 'fraction_numerical': 0.021964229683087543, 'mean_word_length': 3.102960102960103, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 3, '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': '4582772', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1129, 'n_words': 408}