<commit_before>
#include "common.h"
#include "util.h"
#include "arguments.h"

#include "service.h"
#include "persist.h"

#include "writer/writers.h"

wchar_t *get_version(void)
{
	return L"HostKit Agent PREALPHA\nCompiled at " __TIME__ L" on " __DATE__ L"\n";
}

wchar_t *get_copyright(void)
{
	return L"(C) 2019 HostKit Team\n";
}

int wmain(int argc, wchar_t *argv[])
{
	int result;

	initialize_arguments();

	if(parse_arguments(argv) != ARGS_OK || arguments.error) {
		wprintf(L"%ls", get_help());
		quit();
	}

	if(arguments.debug) {
		fwprintf(arguments.log, L"Debug log is enabled.\n");
	}

	if(arguments.version == TRUE) {
		wprintf(L"%S", get_version());
		wprintf(L"%s", get_copyright());
		quit();
	}

	if(arguments.service == TRUE) {
		result = servicize();<commit_msg>main: fix unicode-fix stragglers<commit_after>
#include "common.h"
#include "util.h"
#include "arguments.h"

#include "service.h"
#include "persist.h"

#include "writer/writers.h"

wchar_t *get_version(void)
{
	return L"HostKit Agent PREALPHA\nCompiled at " __TIME__ L" on " __DATE__ L"\n";
}

wchar_t *get_copyright(void)
{
	return L"(C) 2019 HostKit Team\n";
}

int wmain(int argc, wchar_t *argv[])
{
	int result;

	initialize_arguments();

	if(parse_arguments(argv) != ARGS_OK || arguments.error) {
		wprintf(L"%ls", get_help());
		quit();
	}

	if(arguments.debug) {
		fwprintf(arguments.log, L"Debug log is enabled.\n");
	}

	if(arguments.version == TRUE) {
		wprintf(L"%ls", get_version());
		wprintf(L"%ls", get_copyright());
		quit();
	}

	if(arguments.service == TRUE) {
		result = servicize();
{'fraction_non_alphanumeric': 0.17687934301958308, 'fraction_numerical': 0.00505369551484523, 'mean_word_length': 4.845018450184502, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2695966', 'n_tokens_mistral': 661, 'n_tokens_neox': 619, 'n_words': 128}