<commit_before><h1><%= @project.title %></h1>

<% if is_professor? %>
	<h3><%= @project.remaining_time %> hours remaining</h3>
<% else %>
	<h3><%= @student_total_hours %> hours worked on this project</h3>
<% end %>

<h3><%= @project.hypothesis %></h3>


<p><%= @project.summary %></p>
<p>Status: <%= @project.status %></p>

<% @project.records.each do |record| %>
	<%= record.student.name%><br>
	<%= record.observations %><br>
	<% if is_professor? %>
		<%= record.hours_worked%> hours worked<br><br>
	<% end %>
<% end %> 

<% if is_student? %>
	<%= form_for @record , html: {class: "form-group"} do |f| %>
	  <%= f.label :hours_worked %>
	  <%= f.number_field :hours_worked %><br>
	  <%= f.label :observations %>
	  <%= f.text_area :observations, cols: 30, rows: 15%><br>
	  <%= f.submit %>
	<% end %><commit_msg>over budget notification<commit_after><h1><%= @project.title %></h1>

<% if is_professor? %>
	<h3><%= @project.remaining_time %> hours remaining</h3>
	<% if @project.remaining_time < 0 %>
	<div id="errors">
		<h4>over budget</h4>
	</div>
	<% end %>
<% elsif is_student? %>
	<h3><%= @student_total_hours %> hours worked on this project</h3>
<% end %>

<h3><%= @project.hypothesis %></h3>


<p><%= @project.summary %></p>
<p>Status: <%= @project.status %></p>

<% @project.records.each do |record| %>
	<%= record.student.name%><br>
	<%= record.observations %><br>
	<% if is_professor? %>
		<%= record.hours_worked%> hours worked<br><br>
	<% end %> 
<% end %>

<% if is_student? %>
	<%= form_for @record , html: {class: "form-group"} do |f| %>
	  <%= f.label :hours_worked %>
	  <%= f.number_field :hours_worked %><br>
	  <%= f.label :observations %>
	  <%= f.text_area :observations, cols: 30, rows: 15%><br>
	  <%= f.submit %>
	<% end %>
{'fraction_non_alphanumeric': 0.24757004002287022, 'fraction_numerical': 0.015437392795883362, 'mean_word_length': 4.255255255255255, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 93, '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': '2740649', 'n_tokens_mistral': 817, 'n_tokens_neox': 689, 'n_words': 140}