<commit_before>#include "commands.h"


using namespace aBuild;

namespace commands {

void clean() {
	Workspace ws(".");
	auto toolchain = ws.accessConfigFile().getToolchain();
	auto flavor    = ws.accessConfigFile().getFlavor();
	auto cleanAbuildPath = std::string("./.aBuild/") + toolchain + "/" + flavor + "/";
	auto cleanBuildPath  = std::string("./build/") + toolchain + "/" + flavor + "/";

	utils::rm(cleanAbuildPath, true);
	utils::rm(cleanBuildPath, true);

	std::cout << "cleaned " << cleanAbuildPath << " and " << cleanBuildPath << std::endl;

}

}<commit_msg>fixing error when cleaning twice :-)<commit_after>#include "commands.h"


using namespace aBuild;

namespace commands {

void clean() {
	Workspace ws(".");
	auto toolchain = ws.accessConfigFile().getToolchain();
	auto flavor    = ws.accessConfigFile().getFlavor();
	auto cleanAbuildPath = std::string("./.aBuild/") + toolchain + "/" + flavor + "/";
	auto cleanBuildPath  = std::string("./build/") + toolchain + "/" + flavor + "/";

	if (utils::fileExists(cleanAbuildPath)) {
		utils::rm(cleanAbuildPath, true);
	}
	if (utils::fileExists(cleanBuildPath)) {
		utils::rm(cleanBuildPath, true);
	}

	std::cout << "cleaned " << cleanAbuildPath << " and " << cleanBuildPath << std::endl;

}

}
{'fraction_non_alphanumeric': 0.18998410174880764, 'fraction_numerical': 0.0, 'mean_word_length': 4.645739910313901, 'pattern_counts': {'":': 0, '<': 23, '<?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': '494299', 'n_tokens_mistral': 429, 'n_tokens_neox': 414, 'n_words': 83}