<commit_before><% if flash[:notice] %>
  <div class="notice"><%= flash[:notice] %></div>
<% end %>

<section class="todoapp">
	<header class="header">
		<h1><%= @house_chore.chore.name %></h1>
		<%= form_for([@house_chore, @task]) do |f| %>
			<%= f.text_field :description, :class => "new-todo", :placeholder => (@task.errors.full_messages_for(:description).first || "Create a new chore task..." ) %>
			<%= f.submit :class => "hidden" %>
		<% end %>
	</header>

	<section class="main">
		<ul class="todo-list">
      <% @house_chore.tasks.each do |task| %>
      <li class="task" id="task_<%= task.id %>">
        <div class="view">
          <label><%= task.description %></label>
          <%= button_to "x", [@house_chore, task], :method => :delete, :class => "destroy" %>
        </div>
      </li>
      <% end %>
    </ul>

    <br>
    <div class="assignment">
      <%= form_for(@user_chore) do |f| %>
        <%= f.hidden_field :house_chore_id, :value => @house_chore.id %>
        <%= f.label :user %>
        <%= f.select :user_id, @users.collect { |u| [u.username, u.id] }, include_blank: true %>
        <%= f.label :due_date %>
        <%= f.date_select :due_date %>
        <%= f.submit "Assign a user to a chore" %>
      <% end %>
    </div>


	</section>

	<footer class="footer">

	</footer>
</section>

<script id="task-template" type="text/x-handlebars-template">
  <li class="task" id="task_{{id}}"><commit_msg>removed clone task from house_chore task list<commit_after><% if flash[:notice] %>
  <div class="notice"><%= flash[:notice] %></div>
<% end %>

<section class="todoapp">
	<header class="header">
		<h1><%= @house_chore.chore.name %></h1>
		<%= form_for([@house_chore, @task]) do |f| %>
			<%= f.text_field :description, :class => "new-todo", :placeholder => (@task.errors.full_messages_for(:description).first || "Create a new chore task..." ) %>
			<%= f.submit :class => "hidden" %>
		<% end %>
	</header>

	<section class="main">
		<ul class="todo-list">
      <% if @task.id %>
        <% @house_chore.tasks.each do |task| %>
        <li class="task" id="task_<%= task.id %>">
          <div class="view">
            <label><%= task.description %></label>
            <%= button_to "x", [@house_chore, task], :method => :delete, :class => "destroy" %>
          </div>
        </li>
        <% end %>
      <% end %>
    </ul>

    <br>
    <div class="assignment">
      <%= form_for(@user_chore) do |f| %>
        <%= f.hidden_field :house_chore_id, :value => @house_chore.id %>
        <%= f.label :user %>
        <%= f.select :user_id, @users.collect { |u| [u.username, u.id] }, include_blank: true %>
        <%= f.label :due_date %>
        <%= f.date_select :due_date %>
        <%= f.submit "Assign a user to a chore" %>
      <% end %>
    </div>


	</section>

	<footer class="footer">

	</footer>
</section>

<script id="task-template" type="text/x-handlebars-template">
  <li class="task" id="task_{{id}}">
{'fraction_non_alphanumeric': 0.22650439486139284, 'fraction_numerical': 0.001352265043948614, 'mean_word_length': 2.888304862023653, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 109, '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': '3381391', 'n_tokens_mistral': 1165, 'n_tokens_neox': 1049, 'n_words': 222}