<commit_before><%
   user = notification
   classname = "user access_level_#{user.access_level_id}"
   if @task.new_record? and @task.should_be_notified?(user)
     classname += " will_notify"
   elsif current_user == user and !user.receive_own_notifications?
     classname += " will_never_receive"
   end
-%>
<div class="<%= classname %>">
  <%= hidden_field_tag("users[]", user.id) %>
  <%= hidden_field_tag("assigned[]", user.id, :class => "assigned",
      :disabled => !@task.owners.include?(user)) %>

  <label>
    <%= unread_toggle_for_task_and_user(@task, user) %>
    <%= assigned_icon(@task, user) %>
  </label>

  <%= link_to_function(image_tag("cross_small.png"), "removeTaskUser(this)", :class => "removeLink") %>
  <%= link_to user.to_html, { :controller => "users", :action => "edit", :id => user, :layout => "popup" },
  :class => "lightbox", :target => "_blank" %>
  <br />
</div><commit_msg>Get rid of notified_last_change: add will_notify css class to user container if user should be notified about task. Event if task not new, because user can not change this by UI.<commit_after><%
   user = notification
   classname = "user access_level_#{user.access_level_id}"
   if @task.should_be_notified?(user)
     classname += " will_notify"
   elsif current_user == user and !user.receive_own_notifications?
     classname += " will_never_receive"
   end
-%>
<div class="<%= classname %>">
  <%= hidden_field_tag("users[]", user.id) %>
  <%= hidden_field_tag("assigned[]", user.id, :class => "assigned",
      :disabled => !@task.owners.include?(user)) %>

  <label>
    <%= unread_toggle_for_task_and_user(@task, user) %>
    <%= assigned_icon(@task, user) %>
  </label>

  <%= link_to_function(image_tag("cross_small.png"), "removeTaskUser(this)", :class => "removeLink") %>
  <%= link_to user.to_html, { :controller => "users", :action => "edit", :id => user, :layout => "popup" },
  :class => "lightbox", :target => "_blank" %>
  <br />
</div>
{'fraction_non_alphanumeric': 0.18778625954198475, 'fraction_numerical': 0.0, 'mean_word_length': 4.617142857142857, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 47, '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': '2633860', 'n_tokens_mistral': 705, 'n_tokens_neox': 672, 'n_words': 141}