<commit_before><% content_for "submenu" do %>
   <%= sub_menu_item('View Appln', :url => entire_profiles_viewer_url(@profile.id)) if @can_view_entire %>
   <%= sub_menu_item('View Appln Summary', :url => summary_profiles_viewer_url(@profile.id)) %>

   <% if @can_view_references %>
     <% for ref in @references -%>
         <%= sub_menu_item ref[:text], :url => references_viewer_url(ref[:instance_id]) %>
       <% end -%>
   <% end -%>

   <%= sub_menu_item('Processor Form', :url => processor_viewer_url(@profile.id)) if @can_view_entire %>
   <%= sub_menu_item('Actions', :url => url_for({ :controller => :processor, :action => :actions, :profile_id => @profile.id })) if @can_perform_actions %>
   <%= sub_menu_item('Notes', :url => url_for({ :controller => :profile_notes, :profile_id => @profile.id })) %>
<% end %><commit_msg>make applications with no refs not show the ref link at all<commit_after><% content_for "submenu" do %>
   <%= sub_menu_item('View Appln', :url => entire_profiles_viewer_url(@profile.id)) if @can_view_entire %>
   <%= sub_menu_item('View Appln Summary', :url => summary_profiles_viewer_url(@profile.id)) %>

   <% if @can_view_references %>
     <% for ref in @references -%>
       <% if ref[:instance_id] %>
         <%= sub_menu_item ref[:text], :url => references_viewer_url(ref[:instance_id]) %>
       <% end %>
     <% end -%>
   <% end -%>

   <%= sub_menu_item('Processor Form', :url => processor_viewer_url(@profile.id)) if @can_view_entire %>
   <%= sub_menu_item('Actions', :url => url_for({ :controller => :processor, :action => :actions, :profile_id => @profile.id })) if @can_perform_actions %>
   <%= sub_menu_item('Notes', :url => url_for({ :controller => :profile_notes, :profile_id => @profile.id })) %>
<% end %>
{'fraction_non_alphanumeric': 0.1916336913510458, 'fraction_numerical': 0.0, 'mean_word_length': 4.728155339805825, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 51, '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': '7470584', 'n_tokens_mistral': 658, 'n_tokens_neox': 604, 'n_words': 118}