<commit_before>#include <iostream>
#include "romaji.h"

int main(int argc, char **argv) {

	if(argc != 2) {
		std::cerr << "Usage: kana_to_romaji <kana>" << std::endl;
		return 1;
	}

	const char *kana = argv[1];
	std::string romaji;
	japanese::utf8_kana_to_romaji(kana, romaji);
	std::cout << romaji << std::endl;

	return 0;
}

<commit_msg>Added exception handling in driver program.<commit_after>#include <iostream>
#include "romaji.h"

int main(int argc, char **argv) {

	if(argc != 2) {
		std::cerr << "Usage: kana_to_romaji <kana>" << std::endl;
		return 1;
	}

	const char *kana = argv[1];
	try {
		std::string romaji;
		japanese::utf8_kana_to_romaji(kana, romaji);
		std::cout << romaji << std::endl;
	}
	catch(const core::utf8_encoding_error &e) {
		std::cerr << e.what() << std::endl;
	}

	return 0;
}


{'fraction_non_alphanumeric': 0.1795817958179582, 'fraction_numerical': 0.013530135301353014, 'mean_word_length': 4.575342465753424, 'pattern_counts': {'":': 0, '<': 27, '<?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': '5073458', 'n_tokens_mistral': 369, 'n_tokens_neox': 337, 'n_words': 74}