<commit_before><h1> Employees </h1>

<%= link_to "New Employee" , new_employee_path %>

<table>
	<tr>
		<th></th>
		<th> Name </th>
		<th> Notes </th>
		<th> Services </th>
		<th> Allocations </th>
	</tr>
	<% @employees.each do |employee| %>
		<tr>
			<% @newRow = nil %>
			<td> <%= link_to "Edit" , edit_employee_path(employee.id) %> </td>
			<td>  <%= employee.name %> </td>
			<td>  <%= employee.notes %> </td>
			<% employee.services.each do |service| %>
				<% @index =  employee.services.index(service) %>
				<% if(@newRow) %>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td> <%= service.name %> </td>
			    	<td> <%= employee.employee_allocations[@index].allocation %> </td>
					</tr>
				<% else %>
					<% @newRow = true %>
					<td> <%= service.name %> </td>
		    	<td> <%= employee.employee_allocations[@index].allocation %> </td>
				<% end %>
			<% end %>
		</tr>	
	<% end %>
</table><commit_msg>Changed employees index<commit_after><h1> Employees </h1>

<%= link_to "New Employee" , new_employee_path %>

<table>
	<tr>
		<th> Name </th>
		<th> Notes </th>
		<th> Services </th>
		<th> Allocations </th>
	</tr>
	<% @employees.each do |employee| %>
		<tr>
			<% @newRow = nil %>
			<td>  <%= employee.name %> </td>
			<td>  <%= employee.notes %> </td>
			<td>
				<% employee.services.each do |service| %>
					<%= service.name %>
					<br/>
				<% end %>
			</td>
			<td>
				<% employee.employee_allocations.each do |employee_allocation| %>
					<%= employee_allocation.allocation %> 
					<br/>
				<% end %>
			</td>
			<td> <%= link_to "Edit" , edit_employee_path(employee.id) %> </td>
		</tr>	
	<% end %>
</table>
{'fraction_non_alphanumeric': 0.23309178743961353, 'fraction_numerical': 0.0024154589371980675, 'mean_word_length': 2.6179039301310043, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, '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': '7467007', 'n_tokens_mistral': 847, 'n_tokens_neox': 634, 'n_words': 130}