<commit_before><commit_msg>Added beginning of the Windows file dialog test.<commit_after>/* 31 march 2014 */
/* for mingw; link with -lcomdlg32 */
#define UNICODE
#define _UNICODE
#include <windows.h>
#include <stdio.h>
#include <strings.h>
#include <getopt.h>

static BOOL WINAPI (*action)(LPOPENFILENAME);

/*
void init(int *argc, char *(*argv[]))
{
	char *mode;

	if (*argc != 2)
		goto usage;
	mode = (*argv)[1];
	if (strcmp(mode, "open") == 0)
		action = GetOpenFileName;
	else if (strcmp(mode, "save") == 0)
		action = GetSaveFileName;
	else if (strcmp(mode, "opendir") == 0) {
		action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER;
		button = GTK_STOCK_OPEN;
	} else if (strcmp(mode, "savedir") == 0) {
		action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER;
		button = GTK_STOCK_SAVE;
	} else {
		fprintf(stderr, "error: unknown mode %s\n", mode);
		goto usage;
	}

	return;

usage:
	fprintf(stderr, "%s\n", g_option_context_get_help(flagscontext, FALSE, NULL));
	exit(1);
}
*/

int main(int argc, char *argv[])
{
	OPENFILENAME ofn;

//	init(&argc, &argv);
	action=GetOpenFileName;

	(*action)(&ofn);
	return 0;
}
{'fraction_non_alphanumeric': 0.16396396396396395, 'fraction_numerical': 0.014414414414414415, 'mean_word_length': 4.756476683937824, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1017646', 'n_tokens_mistral': 466, 'n_tokens_neox': 440, 'n_words': 107}