<commit_before>#include <iostream>

using namespace std;

/* functions are below,
   not necessarily for
   optimization but
   instead for the
   purpose of learning
*/

void asciiPrint(){
	cout << endl << " ▟██▖▐▙█▙ ▐▙█▙  ▟██▖\n";
	cout << "▐▛  ▘▐▛ ▜▌▐▛ ▜▌▐▛  ▘\n";
	cout << "▐▌   ▐▌ ▐▌▐▌ ▐▌▐▌\n";
	cout << "▝█▄▄▌▐█▄█▘▐█▄█▘▝█▄▄▌\n";
	cout << " ▝▀▀ ▐▌▀▘ ▐▌▀▘  ▝▀▀\n";
	cout << "     ▐▌   ▐▌\n" << endl  << endl;
}

void cppcMenu(){
	cout << "Please select the task you desire\n";
	cout << "a - addition\n";
	cout << "s - subtraction\n";
	cout << "m - multiplication\n";
	cout << "d - division\n";
	cout << "v - print version info\n";
	cout << "i - print extended info\n";
	cout << "q - quit the program\n";
	cout << "~--------------------~" << endl;
}

void proInfo(){
	cout << endl << endl << "cppc is a CLI calculator written entirely in C++\n";
	cout << "for the purpose of being run on any *nix OS.\n" << endl;
	cout << "Current cppc version is 0.0.1.\n" << endl;
	cout << "Functionality at the moment is limited; only\n";
	cout << "addition, subtraction, multiplication, and\n";
	cout << "division work presently.\n" << endl << endl;
}

void invalCmd(){
    cout << "Unrecognized command. \n" << endl << endl;
}

int main()
{

	string proName, proVer;
	char operIn;
	int input1, input2, result;

	proName = "cppc";
	proVer = "0.1";

	cout << "Welcome to "<< proName <<"!" << endl;
	for (int i = 0; i < 1;)
	{
		cppcMenu();
//		cout << "..:\n";
		cin >> operIn;

// bracket was closed here !!

	if (operIn == 'a')
	{
		cout << endl << "Please enter your first number: \n";
		cin >> input1;
		cout << endl << "Please enter your second number: \n";
		cin >> input2;

		result = input1 + input2;
		cout << endl << "Your sum is "<< result <<".\n" << endl;	
	}

	else if (operIn == 's')
	{
		cout << endl << "Please enter the number to be subtracted from: \n";
		cin >> input1;
		cout << endl << "Please enter the number you are subtracting: \n";
		cin >> input2;

		result = input1 - input2;
		cout << endl << "The difference is "<< result <<".\n" << endl;	
	}

	else if (operIn == 'm')
	{
		cout << endl << "Please enter your first factor: \n";
		cin >> input1;
		cout << endl << "Please enter your second factor: \n";
		cin >> input2;

		result = input1 * input2;
		cout << endl << "The product is "<< result <<".\n" << endl;
	}

	else if (operIn == 'd')
	{
		cout << endl << "Please enter the dividend: \n";
		cin >> input1;
		cout << endl << "Please enter the divisor: \n";
		cin >> input2;

		result = input1 / input2;
		cout << endl << "The quotient is "<< result <<".\n" << endl;
	}

	else if (operIn == 'v')
	{
		asciiPrint();
		cout << endl << "      "<< proName <<" "<< proVer <<"\n" << endl;
	}

	else if (operIn == 'q')
	{
		break;
	}

	else if (operIn == 'i')
	{
		proInfo();
	}

	else 
	{
		invalCmd();
	}

	}// moved to here !!
}<commit_msg>Added class<commit_after>#include <iostream>

using namespace std;

/* functions are below,
   not necessarily for
   optimization but
   instead for the
   purpose of learning
*/

class outputCL{
    public:

void asciiPrint(){
	cout << endl << " ▟██▖▐▙█▙ ▐▙█▙  ▟██▖\n";
	cout << "▐▛  ▘▐▛ ▜▌▐▛ ▜▌▐▛  ▘\n";
	cout << "▐▌   ▐▌ ▐▌▐▌ ▐▌▐▌\n";
	cout << "▝█▄▄▌▐█▄█▘▐█▄█▘▝█▄▄▌\n";
	cout << " ▝▀▀ ▐▌▀▘ ▐▌▀▘  ▝▀▀\n";
	cout << "     ▐▌   ▐▌\n" << endl  << endl;
}

void cppcMenu(){
	cout << "Please select the task you desire\n";
	cout << "a - addition\n";
	cout << "s - subtraction\n";
	cout << "m - multiplication\n";
	cout << "d - division\n";
	cout << "v - print version info\n";
	cout << "i - print extended info\n";
	cout << "q - quit the program\n";
	cout << "~--------------------~" << endl;
}

void proInfo(){
	cout << endl << endl << "cppc is a CLI calculator written entirely in C++\n";
	cout << "for the purpose of being run on any *nix OS.\n" << endl;
	cout << "Current cppc version is 0.0.1.\n" << endl;
	cout << "Functionality at the moment is limited; only\n";
	cout << "addition, subtraction, multiplication, and\n";
	cout << "division work presently.\n" << endl << endl;
}

void invalCmd(){
    cout << "Unrecognized command. \n" << endl << endl;
}
// end class
};

int main()
{

	string proName, proVer;
	char operIn;
	int input1, input2, result;

	proName = "cppc";
	proVer = "0.1";
	outputCL funCL;

	cout << "Welcome to "<< proName <<"!" << endl;
	for (int i = 0; i < 1;)
	{
	    
		funCL.cppcMenu();
//		cout << "..:\n";
		cin >> operIn;

// bracket was closed here !!

	if (operIn == 'a')
	{
		cout << endl << "Please enter your first number: \n";
		cin >> input1;
		cout << endl << "Please enter your second number: \n";
		cin >> input2;

		result = input1 + input2;
		cout << endl << "Your sum is "<< result <<".\n" << endl;	
	}

	else if (operIn == 's')
	{
		cout << endl << "Please enter the number to be subtracted from: \n";
		cin >> input1;
		cout << endl << "Please enter the number you are subtracting: \n";
		cin >> input2;

		result = input1 - input2;
		cout << endl << "The difference is "<< result <<".\n" << endl;	
	}

	else if (operIn == 'm')
	{
		cout << endl << "Please enter your first factor: \n";
		cin >> input1;
		cout << endl << "Please enter your second factor: \n";
		cin >> input2;

		result = input1 * input2;
		cout << endl << "The product is "<< result <<".\n" << endl;
	}

	else if (operIn == 'd')
	{
		cout << endl << "Please enter the dividend: \n";
		cin >> input1;
		cout << endl << "Please enter the divisor: \n";
		cin >> input2;

		result = input1 / input2;
		cout << endl << "The quotient is "<< result <<".\n" << endl;
	}

	else if (operIn == 'v')
	{
		funCL.asciiPrint();
		cout << endl << "      "<< proName <<" "<< proVer <<"\n" << endl;
	}

	else if (operIn == 'q')
	{
		break;
	}

	else if (operIn == 'i')
	{
		funCL.proInfo();
	}

	else 
	{
		funCL.invalCmd();
	}

	}// moved to here !!
}
{'fraction_non_alphanumeric': 0.22139903514817366, 'fraction_numerical': 0.00861474844934528, 'mean_word_length': 2.7524240465416936, 'pattern_counts': {'":': 0, '<': 335, '<?xml version=': 0, '>': 41, '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': '2570377', 'n_tokens_mistral': 2538, 'n_tokens_neox': 2329, 'n_words': 708}