<commit_before><%# the partial expects 4 locals to be defined: "image_tag_for_key_type", "collection_name", "collection" and "truncate_to" -%>
<%# items in the collection are expected to have .name() method available -%>
<% main_section_length = 5 -%>


<% unless is_nil_or_empty? collection -%>
		<ul class="list">
      <% for item in collection.first(main_section_length) -%>
				<%= list_item_with_icon(icon_type, item, nil, truncate_to) -%>
      <% end  %>
    </ul>
		
		<%# if a collection has more than "main_section_length" items an "expand" link is provided which opens up the rest of the items -%>
		<% if collection.length > main_section_length -%>
		  <p id="more_link_<%= collection_name -%>" style="font-size: 93%; margin-bottom: 0.2em; padding: 0 inherit; text-align: right; vertical-align: middle;">
				<%= link_to_function("More" + expand_image("0.3em")).html_safe do |page|; page.toggle "more_link_#{collection_name}", "more_items_#{collection_name}", "less_link_#{collection_name}"; end; -%>
			</p>
			
			<div style="display: none; margin: 0; padding: 0;" id="more_items_<%= collection_name -%>">
				<ul class="list">
		      <% for item in collection[main_section_length..(collection.length-1)] -%>
		      	<%= list_item_with_icon(icon_type, item, nil, truncate_to) -%>
		      <% end  %>
		    </ul>
				
			  <p id="less_link_<%= collection_name -%>" style="display: none; font-size: 93%; margin-bottom: 0.2em; padding: 0 inherit; text-align: right; vertical-align: middle;">
					<%= link_to_function("Less" + collapse_image("0.3em")).html_safe do |page|; page.toggle "more_link_#{collection_name}", "more_items_#{collection_name}", "less_link_#{collection_name}"; end; -%>
				</p><commit_msg>fix more/less link on contribution_section_item_list<commit_after><%# the partial expects 4 locals to be defined: "image_tag_for_key_type", "collection_name", "collection" and "truncate_to" -%>
<%# items in the collection are expected to have .name() method available -%>
<% main_section_length = 5 -%>


<% unless is_nil_or_empty? collection -%>
		<ul class="list">
      <% for item in collection.first(main_section_length) -%>
				<%= list_item_with_icon(icon_type, item, nil, truncate_to) -%>
      <% end  %>
    </ul>
		
		<%# if a collection has more than "main_section_length" items an "expand" link is provided which opens up the rest of the items -%>
		<% if collection.length > main_section_length -%>
		  <p id="more_link_<%= collection_name -%>" style="font-size: 93%; margin-bottom: 0.2em; padding: 0 inherit; text-align: right; vertical-align: middle;">
				<%= link_to_function "More".html_safe + expand_image("0.3em") do |page|; page.toggle "more_link_#{collection_name}", "more_items_#{collection_name}", "less_link_#{collection_name}"; end; -%>
			</p>
			
			<div style="display: none; margin: 0; padding: 0;" id="more_items_<%= collection_name -%>">
				<ul class="list">
		      <% for item in collection[main_section_length..(collection.length-1)] -%>
		      	<%= list_item_with_icon(icon_type, item, nil, truncate_to) -%>
		      <% end  %>
		    </ul>
				
			  <p id="less_link_<%= collection_name -%>" style="display: none; font-size: 93%; margin-bottom: 0.2em; padding: 0 inherit; text-align: right; vertical-align: middle;">
					<%= link_to_function "Less".html_safe + collapse_image("0.3em") do |page|; page.toggle "more_link_#{collection_name}", "more_items_#{collection_name}", "less_link_#{collection_name}"; end; -%>
				</p>
{'fraction_non_alphanumeric': 0.1672883787661406, 'fraction_numerical': 0.0109038737446198, 'mean_word_length': 4.429906542056075, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 57, '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': '1217024', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1181, 'n_words': 279}