<commit_before><!-- called from _outputs.tpl -->
<!-- nodelist : str -->

% from scripts.states_iterator import parseNodeList

<!-- a list to parse -->
% if '[' in nodelist:
	<select name="field">
		% for node in parseNodeList(nodelist):
			<option name="node" value="{{node}}">
				node{{node}}
			</option>
		% end
	</select>

<!-- a single node --><commit_msg>adds counter for select<commit_after><!-- called from _outputs.tpl -->
<!-- nodelist : str -->

% from scripts.states_iterator import parseNodeList

<!-- a list to parse -->
% if '[' in nodelist:
	% parsed = parseNodeList(nodelist)
	<select name="field">
		% for node in parsed:
			<option name="node" value="{{node}}">
				node{{node}}
			</option>
		% end
	</select>
	<span>
		[{{len(parsed)}}]
	</span>

<!-- a single node -->
{'fraction_non_alphanumeric': 0.20075757575757575, 'fraction_numerical': 0.0, 'mean_word_length': 3.2864864864864867, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '6501096', 'n_tokens_mistral': 284, 'n_tokens_neox': 261, 'n_words': 74}