<commit_before><h1><%= @gene.to_s %></h1>
<ul>
  <li>Name: <%= @gene.name %> (<%= link_to("Entrez Gene record", "http://www.ncbi.nlm.nih.gov/gene/" + @gene.id.to_s, :target => "_blank")%>)</li>
  <li>Chromosome: <%= @gene.chromosome %></li>
  <li>Map location: <%= @gene.map_location %></li>
  <li><%= link_to(pluralize(number_with_delimiter(@gene.articles_count), "article") + " in PubMed", "http://www.ncbi.nlm.nih.gov/sites/entrez?Db=pubmed&DbFrom=gene&Cmd=Link&LinkName=gene_pubmed&LinkReadableName=PubMed&IdsFromResult=#{@gene.id}", :target => "_blank") %></li>
</ul>

<div id="reviews">
<h2>Reviews</h2>
<ul>
<% for r in @gene.reviewed_genes %>
  <li><%= link_to(r.review.title, review_path(r.review)) %> (<%= pluralize(r.articles_count, "article")%> / <%= pluralize(number_with_delimiter(@gene.articles_count), "PubMed article") %>)</li>
<% end %>
</ul>
</div>
<% if @gene.homologs.size > 0 %>
<div id="homologs">
  <h2>Homologs from <%= link_to("NCBI HomoloGene", "http://www.ncbi.nlm.nih.gov/homologene/#{@gene.homologene.homolog_id}", :target => "_blank")%></h2>
  <ul>
<% for h in @gene.homologs %>
    <li><%= link_to(h.to_s, gene_path(h), :class => "gene", :title => h.name) %><% if h.reviewed_genes.size > 0 %> in <%= h.reviewed_genes.map {|hr| link_to(hr.review.title, review_path(hr.review)) + " (#{pluralize(hr.articles_count, "article")})"}.join(", ").html_safe %><% end %></li>
  <% end %>
  </ul>
</div>
<% end %><commit_msg>don't show heading without content<commit_after><h1><%= @gene.to_s %></h1>
<ul>
  <li>Name: <%= @gene.name %> (<%= link_to("Entrez Gene record", "http://www.ncbi.nlm.nih.gov/gene/" + @gene.id.to_s, :target => "_blank")%>)</li>
  <li>Chromosome: <%= @gene.chromosome %></li>
  <li>Map location: <%= @gene.map_location %></li>
  <li><%= link_to(pluralize(number_with_delimiter(@gene.articles_count), "article") + " in PubMed", "http://www.ncbi.nlm.nih.gov/sites/entrez?Db=pubmed&DbFrom=gene&Cmd=Link&LinkName=gene_pubmed&LinkReadableName=PubMed&IdsFromResult=#{@gene.id}", :target => "_blank") %></li>
</ul>

<% if @gene.reviewed_genes.size > 0 %>
<div id="reviews">
<h2>Reviews</h2>
<ul>
<% for r in @gene.reviewed_genes %>
  <li><%= link_to(r.review.title, review_path(r.review)) %> (<%= pluralize(r.articles_count, "article")%> / <%= pluralize(number_with_delimiter(@gene.articles_count), "PubMed article") %>)</li>
<% end %>
</ul>
</div>
<% end %>
<% if @gene.homologs.size > 0 %>
<div id="homologs">
  <h2>Homologs from <%= link_to("NCBI HomoloGene", "http://www.ncbi.nlm.nih.gov/homologene/#{@gene.homologene.homolog_id}", :target => "_blank")%></h2>
  <ul>
<% for h in @gene.homologs %>
    <li><%= link_to(h.to_s, gene_path(h), :class => "gene", :title => h.name) %><% if h.reviewed_genes.size > 0 %> in <%= h.reviewed_genes.map {|hr| link_to(hr.review.title, review_path(hr.review)) + " (#{pluralize(hr.articles_count, "article")})"}.join(", ").html_safe %><% end %></li>
  <% end %>
  </ul>
</div>
<% end %>
{'fraction_non_alphanumeric': 0.25844594594594594, 'fraction_numerical': 0.0057432432432432436, 'mean_word_length': 5.465065502183406, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5259880', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1189, 'n_words': 190}