<commit_before><%  
# 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

  if @year.blank?
    year = Date.today.year
  else
    year = @year
  end

  add_tab do |t|
    t.named 'Home'
    t.titled 'Home Page'
    t.links_to :controller => 'home'
  end
  add_tab do |t|
    t.named 'Schedule'
    t.titled 'Racing Schedule'
    t.links_to :controller => 'schedule', :year => year
  end
  add_tab do |t|
    t.named 'Results'
    t.titled 'Rase Results'
    t.links_to :controller => 'results', :year => year
  end

  article_categories = ArticleCategory.find(:all, :conditions => ["parent_id = 0"], :order => "position")

  for article_category in article_categories
    add_tab do |t|
      t.named article_category.name
      t.titled article_category.name
      t.links_to :controller => 'articles', :id_type => "article_category", :article_category_id => article_category.id
      #t.links_to :controller => 'articles', :article_category_id => article_category.id
    end
  end

  #  
  # you can use restful routes with:
  #
  #add_tab do |t|<commit_msg>display description for root level article catgs<commit_after><%  
# 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

  if @year.blank?
    year = Date.today.year
  else
    year = @year
  end

  add_tab do |t|
    t.named 'Home'
    t.titled 'Home Page'
    t.links_to :controller => 'home'
  end
  add_tab do |t|
    t.named 'Schedule'
    t.titled 'Racing Schedule'
    t.links_to :controller => 'schedule', :year => year
  end
  add_tab do |t|
    t.named 'Results'
    t.titled 'Rase Results'
    t.links_to :controller => 'results', :year => year
  end

  article_categories = ArticleCategory.find(:all, :conditions => ["parent_id = 0"], :order => "position")

  for article_category in article_categories
    add_tab do |t|
      t.named article_category.name
      t.titled article_category.description
      t.links_to :controller => 'articles', :id_type => "article_category", :article_category_id => article_category.id
      #t.links_to :controller => 'articles', :article_category_id => article_category.id
    end
  end

  #  
  # you can use restful routes with:
  #
  #add_tab do |t|
{'fraction_non_alphanumeric': 0.11838790931989925, 'fraction_numerical': 0.0005037783375314861, 'mean_word_length': 3.007063572149344, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5756728', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1310, 'n_words': 441}