<commit_before>
<%= render 'topbar' %>

<main class="cd-main-content">
	<div class="cd-tab-filter-wrapper">
		<div class="cd-tab-filter">
			<ul class="cd-filters">
				<li class="placeholder">
					<a data-type="suggested-recipes" href="#0"></a> <!-- selected option on mobile -->
				</li>
				<li class="filter" data-filter=".suggested-recipes"><a href="#0" data-type="suggested-recipes">Suggested Recipes</a></li>
				<li class="filter" data-filter=".liked-recipes"><a href="#0" data-type="liked-recipes">Liked Recipes</a></li>
			</ul> <!-- cd-filters -->
		</div> <!-- cd-tab-filter -->
	</div> <!-- cd-tab-filter-wrapper -->

	<section class="cd-gallery">
		<ul>
      <% 8.times.each do |n = 0| %>
			<li class="mix suggested-recipes check1 radio2 option3">
        <div class="recipe-b-image">
          <%= link_to image_tag(@response[n]["largeImage"]), "http://www.yummly.com/recipe/#{@response[n]["id"]}" %>
          <%= @response[n]["recommendation_score"] %>
        </div>
        <div class="recipe-name">
          <%= @response[n]["recipeName"] %>
        </div>
        <div class="recipe-action">
          <%= link_to "Trash", users_trash_path(recipe_id: @response[0]["id"], recipe_name: @response[0]["recipeName"],
          recipe_url:@response[0]["id"], recipe_large_image: @response[0]["largeImage"]), method: :post, :class=> 'like small-6 columns' %>
          <%= link_to "Try", users_try_path(recipe_id: @response[0]["id"], recipe_name: @response[0]["recipeName"],
          recipe_url:@response[0]["id"], recipe_large_image: @response[0]["largeImage"]), method: :post, :class=> 'like small-6 columns' %>
        </div>
      </li>
      <% n += 1 %>
      <% end %>
      <% @user.recipes.each do |r| %>
      <li class="mix liked-recipes check1 radio2 option3"><%= link_to image_tag(r.picture), "http://www.yummly.com/recipe/#{r.url}" %></li>
      <% end %>
			<li class="gap"></li>
		</ul>
		<div class="cd-fail-message">No results found</div>
	</section> <!-- cd-gallery -->

	<div class="cd-filter">
		<form>
			<div class="cd-filter-block">
				<h4>Filters</h4>

				<div class="cd-filter-content">
          <form action=recipe_list method="GET">
            <input type="checkbox" name="filters[]" value="dairy" id="dairy">
            <label for="dairy">dairy</label>
            <input type="checkbox" name="filters[]" value="egg" id="egg">
            <label for="egg">egg</label>
            <input type="checkbox" name="filters[]" value="gluten" id="gluten">
            <label for="gluten">gluten</label>
            <input type="checkbox" name="filters[]" value="sesame" id="sesame"><commit_msg>Try button on suggested recipe list page now working<commit_after>
<%= render 'topbar' %>

<main class="cd-main-content">
	<div class="cd-tab-filter-wrapper">
		<div class="cd-tab-filter">
			<ul class="cd-filters">
				<li class="placeholder">
					<a data-type="suggested-recipes" href="#0"></a> <!-- selected option on mobile -->
				</li>
				<li class="filter" data-filter=".suggested-recipes"><a href="#0" data-type="suggested-recipes">Suggested Recipes</a></li>
				<li class="filter" data-filter=".liked-recipes"><a href="#0" data-type="liked-recipes">Liked Recipes</a></li>
			</ul> <!-- cd-filters -->
		</div> <!-- cd-tab-filter -->
	</div> <!-- cd-tab-filter-wrapper -->

	<section class="cd-gallery">
		<ul>
      <% 8.times.each do |n = 0| %>
			<li class="mix suggested-recipes check1 radio2 option3">
        <div class="recipe-b-image">
          <%= link_to image_tag(@response[n]["largeImage"]), "http://www.yummly.com/recipe/#{@response[n]["id"]}" %>
          <%= @response[n]["recommendation_score"] %>
        </div>
        <div class="recipe-name">
          <%= @response[n]["recipeName"] %>
        </div>
        <div class="recipe-action">
          <%= link_to "Trash", users_trash_path(recipe_id: @response[n]["id"], recipe_name: @response[n]["recipeName"],
          recipe_url:@response[n]["id"], recipe_large_image: @response[n]["largeImage"]), method: :post, :class=> 'like small-6 columns' %>
          <%= link_to "Try", users_try_path(recipe_id: @response[n]["id"], recipe_name: @response[n]["recipeName"],
          recipe_url:@response[n]["id"], recipe_large_image: @response[n]["largeImage"]), method: :post, :class=> 'like small-6 columns' %>
        </div>
      </li>
      <% n += 1 %>
      <% end %>
      <% @user.recipes.each do |r| %>
      <li class="mix liked-recipes check1 radio2 option3"><%= link_to image_tag(r.picture), "http://www.yummly.com/recipe/#{r.url}" %></li>
      <% end %>
			<li class="gap"></li>
		</ul>
		<div class="cd-fail-message">No results found</div>
	</section> <!-- cd-gallery -->

	<div class="cd-filter">
		<form>
			<div class="cd-filter-block">
				<h4>Filters</h4>

				<div class="cd-filter-content">
          <form action=recipe_list method="GET">
            <input type="checkbox" name="filters[]" value="dairy" id="dairy">
            <label for="dairy">dairy</label>
            <input type="checkbox" name="filters[]" value="egg" id="egg">
            <label for="egg">egg</label>
            <input type="checkbox" name="filters[]" value="gluten" id="gluten">
            <label for="gluten">gluten</label>
            <input type="checkbox" name="filters[]" value="sesame" id="sesame">
{'fraction_non_alphanumeric': 0.22109419063733785, 'fraction_numerical': 0.007520210565895845, 'mean_word_length': 3.2937853107344632, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6595747', 'n_tokens_mistral': 1984, 'n_tokens_neox': 1821, 'n_words': 327}