<commit_before><div id="context_wrapper" class="inside-column">
  <p>
  <%= link_to("Read pages that mention #{@article.title} in all works.",
              :controller => 'display',
              :action => 'read_all_works',
              :article_id => @article.id) %>
  </p>
		<p><%= link_to("Graph of subjects related to #{@article.title}",
                  { :controller => 'article',
                    :action => 'graph',
                    :article_id => @article.id }) %>
		</p>
		<p>Pages that refer to <%= @article.title %>:</p>
		<p>
		 <% for link in @article.page_article_links %>
		   <%= link_to(link.page.title,
		               { :controller => 'display',
		                 :action=> 'display_page',
		                 :page_id => link.page.id })%>
		   (<%= raw(link.display_text) %>)<br />
		 <% end %>
		</p>
		<p>Subject articles that refer to <%= @article.title %>:</p>
		<p>
		 <% for link in @article.target_article_links %>
		   <%= link_to(link.source_article.title,
		               { :controller => 'article',
		                 :action=> 'show',
		                 :article_id => link.source_article.id })%>
		   (<%= link.display_text %>)<br />
		 <% end %>
		</p>
	</div>
</div><commit_msg>Remove inter-article links section unless they exist<commit_after><div id="context_wrapper" class="inside-column">
  <p>
  <%= link_to("Read pages that mention #{@article.title} in all works.",
              :controller => 'display',
              :action => 'read_all_works',
              :article_id => @article.id) %>
  </p>
		<p><%= link_to("Graph of subjects related to #{@article.title}",
                  { :controller => 'article',
                    :action => 'graph',
                    :article_id => @article.id }) %>
		</p>
		<p>Pages that refer to <%= @article.title %>:</p>
		<p>
		 <% for link in @article.page_article_links %>
		   <%= link_to(link.page.title,
		               { :controller => 'display',
		                 :action=> 'display_page',
		                 :page_id => link.page.id })%>
		   (<%= raw(link.display_text) %>)<br />
		 <% end %>
		</p>
		<% if @article.target_article_links.count > 0 %>
			<p>Subject articles that refer to <%= @article.title %>:</p>
			<p>
			 <% for link in @article.target_article_links %>
			   <%= link_to(link.source_article.title,
			               { :controller => 'article',
			                 :action=> 'show',
			                 :article_id => link.source_article.id })%>
			   (<%= link.display_text %>)<br />
			 <% end %>
			</p>
		<% end %>
	</div>
</div>
{'fraction_non_alphanumeric': 0.18681747269890794, 'fraction_numerical': 0.000390015600624025, 'mean_word_length': 2.0141010575793183, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 88, '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': '3004380', 'n_tokens_mistral': 921, 'n_tokens_neox': 779, 'n_words': 169}