<commit_before>@(list: TaskList, people : List[Person])

@import helper._

@main("List: " + list.title) {
<h1>@list.title</h1>

@defining(new HashSet[Person]()) { people_with_uncompleted_task =>

<table class="table">
<tr><th>Task<th>People who have completed it<th>People who have not completed it
@for( t <- list.tasks ) {
<tr>
<td>@t.title
<td>
	@defining(people.filter(p => p.completedTask(t) != null)) { completed_people =>
		(@completed_people.size):
		@for( p <- completed_people) {
			<a href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name,</a>
		}
	}
<td>
	@defining(people.filter(p => p.completedTask(t) == null)) { uncompleted_people =>
		(@uncompleted_people.size):
		@for( p <- uncompleted_people) {
			<a @if( people_with_uncompleted_task.add(p) ) { class="first_uncompleted" }
				href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name,</a>
		}
	}
}

</table>
}

}<commit_msg>Add explanation of highlighting to task list display.<commit_after>@(list: TaskList, people : List[Person])

@import helper._

@main("List: " + list.title) {
<h1>@list.title</h1>

@defining(new HashSet[Person]()) { people_with_uncompleted_task =>

<table class="table">
<tr><th>Task<th>People who have completed it<th>People who have not completed it. The
	first time someone appears in this column, their name is <span class="first_uncompleted">highlighted</span>.
@for( t <- list.tasks ) {
<tr>
<td>@t.title
<td>
	@defining(people.filter(p => p.completedTask(t) != null)) { completed_people =>
		(@completed_people.size):
		@for( p <- completed_people) {
			<a href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name,</a>
		}
	}
<td>
	@defining(people.filter(p => p.completedTask(t) == null)) { uncompleted_people =>
		(@uncompleted_people.size):
		@for( p <- uncompleted_people) {
			<a @if( people_with_uncompleted_task.add(p) ) { class="first_uncompleted" }
				href="@routes.Application.person(p.person_id)">@p.first_name @p.last_name,</a>
		}
	}
}

</table>
}

}
{'fraction_non_alphanumeric': 0.18623080733036157, 'fraction_numerical': 0.001981178801386825, 'mean_word_length': 5.273291925465839, 'pattern_counts': {'":': 0, '<': 43, '<?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': '3492052', 'n_tokens_mistral': 810, 'n_tokens_neox': 757, 'n_words': 134}