<commit_before>module NavigationHelpers
  # Maps a name to a path. Used by the
  #
  #   When /^I go to (.+)$/ do |page_name|
  #
  # step definition in webrat_steps.rb
  #
  def path_to(page_name)
    case page_name
    
    when /the home\s?page/
      '/'
      
    when /the new project page/  
      "/projects/new"

    when /my settings page/
      "/settings"

    when /the login page/
      "/login"

    when /the forgot password page/
      "/forgot"

    when /the project page/
      "/projects/ruby_rockstars"

    when /the conversations page/
      "/projects/ruby_rockstars/conversations"

    when /the task lists page/
      "/projects/ruby_rockstars/task_lists"

    when /the people page/
      "/projects/ruby_rockstars/people"
      
    #when /the index page for (.+)/
    #  polymorphic_path(model($1))
    
    # Add more mappings here.<commit_msg>added current project to project related paths<commit_after>module NavigationHelpers
  # Maps a name to a path. Used by the
  #
  #   When /^I go to (.+)$/ do |page_name|
  #
  # step definition in webrat_steps.rb
  #
  def path_to(page_name)
    case page_name
    when /the home\s?page/
      '/'
      
    when /the new project page/  
      "/projects/new"

    when /my settings page/
      "/settings"

    when /the login page/
      "/login"

    when /the forgot password page/
      "/forgot"

    when /the project page/
      project_path(@current_project)
    when /the conversations page/
      project_conversations_path(@current_project)
    when /the task lists page/
      project_task_lists_path(@current_project)
    when /the people page/
      project_people_path(@current_project)
    when /the uploads page/        
      project_uploads_path(@current_project)
      
    #when /the index page for (.+)/
    #  polymorphic_path(model($1))
    
    # Add more mappings here.
{'fraction_non_alphanumeric': 0.09818569903948772, 'fraction_numerical': 0.0010672358591248667, 'mean_word_length': 2.14070351758794, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2455095', 'n_tokens_mistral': 620, 'n_tokens_neox': 589, 'n_words': 172}