<commit_before><% content_for :path do %>
	> <%= link_to t('views.paths.home'), home_path %>
	> <%= link_to t('activerecord.models.project').pluralize, projects_path %>
 	> <%= link_to @project.name, project_path(@project.name) %>
 	> comparison
<% end %>

<section>
	<%= render partial: 'projects/titlebar' -%>
	<h1>
		Comparison with '<%= @comparison[:reference] %>'
    <span class='tab-bar'>
      <%= link_to_unless_current 'JSON', params.merge(controller: :projects, action: :show_comparison, format: :json), :class => 'tab' -%>
    </span>
	</h1>

	<% if @comparison[:individual].present? %>
		<section>
			<h2>Individual annotations</h2>

			<% if @comparison[:individual][:denotations].present? && @comparison[:individual][:denotations][:counts].present?%>
				<section>
					<h3>Denotations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:denotations]} %>
				</section>
			<% end %>

			<% if @comparison[:individual][:relations].present? && @comparison[:individual][:relations][:counts].present?%>
				<section>
					<h3>Relations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:relations]} %>
				</section>
			<% end %>

			<% if @comparison[:individual][:modifications].present? && @comparison[:individual][:modifications][:counts].present? %>
				<section>
					<h3>Modifications</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:modifications]} %>
				</section>
			<% end %>
		</section>

	<% end %>

	<% if @comparison[:compound].present? %>
		<section>
			<h2>Compound annotations</h2>

			<% if @comparison[:compound][:denotations].present? %>
				<section>
					<h3>Denotations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:compound][:denotations]} %>
				</section>
			<% end %>

			<% if @comparison[:compound][:relations].present? %>
				<section>
					<h3>Relations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:compound][:relations]} %>
				</section>
			<% end %>

			<% if @comparison[:compound][:modifications].present? %><commit_msg>FIXED to supress showing comparison when there is no compound item.<commit_after><% content_for :path do %>
	> <%= link_to t('views.paths.home'), home_path %>
	> <%= link_to t('activerecord.models.project').pluralize, projects_path %>
 	> <%= link_to @project.name, project_path(@project.name) %>
 	> comparison
<% end %>

<section>
	<%= render partial: 'projects/titlebar' -%>
	<h1>
		Comparison with '<%= @comparison[:reference] %>'
    <span class='tab-bar'>
      <%= link_to_unless_current 'JSON', params.merge(controller: :projects, action: :show_comparison, format: :json), :class => 'tab' -%>
    </span>
	</h1>

	<% if @comparison[:individual].present? %>
		<section>
			<h2>Individual annotations</h2>

			<% if @comparison[:individual][:denotations].present? && @comparison[:individual][:denotations][:counts].present?%>
				<section>
					<h3>Denotations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:denotations]} %>
				</section>
			<% end %>

			<% if @comparison[:individual][:relations].present? && @comparison[:individual][:relations][:counts].present?%>
				<section>
					<h3>Relations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:relations]} %>
				</section>
			<% end %>

			<% if @comparison[:individual][:modifications].present? && @comparison[:individual][:modifications][:counts].present? %>
				<section>
					<h3>Modifications</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:individual][:modifications]} %>
				</section>
			<% end %>
		</section>

	<% end %>

	<% if @comparison[:compound].present? %>
		<section>
			<h2>Compound annotations</h2>

			<% if @comparison[:compound][:denotations].present? && @comparison[:compound][:denotations][:counts].present? %>
				<section>
					<h3>Denotations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:compound][:denotations]} %>
				</section>
			<% end %>

			<% if @comparison[:compound][:relations].present? && @comparison[:compound][:relations][:counts].present? %>
				<section>
					<h3>Relations</h3>
					<%= render partial: 'comparison', locals: {comparison: @comparison[:compound][:relations]} %>
				</section>
			<% end %>

			<% if @comparison[:compound][:modifications].present? && @comparison[:compound][:modifications][:counts].present?%>
{'fraction_non_alphanumeric': 0.20652413489089708, 'fraction_numerical': 0.007053118800969804, 'mean_word_length': 4.7735368956743, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 131, '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': '6428488', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1412, 'n_words': 241}