<commit_before>class DashboardPage < Page
  path :root

  def new_submission
    click_on "Create new submission"
    NewSubmissionPage.new
  end

  def header
    page.find '#tahi-container header'
  end

  def sign_out
    click_on 'Sign out'
  end

  def submissions
    within("#my-submissions") do
      page.all('li').map &:text
    end
  end

  def all_submitted_papers
    within("ul.all_submitted") do
      page.all('li').map &:text
    end
  end

  def submitted_papers
    within("ul.submitted") do
      page.all('li').map &:text
    end
  end

  def edit_submission short_title
    within('.submissions') { click_link short_title }
    EditPaperPage.new
  end

  def view_paper short_title
    within('.submitted') { click_link short_title }
    EditPaperPage.new
  end

  def view_flow_manager
    click_link "Flow Manager"
    FlowManagerPage.new
  end

  def view_submitted_paper short_title
    within('.submitted') { click_link short_title }
    EditPaperPage.new
  end

  def visit_admin
    click_on "Admin"
    wait_for_turbolinks
    AdminDashboardPage.new
  end
end<commit_msg>Fix dashboard css matchers again<commit_after>class DashboardPage < Page
  path :root

  def new_submission
    click_on "Create new submission"
    NewSubmissionPage.new
  end

  def header
    page.find '#tahi-container header'
  end

  def sign_out
    click_on 'Sign out'
  end

  def submissions
    within("#my-submissions") do
      page.all('li').map &:text
    end
  end

  def all_submitted_papers
    within("ul.all_submitted") do
      page.all('li').map &:text
    end
  end

  def submitted_papers
    within("ul.submitted") do
      page.all('li').map &:text
    end
  end

  def edit_submission short_title
    within('.submissions') { click_link short_title }
    EditPaperPage.new
  end

  def view_paper short_title
    within('.submitted') { click_link short_title }
    EditPaperPage.new
  end

  def view_flow_manager
    click_link "Flow Manager"
    FlowManagerPage.new
  end

  def view_submitted_paper short_title
    within('.dashboard-submitted-papers') { click_link short_title }
    EditPaperPage.new
  end

  def visit_admin
    click_on "Admin"
    wait_for_turbolinks
    AdminDashboardPage.new
  end
end
{'fraction_non_alphanumeric': 0.07685433422698838, 'fraction_numerical': 0.0, 'mean_word_length': 3.0488245931283906, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2960548', 'n_tokens_mistral': 770, 'n_tokens_neox': 730, 'n_words': 179}