<commit_before>typedef struct stfl_form stfl_form;

static struct stfl_ipool * ipool = NULL;

static void flush(void) {
	if (!ipool) {
		ipool = stfl_ipool_create("utf-8");
	}
	stfl_ipool_flush(ipool);
}

/* TODO: I can haz init routine where I can put an atexit(destroy)?
static void destroy(void) {
	stfl_ipool_destroy(ipool);
	ipool = NULL;
}
*/

#define TOWC(x) (stfl_ipool_towc(ipool, (x)))
#define FROMWC(x) (stfl_ipool_fromwc(ipool, (x)))

static stfl_form * stfl_create_wrapper(const char * text) {<commit_msg>make go-stfl work on OSX.<commit_after>typedef struct stfl_form stfl_form;

struct stfl_ipool * ipool = NULL;

static void flush(void) {
	if (!ipool) {
		ipool = stfl_ipool_create("utf-8");
	}
	stfl_ipool_flush(ipool);
}

/* TODO: I can haz init routine where I can put an atexit(destroy)?
static void destroy(void) {
	stfl_ipool_destroy(ipool);
	ipool = NULL;
}
*/

#define TOWC(x) (stfl_ipool_towc(ipool, (x)))
#define FROMWC(x) (stfl_ipool_fromwc(ipool, (x)))

static stfl_form * stfl_create_wrapper(const char * text) {
{'fraction_non_alphanumeric': 0.13256484149855907, 'fraction_numerical': 0.0019212295869356388, 'mean_word_length': 5.5125, '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': '5236784', 'n_tokens_mistral': 434, 'n_tokens_neox': 425, 'n_words': 99}