<commit_before>#include "../../include/client0/userInputInterpret.hpp"

void userInputInterpret( sf::TcpSocket& server, std::string user_id ){

	std::string user_input;
	std::string current_directory("/");

	do{
		std::cout << user_id << "@TSiD " << current_directory << " $ ";
		std::cin >> user_input;

		if( user_input == "help"){

			std::cout << "available commands :	help" << std::endl
				<< "			ls" << std::endl
				<< "			put" << std::endl
				<< "			get" << std::endl
				<< "			bye / quit / exit" << std::endl
				<< "			cd" << std::endl
				<< "			!" << std::endl
				<< std::endl;
		}
		else if( user_input == "put" ){

			if( !sendData( server, current_directory ) )
				std::cout << "Failed to upload data to server" << std::endl;
		}
		else if( user_input == "get" ){

			if( !retrieveData( server, current_directory ) )
				std::cout << "Failed to retrieve data from server" << std::endl;
		}
		else if( user_input == "ls" ){

			if( !retrieveFileList( server, current_directory ) )
				std::cout << "Failed to retrieve file list" << std::endl;
		}
		else if( user_input == "cd" ){

			if( !moveToDirectory( server, current_directory ) )
				std::cout << "Failed to move" << std::endl;
		}
		else if( user_input[0] == '!' ){

			std::string tmp;
			std::getline( std::cin, tmp );
			user_input.erase(0,1);
			user_input+=tmp;
			std::cout << std::endl;<commit_msg>Adding mkdir to the help list<commit_after>#include "../../include/client0/userInputInterpret.hpp"

void userInputInterpret( sf::TcpSocket& server, std::string user_id ){

	std::string user_input;
	std::string current_directory("/");

	do{
		std::cout << user_id << "@TSiD " << current_directory << " $ ";
		std::cin >> user_input;

		if( user_input == "help"){

			std::cout << "available commands :	help" << std::endl
				<< "			ls" << std::endl
				<< "			put" << std::endl
				<< "			get" << std::endl
				<< "			bye / quit / exit" << std::endl
				<< "			cd" << std::endl
				<< "			mkdir" << std::endl
				<< "			!" << std::endl
				<< std::endl;
		}
		else if( user_input == "put" ){

			if( !sendData( server, current_directory ) )
				std::cout << "Failed to upload data to server" << std::endl;
		}
		else if( user_input == "get" ){

			if( !retrieveData( server, current_directory ) )
				std::cout << "Failed to retrieve data from server" << std::endl;
		}
		else if( user_input == "ls" ){

			if( !retrieveFileList( server, current_directory ) )
				std::cout << "Failed to retrieve file list" << std::endl;
		}
		else if( user_input == "cd" ){

			if( !moveToDirectory( server, current_directory ) )
				std::cout << "Failed to move" << std::endl;
		}
		else if( user_input[0] == '!' ){

			std::string tmp;
			std::getline( std::cin, tmp );
			user_input.erase(0,1);
			user_input+=tmp;
			std::cout << std::endl;
{'fraction_non_alphanumeric': 0.19437522249911, 'fraction_numerical': 0.002847988608045568, 'mean_word_length': 3.2770167427701673, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 7, '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': '4313502', 'n_tokens_mistral': 1149, 'n_tokens_neox': 981, 'n_words': 232}