<commit_before>Then /^I should be on my photostream page$/ do
  current_path.should == photostream_path
  page.should have_selector('ul#photos')
end

Then /^I should see (\d+) photo(|s) in (photostream|collection)$/ do |number_of_photos, unused1, unused2|
  all('ul#photos li').count.should == number_of_photos.to_i
end

Then /^I should be on sign in page$/ do
  current_path.should == new_user_session_path
end

Then /^I should see a flash with text "([^"]*)"$/ do |text|
  page.should have_content(text)
end

Then /^the photo with title "([^"]*)" should be selected$/ do |title|
  find_link(title)[:class].should include("selected")
end

Then /^the photo with title "([^"]*)" should not be selected$/ do |title|
  find_link(title)[:class].should_not include("selected")
end

Then /^I should see a link for collection named "([^"]*)"$/ do |title|
  all(:xpath, "//div[@id='collections']/a[@title='#{title}']").length.should == 1
end<commit_msg>Simplified path for looking up collections<commit_after>Then /^I should be on my photostream page$/ do
  current_path.should == photostream_path
  page.should have_selector('ul#photos')
end

Then /^I should see (\d+) photo(|s) in (photostream|collection)$/ do |number_of_photos, unused1, unused2|
  all('ul#photos li').count.should == number_of_photos.to_i
end

Then /^I should be on sign in page$/ do
  current_path.should == new_user_session_path
end

Then /^I should see a flash with text "([^"]*)"$/ do |text|
  page.should have_content(text)
end

Then /^the photo with title "([^"]*)" should be selected$/ do |title|
  find_link(title)[:class].should include("selected")
end

Then /^the photo with title "([^"]*)" should not be selected$/ do |title|
  find_link(title)[:class].should_not include("selected")
end

Then /^I should see a link for collection named "([^"]*)"$/ do |title|
  page.should have_xpath("//div[@id='collections']/a[@title='#{title}']")
end
{'fraction_non_alphanumeric': 0.16692830978545264, 'fraction_numerical': 0.0026164311878597592, 'mean_word_length': 5.108626198083067, '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': '4255457', 'n_tokens_mistral': 666, 'n_tokens_neox': 634, 'n_words': 197}