<commit_before><div id='entire_gallery'>
<h1>Gallery</h1>

	<div class='gallery3'>
		<% num=0 -%>
		<% @gallery.each do |img| -%>
			<% num = (num+1)%5 %>
			<% if num == 0 && true -%>
				<div class="spacer">
				  	&nbsp;
				</div>
				<% num=1%>
			<% end -%>
			<div class='thumbnail'>
				<% if img.image? -%>
					<%= link_to image_tag(img.public_filename(:thumb)), 
							image_path(img.public_filename(:lightview)), 
							{:class =>'lightview', :rel => 'set[myset]', :id => img.id}
					%>
				<% else # not an image...probably slideshare-%>
					<%= link_to image_tag(Resource.find(54).public_filename(:thumb)), img.url, {:class => 'lightview', :rel => 'set[myset]', :id => img.id } %>
				<% end -%>
			</div>
		<% end %>
	</div>
</div>
<commit_msg>fixed bug for gallery wasn't displaying thumbnail for pdfs<commit_after><div id='entire_gallery'>
<h1>Gallery</h1>

	<div class='gallery3'>
		<% num=0 -%>
		<% @gallery.each do |img| -%>
			<% num = (num+1)%5 %>
			<% if num == 0 && true -%>
				<div class="spacer">
				  	&nbsp;
				</div>
				<% num=1%>
			<% end -%>
			<div class='thumbnail'>
				<% if img.image? || img.pdf? -%>
					<%= link_to image_tag(img.public_filename(:thumb)), 
							image_path(img.public_filename(:lightview)), 
							{:class =>'lightview', :rel => 'set[myset]', :id => img.id}
					%>
				<% else # not an image...probably slideshare-%>
					<%= link_to image_tag(Resource.find(54).public_filename(:thumb)), img.url, {:class => 'lightview', :rel => 'set[myset]', :id => img.id } %>
				<% end -%>
			</div>
		<% end %>
	</div>
</div>

{'fraction_non_alphanumeric': 0.2381554011370815, 'fraction_numerical': 0.012634238787113077, 'mean_word_length': 2.9402985074626864, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 59, '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': '5503166', 'n_tokens_mistral': 783, 'n_tokens_neox': 616, 'n_words': 115}