<commit_before>
:- object(list(_type),
	extends(list)).

	:- info([
		version is 1.0,
		author is '<NAME>',
		date is 2006/1/29,
		comment is 'List predicates with elements constrained to a single type.']).

	valid(List) :-
		nonvar(List),
		parameter(1, Type),
		\+ \+ valid2(List, Type).

	valid2([], _).
	valid2([Value| List], Type) :-
		Type::valid(Value),
		valid2(List, Type).

:- end_object.<commit_msg>Added a new object, list(Type), to the library supporting validation of lists whose elements are restricted to a single type.<commit_after>
:- object(list(_type),
	extends(list)).

	:- info([
		version is 1.0,
		author is '<NAME>',
		date is 2006/1/29,
		comment is 'List predicates with elements constrained to a single type.']).

	valid(List) :-
		nonvar(List),
		parameter(1, Type),
		\+ \+ valid(List, Type).

	valid([], _).
	valid([Value| List], Type) :-
		Type::valid(Value),
		valid(List, Type).

:- end_object.
{'fraction_non_alphanumeric': 0.17349137931034483, 'fraction_numerical': 0.02586206896551724, 'mean_word_length': 3.6683417085427137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7174744', 'n_tokens_mistral': 359, 'n_tokens_neox': 314, 'n_words': 94}