<commit_before><div id="map-canvas"></div>
<div class="restaurant">

		<% if flash[:notice] %>
		   <%= flash[:notice] %>
		<% end %>

	<div id="current_grade">
		<%= image_tag "grade_card_a.png" if @restaurant.current_grade == "A"%>
		<%= image_tag "grade_card_b.png" if @restaurant.current_grade == "B"%>
		<%= image_tag "grade_card_c.png" if @restaurant.current_grade == "C"%>
		<%= image_tag "grade_card_gp.png" if @restaurant.current_grade == nil %></p>
	</div>

	<div id="information">
		<h1><%= @restaurant.name %></h1>
		<%= @restaurant.address %>
		<br>
		<%= @restaurant.phone.to_i %>
	</div>

	<div class="yelp_review">
		<% unless @restaurant.yelp_biz_id == -99999999 %>
		<img id="user_photo" src="<%= @restaurant.yelp_review_user_image %>">
		<br>
		<img  src="<%= @restaurant.yelp_review_rating_url %>">
		<p><%= @restaurant.yelp_review_user %> says....</p>
		<p><%= @restaurant.top_yelp_review %></p>
		<img src="http://s3-media3.fl.yelpcdn.com/assets/2/www/img/3049d7633b6e/developers/reviewsFromYelpRED.gif">
		<% else %>
		<p>No Yelp Reviews Found</p>
		<% end %>
	</div>

	<div>
		 <% if user_signed_in?  %>
			<div >
				<%= link_to "Add to Favorites", add_favorite_restaurant_path, method: :post, :id => 'add_favorite', :remote => true  %>
			</div>
		<% end %>
	</div>
</div>


<commit_msg>adding data attribute to link_to favorites<commit_after><div id="map-canvas"></div>
<div class="restaurant">

		<% if flash[:notice] %>
		   <%= flash[:notice] %>
		<% end %>

	<div id="current_grade">
		<%= image_tag "grade_card_a.png" if @restaurant.current_grade == "A"%>
		<%= image_tag "grade_card_b.png" if @restaurant.current_grade == "B"%>
		<%= image_tag "grade_card_c.png" if @restaurant.current_grade == "C"%>
		<%= image_tag "grade_card_gp.png" if @restaurant.current_grade == nil %></p>
	</div>

	<div id="information">
		<h1><%= @restaurant.name %></h1>
		<%= @restaurant.address %>
		<br>
		<%= @restaurant.phone.to_i %>
	</div>

	<div class="yelp_review">
		<% unless @restaurant.yelp_biz_id == -99999999 %>
		<img id="user_photo" src="<%= @restaurant.yelp_review_user_image %>">
		<br>
		<img  src="<%= @restaurant.yelp_review_rating_url %>">
		<p><%= @restaurant.yelp_review_user %> says....</p>
		<p><%= @restaurant.top_yelp_review %></p>
		<img src="http://s3-media3.fl.yelpcdn.com/assets/2/www/img/3049d7633b6e/developers/reviewsFromYelpRED.gif">
		<% else %>
		<p>No Yelp Reviews Found</p>
		<% end %>
	</div>

	<div>
		 <% if user_signed_in?  %>
			<div >
				<%= link_to "Add to Favorites", add_favorite_restaurant_path, method: :post, :id => 'add_favorite', :remote => true, data: {restaurant: @restaurant.id}  %>
			</div>
		<% end %>
	</div>
</div>



{'fraction_non_alphanumeric': 0.21664808621330361, 'fraction_numerical': 0.016350798959494612, 'mean_word_length': 4.237354085603113, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7230302', 'n_tokens_mistral': 1301, 'n_tokens_neox': 1093, 'n_words': 184}