<commit_before>#include "ioput.h"
template <class T>
IOput<T>::IOput(){}

template <class T>
IOput<T>::IOput(const char* dir_name){
	cwd_ = new ss(dir_name);
	sst aux;
	aux << "mkdir -p " << *cwd_ << "/";
	system(aux.str().c_str());
}

template <class T>
IOput<T>::IOput(ss dir_name){
	cwd_ = new ss(dir_name);
	mkdir(*cwd_);
}

template <class T>
ss IOput<T>::cwd(){
	return *cwd_;
}
template <class T>
ss IOput<T>::full_cwd(){
	system("echo $PWD > .temp_full_cwd_path");
	ifstream in(".temp_full_cwd_path");
	ss aux;
	getline(in,aux);
	aux += ss("/") + *cwd_;
	in.close();
	system("rm .temp_full_cwd_path");
	return aux;
}

template <class T>
void IOput<T>::change_cwd(ss new_dir_name){
	*cwd_ = new_dir_name;
	mkdir(*cwd_);
}

template <class T>
void IOput<T>::mkdir(ss s){
	sst aux;
	aux << "mkdir -p " + s + "/";
	system(aux.str().c_str());	
}
template class IOput<int>;
template class IOput<float>;
template class IOput<double>;
template class IOput<ss>;
template class IOput<char>;<commit_msg>1.0/09.03.0214:0410<commit_after>#include "ioput.h"
template <class T>
IOput<T>::IOput(){}

template <class T>
IOput<T>::IOput(const char* dir_name){
	cwd_ = new string(dir_name);
	string_s aux;
	aux << "mkdir -p " << *cwd_ << "/";
	system(aux.str().c_str());
}

template <class T>
IOput<T>::IOput(string dir_name){
	cwd_ = new string(dir_name);
	mkdir(*cwd_);
}

template <class T>
string IOput<T>::cwd(){
	return *cwd_;
}
template <class T>
string IOput<T>::full_cwd(){
	system("echo $PWD > .temp_full_cwd_path");
	ifstream in(".temp_full_cwd_path");
	string aux;
	getline(in,aux);
	aux += string("/") + *cwd_;
	in.close();
	system("rm .temp_full_cwd_path");
	return aux;
}

template <class T>
void IOput<T>::change_cwd(string new_dir_name){
	*cwd_ = new_dir_name;
	mkdir(*cwd_);
}

template <class T>
void IOput<T>::mkdir(string s){
	string_s aux;
	aux << "mkdir -p " + s + "/";
	system(aux.str().c_str());	
}
template class IOput<int>;
template class IOput<float>;
template class IOput<double>;
template class IOput<string>;
template class IOput<char>;
{'fraction_non_alphanumeric': 0.19601167315175097, 'fraction_numerical': 0.006809338521400778, 'mean_word_length': 5.448275862068965, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 43, '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': '2080507', 'n_tokens_mistral': 875, 'n_tokens_neox': 858, 'n_words': 191}