<commit_before>#include "Enesim.h"

int main(int argc, char **argv)
{
	Enesim_Renderer *r;
	Enesim_Surface *s;
	Enesim_Log *error = NULL;

	enesim_init();
	r = enesim_renderer_rectangle_new();
	enesim_renderer_shape_fill_color_set(r, 0xffffffff);
	/* we dont set any property to force the error */

	s = enesim_surface_new(ENESIM_FORMAT_ARGB8888, 320, 240);

	if (!enesim_renderer_draw(r, s, ENESIM_ROP_FILL, NULL, 0, 0, &error))
	{
		enesim_log_dump(error);
		enesim_log_delete(error);
	}

	enesim_shutdown();

	return 0;
}
<commit_msg>Use the new log API<commit_after>#include "Enesim.h"

int main(int argc, char **argv)
{
	Enesim_Renderer *r;
	Enesim_Surface *s;
	Enesim_Log *error = NULL;

	enesim_init();
	r = enesim_renderer_rectangle_new();
	enesim_renderer_shape_fill_color_set(r, 0xffffffff);
	/* we dont set any property to force the error */

	s = enesim_surface_new(ENESIM_FORMAT_ARGB8888, 320, 240);

	if (!enesim_renderer_draw(r, s, ENESIM_ROP_FILL, NULL, 0, 0, &error))
	{
		enesim_log_dump(error);
		enesim_log_unref(error);
	}

	enesim_shutdown();

	return 0;
}

{'fraction_non_alphanumeric': 0.12233549582947173, 'fraction_numerical': 0.025949953660797033, 'mean_word_length': 5.545454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '2218902', 'n_tokens_mistral': 492, 'n_tokens_neox': 457, 'n_words': 94}