<commit_before><h1>voidstart's bookstore</h1>
<% if alert %>
	<%= alert %>
<% end %>

<% @products.each do |product| %>
	<div class="entry">
	    <div class="cover_img"><%= image_tag(product.imgurl) %></div>
	    <div class="right_block">
	        <div class="title"><%= product.title %></div>
	        <div class="author"><%= product.author %></div>
	        <div class="desc"><%= product.description %></div>
	        <div class="price"><%= product.price %></div>
	    </div>
	    <%= button_to "Add to Cart", cart_items_path(product_id: product), remote: true %>
	</div>
<% end %><commit_msg>only add to cart when logged in<commit_after><h1>voidstart's bookstore</h1>
<% if alert %>
	<%= alert %>
<% end %>

<% @products.each do |product| %>
	<div class="entry">
	    <div class="cover_img"><%= image_tag(product.imgurl) %></div>
	    <div class="right_block">
	        <div class="title"><%= product.title %></div>
	        <div class="author"><%= product.author %></div>
	        <div class="desc"><%= product.description %></div>
	        <div class="price"><%= product.price %></div>
	    </div>
	    <% if logged_in? %>
		    <%= button_to "Add to Cart", cart_items_path(product_id: product), remote: true %>
	    <% end %>
	</div>
<% end %>
{'fraction_non_alphanumeric': 0.2233787029623699, 'fraction_numerical': 0.0032025620496397116, 'mean_word_length': 3.4169611307420493, 'pattern_counts': {'":': 0, '<': 59, '<?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': '2950204', 'n_tokens_mistral': 469, 'n_tokens_neox': 410, 'n_words': 97}