<commit_before>void test_glist () {
	var list = new GLib.List<string> ();
	list.prepend ("foo");
	list.prepend ("bar");
	assert (list.nth_data (1) == "foo");
	list = null;

	var list2 = new GLib.List<unowned string> ();
	list2.prepend ("foo");
	list2.prepend ("bar");
	assert (list2.nth_data (1) == "foo");
	list2 = null;
}

void test_gslist () {
	var list = new GLib.SList<string> ();
	list.prepend ("foo");
	list.prepend ("bar");
	assert (list.nth_data (1) == "foo");
	list = null;

	var list2 = new GLib.SList<unowned string> ();
	list2.prepend ("foo");
	list2.prepend ("bar");
	assert (list2.nth_data (1) == "foo");
	list2 = null;
}

void test_gqueue () {
	var queue = new GLib.Queue<string> ();
	queue.push_head ("foo");
	queue.push_head ("bar");
	assert (queue.peek_nth (1) == "foo");
	queue = null;

	var queue2 = new GLib.Queue<unowned string> ();
	queue2.push_head ("foo");
	queue2.push_head ("bar");
	assert (queue2.peek_nth (1) == "foo");
	queue2 = null;
}

void main () {
	test_glist ();
	test_gslist ();
	test_gqueue ();
}<commit_msg>tests: Add basic GLib.Node test<commit_after>void test_glist () {
	var list = new GLib.List<string> ();
	list.prepend ("foo");
	list.prepend ("bar");
	assert (list.nth_data (1) == "foo");
	list = null;

	var list2 = new GLib.List<unowned string> ();
	list2.prepend ("foo");
	list2.prepend ("bar");
	assert (list2.nth_data (1) == "foo");
	list2 = null;
}

void test_gslist () {
	var list = new GLib.SList<string> ();
	list.prepend ("foo");
	list.prepend ("bar");
	assert (list.nth_data (1) == "foo");
	list = null;

	var list2 = new GLib.SList<unowned string> ();
	list2.prepend ("foo");
	list2.prepend ("bar");
	assert (list2.nth_data (1) == "foo");
	list2 = null;
}

void test_gqueue () {
	var queue = new GLib.Queue<string> ();
	queue.push_head ("foo");
	queue.push_head ("bar");
	assert (queue.peek_nth (1) == "foo");
	queue = null;

	var queue2 = new GLib.Queue<unowned string> ();
	queue2.push_head ("foo");
	queue2.push_head ("bar");
	assert (queue2.peek_nth (1) == "foo");
	queue2 = null;
}

void test_gnode () {
	var nodes = new GLib.Node<string> ();
	nodes.append_data ("foo");
	nodes.append_data ("bar");
	assert (nodes.nth_child (1).data == "bar");
	nodes = null;

	var nodes2 = new GLib.Node<unowned string> ();
	nodes2.append_data ("foo");
	nodes2.append_data ("bar");
	assert (nodes2.nth_child (1).data == "bar");
	nodes2 = null;
}

void main () {
	test_glist ();
	test_gslist ();
	test_gqueue ();
	test_gnode ();
}
{'fraction_non_alphanumeric': 0.20234248788368336, 'fraction_numerical': 0.01978998384491115, 'mean_word_length': 4.259023354564756, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1438933', 'n_tokens_mistral': 1011, 'n_tokens_neox': 1006, 'n_words': 232}