<commit_before><%# if logged_in? -%>
<%  
# this partial renders a tabnav, you can call it in your views with:
#   <%= tabnav :main % > (just the tabnav) 
# or, if you want a boxed tabnav:
#   <% tabnav :main do % >
#     your html here
#   <% end % >
# (remove the space between % and >, we don't want to mess up your brand new tabnav :-))
#
# you can pass render_tabnav a few options:
#   :generate_css => true|false #=> generates a default inline css for the tabnav, defaults to false
#   :html => aHash #=> sets html options for the tabnav's div (es :html => {:class=> 'myCssClass', :id=>'myCssId'}) 
#     
render_tabnav :main, 
              :generate_css => false do 
    
  # this generates a tab for every controller in your app
  # you'll probably want to delete this and
  # add tabs one by one as shown below
  # controller_names.each do |name|
  #   add_tab do |t|
  #     t.named name.camelize
  #     t.titled "Go to #{name.camelize}"
  #     t.links_to :controller => name
  #   end
  # end 
         
 
	add_tab do |t|
   t.named 'People'
   t.titled "Who's who in the MethodBox"
   t.links_to :controller => 'people'
  end unless !logged_in?


	add_tab do |t|
   t.named 'Methods and Scripts'
   t.titled "Advice and scripts for data cleaning and statistical analysis"
   t.links_to :controller => 'scripts'
  end unless !logged_in?


  add_tab do |t|
   t.named 'Data Sources'
   t.titled "Archived surveys and other sources of data for research"
   t.links_to :controller => 'surveys'
  end

  add_tab do |t|
   t.named 'Data Extracts'
   t.titled "Data sources created by the users"
   t.links_to :controller => 'csvarchives'
  end unless !logged_in?


	add_tab do |t|
   t.named 'Groups'
   t.titled "Create groups to share things with"
   t.links_to :controller => 'work_groups'
  end unless !logged_in?

  add_tab do |t|
   t.named 'Help'
   t.titled "How to use MethodBox to find variables, share methods and browse surveys"
   t.links_to :controller => 'help'
  end

  add_tab do |t|
   t.named 'Forums'
   t.titled "Ask questions, help others"
   t.links_to :controller => 'forums'
  end unless !logged_in?

  #  
  # you can use restful routes with:
  #
  #add_tab do |t|
  #  t.named 'Users'
  #  t.links_to hash_for_users_path
  #end
  #
  #add_tab do |t|
  #  t.named 'Customers'
  #  t.links_to :controller => 'customers'
  #end<commit_msg>added publications to the main tab nav bar so that users can add, view them etc.  Not 100% sure how users should interact with them so might need moved elsewhere<commit_after><%# if logged_in? -%>
<%  
# this partial renders a tabnav, you can call it in your views with:
#   <%= tabnav :main % > (just the tabnav) 
# or, if you want a boxed tabnav:
#   <% tabnav :main do % >
#     your html here
#   <% end % >
# (remove the space between % and >, we don't want to mess up your brand new tabnav :-))
#
# you can pass render_tabnav a few options:
#   :generate_css => true|false #=> generates a default inline css for the tabnav, defaults to false
#   :html => aHash #=> sets html options for the tabnav's div (es :html => {:class=> 'myCssClass', :id=>'myCssId'}) 
#     
render_tabnav :main, 
              :generate_css => false do 
    
  # this generates a tab for every controller in your app
  # you'll probably want to delete this and
  # add tabs one by one as shown below
  # controller_names.each do |name|
  #   add_tab do |t|
  #     t.named name.camelize
  #     t.titled "Go to #{name.camelize}"
  #     t.links_to :controller => name
  #   end
  # end 
         
 
	add_tab do |t|
   t.named 'People'
   t.titled "Who's who in the MethodBox"
   t.links_to :controller => 'people'
  end unless !logged_in?


	add_tab do |t|
   t.named 'Methods and Scripts'
   t.titled "Advice and scripts for data cleaning and statistical analysis"
   t.links_to :controller => 'scripts'
  end unless !logged_in?


  add_tab do |t|
   t.named 'Data Sources'
   t.titled "Archived surveys and other sources of data for research"
   t.links_to :controller => 'surveys'
  end

  add_tab do |t|
   t.named 'Data Extracts'
   t.titled "Data sources created by the users"
   t.links_to :controller => 'csvarchives'
  end unless !logged_in?

  add_tab do |t|
   t.named 'Publications'
   t.titled "Publications added from PubMed"
   t.links_to :controller => 'publications'
  end


  add_tab do |t|
   t.named 'Groups'
   t.titled "Create groups to share things with"
   t.links_to :controller => 'work_groups'
  end unless !logged_in?

  add_tab do |t|
   t.named 'Help'
   t.titled "How to use MethodBox to find variables, share methods and browse surveys"
   t.links_to :controller => 'help'
  end

  add_tab do |t|
   t.named 'Forums'
   t.titled "Ask questions, help others"
   t.links_to :controller => 'forums'
  end unless !logged_in?

  #  
  # you can use restful routes with:
  #
  #add_tab do |t|
  #  t.named 'Users'
  #  t.links_to hash_for_users_path
  #end
  #
  #add_tab do |t|
  #  t.named 'Customers'
  #  t.links_to :controller => 'customers'
  #end
{'fraction_non_alphanumeric': 0.1079093799682035, 'fraction_numerical': 0.0005961844197138314, 'mean_word_length': 2.972375690607735, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 48, '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': '1783641', 'n_tokens_mistral': 1819, 'n_tokens_neox': 1749, 'n_words': 620}