<commit_before><h3>Search Results</h3>
<div class="results">
	<%if @results.blank?%>
		<p>No Results Found.</p>
	<%else%>
		<%@results.each do |result|%>
			<div class="result">
				<%if result.class.name == 'SpudPost'%>
					<h4><%=link_to result.title,blog_post_path(result.url_name)%></h4>
					<p><%=truncate(sanitize(result.content),:length => 200, :separator => ' ')%></p>
				<%elsif result.class.name == 'SpudPage'%>
					<h4><%=link_to result.name,page_path(:id => result.url_name)%></h4>
					
					<p><%=truncate(sanitize(result.meta_description),:length => 200, :separator => ' ')%></p>
					
				<%end%>
			</div>
		<%end%>
		<%=will_paginate @results%>
	<%end%>
</div><commit_msg>All posts link to blog_post_path, should be a conditional for news posts that link to news_post_path<commit_after><h3>Search Results</h3>
<div class="results">
	<%if @results.blank?%>
		<p>No Results Found.</p>
	<%else%>
		<%@results.each do |result|%>
			<div class="result">
				<%if result.class.name == 'SpudPost'%>
					<%if result.is_news == true%>
						<h4><%=link_to result.title,news_post_path(result.url_name)%></h4>
					<%else%>
						<h4><%=link_to result.title,blog_post_path(result.url_name)%></h4>
					<%end%>					
					<p><%=truncate(sanitize(result.content),:length => 200, :separator => ' ')%></p>
				<%elsif result.class.name == 'SpudPage'%>
					<h4><%=link_to result.name,page_path(:id => result.url_name)%></h4>
					
					<p><%=truncate(sanitize(result.meta_description),:length => 200, :separator => ' ')%></p>
					
				<%end%>
			</div>
		<%end%>
		<%=will_paginate @results%>
	<%end%>
</div>
{'fraction_non_alphanumeric': 0.2295792079207921, 'fraction_numerical': 0.01608910891089109, 'mean_word_length': 4.100946372239748, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 77, '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': '905471', 'n_tokens_mistral': 786, 'n_tokens_neox': 630, 'n_words': 103}