<commit_before>
<div class="card">
	<div class="card_field detailed">
		Detailed information for<br> <%= @student.name %>
	</div>
	<div class="card_field">
		<table class="table-hover">
			<tr>
				<td>
					<strong>Student ID:</strong>
				</td>
				<td>
					<%= @student.student_id %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Grade Level:</strong>
				</td>
				<td>
					<%= @student.grade_level %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Gender:</strong>
				</td>
				<td>
					<%= @student.gender %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>GPA:</strong>
				</td>
				<td>
					<%= @student.fixed_gpa %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Detention Count:</strong>
				</td>
				<td>
					<%= @student.detention_count %>
				</td>
			</tr>
			<% @student.misc_hash.each do |k, v| %>
				<tr>
					<td>
						<strong><%= k %>:</strong>
					</td>
					<td>
						<%= v %>
					</td>
				</tr>
			<% end %>
		</table>
	</div>
	<div class="card_field">
		<%= link_to "Edit #{@student.first_name}'s info", edit_student_path(@student) %>
	</div>
	<div class="card_field">
		<a href="/students/<%= @student.id %>/destroy">Delete <%= @student.first_name %></a>
	</div>
</div><commit_msg>only admin can edit or delete students<commit_after>
<div class="card">
	<div class="card_field detailed">
		Detailed information for<br> <%= @student.name %>
	</div>
	<div class="card_field">
		<table class="table-hover">
			<tr>
				<td>
					<strong>Student ID:</strong>
				</td>
				<td>
					<%= @student.student_id %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Grade Level:</strong>
				</td>
				<td>
					<%= @student.grade_level %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Gender:</strong>
				</td>
				<td>
					<%= @student.gender %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>GPA:</strong>
				</td>
				<td>
					<%= @student.fixed_gpa %>
				</td>
			</tr>
			<tr>
				<td>
					<strong>Detention Count:</strong>
				</td>
				<td>
					<%= @student.detention_count %>
				</td>
			</tr>
			<% @student.misc_hash.each do |k, v| %>
				<tr>
					<td>
						<strong><%= k %>:</strong>
					</td>
					<td>
						<%= v %>
					</td>
				</tr>
			<% end %>
		</table>
	</div>
	<% admin? do %>
		<div class="card_field">
			<%= link_to "Edit #{@student.first_name}'s info", edit_student_path(@student) %>
		</div>
		<div class="card_field">
			<a href="/students/<%= @student.id %>/destroy">Delete <%= @student.first_name %></a>
		</div>
	<% end %>

</div>
{'fraction_non_alphanumeric': 0.23269689737470167, 'fraction_numerical': 0.0, 'mean_word_length': 2.1875792141951838, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, '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': '1762218', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1008, 'n_words': 194}