<commit_before><form class="panel" id="ticket_edit_form" title="Edit Ticket" method="POST" action="<%=url_for('update')%>">
		<div class="ticket_header">
			<h1 class="ticket_title"><%= @ticket.title %></h1>
			
			<div style="float:right">
			<div class="ticketnum">#<%= @ticket.number %></div> <%#= Project.find(@ticket.project_id).name %>
			<span class="<%= @ticket.state %>"><%= @ticket.state %></span>
			</div>
			<div class="ticket_reported"><span>Reported by:</span> 
			<a href="<%= "/Lighthouse/User/{#{@ticket.creator_id}}/show" %>"><%= User.find(@ticket.creator_id).name %></a> <br />
			<%= @ticket.created_at %></div>
		</div>
		<div class="clearer"></div>
		<h3>Comments and changes</h3>
		<div id="ticket_history">
			<% TicketVersions.find(:all).reject {|version| version.ticket_id != strip_braces(@ticket.object) }.each do |change| %>
				<div class="ticket_version">
					<div class="changename"><%= User.find(change.user_id).name %></div>
					<div class="changedate"><%= change.updated_at %></div>
					<% change_log = change.changes.split("||||") # we encoded array on the server this way %>
					<% if change_log.length > 1 %>
						<ul class="info">
							<% change_log.each do |element| %>
							<li>→ <%= element %></li>
							<% end %>
						</ul><commit_msg>sorted ticket versions<commit_after><form class="panel" id="ticket_edit_form" title="Edit Ticket" method="POST" action="<%=url_for('update')%>">
		<div class="ticket_header">
			<h1 class="ticket_title"><%= @ticket.title %></h1>
			
			<div style="float:right">
			<div class="ticketnum">#<%= @ticket.number %></div> <%#= Project.find(@ticket.project_id).name %>
			<span class="<%= @ticket.state %>"><%= @ticket.state %></span>
			</div>
			<div class="ticket_reported"><span>Reported by:</span> 
			<a href="<%= "/Lighthouse/User/{#{@ticket.creator_id}}/show" %>"><%= User.find(@ticket.creator_id).name %></a> <br />
			<%= @ticket.created_at %></div>
		</div>
		<div class="clearer"></div>
		<h3>Comments and changes</h3>
		<div id="ticket_history">
			<% versions = TicketVersions.find(:all).reject {|version| version.ticket_id != strip_braces(@ticket.object) }
				 versions = versions.sort { |x,y| DateTime.parse(x.updated_at) <=> DateTime.parse(y.updated_at) }
				versions.each do |change| %>
				<div class="ticket_version">
					<div class="changename"><%= User.find(change.user_id).name %></div>
					<div class="changedate"><%= change.updated_at %></div>
					<% change_log = change.changes.split("||||") # we encoded array on the server this way %>
					<% if change_log.length > 1 %>
						<ul class="info">
							<% change_log.each do |element| %>
							<li>→ <%= element %></li>
							<% end %>
						</ul>
{'fraction_non_alphanumeric': 0.2294659300184162, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 4.173333333333333, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 104, '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': '101611', 'n_tokens_mistral': 1180, 'n_tokens_neox': 934, 'n_words': 177}