<commit_before>ActionController::Routing::Routes.draw do |map|
  map.resource :user_session
  map.resources :users
  
  map.resources :species, :collection => { :data => :get }
  map.with_options :controller => :lifespans do |a|
    a.new_lifespan '/species/:species_id/lifespans/new', :action => :new, :conditions => {:method => :get}
    a.edit_lifespan '/species/:species_id/lifespans/:id/edit', :action => :edit, :conditions => {:method => :get}
    a.connect '/species/:species_id/lifespans', :action => :create, :conditions => {:method => :post}
    a.connect '/species/:species_id/lifespans/:id', :action => :update, :conditions => {:method => :put}
  end
  
  
  # AJAX Navigation
  map.taxonomy_dropdown '/taxonomy/dropdown/:rank', 
    :controller => :taxonomy_navigation, 
    :action => :dropdown_options, 
    :rank => /(kingdoms|phylums|classes|orders|families|genuses|species)/,
    :conditions => {:method => :get}
  
  map.taxon '/:rank/:taxon',
    :controller => :species,
    :action => :index,
    :rank => /(kingdom|phylum|class|order|family|genus)/,
    :conditions => {:method => :get}
  
  map.root :controller => :species
end
<commit_msg>changed species routes to taxa routes<commit_after>ActionController::Routing::Routes.draw do |map|
  map.resource :user_session
  map.resources :users
  
  map.resources :taxa, :collection => { :data => :get }
  # map.with_options :controller => :lifespans do |a|
  #   a.new_lifespan '/species/:species_id/lifespans/new', :action => :new, :conditions => {:method => :get}
  #   a.edit_lifespan '/species/:species_id/lifespans/:id/edit', :action => :edit, :conditions => {:method => :get}
  #   a.connect '/species/:species_id/lifespans', :action => :create, :conditions => {:method => :post}
  #   a.connect '/species/:species_id/lifespans/:id', :action => :update, :conditions => {:method => :put}
  # end
  
  
  # AJAX Navigation
  map.taxonomy_dropdown '/taxonomy/dropdown/:rank', 
    :controller => :taxonomy_navigation, 
    :action => :dropdown_options, 
    :rank => /(kingdoms|phylums|classes|orders|families)/,
    :conditions => {:method => :get}
  
  map.taxon '/:rank/:taxon',
    :controller => :taxa,
    :action => :index,
    :rank => /(kingdom|phylum|class|order|family)/,
    :conditions => {:method => :get}
  
  map.root :controller => :taxa
end

{'fraction_non_alphanumeric': 0.18474067723960566, 'fraction_numerical': 0.0, 'mean_word_length': 4.073913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 55, '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': '6838918', 'n_tokens_mistral': 826, 'n_tokens_neox': 790, 'n_words': 153}